建站之星 添加自定义模块步骤

来源:互联网 发布:电影海报ai软件素材 编辑:程序博客网 时间:2024/06/03 17:36

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');
}

原创粉丝点击