当前位置: 首页>>代码示例>>PHP>>正文


PHP getTemplateIcon函数代码示例

本文整理汇总了PHP中getTemplateIcon函数的典型用法代码示例。如果您正苦于以下问题:PHP getTemplateIcon函数的具体用法?PHP getTemplateIcon怎么用?PHP getTemplateIcon使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了getTemplateIcon函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getMediaPage

 function getMediaPage()
 {
     global $dir;
     global $tmpl;
     require_once BX_DIRECTORY_PATH_INC . 'profiles.inc.php';
     $this->getMediaArray();
     $ret = '<div class="clear_both"></div>';
     $tmplBlock = file_get_contents("{$dir['root']}templates/tmpl_{$tmpl}/media_page_block.html");
     $i = 1;
     foreach ($this->aMedia as $aValue) {
         $block = $tmplBlock;
         $aReplace['media_title'] = process_line_output($aValue['med_title']);
         $aReplace['media_icon'] = '<img src="' . getTemplateIcon($this->sMediaType . '.jpg') . '" />';
         $aReplace['nickname'] = '';
         $aReplace['download'] = '<a href="' . $this->getMediaLink($aValue) . '">' . _t('_download') . '</a>';
         $aReplace['delete'] = '<a href="' . $_SERVER['PHP_SELF'] . '?show=' . $this->sMediaType . '&amp;action=delete&amp;mediaID=' . $aValue['med_id'] . '" onclick="return confirm(\'' . _t('_are you sure?') . '\');">' . _t('_delete') . '</a>';
         foreach ($aReplace as $key => $val) {
             $block = str_replace("__{$key}__", $val, $block);
         }
         $ret .= $block;
         if ($i++ >= $this->aMediaConfig['max'][$this->sMediaType]) {
             break;
         }
     }
     $ret .= '<div class="clear_both"></div>';
     return $ret;
 }
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:27,代码来源:BxDolMedia.php

示例2: display

 function display()
 {
     $aVars = array('bx_repeat:week_names' => $this->_getWeekNames(), 'bx_repeat:calendar_row' => $this->_getCalendar(), 'month_prev_url' => $this->getBaseUri() . "&year={$this->iPrevYear}&month={$this->iPrevMonth}", 'month_prev_name' => _t('_month_prev'), 'month_prev_icon' => getTemplateIcon('sys_back.png'), 'month_next_url' => $this->getBaseUri() . "&year={$this->iNextYear}&month={$this->iNextMonth}", 'month_next_name' => _t('_month_next'), 'month_next_icon' => getTemplateIcon('sys_next.png'), 'month_current' => $this->getTitle());
     $sHtml = $GLOBALS['oSysTemplate']->parseHtmlByName('calendar.html', $aVars);
     $sHtml = preg_replace('#<bx_repeat:events>.*?</bx_repeat:events>#s', '', $sHtml);
     $GLOBALS['oSysTemplate']->addCss('calendar.css');
     return $sHtml;
 }
开发者ID:Gotgot59,项目名称:dolphin.pro,代码行数:8,代码来源:tags.php

示例3: getBlockCode_ViewAll

 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' => getTemplateIcon('rss.png'))));
     } else {
         return MsgBox(_t('_Empty'));
     }
 }
开发者ID:dalinhuang,项目名称:shopexts,代码行数:10,代码来源:BxSitesPageMain.php

示例4: genQuickLink

 function genQuickLink($sText, $sLink, $sOnclick, $iItemID, $sPictureVal)
 {
     $sOnclick = $sOnclick ? ' onclick="' . $sOnclick . '" ' : '';
     if (strpos($sLink, 'http://') === false && strpos($sLink, 'https://') === false && !$sOnclick) {
         $sLink = BX_DOL_URL_ROOT . $sLink;
     }
     $sScriptAction = !$sOnclick ? " onclick=\"window.open ('{$sLink}','_self');\" " : $sOnclick;
     $isFontIcon = false === strpos($sPictureVal, '.');
     return $GLOBALS['oSysTemplate']->parseHtmlByName('quick_link.html', array('bx_if:icon' => array('condition' => !$isFontIcon, 'content' => array('picture' => getTemplateIcon($sPictureVal), 'caption' => $sText, 'action' => $sScriptAction)), 'bx_if:texticon' => array('condition' => $isFontIcon, 'content' => array('picture' => $sPictureVal, 'caption' => $sText, 'action' => $sScriptAction)), 'action' => $sScriptAction, 'caption' => $sText));
 }
