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


PHP PhpFox::link方法代码示例

本文整理汇总了PHP中PhpFox::link方法的典型用法代码示例。如果您正苦于以下问题:PHP PhpFox::link方法的具体用法?PHP PhpFox::link怎么用?PHP PhpFox::link使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PhpFox的用法示例。


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

示例1: getTitle

 /**
  * Get the title for the current page beind displayed.
  * All titles are added earlier in the script using self::setTitle().
  * Each title is split with a delimiter specificed from the Admin CP.
  *
  * @see setTitle()
  * @return string $sData Full page title including delimiter
  */
 public function getTitle()
 {
     $oFilterOutput = Phpfox::getLib('parse.output');
     ($sPlugin = Phpfox_Plugin::get('template_gettitle')) ? eval($sPlugin) : false;
     if (isset($this->_meta['title'])) {
         return $this->_meta['title'];
     }
     $sData = '';
     /*
     // Display the user name in the title in case we are developing with many browsers
     if (defined('PHPFOX_ADD_USER_TITLE') && PHPFOX_ADD_USER_TITLE && Phpfox::getUserId())
     {
     	$sData = Phpfox::getUserBy('full_name') . ' (#' . Phpfox::getUserId() . '): ';
     }
     */
     foreach ($this->_aTitles as $sTitle) {
         $sData .= $oFilterOutput->clean($sTitle) . ' ' . Phpfox::getParam('core.title_delim') . ' ';
     }
     if (!Phpfox::getParam('core.include_site_title_all_pages')) {
         $sData .= defined('PHPFOX_INSTALLER') ? Phpfox::getParam('core.global_site_title') : Phpfox_Locale::instance()->convert(Phpfox::getParam('core.global_site_title'));
     } else {
         $sData = trim(rtrim(trim($sData), Phpfox::getParam('core.title_delim')));
         if (empty($sData)) {
             $sData = defined('PHPFOX_INSTALLER') ? Phpfox::getParam('core.global_site_title') : Phpfox_Locale::instance()->convert(Phpfox::getParam('core.global_site_title'));
         }
     }
     $sSort = Phpfox_Request::instance()->get('sort');
     if (!empty($sSort)) {
         $mSortName = Phpfox_Search::instance()->getPhrase('sort', $sSort);
         if ($mSortName !== false) {
             $sData .= ' ' . Phpfox::getParam('core.title_delim') . ' ' . $mSortName[1];
         }
     }
     if (!Phpfox::getParam('core.branding')) {
         $sData .= ' - ' . PhpFox::link(false, false) . '';
     }
     return $sData;
 }
开发者ID:auzunov,项目名称:phpfox,代码行数:46,代码来源:template.class.php

示例2: defined

<?php

defined('PHPFOX') or exit('NO DICE!');
/* Cached: August 23, 2014, 6:25 am */
/**
 * [PHPFOX_HEADER]
 * 
 * @copyright		[PHPFOX_COPYRIGHT]
 * @author  		Raymond_Benc
 * @package 		Phpfox
 * @version 		$Id: template-copyright.html.php 3056 2011-09-09 18:28:44Z Raymond_Benc $
 */
echo Phpfox::getParam('core.site_copyright');
?>
 &middot; <a href="#" id="select_lang_pack"><?php 
if (Phpfox::getParam('language.display_language_flag') && !empty($this->_aVars['sLocaleFlagId'])) {
    ?>
<img src="<?php 
    echo $this->_aVars['sLocaleFlagId'];
    ?>
" alt="<?php 
    echo $this->_aVars['sLocaleName'];
    ?>
" class="v_middle" /> <?php 
}
echo $this->_aVars['sLocaleName'];
?>
</a> <?php 
echo ' &middot; ' . PhpFox::link();
开发者ID:laiello,项目名称:kr-indian,代码行数:29,代码来源:core_template_default_block_template-copyright.html.php.php

示例3: getTitle

	/**
	 * Get the title for the current page beind displayed.
	 * All titles are added earlier in the script using self::setTitle().
	 * Each title is split with a delimiter specificed from the Admin CP.
	 *
	 * @see setTitle()
	 * @return string $sData Full page title including delimiter
	 */
	public function getTitle()
	{		
		$oFilterOutput = Phpfox::getLib('parse.output');
		
		(($sPlugin = Phpfox_Plugin::get('template_gettitle')) ? eval($sPlugin) : false);
		
		$sData = '';
		// Display the user name in the title in case we are developing with many browsers
		if (defined('PHPFOX_ADD_USER_TITLE') && PHPFOX_ADD_USER_TITLE && Phpfox::getUserId())
		{
			$sData = Phpfox::getUserBy('full_name') . ' (#' . Phpfox::getUserId() . '): ';
		}
		foreach ($this->_aTitles as $sTitle) 
		{		
			$sData .= $oFilterOutput->clean($sTitle) . ' ' . Phpfox::getParam('core.title_delim') . ' ';
		}
		$sData .= (defined('PHPFOX_INSTALLER') ? Phpfox::getParam('core.global_site_title') : Phpfox::getLib('locale')->convert(Phpfox::getParam('core.global_site_title')));
		
		if (!Phpfox::getParam('core.branding'))
		{
			$sData .= ' - ' . PhpFox::link(false, false) . '';
		}
		
		if (Phpfox::getParam(array('balancer', 'enabled')))
		{
			// $sData .= ' (#' . Phpfox::getLib('request')->getServer('PHPFOX_SERVER_ID') . ' ' . Phpfox::getLib('request')->getServer('SERVER_ADDR') . ')';	
		}

		return $sData;
	}
开发者ID:hoanghd,项目名称:tools,代码行数:38,代码来源:template.class.php


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