这一章中我们来完善一下整个框架,前面的框架基本完成,下面是尾部文件footer.php。我们要修改index.php文件和single.php,再添加调用footer.php文件代码。
新建一个footer.php文件,
写入以下代码。
{* Template Name:公共底部 *} <div class="Blogfooter"> <div class="CopyRight-center"> Copyright © <a href="{$host}">{$name}</a> 版权所有<br/>{$copyright} 基于{$zblogphpabbrhtml}搭建<br/>主题名称:<a href="http://www.glbwl.com">zbgl 1.0</a> </div> </div> <div class="top"></div> </div> </body></html>
这是尾部文件footer.php文件使用的CSS样式。
.Blogfooter {text-align:center;margin-right:320px;margin-left:210px;display:block;padding-bottom:20px;} .top {height:40px;width:40px;border:1px solid #ddd;position:fixed;right:20px;bottom:40px;background-image:url(images/top.png);background-repeat:no-repeat;cursor:pointer;border-radius:5px;}
——删除index.php文件中的{</div></body></html>},然后写入以下调用代码。
{template:footer}
——同理删除single.php文件中的{</div></body></html>},写入以下调用代码。
{template:footer}
转载请说明出处
孤狼备忘录 » Z-Blog PHP主题模板制作十二:尾部文件footer.php
孤狼备忘录 » Z-Blog PHP主题模板制作十二:尾部文件footer.php
远程处理各种问题(20元)。
精调效果SAM、Studio One、Cubase(150元),Pro Tools(250元)。
联系孤狼QQ:642062966
支付方式,点击:扫码支付
远程工具:向日葵 这是官方网址,请放心下载。