开发者ID:toxalot,项目名称:dolphin.pro,代码行数:10,代码来源:BxBaseMenuQlinks2.php

示例5: __construct

 function __construct($aModule)
 {
     parent::__construct($aModule);
     $this->_iAnimationSpeed = 'normal';
     $this->sSpacerPath = getTemplateIcon('spacer.gif');
     $this->sSQLPostsTable = 'bx_ads_main';
     $this->sSQLPostsMediaTable = 'bx_ads_main_media';
     $this->sSQLCatTable = 'bx_ads_category';
     $this->sSQLSubcatTable = 'bx_ads_category_subs';
     $this->_sCommentSystemName = "ads";
 }
开发者ID:Prashank25,项目名称:dolphin.pro,代码行数:11,代码来源:BxAdsConfig.php

示例6: displaySearchBox

 /**
  * Function will generate searched result;
  *
  * @return : (text) - Html presentation data ;
  */
 function displaySearchBox($sCode, $sPaginate = '')
 {
     // generate the init poll's part ;
     $sInitSection = $this->oPollObject->getInitPollPage(false);
     if (isset($this->aCurrent['rss']) && $this->aCurrent['rss']['link']) {
         $aCaptionMenu = '<div class="dbTopMenu"><div class="notActive notActiveIcon" style="background-image:url(' . getTemplateIcon('rss.png') . ')"><a target="_blank" class="top_members_menu" href="' . $this->aCurrent['rss']['link'] . (false === strpos($this->aCurrent['rss']['link'], '?') ? '?' : '&') . 'rss=1">' . _t('RSS') . '</a></div></div>';
     }
     $sCode = DesignBoxContent(_t($this->aCurrent['title']), $sCode . $sPaginate, 1, $aCaptionMenu);
     if (!isset($_POST['searchMode'], $_GET['searchMode'])) {
         $sCode = '<div id="page_block_' . $this->id . '">' . $sCode . '<div class="clear_both"></div></div>';
     }
     // include css file ;
     $sCssStyles = $this->oPollObject->_oTemplate->addCss('main.css', true);
     return $sCssStyles . $sInitSection . $sCode;
 }
开发者ID:noormcs,项目名称:studoro,代码行数:20,代码来源:BxPollSearch.php

示例7: BxDolEvents

 /**
  * constructor
  */
 function BxDolEvents($bAdmMode = FALSE)
 {
     global $site;
     $this->sSpacerPath = getTemplateIcon('spacer.gif');
     $this->sPicNotAvail = 'images/icons/group_no_pic.gif';
     $this->bAdminMode = $bAdmMode;
     // $this->sRowSpacerDiv = <<<EOF
     // <table cellspacing="0" cellpadding="0" height="10" border="0">
     // <td><img src="{$this->sSpacerPath}"></td>
     // </table>
     // EOF;
     $this->iEventsPerPage = 10;
     $this->iIconSize = 45;
     $this->iThumbSize = 110;
     $this->iImgSize = 340;
 }
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:19,代码来源:BxDolEvents.php

示例8: getSitesHtml

function getSitesHtml($sLink, $sTitle = false)
{
    if (!$sTitle) {
        $sTitle = _t('_Share');
    }
    $aSitesPrepare = getSitesArray($sLink);
    $sIconsUrl = getTemplateIcon('digg.png');
    $sIconsUrl = str_replace('digg.png', '', $sIconsUrl);
    $aSites = array();
    foreach ($aSitesPrepare as $k => $r) {
        $aSites[] = array('icon' => $sIconsUrl . $r['icon'], 'name' => $k, 'url' => $r['url']);
    }
    $aVarsContent = array('bx_repeat:sites' => $aSites);
    $aVarsPopup = array('title' => $sTitle, 'content' => $GLOBALS['oSysTemplate']->parseHtmlByName('popup_share.html', $aVarsContent));
    return $GLOBALS['oFunctions']->transBox($GLOBALS['oSysTemplate']->parseHtmlByName('popup.html', $aVarsPopup), true);
}
开发者ID:toxalot,项目名称:dolphin.pro,代码行数:16,代码来源:shared_sites.inc.php

