(实现效果在首页设置里添加英文一列)
#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]}即可