function getBlockCode_ViewAll()
 {
     bx_sites_import('SearchResult');
     $oSearchResult = new BxSitesSearchResult('home');
     if ($s = $oSearchResult->displayResultBlock(true, true)) {
         return array($s, array(_t('RSS') => array('href' => $this->_oConfig->getBaseUri() . 'browse/all?rss=1', 'target' => '_blank', 'icon' => 'rss')), array(), true);
     } else {
         return MsgBox(_t('_Empty'));
     }
 }
 function getBlockCode_Owner()
 {
     bx_sites_import('SearchResult');
     $oSearchResult = new BxSitesSearchResult('user', process_db_input($this->_aProfile['NickName'], BX_TAGS_NO_ACTION, BX_SLASHES_NO_ACTION));
     if ($s = $oSearchResult->displayResultBlock(true)) {
         return $s;
     } else {
         return MsgBox(_t('_Empty'));
     }
 }
 function getBlockCode_ViewRate()
 {
     bx_sites_import('SearchResult');
     $oSearchResult = new BxSitesSearchResult('hon_rate');
     $oSearchResult->sUnitName = 'hon';
     $oSearchResult->sUnitTemplate = 'block_hon';
     if ($s = $oSearchResult->displayResultBlock()) {
         return $s;
     } else {
         return MsgBox(_t('_Empty'));
     }
 }
Example #4
0
 function _manageSites($sMode, $sValue, $aButtons)
 {
     bx_sites_import('SearchResult');
     $oSearchResult = new BxSitesSearchResult($sMode, $sValue);
     $oSearchResult->sUnitTemplate = 'unit_admin';
     $sActionsPanel = '';
     $sFormName = 'manageSitesForm';
     if ($sContent = $oSearchResult->displayResultBlock(true)) {
         $sActionsPanel = $oSearchResult->showAdminActionsPanel($sFormName, $aButtons);
     } else {
         $sContent = MsgBox(_t('_Empty'));
     }
     $aVars = array('form_name' => $sFormName, 'content' => $sContent, 'actions_panel' => $sActionsPanel);
     return $this->_oTemplate->parseHtmlByName('manage.html', $aVars);
 }