示例9: getActionsMenuItem

 function getActionsMenuItem($sPicturePath, $sText, $sLink = '', $sPath = '', $sTarget = '', $onclick = '', $iconName = '')
 {
     if (strlen($sTarget)) {
         $sTarget = ' target="' . $sTarget . '" ';
     }
     if (strlen($sPicturePath)) {
         $sPicturePath = getTemplateIcon($sPicturePath);
     }
     if (strlen($onclick)) {
         $onclick = ' onclick="' . $onclick . '" ';
     }
     if (!strlen($sPath) && !strlen($onclick)) {
         $sPath = $this->oTemplConfig->aSite['url'];
     }
     $ret = "\n\t\t<div class=\"menuLine\">\n\t\t\t<div class=\"menuLinkBlock\" style=\"background-image: url('{$sPicturePath}')\">\n\t\t\t\t<a href=\"{$sPath}{$sLink}\" title=\"{$sText}\"{$sTarget}{$onclick} class=\"menuLink\">{$sText}</a>\n\t\t\t</div>\n\t\t\t<div class=\"clear_both\"></div>\n\t\t</div>";
     $ret .= '<div class="menuLineDivider"></div>';
     return $ret;
 }
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:18,代码来源:BxTemplMenu.php

示例10: displaySearchBox

 function displaySearchBox($sCode, $sPaginate = '', $bAdminBox = false)
 {
     $sMenu = '';
     if (isset($this->aCurrent['rss']) && $this->aCurrent['rss']['link']) {
         bx_import('BxDolPageView');
         $sMenu = BxDolPageView::getBlockCaptionItemCode(time(), array(_t('RSS') => array('href' => $this->aCurrent['rss']['link'] . (false === strpos($this->aCurrent['rss']['link'], '?') ? '?' : '&') . 'rss=1', 'icon' => getTemplateIcon('rss.png'))));
     }
     $sTitle = _t($this->aCurrent['title']);
     if (!$bAdminBox) {
         $sCode = DesignBoxContent($sTitle, $sCode . $sPaginate, 1, $sMenu);
     } else {
         $sCode = DesignBoxAdmin($sTitle, $sCode, '', $sPaginate, 1);
     }
     if (!isset($_GET['searchMode'])) {
         $sCode = '<div id="page_block_' . $this->id . '">' . $sCode . '<div class="clear_both"></div></div>';
     }
     return $sCode;
 }
开发者ID:dalinhuang,项目名称:shopexts,代码行数:18,代码来源:BxBaseSearchResult.php

示例11: unit

 function unit($aData, $sTemplateName, &$oVotingView, $isShort = false)
 {
     if (null == $this->_oMain) {
         $this->_oMain = BxDolModule::getInstance('BxEventsModule');
     }
     if (!$this->_oMain->isAllowedView($aData)) {
         $aVars = array();
         return $this->parseHtmlByName('twig_unit_private', $aVars);
     }
     $sImage = '';
     if ($aData['PrimPhoto']) {
         $a = array('ID' => $aData['ResponsibleID'], 'Avatar' => $aData['PrimPhoto']);
         $aImage = BxDolService::call('photos', 'get_image', array($a, 'browse'), 'Search');
         $sImage = $aImage['no_image'] ? '' : $aImage['file'];
     }
     $aVars = array('id' => $aData['ID'], 'thumb_url' => $sImage ? $sImage : $this->getImageUrl('no-image-thumb.png'), 'event_url' => BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri() . 'view/' . $aData['EntryUri'], 'event_title' => $aData['Title'], 'event_start' => $this->_oMain->_formatDateInBrowse($aData), 'spacer' => getTemplateIcon('spacer.gif'), 'participants' => $aData['FansCount'], 'country_city' => $this->_oMain->_formatLocation($aData), 'snippet_text' => $this->_oMain->_formatSnippetText($aData), 'bx_if:full' => array('condition' => !$isShort, 'content' => array('author' => $aData['ResponsibleID'] ? getNickName($aData['ResponsibleID']) : _t('_bx_events_admin'), 'author_url' => $aData['ResponsibleID'] ? getProfileLink($aData['ResponsibleID']) : 'javascript:void(0);', 'rate' => $oVotingView ? $oVotingView->getJustVotingElement(0, $aData['ID'], $aData['Rate']) : '&#160;')));
     $aVars = array_merge($aVars, $aData);
     return $this->parseHtmlByName($sTemplateName, $aVars);
 }
