Home > Backend Development > PHP Tutorial > How to custom read the title in ecmall template editing, ecmall template_PHP tutorial

How to custom read the title in ecmall template editing, ecmall template_PHP tutorial

WBOY
Release: 2016-07-13 10:00:25
Original
989 people have browsed it

How to customize the reading of the title in ecmall template editing, ecmall template

I encountered a problem, the ecmall project has just been launched. The customer said that the title does not need the four words "mall homepage".

I went to look for it in the source code, and it took me a long time to find it.

The problem is described as follows:

Find the original template themesmalltmalltop.html of title, and open it:


  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 "/> ;


tag is: $page_seo

The title description keywords are written together. If you change the title alone, you need to find the definition of $page_seo in ecmall.

After searching a lot, I finally found it. Here: appdefault.app.php

Open as follows:


  1. class DefaultApp extends MallbaseApp
  2. {
  3. function index()
  4. {
  5. $this->assign('index', 1); // Indicates that the current page is the homepage, used to set the navigation status
  6. $this->assign('icp_number', Conf::get('icp_number'));
  7.  $this->_config_seo(array( 
  8.                                                                       - ' . Conf::get('site_title'),                                                      ));
  9.  
  10. $this->assign(
  11. 'page_description', Conf::get(
  12. 'site_description')); 
  13.  $this->assign('page_keywords', Conf::get('site_keywords')); 
  14. $this->display('index.html');
  15.  }  }
  16. ?>
  17. For the code marked in red, remove lang::get(‘mall_index’). That’s it.
Project address: www.meichigou.com, newly launched today. Welcome everyone’s guidance. In addition, there are two other projects in progress, one of which is going smoothly.

http://www.bkjia.com/PHPjc/973825.html

www.bkjia.com

truehttp: //www.bkjia.com/PHPjc/973825.htmlTechArticleHow to customize the reading of the title in ecmall template editing. The ecmall template encountered a problem. The ecmall project has just been launched. . The customer said that the title does not need the four words "mall homepage". I go to the source code...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template