zoukankan      html  css  js  c++  java
  • ECSHOP其他页面调用首页的FLASH主广告

    首先修改 /category.php 文件



    找到


    $smarty->assign('script_name', 'category');


    在它下面增加代码


    $smarty->assign('flash_theme',     $_CFG['flash_theme']);  // Flash轮播图片模板


     /* 首页主广告设置 */


        $smarty->assign('index_ad',     $_CFG['index_ad']);


        if ($_CFG['index_ad'] == 'cus')


        {


            $sql = 'SELECT ad_type, content, url FROM ' . $ecs->table("ad_custom") . ' WHERE ad_status = 1';


            $ad = $db->getRow($sql, true);


            $smarty->assign('ad', $ad);


        }



    然后 再修改 模板文件 /themes/default/category.dwt  (这里以官方默认模板为例)



    在你想显示 FLASH主广告的地方加入下面代码


    <!-- #BeginLibraryItem "/library/index_ad.lbi" --><!-- #EndLibraryItem -->

  • 相关阅读:
    CPU
    CentOS7 Tomcat 环境部署
    CentOS7 NTP 安装配置
    CISCO VLAN ACL
    ESXI6.0启用 snmp
    编译安装 varnish-4.1.2和yum 安装 varnish-4.0.3
    CentOS7 安装中文帮助手册
    CentOS7 学习笔记
    CentOS7 编译安装 nginx-1.10.0
    CentOS7 cacti 安装
  • 原文地址:https://www.cnblogs.com/wangblognet/p/2809961.html
Copyright © 2011-2022 走看看