Exemplo n.º 1
0
 function getBlockCode_All($iBlockId)
 {
     $oTags = new BxTemplTags();
     $oTags->getTagObjectConfig();
     if (!isset($this->_aParam['pagination'])) {
         $this->_aParam['pagination'] = getParam('tags_perpage_browse');
     }
     return array($oTags->display($this->_aParam, $iBlockId, '', $this->_sUrl), array(), array(), $this->_sTitle);
 }
Exemplo n.º 2
0
 function getBlockCode_Tags($iBlockId)
 {
     $oTags = new BxTemplTags();
     $oTags->getTagObjectConfig(array('type' => ''));
     if (empty($oTags->aTagObjects)) {
         return '';
     }
     $aParam = array('type' => isset($_REQUEST['tags_mode']) && isset($oTags->aTagObjects[$_REQUEST['tags_mode']]) ? $_REQUEST['tags_mode'] : $oTags->getFirstObject(), 'orderby' => 'popular', 'limit' => getParam('tags_perpage_browse'));
     $sMenu = $oTags->getTagsTopMenu($aParam);
     $sContent = $oTags->display($aParam, $iBlockId);
     return array($sContent, $sMenu, array(), false);
 }
Exemplo n.º 3
0
function showTags($aParam = array(), $iBoxId = 1, $sAction = '', $iBox = 0, $sTitle = '')
{
    $oTags = new BxTemplTags();
    $oTags->getTagObjectConfig($aParam);
    if (empty($oTags->aTagObjects)) {
        if ($iBox & BX_TAGS_BOX_DISIGN) {
            return DesignBoxContent($sTitle, MsgBox(_t('_Empty')), 1);
        } else {
            return MsgBox(_t('_Empty'));
        }
    }
    $aParam['type'] = isset($_GET['tags_mode']) && isset($oTags->aTagObjects[$_GET['tags_mode']]) ? $_GET['tags_mode'] : $oTags->getFirstObject();
    $sCode = '';
    if ($iBox & BX_TAGS_BOX_INT_MENU) {
        $sCode .= $oTags->getTagsInternalMenuHtml($aParam, $iBoxId, $sAction);
    }
    $sCode .= $oTags->display($aParam, $iBoxId, $sAction);
    if ($iBox & BX_TAGS_BOX_DISIGN) {
        $aCaptionMenu = $iBox & BX_TAGS_BOX_INT_MENU ? '' : $oTags->getTagsTopMenuHtml($aParam, $iBoxId, $sAction);
        $sCode = DesignBoxContent($sTitle, $sCode, 1, $aCaptionMenu);
        $sCode = '<div id="page_block_' . $iBoxId . '">' . $sCode . '<div class="clear_both"></div></div>';
        return $sCode;
    } else {
        return array($sCode, $iBox & BX_TAGS_BOX_INT_MENU ? '' : $oTags->getTagsTopMenu($aParam, $sAction), array(), $sDate ? _t('_tags_by_day') . $sDate : '');
    }
}
Exemplo n.º 4
0
 function getBlockCode_Tags($iBlockId)
 {
     bx_import('BxTemplTags');
     $oTags = new BxTemplTags();
     $oTags->getTagObjectConfig();
     return $oTags->display(array('type' => $this->oConfig->getMainPrefix(), 'orderby' => 'popular', 'limit' => getParam('tags_show_limit')), $iBlockId, '', BX_DOL_URL_ROOT . $this->oConfig->getBaseUri() . 'tags');
 }
Exemplo n.º 5
0
function getBlockTags($sDefault)
{
    $oTags = new BxTemplTags();
    $oTags->setTemplateContent('<span class="one_tag" style="font-size:__tagSize__px;"><a href="javascript:void(0)" onclick="javascript:__tagHref__" title="__countCapt__: __countNum__">__tag__</a></span>');
    $aTags = $oTags->getTagList(array('type' => 'profile'));
    return array('styles_tags' => $sDefault != 'tags' ? "display: none;" : "", 'content_tags' => $oTags->getTagsView($aTags, BX_DOL_ADM_MP_JS_NAME . '.changeFilterTags(\'{tag}\')'));
}
Exemplo n.º 6
0
 function getBlockCode_Tags($iBlockId)
 {
     $oTags = new BxTemplTags();
     $oTags->getTagObjectConfig(array('type' => ''));
     if (!empty($oTags->aTagObjects)) {
         $aParam = array('type' => isset($_REQUEST['tags_mode']) ? $_REQUEST['tags_mode'] : $oTags->getFirstObject(), 'popular' => true, 'limit' => getParam('tags_perpage_browse'));
         return array($oTags->display($aParam, $iBlockId), $oTags->getTagsTopMenu($aParam), array(), '');
     } else {
         return '';
     }
 }