碰见了一个问题,刚上线的ecmall项目。客户说标题不要商城首页这四个字。

我去源码里找,找了半天才找到。

问题描述如下:

找到title的最原始模板themes\mall\tmall\top.html,打开后:

  1. <head>
  2. <base href="{$site_url}/" />
  3. <meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
  4. <span style="color:#ff0000;">{$page_seo}</span>
  5. <meta name="viewport" content="width=1200, initial-scale=1.0, minimum-scale=0.5, maximum-scale=2.0, user-scalable=yes" />
  6. <meta name="apple-mobile-web-app-capable" content="yes" />
  7. <meta name="format-detection" content="telephone=no" />
  8. <link rel="shortcut icon" href=" http://www.ya-jing.cn "/>

标签为:$page_seo

这个title description keywords 写到一起了。如果单改title,需要找到ecmall中的$page_seo的定义处。

找了一大圈,终于找到。在这里:\app\default.app.php

打开如下:

  1. <?php
  2. class DefaultApp extends MallbaseApp
  3. {
  4. function index()
  5. {
  6. $this->assign('index', 1); // 标识当前页面是首页,用于设置导航状态
  7. $this->assign('icp_number', Conf::get('icp_number'));
  8. $this->_config_seo(array(
  9. <strong><span style="color:#ff6666;">    'title' => Lang::get('mall_index') . ' - ' . Conf::get('site_title'),</span></strong>
  10. ));
  11. $this->assign('page_description', Conf::get('site_description'));
  12. $this->assign('page_keywords', Conf::get('site_keywords'));
  13. $this->display('index.html');
  14. }
  15. }
  16. ?>

其中红色标记中的代码,去掉lang::get(‘mall_index’).就可以了。

项目地址:www.meichigou.com,今天新上线。欢迎大家指导。另外,还有两个项目也在进行中,其中一个www.ya-jing.cn配资公司进行的很顺利。

最新文章

  1. 【POJ-1390】Blocks 区间DP
  2. iOS通过ARC管理内存(内容根据iOS编程编写)
  3. hybird之web动态换肤实现
  4. 河南省第八届ACM程序设计大赛
  5. eclipse项目导入androidstudio
  6. MAXIMO系统 java webservice 中PDA移动应用系统开发
  7. Coco2dx 3D例子
  8. Shell脚本语言与编译型语言的差异
  9. Linq延迟执行
  10. OC基础5:继承
  11. C语言的ELF文件格式学习
  12. 使用过渡场景在多个场景的切换COCOS2D(4)
  13. OpenSuSE Linux下安装Oracle10g的步骤
  14. Linux编译Windows共享目录下代码
  15. There is No Alternative~最小生成树变形
  16. android客户端向服务器发送请求中文乱码的问
  17. Sql查询今天、本周和本月的记录(时间字段为时间戳)
  18. echarts4的学习
  19. QML C++插件dll引用
  20. js字符串与十六进制相互转换

热门文章

  1. 运行maven build报错No goals have been specified for this build.
  2. javascript总结15:Break语句 与 continue语句
  3. Linux相关常用工具
  4. Java 之集合框架
  5. samba服务器共享开发【windows下开发linux网站】
  6. [转]B+Tree图解
  7. 「BZOJ1000」A+B Problem
  8. 《C#多线程编程实战》2.10 SpinWait
  9. linux中tr的功能多多
  10. enumerate函数