ƣ ö
汾 1.1 ( ֧LifeType 1.1.x)
᣺ http://sourceforge.net/projects/lifetype/ or http://www.pactofshadow.com/lifetype/2/articleperma/40.html
ʽȨ GPL
ߣ lss(1.0) / EagleKing(porting to 1.1)

;

ṩ־öΪվ档

趨

̨ݣ

   1. 뽨·Ź漰ö¡
   2.  ־趨 >> ö趨 и趨
   3. ԤöĿĿ 5 ƪ£޸ĳҪʾĿ
   4. ѡѡö¼µķࡣ 

浵ʹã

   1. $stickyposts->isEnabled()  plugin ǷѾá
   2. $stickyposts->getArticles( 'sticky' ) öµ article Уഫ趨öĿ
   3. $stickyposts->getArticles( 'announce' ) عµ article Уഫ趨ĹĿ
   4. $stickyposts->getArticles( 12 ) ָ· ID  article Се 12 Ϊ· ID
   5. $stickyposts->getCategory( 'sticky' ) öµ category ɸö³ᡣ
   6. $stickyposts->getCategory( 'announce' ) ڹµ category ɸ๫³ᡣ
   7. $stickyposts->getCategory( 12 ) ָ· ID  category  

 'sticky'  'announce'  plugin ı֡

浵

Ĭϵ 'standrad' Ϊ޸ġ

{if $category}<h2>{$locale->tr("category")}: {$category->getName()}</h2>{/if} 


{if empty($showAll) && $stickyposts->isEnabled()}
  <h2>Sticky Posts</h2>
  {assign var=stickys value=$stickyposts->getArticles('sticky')}
  {foreach from=$stickys item=post}
  <h3><a href="{$url->postPermalink($post)}">{$post->getTopic()}</a></h3>
  {/foreach}  
  {assign var=stickyCategory value=$stickyposts->getCategory('sticky')}
  <h4><a href="{$url->categoryLink($stickyCategory)}">More Sticky...</a></h4>
  
  <h2>Announce Posts</h2>
  {assign var=stickys value=$stickyposts->getArticles('announce')}
  {foreach from=$stickys item=post}
  <h3><a href="{$url->postPermalink($post)}">{$post->getTopic()}</a></h3>
  {/foreach}
  {assign var=announceCategory value=$stickyposts->getCategory('announce')}
  <h4><a href="{$url->categoryLink($announceCategory)}">More Announce...</a></h4>
{/if} 