多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# 杭州创意模板系统(模板制作) ## 模板要求 必须包括的文件: |文件名|文件说明| | --- | --- | |default.jpg|后台预览用,模板的缩略截图| |default_index.html|模板首页(网站首页)| |aboutus_index.html|关于我们页面| |contactus_index.html|联系我们页面| |news_index.html|新闻页面| |news_cate.html|新闻分类| |news_details.html|新闻详情| |images_index.html|图片页面| |images_cate.html|图片分类| |images_details.html|图片详情| |products_index.html|产品首页| |products_cate.html|产品分类| |products_details.html|产品详情| ## 模板参数(整站有效) |参数名称|参数说明| | --- | --- | |{$template}|模板路径(系统会自动定位到模板根目录)| |{$index}|网站首页url| |{$news}|新闻首页url| |{$newscate}|新闻分类url| |{$newsdetails}|新闻详情url| |{$images}|图片首页url| |{$imagescate}|图片分类url| |{$imagesdetails}|图片详情url| |{$products}|产品首页url| |{$productscate}|产品分类url| |{$productsdetails}|产品详情url| |{$aboutus}|关于我们url| |{$contactus}|联系方式url| ## 客户内容标签(整站有效) |参数名称|参数说明| | --- | --- | |{$customer['tplogo']}|顶部logo图片地址| |{$customer['btlogo']}|底部logo图片地址| |{$customer['qrcode']}|二维码图片地址| |{$customer['title']}|网站标题/客户标题| |{$customer['url']}|网址| |{$customer['tel']}|电话| |{$customer['fax']}|传真| |{$customer['email']}|邮箱| |{$customer['qq']}|QQ| |{$customer['address']}|地址| |{$customer['coordinate']}|地图坐标| |{$customer['aboutus']}|关于我们| |{$customer['contactus']}|联系方式| ## 客户内容banner标签(首页default.html有效) {$customer['banner']} 具体使用请参数下面的banner展示方式 客户内容banner标签参数(该标签只在首页default.html有效,其它页面无效) |参数名称|参数说明| | --- | --- | |{$banner_name}|banner名称| |{$banner_name}|banner图片地址| ## 使用方法 ~~~ <!DOCTYPE html> <html lang="zh_cn"> <head> <!--使用了内容标签{$customer['title']}--> <title>网站首页 - {$customer['title']}</title> <!--使用了模板参数{$template}--> <script src="{$template}/styles/base.js"></script> </head> <body> <!--导航展示--> <!--使用了模板参数--> <ul class="nav navbar-nav"> <li class="<?php echo ('[active]'=='index'?'active':''); ?>"><a href="{$index}">网站首页</a></li> <li class="<?php echo ('[active]'=='aboutus'?'active':''); ?>"><a href="{$aboutus}">关于我们</a></li> <li class="<?php echo ('[active]'=='news'?'active':''); ?>"><a href="{$news}">新闻动态</a></li> <li class="<?php echo ('[active]'=='contactus'?'active':''); ?>"><a href="{$contactus}">联系方式</a></li> </ul> <!--banner标签展示 banner是一个数组,需要循环读出--> <div class="carousel-inner" role="listbox"> {volist name="customer['banner']" id="vo" key="k"} <div class="item {$k==1?'active':''}"> <img src="{$vo['banner_filepath']}" alt="{$vo['banner_name']}"> <div class="carousel-caption">{$vo['banner_name']}</div> </div> {/volist} </div> </body> </html> ~~~