开发者ID:gorenc,项目名称:dolphin.pro,代码行数:19,代码来源:BxEventsTemplate.php

示例12: __construct

 function __construct($oModule, $aParam = array())
 {
     $this->_oModule = $oModule;
     $this->_aParam = $aParam;
     if (count($aParam) && isset($aParam['photo']) && $aParam['photo'] != 0) {
         $aFile = BxDolService::call('photos', 'get_photo_array', array($aParam['photo'], 'browse'), 'Search');
         if (!$aFile['no_image']) {
             $aParam = array_merge($aParam, array('thumbnail' => $GLOBALS['oBxSitesModule']->_oTemplate->parseHtmlByName('thumb110.html', array('image' => $aFile['file'], 'spacer' => getTemplateIcon('spacer.gif')))));
         }
     }
     $this->_aCustomForm = $this->getFullForm();
     $this->_aCustomForm['form_attrs']['action'] = BX_DOL_URL_ROOT . $this->_oModule->_oConfig->getBaseUri() . 'edit/' . $aParam['id'];
     $oCategories = new BxDolCategories();
     $oCategories->getTagObjectConfig();
     $this->_aCustomForm['inputs']['categories'] = $oCategories->getGroupChooser('bx_sites', (int) $this->_oModule->iOwnerId, true, $this->_aParam['categories']);
     $aFormInputsSubmit = array('Submit' => array('type' => 'submit', 'name' => 'submit_form', 'value' => _t('_Submit'), 'colspan' => false));
     $this->_aCustomForm['inputs'] = array_merge($this->_aCustomForm['inputs'], $aFormInputsSubmit);
     parent::__construct($this->_aCustomForm);
 }
开发者ID:Prashank25,项目名称:dolphin.pro,代码行数:19,代码来源:BxSitesFormEdit.php

示例13: unit

 function unit($aData, $sTemplateName, &$oVotingView)
 {
     if (null == $this->_oMain) {
         $this->_oMain = BxDolModule::getInstance('BxEventsModule');
     }
     if (!$this->_oMain->isAllowedView($aData)) {
         $aVars = array('extra_css_class' => 'bx_events_unit');
         return $this->parseHtmlByName('browse_unit_private', $aVars);
     }
     $sImage = '';
     if ($aData['PrimPhoto']) {
         $a = array('ID' => $aData['ResponsibleID'], 'Avatar' => $aData['PrimPhoto']);
         $aImage = BxDolService::call('photos', 'get_image', array($a, 'browse'), 'Search');
         $sImage = $aImage['no_image'] ? '' : $aImage['file'];
     }
     $aVars = array('id' => $aData['ID'], 'thumb_url' => $sImage ? $sImage : $this->getIconUrl('no-photo.png'), 'event_url' => BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri() . 'view/' . $aData['EntryUri'], 'event_title' => $aData['Title'], 'event_start' => defineTimeInterval($aData['EventStart']), 'author' => $aData['ResponsibleID'] ? $aData['NickName'] : _t('_bx_events_admin'), 'author_url' => $aData['ResponsibleID'] ? getProfileLink($aData['ResponsibleID']) : 'javascript:void(0);', 'author_title' => _t('_From'), 'spacer' => getTemplateIcon('spacer.gif'), 'participants' => $aData['FansCount'], 'country_city' => _t($GLOBALS['aPreValues']['Country'][$aData['Country']]['LKey']) . (trim($aData['City']) ? ', ' . $aData['City'] : ''));
     $aVars['rate'] = $oVotingView ? $oVotingView->getJustVotingElement(0, $aData['ID'], $aData['Rate']) : '&#160;';
     $aVars = array_merge($aVars, $aData);
     return $this->parseHtmlByName($sTemplateName, $aVars);
 }
开发者ID:dalinhuang,项目名称:shopexts,代码行数:20,代码来源:BxEventsTemplate.php

