Exemple #1
0
 function display($tpl = null)
 {
     // Reset the stream view count every time we visit this page
     $doc = JFactory::getDocument();
     $my = JXFactory::getUser();
     $lastMessageId = StreamMessage::lastMessageId();
     $groupView = StreamFactory::getView('groups');
     $eventView = StreamFactory::getView('events');
     // Side bar modules
     JXModule::addBuffer('right', $this->modTagsTrendingHTML());
     if (!$my->isExtranetMember()) {
         JXModule::addBuffer('right', $groupView->getNewGroupsHTML($my->getMergedGroupIDs()));
     }
     JXModule::addBuffer('right', $eventView->getUpcomingHTML());
     echo $this->getStreamPostHTML();
     // Post box
     echo $this->getStreamDataHTML();
     // Stream items
 }
Exemple #2
0
				
				<div class="clear"></div>
			</div>
			<?php 
}
?>
			
			<!-- Secondary Toolbar -->
			<div id="secondToolbar" class="altToolbar">
				
				<ul>
					<!-- company stream -->
					<li class="iconHome iconSecondary<?php 
if ($option == 'com_stream' && $view == 'company') {
    echo ' active';
    $lastMessageId = StreamMessage::lastMessageId();
    $my->setParam('message_last_read', $lastMessageId);
    $my->save();
}
?>
">
						<a href="<?php 
echo JRoute::_('index.php?option=com_stream&view=company');
?>
"><?php 
echo JText::_('NAVIGATOR_LABEL_HOME');
?>
</a>
						<?php 
if ($count > 0) {
    ?>