當前位置: 首頁>>代碼示例>>PHP>>正文


PHP MetaTagManager::getWindowTitle方法代碼示例

本文整理匯總了PHP中MetaTagManager::getWindowTitle方法的典型用法代碼示例。如果您正苦於以下問題:PHP MetaTagManager::getWindowTitle方法的具體用法?PHP MetaTagManager::getWindowTitle怎麽用?PHP MetaTagManager::getWindowTitle使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在MetaTagManager的用法示例。


在下文中一共展示了MetaTagManager::getWindowTitle方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: print

	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0"/>

	<script type="text/javascript">window.caBasePath = '<?php 
print $this->request->getBaseUrlPath();
?>
';</script>
		
	<?php 
print MetaTagManager::getHTML();
?>
	<?php 
print AssetLoadManager::getLoadHTML($this->request);
?>

	<title><?php 
print ($vs_page_title = MetaTagManager::getWindowTitle()) ? $vs_page_title : "New School Archives : Digital Collections";
?>
</title>
	
	<!--NS design-->
	<script type="text/javascript" src="//use.typekit.net/cvi0qyc.js"></script>
	<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
	<!--end NS design-->

	<script type="text/javascript">
		jQuery(document).ready(function() {
    		jQuery('#browse-menu').on('click mouseover mouseout mousemove mouseenter hide.bs.dropdown',function(e) { e.stopPropagation(); });
    	});
	</script>
	<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
開發者ID:ffarago,項目名稱:pawtucket2,代碼行數:31,代碼來源:pageHeader.php

示例2:

	</script>
	
	<script type="text/javascript">window.caBasePath = '<?php 
print $this->request->getBaseUrlPath();
?>
';</script>

	<?php 
print MetaTagManager::getHTML();
?>
	<?php 
print AssetLoadManager::getLoadHTML($this->request);
?>

	<title><?php 
print MetaTagManager::getWindowTitle() ? MetaTagManager::getWindowTitle() : $this->request->config->get("app_display_name");
?>
</title>
	
	<script type="text/javascript">
		jQuery(document).ready(function() {
    		jQuery('#browse-menu').on('click mouseover mouseout mousemove mouseenter',function(e) { e.stopPropagation(); });
    	});
	</script>
<?php 
//
// Pull in JS and CSS for debug bar
//
if (Debug::isEnabled()) {
    $o_debugbar_renderer = Debug::$bar->getJavascriptRenderer();
    $o_debugbar_renderer->setBaseUrl(__CA_URL_ROOT__ . $o_debugbar_renderer->getBaseUrl());
開發者ID:kai-iak,項目名稱:pawtucket2,代碼行數:31,代碼來源:pageHeader.php

示例3:

 *
 * This program is free software; you may redistribute it and/or modify it under
 * the terms of the provided license as published by Whirl-i-Gig
 *
 * CollectiveAccess is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTIES whatsoever, including any implied warranty of 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
 *
 * This source code is free and modifiable under the terms of 
 * GNU General Public License. (http://www.gnu.org/copyleft/gpl.html). See
 * the "license.txt" file for details, or visit the CollectiveAccess web site at
 * http://www.CollectiveAccess.org
 *
 * ----------------------------------------------------------------------
 */
if (!($vs_window_title = trim(MetaTagManager::getWindowTitle()))) {
    $va_breadcrumb = $this->getVar('nav')->getDestinationAsBreadCrumbTrail();
    if (is_array($va_breadcrumb) && sizeof($va_breadcrumb)) {
        $vs_window_title = array_pop($va_breadcrumb);
    }
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<meta http-equiv="X-UA-Compatible" content="IE=EDGE" />
	    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
		<meta http-equiv="Content-Style-Type" content="text/css" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0"/>
開發者ID:idiscussforum,項目名稱:providence,代碼行數:30,代碼來源:pageHeader.php


注:本文中的MetaTagManager::getWindowTitle方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。