예제 #1
0
 /**
  * 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;
 }
<?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();
예제 #3
0
	/**
	 * 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;
	}