shopex去底部版权的办法 ecshop教程 - ecshop - 爱建站

,,cms教程,ecshop教程,,

SEO SEO

首页  >   ecshop > shopex去底部版权的办法 ecshop教程   >  正文

shopex去底部版权的办法 ecshop教程

2018-09-27 07:28:55 向站长提问 编辑: admin 阅读:

 


 最模板提供,转载请注明网址!

 

1.直接将文件复制到

\core\include_v5\smartyplugins\

文件夹下,替换

function.footer.php

function.footer.php代码:

 

  1. <?php 
  2. /*********************/ 
  3. /*                   */ 
  4. /*  Version : 5.1.0  */ 
  5. /*  Author  : RM     */ 
  6. /*  Comment : 071223 */ 
  7. /*                   */ 
  8. /*********************/ 
  9.  
  10. function tpl_function_footer( $params, &$smarty ) 
  11.     global $system
  12.                 $system =& $system
  13.                 $output =& $system->loadModel( "system/frontend" ); 
  14.                 $tmpdata = $system->getConf( "im.setting" ); 
  15.                 $data = unserialize( $tmpdata ); 
  16.                 $theme_dir = $system->base_url( )."themes/".$output->theme; 
  17.                 echo $smarty->_fetch_compile_include( "shop:common/footer.html"array
  18.                                 "theme_dir" => $theme_dir
  19.                                 "certtext" => "<a href=\"http://www.miibeian.gov.cn/ \" target=\"blank\">".$system->getConf( "site.certtext" )."</a>"
  20.                                 "mini_cart" => $system->getConf( "site.buy.target" ) == 3, 
  21.                                 "preview_theme" => $system->in_preview_theme, 
  22.                                 "im_setting" => $data
  23.                                 "system_url" => $system->base_url( ), 
  24.                                 "stateString" => "cron=".urlencode( $system->request["action"]["controller"].":".$system->request["action"]["method"] )."&p=".urlencode( $system->request["action"]["args"][0] ) 
  25.                 ) ); 
  26.                 if ( constant( "SHOP_DEVELOPER" ) ) 
  27.                 { 
  28.                                 $html .= $system->_debugger["log"]; 
  29.                 } 
  30.                 if ( $system->getConf( "shopex.wss.show" ) ) 
  31.                 { 
  32.                                 $wssjs = $system->getConf( "shopex.wss.js" ); 
  33.                 } 
  34.                 if ( $system->getConf( "certificate.channel.status" ) ) 
  35.                 { 
  36.                                 $channel = $system->getConf( "certificate.channel.service" )."<a href=\"".$system->getConf( "certificate.channel.url" )."\" target=\"_blank\">".$system->getConf( "certificate.channel.name" ); 
  37.                                 $channel .= "</a>"
  38.                 } 
  39.                 if ( $system->getConf( "site.shopex_certify" ) == 0 ) 
  40.                 { 
  41.                                 $ref = $_SERVER["HTTP_HOST"]; 
  42.                                 $check = md5( $ref."[email protected]" ); 
  43.                                 $str = urlencode( $system->getConf( "certificate.str" ) ); 
  44.                                 if ( !$str ) 
  45.                                 { 
  46.                                                 $str = urlencode( __( "无" ) ); 
  47.                                 } 
  48.                                 if ( constant( "SAAS_MODE" ) ) 
  49.                                 { 
  50.                                                 $versionStr = ""
  51.                                 } 
  52.                                 else 
  53.                                 { 
  54.                                                 $versionStr = "v".$system->_app_version; 
  55.                                 } 
  56.                                 if ( $system->use_gzip ) 
  57.                                 { 
  58.                                                 $gzip = "enabled"
  59.                                 } 
  60.                                 else 
  61.                                 { 
  62.                                                 $gzip = "disabled"
  63.                                 } 
  64.                                 $themeFoot = "<p class=\"themefoot\">".$system->getConf( "system.foot_edit" )."</p>"
  65.                                 $PoweredStr = "<p style=\"font-family:Verdana;line-height:20px!important;height:auto!important;font-size:11px!important;text-align:center;overflow:none!important;text-indent:0!important;\">"
  66.                                 if ( $system->getConf( "certificate.auth_type" ) == "commercial" ) 
  67.                                 { 
  68.                                                 $greencard = $system->getConf( "store.greencard" ); 
  69.                                                 if ( !isset( $greencard ) || $greencard ) 
  70.                                                 { 
  71.                                                                 $PoweredStr .= "<a href="http://service.shopex.cn/show/certinfo.php?certi_id=".$system->getConf( "certificate.id" )."&url=".rawurlencode( $system->base_url( ) )."" target="_blank"><img src="statics/bottom-authorize.gif"></a><br>"
  72.                                                 } 
  73.                                 } 
  74.                                 //$PoweredStr .= "<a href=\"http://store.shopex.cn/rating/store_detail.php?ref=".$ref."&check=".$check."&str=".$str."\" target=\"_blank\" style=\"color:#666;text-decoration:none;cursor:pointer\">"; 
  75.                                 //$PoweredStr .= "Powered&nbsp;by&nbsp;<b style=\"color:#5c719e\">Shop</b><b style=\"color:#f39000\">Ex</b>"; 
  76.                                 //$PoweredStr .= "</a>"; 
  77.                                 //$PoweredStr .= "<span style=\"font-size:9px;\">&nbsp;".$versionStr."</span>"; 
  78.                                 //$PoweredStr .= "<span style=\"color:#999;display:none\">&nbsp|Gzip ".$gzip."</span>&nbsp;"; 
  79.                                 if ( $channel ) 
  80.                                 { 
  81.                                                 $PoweredStr .= "<br/><span>".$channel."</span>&nbsp;"
  82.                                 } 
  83.                                 if ( $system->getConf( "site.certtext" ) ) 
  84.                                 { 
  85.                                                 $PoweredStr .= "<a href=\"http://www.miibeian.gov.cn/\" target=\"blank\" style=\"color:#666;text-decoration:none;cursor:pointer;display:block;\" class=\"textcenter\">".$system->getConf( "site.certtext" )."</a>"
  86.                                 } 
  87.                                 if ( $wssjs ) 
  88.                                 { 
  89.                                                 $PoweredStr .= "<span style=\"display:none\">".$wssjs."</span>"
  90.                                 } 
  91.                                 $PoweredStr .= "</p>"
  92.                                 if ( $system->getConf( "site.rsc_rpc" ) && defined( "RSC_RPC" ) && ( $certificate = $system->getConf( "certificate.id" ) ) ) 
  93.                                 { 
  94.                                                 $p = array( ); 
  95.                                                 foreach ( $runtime["path"as $path ) 
  96.                                                 { 
  97.                                                                 $p[] = $path["title"]; 
  98.                                                 } 
  99.                                                 $pageinfo["path"] = implode( $p"/" ); 
  100.                                                 $p = ""
  101.                                                 foreach ( $pageinfo as $k => $v ) 
  102.                                                 { 
  103.                                                                 $p .= "&_".$k."=".urlencode( $v ); 
  104.                                                 } 
  105.                                                 $p .= "&_time=".time( ); 
  106.                                                 $RSC_RPC_STR = "<script>\r\n            withBroswerStore(function(store){\r\n            \r\n               store.get(\"jsapi\",function(data){\r\n                     \r\n                       var script = document.createElement(\"script\");\r\n                       var _src = \"".RSC_RPC."/jsapi?certi_id=".$certificate.$p."&pt=".urlencode( $smarty->pagedata["request"]["action"]["controller"] ).":".urlencode( $smarty->pagedata["request"]["action"]["method"] )."&app=shopex(".$system->_app_version.")&uid=\"+(encodeURIComponent(Cookie.get(\"S[MEMBER]\") || \"\").split(\"-\")[0])+\"&ref=\"+encodeURIComponent(document.referrer)+\"&sz=\"+JSON.encode(window.getSize())+\"&hs=\"+encodeURIComponent(location.hash.slice(1))+\"&rt=\"+\$time();\r\n                      \r\n                       if(data){\r\n                            try{\r\n                               data = JSON.decode(data);\r\n                            }catch(e){}\r\n                              if(\$type(data)==\"object\"){\r\n                                 _src +=\"&\"+Hash.toQueryString(da

    温馨提示:你正在使用ecshop系统建站吗?那来的 ecshop 频道看看吧,我们制作了很多模板供大家下载哦!


shopex去底部版权的办法 ecshop教程
http://www.yuedudg.cn/article/1181421.html

 

友情链接
wp之家 帝国cms常识 ecshop经验网
phpcms之家 zblog之家 discuz经验网
织梦之家 cms综合网


Tags: cms教程 ecshop教程


手机浏览本文

shopex去底部版权的办法  ecshop教程

shopex去底部版权的办法 ecshop教程

站内推荐

网站分类

标签列表

关于我们
文章内容来源互联网仅供参考,如果还有疑问请联系我们!我们将竭力帮您解决您的问题
联系我们:

QQ: 397423577 

email:397423577@qq.com

微信:ganenboy