zencart模板系统文件笔记1:html_header.php

阅读: 评论:0

2024年2月8日发(作者:)

zencart模板系统文件笔记1:html_header.php

------------------------------------------------------------------------------------------------------------------------------------------zencart模板系统文件笔记1:html_(zencart建站vip内部交流俱乐部--体验)文件名:html_l_文件隶属于:英文版zen-cart-v139h文件路径:includestemplatestemplate_defaultcommon/系统上隶属于:公共模板文件主要功能:输出html页面的头部head标签的内容主要包括:标题、meta信息[关键词、描述、...]、载入js、css等<?php/***CommonTemplate**outputsthehtmlheader.i,e,everythingthatcomesbeforethetag
**@packagetemplateSystem*@copyrightCopyright2003-2010ZenCartDevelopmentTeam*@copyrightPortionsCopyright2003osCommerce*@license/license/2_PublicLicenseV2.0*@version$Id:html_157612010-03-3119:31:27Zdrbyte$*//***loadthemoduleforgeneratingpagemeta-tags*/require(DIR_WS__get_module_directory('meta_'));//调用meta_/***outputmainpageHEADtagandrelatedheaders/meta-tags,etc*/?>><?phpechoMETA_TAG_TITLE;?>//输出定义的标题"/>//编码定义"/>//关键词内容------------------------------------------------------------------------------------------------------------------------------------1zencart模板系统文件笔记

------------------------------------------------------------------------------------------------------------------------------------------"/>//描述内容<?phpif(defined('ROBOTS_PAGES_TO_SKIP')&&in_array($current_page_base,explode(",",constant('ROBOTS_PAGES_TO_SKIP')))||$current_page_base=='down_for_maintenance'||$robotsNoIndex===true){?>//如定义ROBOTS_PAGES_TO_SKIP,页面维护检查,则noindex,nofollow<?php}?><?phpif(defined('FAVICON')){?>"type="image/x-icon"/>"type="image/x-icon"/><?php}//endifFAVICON?>//快捷方式图标"/><?phpif(isset($canonicalLink)&&$canonicalLink!=''){?>"/><?php}?><?php/*****************************************************************************************载入css样式文件****************************************************************************************/$directory_array=$template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE,$current_page_base,'css'),'/^style/','.css');while(list($key,$value)=each($directory_array)){echo''."n";}/**给特定页面载入特定样式文件内容*/$manufacturers_id=(isset($_GET['manufacturers_id']))?$_GET['manufacturers_id']:'';$tmp_products_id=(isset($_GET['products_id']))?(int)$_GET['products_id']:'';$tmp_pagename=($this_is_home_page)?'index_home':$current_page_base;if($current_page_base=='page'&&isset($ezpage_id))$tmp_pagename=$current_page_base.(int)$ezpage_id;$sheets_array=array('/'.$_SESSION['language'].'_stylesheet','/'.$tmp_pagename,'/'.$_SESSION['language'].'_'.$tmp_pagename,'/c_'.$cPath,'/'.$_SESSION['language'].'_c_'.$cPath,------------------------------------------------------------------------------------------------------------------------------------2zencart模板系统文件笔记

------------------------------------------------------------------------------------------------------------------------------------------'/m_'.$manufacturers_id,'/'.$_SESSION['language'].'_m_'.(int)$manufacturers_id,'/p_'.$tmp_products_id,'/'.$_SESSION['language'].'_p_'.$tmp_products_id);while(list($key,$value)=each($sheets_array)){//echo"n";$perpagefile=$template->get_template_dir('.css',DIR_WS_TEMPLATE,$current_page_base,'css').$value.'.css';if(file_exists($perpagefile))echo''."n";}/***载入打印css文件*/$directory_array=$template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE,$current_page_base,'css'),'/^print/','.css');sort($directory_array);while(list($key,$value)=each($directory_array)){echo''."n";}/***从你的模板上载入js文件*/$directory_array=$template->get_template_part($template->get_template_dir('.js',DIR_WS_TEMPLATE,$current_page_base,'jscript'),'/^jscript_/','.js');while(list($key,$value)=each($directory_array)){echo''."n";}/****从你的模板上载入特定页面的js文件*/$directory_array=$template->get_template_part($page_directory,'/^jscript_/','.js');while(list($key,$value)=each($directory_array)){echo''."n";}/***loadallsite-widejscript_*.phpfilesfromincludes/templates/YOURTEMPLATE/jscript,alphabetically*/------------------------------------------------------------------------------------------------------------------------------------3zencart模板系统文件笔记

------------------------------------------------------------------------------------------------------------------------------------------$directory_array=$template->get_template_part($template->get_template_dir('.php',DIR_WS_TEMPLATE,$current_page_base,'jscript'),'/^jscript_/','.php');while(list($key,$value)=each($directory_array)){/***includecontentfromallsite-widejscript_*.phpfilesfromincludes/templates/YOURTEMPLATE/jscript,alphabetically.*escanbemanipulatedbyPHPwhenthey'recalled,andarecopiedin-fulltothebrowserpage*/require($template->get_template_dir('.php',DIR_WS_TEMPLATE,$current_page_base,'jscript').'/'.$value);echo"n";}/***includecontentfromallpage-specificjscript_*.phpfilesfromincludes/modules/pages/PAGENAME,alphabetically.*/$directory_array=$template->get_template_part($page_directory,'/^jscript_/');while(list($key,$value)=each($directory_array)){/***includecontentfromallpage-specificjscript_*.phpfilesfromincludes/modules/pages/PAGENAME,alphabetically.*escanbemanipulatedbyPHPwhenthey'recalled,andarecopiedin-fulltothebrowserpage*/require($page_directory.'/'.$value);echo"n";}//DEBUG:echo'';?><?php//NOTE:Blanklinefollowingisintended:?>这是“外贸建站推广分享社区"zencart自主开发建站的系列免费体验教程,如你想自主建站,更深入地了解zencart建站仿站和定制,欢迎你加入我们的vip内部交流俱乐部.《zencart模板系统文件笔记》是内部会员特权,只分享到第十篇4------------------------------------------------------------------------------------------------------------------------------------zencart模板系统文件笔记

------------------------------------------------------------------------------------------------------------------------------------------更多内容请:©2012陈金凌-外贸建站推广分享社区.版权所有.欢迎传阅,请勿修改版权信息,谢谢合作!------------------------------------------------------------------------------------------------------------------------------------5zencart模板系统文件笔记

zencart模板系统文件笔记1:html_header.php

本文发布于:2024-02-08 12:20:29,感谢您对本站的认可!

本文链接:https://www.4u4v.net/it/170736602967449.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:模板   文件   建站   页面   笔记   分享
留言与评论(共有 0 条评论)
   
验证码:
排行榜

Copyright ©2019-2022 Comsenz Inc.Powered by ©

网站地图1 网站地图2 网站地图3 网站地图4 网站地图5 网站地图6 网站地图7 网站地图8 网站地图9 网站地图10 网站地图11 网站地图12 网站地图13 网站地图14 网站地图15 网站地图16 网站地图17 网站地图18 网站地图19 网站地图20 网站地图21 网站地图22/a> 网站地图23