houerfei / blog_20150325_1_7580208

来自CSDN博客:ecmall模板编辑中的标题如何自定义读取 http://blog.csdn.net/houerfei/article/details/44629693#

  最后更新时间 2015-03-26 09:27:50
blog_20150325_1_7580208 9行 html/xml
Raw
 1
 2
 3
 4
 5
 6
 7
 8
 9
<head>
<base href="{$site_url}/" />
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />

<span style="color:#ff0000;">{$page_seo}</span>
<meta name="viewport" content="width=1200, initial-scale=1.0, minimum-scale=0.5, maximum-scale=2.0, user-scalable=yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="format-detection" content="telephone=no" />
<link rel="shortcut icon" href=" http://www.ya-jing.cn "/>
blog_20150325_2_1087667 20行 PHP
Raw
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
<?php

class DefaultApp extends MallbaseApp
{
function index()
{
$this->assign('index', 1); // 标识当前页面是首页,用于设置导航状态
$this->assign('icp_number', Conf::get('icp_number'));

$this->_config_seo(array(
<strong><span style="color:#ff6666;"> 'title' => Lang::get('mall_index') . ' - ' . Conf::get('site_title'),</span></strong>
));
$this->assign('page_description', Conf::get('site_description'));
$this->assign('page_keywords', Conf::get('site_keywords'));
$this->display('index.html');
}
}

?>