本文整理汇总了PHP中getTemplateIcon函数的典型用法代码示例。如果您正苦于以下问题:PHP getTemplateIcon函数的具体用法?PHP getTemplateIcon怎么用?PHP getTemplateIcon使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getTemplateIcon函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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 . '&action=delete&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']) : ' ')));
$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']) : ' ';
$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
示例16: genBrowseLink
/**
* Function will generate the browse link ;
*
* @param : $sName (string) - link's name;
* @param : $sValue (string) - link's extended value;
* @param : $sLink (string) - link's location;
* @param : $sIco (string) - link's icon;
* @param : $bImgDetect (boolean) - if isset this param img path will detect with "getTemplateIcon";
* @return : Html presentation data;
*/
function genBrowseLink($sName, $sValue, $sLink, $sIcon, $bImgDetect = true)
{
// try to find link's icon
if ($bImgDetect) {
$sIcon = getTemplateIcon($sIcon);
}
$sValue = $sValue ? '<span>(' . $sValue . ')</span>' : null;
return '
<div class="linkSection">
<table>
<tr>
<td>
<img src="' . $sIcon . '" alt="' . $sName . '" />
</td>
<td>
<a href="' . $sLink . '">' . $sName . '</a>
' . $sValue . '
</td>
</tr>
</table>
</div>
';
}
开发者ID:noormcs,项目名称:studoro,代码行数:33,代码来源:BxBaseBrowse.php
示例17: PageCodeOutbox
function PageCodeOutbox()
{
global $memberID;
global $dir;
global $site;
global $tmpl;
global $date_format;
$query = "\r\n\t\tSELECT\r\n\t\t\t`Messages`.`ID`,\r\n\t\t\tUNIX_TIMESTAMP( `Date` ) AS `timestamp`,\r\n\t\t\tDATE_FORMAT(`Date`, '{$date_format}') AS `Date`,\r\n\t\t\t`Recipient`,\r\n\t\t\t`Profiles`.`NickName` AS `RecipientNickName`,\r\n\t\t\t`Subject`,\r\n\t\t\t`New`\r\n\t\tFROM `Messages`\r\n\t\tLEFT JOIN `Profiles` ON\r\n\t\t\t`Profiles`.`ID` = `Recipient`\r\n\t\tWHERE `Sender` = {$memberID}\r\n\t\tORDER BY `Date` DESC\r\n\t\t";
$rMsgs = db_res($query);
if (!mysql_num_rows($rMsgs)) {
return '<div class="no_result"><div>' . _t("_No messages in Outbox") . '</div></div>';
}
// --- get template and replace headers ---
$aReplace = array();
$aReplace['mailbox_header_img'] = '<img src="' . getTemplateIcon('outbox.gif') . '" class="mailbox_header_img" />';
//$aReplace['summary'] = _t(
$aReplace['flag'] = _t('_Flag');
$aReplace['from'] = _t('_Recipient');
$aReplace['date'] = _t('_Date');
$aReplace['subject'] = _t('_Subject');
$aReplace['click_to_sort'] = _t('_Click to sort');
$aReplace['actions_l'] = '';
$aReplace['actions'] = '';
$ret = file_get_contents("{$dir['root']}templates/tmpl_{$tmpl}/mail_box.html");
foreach ($aReplace as $key => $val) {
$ret = str_replace("__{$key}__", $val, $ret);
}
$aMyTmpl = preg_split("/\\{\\/?InsertRows\\}/", $ret);
$tmplRow = $aMyTmpl[1];
$ret = "{$aMyTmpl[0]}{InsertRows /}{$aMyTmpl[2]}";
$InsertRows = '';
$tr_class = 'odd';
while ($aMsg = mysql_fetch_assoc($rMsgs)) {
$sSubject = process_line_output(html2txt($aMsg['Subject']));
$aReplace = array();
$aReplace['tr_class'] = $tr_class;
$aReplace['new_add'] = $aMsg['New'] ? 'new' : '';
$aReplace['ID'] = $aMsg['ID'];
$aReplace['CheckBox'] = '';
$aReplace['Flag'] = '<img class="mailbox_flag_img" src="' . getTemplateIcon($aMsg['New'] ? 'not_readed.gif' : 'readed.gif') . '" title="' . _t($aMsg['New'] ? '_Not Readed' : '_Readed') . '" />';
$aReplace['From'] = "<!--{$aMsg['RecipientNickName']}--> <a href=\"{$site['url']}{$aMsg['RecipientNickName']}\">{$aMsg['RecipientNickName']}</a>";
$aReplace['Date'] = "<!--{$aMsg['timestamp']}--> {$aMsg['Date']}";
$aReplace['Subject'] = "<!--{$sSubject}--> <a href=\"{$site['url']}messages_outbox.php?message={$aMsg['ID']}\">{$sSubject}</a>";
$sInsertRow = $tmplRow;
foreach ($aReplace as $key => $val) {
$sInsertRow = str_replace("{{$key}}", $val, $sInsertRow);
}
$sInsertRows .= $sInsertRow;
$tr_class = $tr_class == 'odd' ? 'even' : 'odd';
}
$ret = str_replace("{InsertRows /}", $sInsertRows, $ret);
return $ret;
}
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:53,代码来源:mail.php
示例18: getTemplateIcon
function getTemplateIcon($sFileName)
{
global $site;
global $dir;
global $tmpl;
$sBase = $dir['root'] . 'templates/base/images/icons/' . $sFileName;
$sTemplate = $dir['root'] . 'templates/tmpl_' . $tmpl . '/images/icons/' . $sFileName;
if (extFileExists($sTemplate)) {
$iconUrl = $site['icons'] . $sFileName;
} else {
if (extFileExists($dir['base'] . 'images/icons/' . $sFileName)) {
$iconUrl = $site['base'] . 'images/icons/' . $sFileName;
} else {
$iconUrl = getTemplateIcon('spacer.gif');
}
}
return $iconUrl;
}
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:18,代码来源:design.inc.php
示例19: BxBlogsModule
function BxBlogsModule($aModule)
{
parent::BxDolModule($aModule);
$this->iIconSize = (int) getParam('bx_blogs_iconsize');
$this->iThumbSize = (int) getParam('bx_blogs_thumbsize');
$this->iBigThumbSize = (int) getParam('bx_blogs_bigthumbsize');
$this->iImgSize = (int) getParam('bx_blogs_imagesize');
$this->sHomeUrl = $this->_oConfig->getHomeUrl();
$this->sHomePath = $this->_oConfig->getHomePath();
$this->_iVisitorID = isLogged() ? getLoggedId() : 0;
//temple
$this->bAdminMode = $this->isAdmin() == true;
$this->iPostViewType = 1;
$this->iViewingPostID = -1;
$this->iLastPostedPostID = -1;
$this->aViewingPostInfo = array();
$this->sSpacerPath = getTemplateIcon('spacer.gif');
$this->_sPageHeader = '';
$this->oPrivacy = new BxBlogsPrivacy($this);
}
开发者ID:Gotgot59,项目名称:dolphin.pro,代码行数:20,代码来源:BxBlogsModule.php
示例20: getIconsList
function getIconsList()
{
$ret = '';
for ($i = 0; $i < $this->aMediaConfig['max']['photo']; $i++) {
$sIconSrc = $this->sMediaDir . 'icon_' . $this->aMedia[$i]['med_file'];
if (extFileExists($sIconSrc)) {
$sIconUrl = $this->sMediaUrl . 'icon_' . $this->aMedia[$i]['med_file'];
$ret .= '<a href="' . $this->aMediaConfig['url']['media'] . '?photoID=' . $this->aMedia[$i]['med_id'] . '">';
$ret .= '<img src="' . getTemplateIcon('spacer.gif') . '" style="width:' . $this->aMediaConfig['size']['iconWidth'] . 'px; height:' . $this->aMediaConfig['size']['iconHeight'] . 'px; background-image:url(' . $sIconUrl . '); cursor:pointer;" alt="" class="icons" onmouseover="this.className=\'iconsHover\'" onmouseout="this.className=\'icons\'" />';
$ret .= '</a>';
} else {
$sIconUrl = getTemplateIcon($this->sSexIcon);
$ret .= '<img src="' . getTemplateIcon('spacer.gif') . '" style="width:' . $this->aMediaConfig['size']['iconWidth'] . 'px; height:' . $this->aMediaConfig['size']['iconHeight'] . 'px; background-image:url(' . $sIconUrl . ');" alt="" class="icons" />';
}
}
return $ret;
}
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:17,代码来源:uploadPhoto.php
注:本文中的getTemplateIcon函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论