1.去掉头部版权

打开includes/lib_main.php

$page_title = $GLOBALS['_CFG']['shop_title'] . ' - ' . 'Powered by ECShop';

修改这里的'Powered by ECShop

2.去掉底部版权

打开 js/common.js

删除第244行:onload = function(),是全部的onload事件

还需要找到 languages\zh_cn\ common.php  第555行去掉

$_LANG['p_y']['link_start'] = '<a href="http://www.ecshop.com" target="_blank" style=" font-family:Verdana; font-size:11px;">';
$_LANG['p_y']['link_p'] = 'Powe';
$_LANG['p_y']['link_r'] = 'red&nbsp;';
$_LANG['p_y']['link_b'] = 'by&nbsp;';
$_LANG['p_y']['main_start'] = '<strong><span style="color: #3366FF">';
$_LANG['p_y']['main_e'] = 'E';
$_LANG['p_y']['main_c'] = 'CSho';
$_LANG['p_y']['main_p'] = 'p</span>&nbsp;';
$_LANG['p_y']['v_s'] = '<span style="color: #FF9966">';
$_LANG['p_y']['v'] = VERSION;
$_LANG['p_y']['link_end'] = '</span></strong></a>&nbsp;';

3.手机端去掉版权,mobile/include/app/defualt/common/function.php,第25行

$page_title = C('shop_title') . ' - ' . 'Powered by ECTouch.cn';

4.自定义模板css,js路径 {$TemplatePath}。mobile\include\apps\default\controller\CommonController.class.php

// 模板替换
defined('__TPL__') or define('__TPL__', __ROOT__ . '/themes/' . C('template'));
$stylename = C('stylename');
if (! empty($stylename)) {
$this->assign('ectouch_css_path', __ROOT__ . '/themes/' . C('template') . '/css/ectouch_' . C('stylename') . '.css');
$this->assign('TemplatePath', __ROOT__ . '/themes/' . C('template'));
} else {
$this->assign('ectouch_css_path', __ROOT__ . '/themes/' . C('template') . '/css/ectouch.css');
$this->assign('TemplatePath', __ROOT__ . '/themes/' . C('template'));
}
05-11 10:56