{foreach from=$globalArticleCategories item=globalArticleCategory}
{math assign=fontSize equation="(int)((x-y)/step)+12" x=$globalArticleCategory->getNumActiveArticles() y=$min step=$step}
<span class="tag">
{if $globalArticleCategory->getId() != $globalArticleCategoryId}
<a style="font-size: {$fontSize}px" href="?op=Summary&globalArticleCategoryId={$globalArticleCategory->getId()}">{$globalArticleCategory->getName()}</a>
{else}
<span style="font-size: {$fontSize}px">{$globalArticleCategory->getName()}</span>
{/if}
</span>
{/foreach}
是會根據每個全域分類被使用的次數,來改變summary畫面上呈現的字體嗎?
真有趣的功能!