Exemple #1
0
 public function display($cachable = false, $urlparams = false)
 {
     // Only admin can use this function to invite guests
     $jxConfig = new JXConfig();
     $my = JXFactory::getUser();
     $accessHelper = new AccountAccessHelper();
     if (!$my->authorise('stream.setting.edit', $accessHelper)) {
         $mainframe = JFactory::getApplication();
         $mainframe->redirect(JURI::base(), JText::_('COM_ACCOUNT_ERRMSG_INVITATION_DENIED'), 'error');
     }
     $inviteView = AccountFactory::getView('invite');
     parent::display();
 }
Exemple #2
0
// If page title is set, add it here. BUT, don't show it
// if it is the same as site title (which mean, the title is not set)
$docTitle = $document->getTitle();
if (!empty($docTitle) && $docTitle != $config->sitename) {
    echo '<h1>' . StreamTemplate::escape($docTitle) . '</h1>';
}
?>
					<jdoc:include type="component" />
				
					<jdoc:include type="modules" name="component_bottom" style="default"/>
				</div>
			
				<div id="sidebar-right" class="grid_3">
					<?php 
// Add guest invite right module
$accountView = AccountFactory::getView('invite');
JXModule::addBuffer('right', $accountView->modMemberInvite());
$buffer =& JXModule::getBuffer('right');
foreach ($buffer as $buff) {
    echo $buff;
}
?>
					<?php 
/* if($option == 'com_stream' && $view == 'company') { ?>
			<img src="<?php echo JURI::root().'components/com_stream/assets/images/hot_topics.png'; ?>" />
			<?php } */
?>

				</div>
			</div>
		</div><!-- #eContent -->