Update of /cvsroot/php-blog/serendipity/templates/default
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2427/templates/default
Modified Files:
Tag: branch-smarty
content.tpl
Added Files:
Tag: branch-smarty
entries_archives.tpl
Log Message:
- Convert the archive to Smarty, which includes partial rewrite
- Change graphic for graph to something that goes with the theme
--- NEW FILE: entries_archives.tpl ---
{foreach from=$archives item="archive"}
<table cellspacing="4" cellpadding="4" border="0">
<tr>
<td colspan="4"><h2>{$archive.year}</h2></td>
</tr>
{foreach from=$archive.months item="month"}
<tr>
<td width="100"><img src="{serendipity_getFile file="img/graph_bar_horisontal.png"}" height="10" width="{math width=100 equation="count * width / max" count=$month.entry_count max=$max_entries format="%d"}" style="border: 1px solid #000000"></td>
<td>{$month.date|@formatTime:"%B"}</td>
<td>{$month.entry_count} {$CONST.ENTRIES}</td>
<td>({if $month.entry_count}<a href="{$month.link}">{/if}{$CONST.VIEW_FULL}{if $month.entry_count}</a>{/if})</td>
<td>({if $month.entry_count}<a href="{$month.link_summary}">{/if}{$CONST.VIEW_TOPICS}{if $month.entry_count}</a>{/if})</td>
</tr>
{/foreach}
</table>
{/foreach}
Index: content.tpl
===================================================================
RCS file: /cvsroot/php-blog/serendipity/templates/default/Attic/content.tpl,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -d -r1.1.2.1 -r1.1.2.2
--- content.tpl 9 Sep 2004 15:00:45 -0000 1.1.2.1
+++ content.tpl 1 Oct 2004 18:32:42 -0000 1.1.2.2
@@ -2,5 +2,6 @@
{$content_message}
{$ENTRIES}
+{$ARCHIVES}
-<!-- CONTENT END -->
\ No newline at end of file
+<!-- CONTENT END -->
|