/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
- <?php
- /**
- * @version $Id$
- * @package Joomla.Administrator
- * @subpackage mod_unread
- * @copyright Copyright (C) 2005 - 2010 Open Source Matters, Inc. All rights reserved.
- * @license GNU General Public License version 2 or later; see LICENSE.txt
- */
- // no direct access
- defined('_JEXEC') or die;
- // Include dependancies.
- require_once dirname(__FILE__).'/helper.php';
- $unread = ModUnreadHelper::getCount();
- if ($unread !== false) {
- // Set the inbox link.
- $inboxLink = JRequest::getInt('hidemainmenu') ? null : JRoute::_('index.php?option=com_messages');
- require JModuleHelper::getLayoutPath('mod_unread', $params->get('layout', 'default'));
- }