HTML格式的网页模板怎么使用

HTML格式的网页模板怎么使用,第1张

images 放图片的

index.html 主页

style 修改样式

layout 网页布局框架

点 主页 就好了

给分吧,嘿嘿

先来看看默认专题子分类设置界面: 修改后的的专题子分类设置界面多了模板设置: 修改方法 第一步:修改 phpcms\modules\special index.php 找到$list_template?$list_template:'list'替换成$template=$info['template']?$info['template']:($list_template?$list_template:'list')第二步 修改 phpcms\modules\special special.php 找到`typedir` 替换成`typedir`, `template` 第三步 修改 phpcms\modules\special\templates special_add.tpl.php 找到</span><span id="typeTip">替换成<?phpecho form::select_template('default','special','list','name="type[1][template]"','list')?></span><span id="typeTip">找到var n = $('#option_list').find('input[name]').length/3+1替换成var n = $('#option_list').find('input[name]').length/3+1var template ='<?php echo str_replace("'", "\'", form::select_template('default', 'special', 'list', 'name="type[|id|][template]"', 'list'))?>'找到</span><a href="javascript:" 替换成'+template.replace('|id|', n)+'</span><a href="javascript:" 第三步 修改 phpcms\modules\special\templates special_edit.tpl.php 找到</span><?phpif($k!=1) 修改成<?phpecho form::select_template('default','special',$t['template'],'name="type['.$k.'][template]"','list')?></span><?phpif($k!=1) 找到var n = $('#option_list').find('input[type="text"]').length/3+1替换成var n = $('#option_list').find('input[type="text"]').length/3+1var template ='<?php echo str_replace("'", "\'", form::select_template('default', 'special', 'list', 'name="type[|id|][template]"', 'list'))?>'找到</span><a href="javascript:" 替换成'+template.replace('|id|', n)+'</span><a href="javascript:" 修改完了 可以去添加模版了 比如 list_hehe.html 然后专题页面就可以自动搜索到了。


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/6290849.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-03-20
下一篇 2023-03-20

发表评论

登录后才能评论

评论列表(0条)

保存