可风大神又出了一款插件“在线问答”,有幸参与内侧,整理了一下主题模板的兼容,可以更好的显示该有的区域,今天又适配了插件的夜间模式,稍等放出最新版,更新之后记得强制刷新,清空缓存模板编译。好嘞,话不多说,点击插件管理,在线问答插件,模板设置,各个模板代码如下,宁静致远主题直接复制即可,其他主题暂无,可以参考可风给出的代码:
列表页:
<?php echo'<meta charset="UTF-8"><div style="text-align:center;padding:60px 0;font-size:16px;"><h2 style="font-size:60px;margin-bottom:32px;color:f00;">欢迎您的访问!</h2><h3>但是,这里并没有你想找的东西,喜欢这个的主题可以联系我们!</h3><h2 style="font-size:50px;margin-bottom:32px;color:f00;">QQ:229693666</h2></div>';die();?>{template:header}<div class="{$type}-wrap container clearfix"> <nav class="navcates place">当前位置:<i class="fa fa-home"></i><a href="{$host}">首页</a><i class="fa fa-angle-right"></i><a href="{$zbp->qa->GetUrl('list')}">{$zbp->qa->config->title_plugin_name}</a><i class="fa fa-angle-right"></i>{$article->Title}</nav> <main id="main" class="site-main article-main"> <div class="row"> <div class="main fl"> <article class="post single-post wenda-post"> {$article.Content} {if quietlee_is_mobile()}{if $zbp->Config('quietlee')->singleadoff=="1" && strlen ( $zbp->Config('quietlee')->singleadyd ) > 8}<div class="ads single-ad">{$zbp->Config('quietlee')->singleadyd}</div>{/if}{else}{if $zbp->Config('quietlee')->singleadoff=="1" && strlen ( $zbp->Config('quietlee')->singlead ) > 8}<div class="ads single-ad">{$zbp->Config('quietlee')->singlead}</div>{/if}{/if} </article> </div> <aside class="side fr"> {template:sidebar3} </aside> </div> </main></div>{template:footer}
内容页:
<?php echo'<meta charset="UTF-8"><div style="text-align:center;padding:60px 0;font-size:16px;"><h2 style="font-size:60px;margin-bottom:32px;color:f00;">欢迎您的访问!</h2><h3>但是,这里并没有你想找的东西,喜欢这个的主题可以联系我们!</h3><h2 style="font-size:50px;margin-bottom:32px;color:f00;">QQ:229693666</h2></div>';die();?>{template:header}<div class="{$type}-wrap container clearfix"> <nav class="navcates place">当前位置:<i class="fa fa-home"></i><a href="{$host}">首页</a><i class="fa fa-angle-right"></i><a href="{$zbp->qa->GetUrl('list')}">{$zbp->qa->config->title_plugin_name}</a><i class="fa fa-angle-right"></i><a href="{$article->CategoryUrl}">{$article->Category->Name}</a><i class="fa fa-angle-right"></i>{$article->Title}</nav> <main id="main" class="site-main article-main"> <div class="row"> <div class="main fl"> <article class="post single-post wenda-post"> {$article.Content} {if quietlee_is_mobile()}{if $zbp->Config('quietlee')->singleadoff=="1" && strlen ( $zbp->Config('quietlee')->singleadyd ) > 8}<div class="ads single-ad">{$zbp->Config('quietlee')->singleadyd}</div>{/if}{else}{if $zbp->Config('quietlee')->singleadoff=="1" && strlen ( $zbp->Config('quietlee')->singlead ) > 8}<div class="ads single-ad">{$zbp->Config('quietlee')->singlead}</div>{/if}{/if} </article> </div> <aside class="side fr"> {template:sidebar3} </aside> </div> </main></div>{template:footer}
发布页:
<?php echo'<meta charset="UTF-8"><div style="text-align:center;padding:60px 0;font-size:16px;"><h2 style="font-size:60px;margin-bottom:32px;color:f00;">欢迎您的访问!</h2><h3>但是,这里并没有你想找的东西,喜欢这个的主题可以联系我们!</h3><h2 style="font-size:50px;margin-bottom:32px;color:f00;">QQ:229693666</h2></div>';die();?>{template:header}<div class="{$type}-wrap container clearfix"> <nav class="navcates place">当前位置:<i class="fa fa-home"></i><a href="{$host}">首页</a><i class="fa fa-angle-right"></i><a href="{$zbp->qa->GetUrl('list')}">{$zbp->qa->config->title_plugin_name}</a><i class="fa fa-angle-right"></i>{$article.Title}</nav> <main id="main" class="site-main article-main"> <div class="row"> <div class="main fl"> <header class="entry-header page-header"> <h6 class="place clearfix"><span class="nat_tit">{$title}</span></h6> </header> <article class="post single-post wenda-post"> {$article.Content} {if quietlee_is_mobile()}{if $zbp->Config('quietlee')->singleadoff=="1" && strlen ( $zbp->Config('quietlee')->singleadyd ) > 8}<div class="ads single-ad">{$zbp->Config('quietlee')->singleadyd}</div>{/if}{else}{if $zbp->Config('quietlee')->singleadoff=="1" && strlen ( $zbp->Config('quietlee')->singlead ) > 8}<div class="ads single-ad">{$zbp->Config('quietlee')->singlead}</div>{/if}{/if} </article> </div> <aside class="side fr"> {template:sidebar3} </aside> </div> </main></div>{template:footer}
用户页:
<?php echo'<meta charset="UTF-8"><div style="text-align:center;padding:60px 0;font-size:16px;"><h2 style="font-size:60px;margin-bottom:32px;color:f00;">欢迎您的访问!</h2><h3>但是,这里并没有你想找的东西,喜欢这个的主题可以联系我们!</h3><h2 style="font-size:50px;margin-bottom:32px;color:f00;">QQ:229693666</h2></div>';die();?>{template:header}<div class="{$type}-wrap container clearfix"> <nav class="navcates place">当前位置:<i class="fa fa-home"></i><a href="{$host}">首页</a><i class="fa fa-angle-right"></i><a href="{$zbp->qa->GetUrl('list')}">{$zbp->qa->config->title_plugin_name}</a><i class="fa fa-angle-right"></i>{$article.Title}</nav> <main id="main" class="site-main article-main"> <div class="row"> <div class="main fl"> <article class="post single-post wenda-post"> {$article.Content} {if quietlee_is_mobile()}{if $zbp->Config('quietlee')->singleadoff=="1" && strlen ( $zbp->Config('quietlee')->singleadyd ) > 8}<div class="ads single-ad">{$zbp->Config('quietlee')->singleadyd}</div>{/if}{else}{if $zbp->Config('quietlee')->singleadoff=="1" && strlen ( $zbp->Config('quietlee')->singlead ) > 8}<div class="ads single-ad">{$zbp->Config('quietlee')->singlead}</div>{/if}{/if} </article> </div> <aside class="side fr"> {template:sidebar3} </aside> </div> </main></div>{template:footer}
代码集成原模板的广告及最新的面包屑导航,也在模板添加了独立的标签,这样在实现无缝切换的视觉上更加完美和统一,具体效果请查看本站在线问答页面。后续其他主题如有兼容代码将在此文章继续更新;
本文链接:http://78moban.cn/post/5072.html
版权声明:站内所有文章皆来自网络转载,只供模板演示使用,并无任何其它意义!