zoukankan      html  css  js  c++  java
  • ecshop去头部和掉底部版权

    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事件

    还需要找到 languageszh_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}。mobileincludeappsdefaultcontrollerCommonController.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'));
            }
  • 相关阅读:
    206#反转链表
    19#删除链表的倒数第N个节点
    142#环形链表2
    209#长度最小的子数组
    54#螺旋矩阵
    498#对角线遍历
    Github下载文件慢试试这款工具吧
    Bing每日壁纸API
    3.新手建站教程系列之认识WordPress和第一篇文章
    2.新手建站教程系列之利用本地环境搭建网站
  • 原文地址:https://www.cnblogs.com/wesky/p/3229473.html
Copyright © 2011-2022 走看看