常用方法:
1、 $article['content'] 文章內(nèi)容數(shù)組
{foreach $article['content'] as $k => $v} {$k} {$v} {/foreach}
2、$article['tags'] 當(dāng)前文章對應(yīng)標(biāo)簽數(shù)組
{foreach $article['tags'] as $v} <a href="/portal/tags/{$v}/">{$_Y['tags'][$v]['title']}</a> {/foreach}
3、上一篇、下一篇 $article['prev']、$article['next']
{if $article['prev'] || $article['next']} <div class="fanye"> {if $article["prev"]} <p class="cl"><span>上一篇</span><a href="/portal/{$cat['dirnames']}/article-{$article['prev']['aid']}.html">{$article['prev']['title']}</a></p> {/if} {if $article["next"]} <p class="cl"><span>下一篇</span><a href="/portal/{$cat['dirnames']}/article-{$article['next']['aid']}.html">{$article["next"]['title']}</a></p> {/if} </div> {/if}
當(dāng)前頁面可用的 html快捷標(biāo)簽
{html val="button_edit" } //可選屬性 class