原模板的 原作者 评论 阅读 信息位置 是在文章的底部,这样闲的很不友好~
修改前的头部信息
“原作者”“阅读”“评论”信息显示位置在底部~
-----------------------------------------------------------------------------------
修改后效果,将底部“原作者”“阅读”“评论”信息显示位置 合并到头部~
方法:
- 网站域名/你的主题模板/portal/view_essay.htm (或者 view.htm)
复制代码 搜索 xm-pph
替换成我修改好的样式代码
- <p class="xm-pph">
- <a class="tag tag-lg b-radius4" href="{echo getportalcategoryurl($cat[catid])}" style="font-size:14px;height:28px;line-height: 28px;color: #017e66;">$cat[catname]</a>
- <span class="xs-14 des-info">发布于 $article[dateline]</span>
-
- 阅读 <em id="_viewnum"><!--{if $article[viewnum] > 0}-->$article[viewnum]<!--{else}-->0<!--{/if}--></em><span class="pipe">·</span>
- 评论 <!--{if $article[commentnum] > 0}--><a href="$common_url" title="{lang view_all_comments}"><em id="_commentnum">$article[commentnum]</em></a><!--{else}-->0<!--{/if}-->
- <!--{if $article[author]}--><span class="pipe">·</span>{lang view_author_original}: $article[author]<!--{/if}-->
- <!--{if $article[from]}--><span class="pipe">·</span>{lang from}: <!--{if $article[fromurl]}--><a href="$article[fromurl]" target="_blank">$article[from]</a><!--{else}-->$article[from]<!--{/if}--><!--{/if}-->
-
- <!--{if $_G['group']['allowmanagearticle'] || ($_G['group']['allowpostarticle'] && $article['uid'] == $_G['uid'] && (empty($_G['group']['allowpostarticlemod']) || $_G['group']['allowpostarticlemod'] && $article['status'] == 1)) || $categoryperm[$value['catid']]['allowmanage']}-->
- <a href="portal.php?mod=portalcp&ac=article&op=edit&aid=$article[aid]" class="des-info">{lang edit}</a>
- <!--{if $article[status]>0 && ($_G['group']['allowmanagearticle'] || $categoryperm[$value['catid']]['allowmanage'])}-->
- <a href="portal.php?mod=portalcp&ac=article&op=verify&aid=$article[aid]" id="article_verify_$article[aid]" onclick="showWindow(this.id, this.href, 'get', 0);" class="des-info">{lang moderate}</a>
- <!--{else}-->
- <a href="portal.php?mod=portalcp&ac=article&op=delete&aid=$article[aid]" id="article_delete_$article[aid]" onclick="showWindow(this.id, this.href, 'get', 0);" class="des-info">{lang delete}</a>
- <!--{/if}-->
- <!--{/if}-->
- <!--{hook/view_article_subtitle}-->
- </p>
- </div>
复制代码 然后 搜索 secondary
去除 显示在源文件的底部的这部分 整段DIV代码:
- <div class="text-secondary">
- 阅读 <em id="_viewnum"><!--{if $article[viewnum] > 0}-->$article[viewnum]<!--{else}-->0<!--{/if}--></em><span class="pipe">·</span>
- 评论 <!--{if $article[commentnum] > 0}--><a href="$common_url" title="{lang view_all_comments}"><em id="_commentnum">$article[commentnum]</em></a><!--{else}-->0<!--{/if}-->
- <!--{if $article[author]}--><span class="pipe">·</span>{lang view_author_original}: $article[author]<!--{/if}-->
- <!--{if $article[from]}--><span class="pipe">·</span>{lang from}: <!--{if $article[fromurl]}--><a href="$article[fromurl]" target="_blank">$article[from]</a><!--{else}-->$article[from]<!--{/if}--><!--{/if}-->
- </div>
复制代码 原理就是:把去除的代码,调整并添加到 头部显示的“发布于” 后面即可~
只需要获取 text-secondary DIV里面的内容代码,添加到 xm-pph
|