关于destoon8.0店铺首页添加板块

  2021-02-25    阅读:1082
 


(实现效果在首页设置里添加英文一列)

#01 \destoon\template\default\member\home.htm

  •  

{template 'header', 'member'}

class

="menu"><table cellpadding="0" cellspacing="0"><tr><td class="tab" id="Tab0"><a href="javascript:Tab(0);"><span>常用设置</span></a></td><td class="tab" id="Tab1"><a href="javascript:Tab(1);"><span>导航菜单</span></a></td><td class="tab" id="Tab2"><a href="javascript:Tab(2);"><span>侧边栏</span></a></td><td class="tab" id="Tab3"><a href="javascript:Tab(3);"><span>首页设置</span></a></td><td class="tab" id="Tab4"><a href="javascript:Tab(4);"><span>其他设置</span></a></td><td class="tab" id="Tab4"><a href="javascript:Tab(4);"><span>英文</span></a></td>//添加</tr></table>//大概153行{loop $HMENU $k $v}{if strpos($menu_f, ','.$menu_file[$k].',') !== false}"center">//新添{else}//新添{/if}

#02 \destoon\module\company\homepage.inc.php

  •  

//大概23行$main_show = explode(',', isset($HOME['main_show']) ? $HOME['main_show'] : $_main_show);$main_order = explode(',', isset($HOME['main_order']) ? $HOME['main_order'] : $_main_order);$main_num = explode(',', isset($HOME['main_num']) ? $HOME['main_num'] : $_main_num);$main_file = explode(',', isset($HOME['main_file']) ? $HOME['main_file'] : $_main_file);$main_name = explode(',', isset($HOME['main_name']) ? $HOME['main_name'] : $_main_name);$main_title = explode(',', isset($HOME['main_title']) ? $HOME['main_title'] : $_main_title);//新添

#03 \destoon\module\member\home.inc.php

  •  

//大概12行isset($item) or $item = '';if(in_array($item, array('menu', 'side', 'main'))) {  foreach(array('show', 'order', 'num', 'file', 'name','title') as $v) {//新添      //大概40行$main_show = explode(',', isset($HOME['main_show']) ? $HOME['main_show'] : $_main_show);$main_order = explode(',', isset($HOME['main_order']) ? $HOME['main_order'] : $_main_order);$main_num = explode(',', isset($HOME['main_num']) ? $HOME['main_num'] : $_main_num);$main_file = explode(',', isset($HOME['main_file']) ? $HOME['main_file'] : $_main_file);$main_name = explode(',', isset($HOME['main_name']) ? $HOME['main_name'] : $_main_name);$main_title = explode(',', isset($HOME['main_title']) ? $HOME['main_title'] : $_main_title);//新添

#04 现在就算是设置好了,在页面使用时填写{$main_title[$HM]}即可

免责声明:
本站部份内容系网友自发上传与转载,不代表本网赞同其观点;
如涉及内容、版权等问题,请在30日内联系,我们将在第一时间删除内容!

相关Destoon技术

(c)2012-2023 www.qiyeyunshang.com All Rights Reserved.
慧一科技destoon模板   辽ICP备2021002520号-1
  QQ咨询

购买模板 售前咨询

  咨询QQ

3292628658
(早8:30-晚10:00)

  微信咨询

咨询微信
客服微信

  返回顶部