]> git.mjollnir.org Git - s9y.git/commitdiff
archive template added
authoromidmottaghi <omidmottaghi>
Sat, 24 Dec 2005 12:41:17 +0000 (12:41 +0000)
committeromidmottaghi <omidmottaghi>
Sat, 24 Dec 2005 12:41:17 +0000 (12:41 +0000)
templates/default-rtl/entries_archives.tpl [new file with mode: 0644]
templates/default-rtl/entries_summary.tpl [new file with mode: 0644]
templates/default-rtl/info.txt

diff --git a/templates/default-rtl/entries_archives.tpl b/templates/default-rtl/entries_archives.tpl
new file mode 100644 (file)
index 0000000..93c0d1c
--- /dev/null
@@ -0,0 +1,19 @@
+{serendipity_hookPlugin hook="entries_header"}
+{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.entry_count} {$CONST.ENTRY}</td>
+        <td>{$month.date|@formatTime:"%B"}</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}
+<div class='serendipity_entryFooter' style="text-align: center">
+{serendipity_hookPlugin hook="entries_footer"}</div>
diff --git a/templates/default-rtl/entries_summary.tpl b/templates/default-rtl/entries_summary.tpl
new file mode 100644 (file)
index 0000000..3074c4b
--- /dev/null
@@ -0,0 +1,15 @@
+{serendipity_hookPlugin hook="entries_header"}
+<div class='serendipity_date'>{$CONST.TOPICS_OF} {$dateRange.0|@formatTime:"%B¡ %Y"}</div>
+
+<div class="serendipity_entry">
+    <ul>
+    {foreach from=$entries item="entries"}
+        {foreach from=$entries.entries item="entry"}
+            <li><a href="{$entry.link}">{$entry.title}</a>
+                <br />{$CONST.POSTED_BY} {$entry.author} {$CONST.ON} {$entry.timestamp|@formatTime:DATE_FORMAT_ENTRY}</li>
+        {/foreach}
+    {/foreach}
+    </ul>
+</div>
+<div class='serendipity_entryFooter' style="text-align: center">
+{serendipity_hookPlugin hook="entries_footer"}</div>
index df2e3cb9cff5c91e37f97b63fa4cd48868894fe0..057dc41142c466c8465311d9b702762fbaefad5b 100644 (file)
@@ -1,4 +1,4 @@
-Name: RTL-Languages v0.1
+Name: RTL-Languages v0.3
 Author: Tom Sommer, Omid Mottaghi
 Date: 28/2/2005
 Require Serendipity: 0.8