WordPress Super Archive Plugin and Extended Live Archives Plugin
7月 13th, 2005 1 Comment »
昨天晚上,把 WordPress 的 Super Archive Plugin 及 Extended Live Archives Plugin 給裝起來
由於我不是使用預設的 Theme,加上用的 Theme 剛好沒有 archives.php
所以得 hack 一下
除了修改 style.css 外(其實就是把那些 Plugins 附的 css 剪下貼上)
由於沒有 archives.php,所以我只好直接從 index.php 下手了
加上底下這段來判斷:
<?php if($_SERVER['QUERY_STRING'] == "sa") { ?>
<?php get_sidebar(); /* include sidebar.php template */ ?>
<div id="content" class="widecolumn">
<?php af_ela_super_archive('num_entries=1&num_comments=1&number_text=<span> %</span>
&comment_text=<span> %</span>&closed_comment_text=<span> -</span>&selected_text='.urlencode('')); ?>
<?php //teb_super_archive('num_entries=1&num_comments=1&number_text=<span> %</span>
&comment_text=<span> %</span>&closed_comment_text=<span> -</span>&selected_text='.urlencode('')); ?>
<div style="clear: both;"></div>
</div>
<?php } else { ?>
結果: 看這裡