1.在\layout\layout.php中添加新模块 bottom_new
<div id="bottom_new">
<?php if (Content::countModules('bottom_new') > 0 || Toolkit::editMode()) Content::loadModules('bottom_new'); ?>
</div>
2.在template_info.php中添加模块声明 bottom_new
public static $positions = array(
'logo', 'nav', 'cart', 'banner', 'i_left', 'i_right', 'center', 'left','bottom_new', 'right', 'footer');
}
本文介绍了如何在网站布局中添加新的模块'bottom_new'。具体步骤包括:1. 在'layout.php'文件中创建一个名为'bottom_new'的div,并使用PHP条件语句加载该模块的内容;2. 在'template_info.php'文件中更新模块位置数组,添加'bottom_new'作为新模块的位置标识。
6995

被折叠的 条评论
为什么被折叠?