示例14: ajaxBrowse

 function ajaxBrowse($sMode, $iPerPage, $aMenu = array(), $sValue = '', $isDisableRss = false, $isPublicOnly = true)
 {
     bx_import('SearchResult', $this->oMain->_aModule);
     $sClassName = $this->sSearchResultClassName;
     $o = new $sClassName($sMode, $sValue);
     $o->aCurrent['paginate']['perPage'] = $iPerPage;
     $o->setPublicUnitsOnly($isPublicOnly);
     if (!$aMenu) {
         $aMenu = $isDisableRss ? '' : array(_t('RSS') => array('href' => $o->aCurrent['rss']['link'] . (false === strpos($o->aCurrent['rss']['link'], '?') ? '?' : '&') . 'rss=1', 'icon' => getTemplateIcon('rss.png')));
     }
     if ($o->isError) {
         return array(MsgBox(_t('_Error Occured')), $aMenu);
     }
     if (!($s = $o->displayResultBlock())) {
         return $isPublicOnly ? array(MsgBox(_t('_Empty')), $aMenu) : '';
     }
     $sFilter = false !== bx_get($this->sFilterName) ? $this->sFilterName . '=' . bx_get($this->sFilterName) . '&' : '';
     $oPaginate = new BxDolPaginate(array('page_url' => 'javascript:void(0);', 'count' => $o->aCurrent['paginate']['totalNum'], 'per_page' => $o->aCurrent['paginate']['perPage'], 'page' => $o->aCurrent['paginate']['page'], 'on_change_page' => 'return !loadDynamicBlock({id}, \'' . $this->sUrlStart . $sFilter . 'page={page}&per_page={per_page}\');'));
     $sAjaxPaginate = $oPaginate->getSimplePaginate($this->oConfig->getBaseUri() . $o->sBrowseUrl);
     return array($s, $aMenu, $sAjaxPaginate, '');
 }
开发者ID:dalinhuang,项目名称:shopexts,代码行数:21,代码来源:BxDolTwigPageMain.php

示例15: printNewsPanel

function printNewsPanel($iLimit = 0, $iPreview = 128)
{
    global $site;
    $php_date_format = getParam('php_date_format');
    // news
    $news_limit_chars = getParam("max_news_preview");
    $bNewsFriendly = getParam('permalinks_news') == 'on' ? true : false;
    $news_res = getNewsList($iLimit);
    $news_count = db_arr("SELECT COUNT(*) FROM `News`");
    $news_counter = $news_count['0'];
    $ret = '';
    if ($news_counter > 0) {
        while ($news_arr = mysql_fetch_assoc($news_res)) {
            $ret .= '<div class="newsWrap">';
            $ret .= '<div class="newsHead">';
            $ret .= '<a href="' . getNewsUrl($news_arr['newsID'], $news_arr['NewsUri'], $bNewsFriendly) . '">';
            $ret .= process_line_output($news_arr['Header']);
            $ret .= '</a>';
            $ret .= '</div>';
            //$ret .= '<div class="newsInfo"><img src="' . getTemplateIcon( 'clock.gif' ) . '" />' . date( $php_date_format, $news_arr['Date'] ) . '</div>';
            $ret .= '<div class="newsInfo"><img src="' . getTemplateIcon('clock.gif') . '" />' . LocaledDataTime($news_arr['Date']) . '</div>';
            $ret .= '<div class="newsText">';
            //$ret .= process_text_withlinks_output( $news_arr['Snippet'] );
            $ret .= process_html_output($news_arr['Snippet']);
            $ret .= '</div>';
            $ret .= '</div>';
        }
        if ($news_counter > $max_news_on_home) {
            $sNewsLink = $bNewsFriendly ? $site['url'] . 'news/' : $site['url'] . 'news.php';
            $ret .= '<div class="newsReadMore">';
            $ret .= '<a href="' . $sNewsLink . '">' . _t("_Read news in archive") . '</a>';
            $ret .= '</div>';
        }
    } else {
        $ret .= '<div class="no_result"><div>' . _t("_No news available") . '</div></div>';
    }
    return $ret;
}
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:38,代码来源:news.inc.php


注:本文中的getTemplateIcon函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。