【phpcms-v9】header.html文件编译前后对比
发布:smiling 来源: PHP粉丝网 添加日期:2014-10-23 08:58:25 浏览: 评论:0
编译前:
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta http-equiv="X-UA-Compatible" content="IE=7" />
- <title>{if isset($SEO['title']) && !empty($SEO['title'])}{$SEO['title']}{/if}{$SEO['site_title']}</title>
- <meta name="keywords" content="{$SEO['keyword']}">
- <meta name="description" content="{$SEO['description']}">
- <link href="{CSS_PATH}reset.css" rel="stylesheet" type="text/css" />
- <link href="{CSS_PATH}default_blue.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript" src="{JS_PATH}jquery.min.js"></script>
- <script type="text/javascript" src="{JS_PATH}jquery.sgallery.js"></script>
- <script type="text/javascript" src="{JS_PATH}search_common.js"></script>
- </head>
编译后:
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta http-equiv="X-UA-Compatible" content="IE=7" />
- <title><?php if(isset($SEO['title']) && !emptyempty($SEO['title'])) { ?><?php echo $SEO['title'];?><?php } ?><?php echo $SEO['site_title'];?></title>
- <meta name="keywords" content="<?php echo $SEO['keyword'];?>">
- <meta name="description" content="<?php echo $SEO['description'];?>">
- <link href="<?php echo CSS_PATH;?>reset.css" rel="stylesheet" type="text/css" />
- <link href="<?php echo CSS_PATH;?>default_blue.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript" src="<?php echo JS_PATH;?>jquery.min.js"></script> //phpfensi.com
- <script type="text/javascript" src="<?php echo JS_PATH;?>jquery.sgallery.js"></script>
- <script type="text/javascript" src="<?php echo JS_PATH;?>search_common.js"></script>
- </head>
执行结果:
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta http-equiv="X-UA-Compatible" content="IE=7" />
- <title>大家风范 - PHPCMS演示站</title>
- <meta name="keywords" content="PHPCMS演示站">
- <meta name="description" content="PHPCMS演示站">
- <link href="http://zhencms.com/statics/css/reset.css" rel="stylesheet" type="text/css" /> //phpfensi.com
- <link href="http://zhencms.com/statics/css/default_blue.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript" src="http://zhencms.com/statics/js/jquery.min.js"></script>
- <script type="text/javascript" src="http://zhencms.com/statics/js/jquery.sgallery.js"></script>
- <script type="text/javascript" src="http://zhencms.com/statics/js/search_common.js"></script>
- </head>
base.php文件:
- define('SYS_TIME', time());
- //定义网站根路径
- define('WEB_PATH',pc_base::load_config('system','web_path'));
- //js 路径
- define('JS_PATH',pc_base::load_config('system','js_path'));
- //css 路径
- define('CSS_PATH',pc_base::load_config('system','css_path'));
- //img 路径
- define('IMG_PATH',pc_base::load_config('system','img_path'));
- //动态程序路径
- define('APP_PATH',pc_base::load_config('system','app_path'));
后台设置:
Tags: header html phpcms文件编译
相关文章
- ·phpcms v9怎么设置静态页面(2014-10-19)
- ·PHPCMS V9静态化HTML生成设置及URL规则优化(2014-10-19)
- ·phpcms去掉域名后面的index.html(2014-10-20)
- ·工作笔记三,phpcms几中HTML标签的调用(2014-10-24)
- ·PHPCMS2008生成html页面(2014-10-24)
- ·phpcms v9生成静态页面的路径去掉html目录(2014-12-06)
推荐文章
热门文章
最新评论文章
- 写给考虑创业的年轻程序员(10)
- PHP新手上路(一)(7)
- 惹恼程序员的十件事(5)
- PHP邮件发送例子,已测试成功(5)
- 致初学者:PHP比ASP优秀的七个理由(4)
- PHP会被淘汰吗?(4)
- PHP新手上路(四)(4)
- 如何去学习PHP?(2)
- 简单入门级php分页代码(2)
- php中邮箱email 电话等格式的验证(2)