Update of /cvsroot/php-blog/serendipity/templates/default
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10225/templates/default
Modified Files:
Tag: branch-smarty
entries.tpl
Added Files:
Tag: branch-smarty
entries_summary.tpl
Log Message:
- Move the entry summary to its own template
- Simplify logic when selecting between short or normal entry display mode. They are essentially the same, they just use a different template.
Index: entries.tpl
===================================================================
RCS file: /cvsroot/php-blog/serendipity/templates/default/Attic/entries.tpl,v
retrieving revision 1.1.2.7
retrieving revision 1.1.2.8
diff -u -d -r1.1.2.7 -r1.1.2.8
--- entries.tpl 19 Sep 2004 20:06:36 -0000 1.1.2.7
+++ entries.tpl 19 Sep 2004 21:30:44 -0000 1.1.2.8
@@ -1,20 +1,4 @@
<!-- ENTRIES START -->
-
-{if $is_short_mode}
-
- <div class='serendipity_date'>{$CONST.TOPICS_OF} {$short_timestamp|formatTime:DATE_FORMAT_ENTRY}</div>
-
- <div class="serendipity_entry">
- {section name=date loop=$bydate}
- {section name=x loop=$bydate[date]}
- <a href="{$byedate[date][x].entryLink}">{$bydate[date][x].title}</a>
- <br />
- {/section}
- {/section}
- </div>
-
-{else}
-
{section name=date loop=$bydate}
<div class="serendipity_Entry_Date">
<h3 class="serendipity_date">{$dateref[date]|formatTime:DATE_FORMAT_ENTRY}</h3>
@@ -178,7 +162,4 @@
{serendipity_hookPlugin hook="entries_footer"}
</div>
-
-{/if}
-
<!-- ENTRIES END -->
--- NEW FILE: entries_summary.tpl ---
<div class='serendipity_date'>{$CONST.TOPICS_OF} {$bydate[0][0].timestamp|formatTime:"%B, %Y"}</div>
<div class="serendipity_entry">
{section name=date loop=$bydate}
{section name=x loop=$bydate[date]}
<a href="{$bydate[date][x].entryLink}">{$bydate[date][x].title}</a>
<br />
{/section}
{/section}
</div>
|