Example #1
0
 * @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;
// Set the inbox class.
$inboxClass = $unread ? 'unread-messages' : 'no-unread-messages';
if (!empty($inboxLink)) {
    ?>
	<span class="<?php 
    echo $inboxClass;
    ?>
"><a href="<?php 
    echo $inboxLink;
    ?>
"><?php 
    echo JText::sprtinf('mod_unread_Messages', $unread);
    ?>
</a></span>
<?php 
} else {
    ?>
	<span class="<?php 
    echo $inboxClass;
    ?>
"><?php 
    echo JText::sprintf('mod_unread_Messages', $unread);
    ?>
</span>
<?php 
}