|
|
下面这个是面包屑
- <div id="pt" class="bm cl">
- <div class="z">
- <a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>›</em>
- <a href="$_G[setting][navs][1][filename]">{lang nav_index}</a> <em>›</em>
- <!--{loop $cat[ups] $value}-->
- <a href="{echo getportalcategoryurl($value[catid])}">$value[catname]</a><em>›</em>
- <!--{/loop}-->
- <a href="{echo getportalcategoryurl($cat[catid])}">$cat[catname]</a> <em>›</em>
- {lang view_content}
- </div>
- </div>
复制代码
<div class="bm vw">....</div>显示的是文章主体的部分
$article[title] 文章标题
$article[dateline]文章发布时间
{lang view_publisher} (语言包)发布者
$article[username] 发布者
{lang view_views} (语言包)查看
{lang view_author_original} (语言包)原作者
$article[author] 原作者
$article[viewnum] 查看次数 也就是点击量
$article[commentnum] 评论总次数
$article[from] 文章来源
- <div class="h hm">
- <h1 class="ph">$article[title] <!--{if $article['status'] == 1}-->({lang moderate_need})<!--{elseif $article['status'] == 2}-->({lang ignored})<!--{/if}--></h1>
- <p class="xg1">
- $article[dateline]<span class="pipe">|</span>
- {lang view_publisher}: <a href="home.php?mod=space&uid=$article[uid]">$article[username]</a><span class="pipe">|</span>
- {lang view_views}: <em id="_viewnum"><!--{if $article[viewnum] > 0}-->$article[viewnum]<!--{else}-->0<!--{/if}--></em><span class="pipe">|</span>
- {lang view_comments}: <!--{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']}-->
- <span class="pipe">|</span><a href="portal.php?mod=portalcp&ac=article&op=edit&aid=$article[aid]">{lang edit}</a>
- <!--{if $article[status]>0 && ($_G['group']['allowmanagearticle'] || $categoryperm[$value['catid']]['allowmanage'])}-->
- <span class="pipe">|</span><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);">{lang moderate}</a>
- <!--{else}-->
- <span class="pipe">|</span><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);">{lang delete}</a>
- <!--{/if}-->
- <!--{/if}-->
- <!--{hook/view_article_subtitle}-->
- </p>
- </div>
复制代码
下面这一块可以理解为如果有管理权限的话,会显示 编辑、审核、删除、按钮
- <!--{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']}-->
- <span class="pipe">|</span><a href="portal.php?mod=portalcp&ac=article&op=edit&aid=$article[aid]">{lang edit}</a>
- <!--{if $article[status]>0 && ($_G['group']['allowmanagearticle'] || $categoryperm[$value['catid']]['allowmanage'])}-->
- <span class="pipe">|</span><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);">{lang moderate}</a>
- <!--{else}-->
- <span class="pipe">|</span><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);">{lang delete}</a>
- <!--{/if}-->
- <!--{/if}-->
复制代码
内容页显示摘要的地方
$article[summary] 内容页的摘要
{lang article_description} (语言包)摘要
- <!--{if $article[summary] && empty($cat[notshowarticlesummay])}--><div class="s"><div><strong>{lang article_description}</strong>: $article[summary]</div><!--{hook/view_article_summary}--></div><!--{/if}-->
复制代码
$content[title] 内容页的标题
$content[content] 内容页内容
如果有分页就显示分页按钮
- <!--{if $multi}--><div class="ptw pbw cl">$multi</div><!--{/if}-->
复制代码
显示上一篇下一篇的地方
- <!--{if $article['preaid'] || $article['nextaid']}-->
- <div class="pren pbm cl">
- <!--{if $article['prearticle']}--><em>{lang pre_article}<a href="{$article['prearticle']['url']}">{$article['prearticle']['title']}</a></em><!--{/if}-->
- <!--{if $article['nextarticle']}--><em>{lang next_article}<a href="{$article['nextarticle']['url']}">{$article['nextarticle']['title']}</a></em><!--{/if}-->
- </div>
- <!--{/if}-->
复制代码
{lang favorite}收藏
{lang share}分享
{lang invite}邀请
{lang article_related}添加相关文章
{lang moderate}审核
{lang edit}编辑
{lang delete}删除
{lang blockdata_recommend}模块推送
如果在设置里把相关文章打开了,下面代码会有用
- <div id="related_article" class="bm">
- <div class="bm_h cl">
- <h3>{lang view_related}</h3>
- </div>
- <div class="bm_c">
- <ul class="xl xl2 cl" id="raid_div">
- <!--{loop $article['related'] $raid $rvalue}-->
- <input type="hidden" value="$raid" />
- <li>• <a href="{$rvalue[uri]}">{$rvalue[title]}</a></li>
- <!--{/loop}-->
- </ul>
- </div>
- </div>
复制代码
如果在后台设置把允许评论打开会显示下面代码会有用
- <!--{if $article['allowcomment']==1}-->
- <!--{eval $data = &$article}-->
- <!--{subtemplate portal/portal_comment}-->
- <!--{/if}-->
复制代码
展示相关分类
- <!--{if $cat[others]}-->
- <div class="bm">
- <div class="bm_h cl">
- <h2>{lang category_related}</h2>
- </div>
- <div class="bm_c">
- <ul class="xl xl2 cl">
- <!--{loop $cat[others] $value}-->
- <li><a href="{echo getportalcategoryurl($value[catid])}">$value[catname]</a></li>
- <!--{/loop}-->
- </ul>
- </div>
- </div>
- <!--{/if}-->
复制代码 展示下级分类
- <!--{if $cat[subs]}-->
- <div class="bm">
- <div class="bm_h cl">
- <h2>{lang sub_category}</h2>
- </div>
- <div class="bm_c">
- <ul class="xl xl2 cl">
- <!--{loop $cat[subs] $value}-->
- <li><a href="{echo getportalcategoryurl($value[catid])}">$value[catname]</a></li>
- <!--{/loop}-->
- </ul>
- </div>
- </div>
- <!--{/if}-->
复制代码
下面这是关联连接,我也不知道干啥用
- <!--{if $_G['relatedlinks']}-->
- <script type="text/javascript">
- var relatedlink = [];
- <!--{loop $_G['relatedlinks'] $key $link}-->
- relatedlink[$key] = {'sname':'$link[name]', 'surl':'$link[url]'};
- <!--{/loop}-->
- relatedlinks('article_content');
- </script>
- <!--{/if}-->
复制代码
- <script type="text/javascript" src="{$_G[setting][jspath]}home.js?{VERHASH}"></script>
- <div id="click_div">
- <!--{template home/space_click}-->
- </div>
复制代码
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
×
|