PageRenderTime 44ms CodeModel.GetById 21ms RepoModel.GetById 1ms app.codeStats 0ms

/administrator/modules/mod_unread/mod_unread.php

https://github.com/joebushi/joomla
PHP | 23 lines | 8 code | 5 blank | 10 comment | 1 complexity | 1986ec6e4663ba935e3916c655ea7b3d MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0
  1. <?php
  2. /**
  3. * @version $Id$
  4. * @package Joomla.Administrator
  5. * @subpackage mod_unread
  6. * @copyright Copyright (C) 2005 - 2010 Open Source Matters, Inc. All rights reserved.
  7. * @license GNU General Public License version 2 or later; see LICENSE.txt
  8. */
  9. // no direct access
  10. defined('_JEXEC') or die;
  11. // Include dependancies.
  12. require_once dirname(__FILE__).'/helper.php';
  13. $unread = ModUnreadHelper::getCount();
  14. if ($unread !== false) {
  15. // Set the inbox link.
  16. $inboxLink = JRequest::getInt('hidemainmenu') ? null : JRoute::_('index.php?option=com_messages');
  17. require JModuleHelper::getLayoutPath('mod_unread', $params->get('layout', 'default'));
  18. }