1
0

BP: added classes and changed structure of entries_archives.tpl and entries_summary.tpl. Also changed serendipity_Entry_Date padding to margin.

This commit is contained in:
Don Chambers
2007-11-18 17:45:02 +00:00
parent 61948709f2
commit f99b1fe456
4 changed files with 45 additions and 29 deletions

View File

@@ -1,14 +1,26 @@
{serendipity_hookPlugin hook="entries_header"}
<div class="serendipity_Entry_Date">
<h3 class='serendipity_date'>{$CONST.TOPICS_OF} {$dateRange.0|@formatTime:"%B, %Y"}</h3>
<div class="serendipity_entry">
{foreach from=$entries item="entries"}
{foreach from=$entries.entries item="entry"}
<div class="archive_summary"><h4 class="archive_summary_title">{$entry.id} - <a href="{$entry.link}">{$entry.title|truncate:80:" ..."}</a></h4>
<span class="archive_summary_details">{$entry.timestamp|@formatTime:$template_option.date_format}. {$CONST.POSTED_BY} <a href="{$entry.link_author}">{$entry.author}</a> {if $entry.categories} {$CONST.IN} {foreach from=$entry.categories item="entry_category" name="categories"}<a href="{$entry_category.category_link}">{$entry_category.category_name|@escape}</a> {/foreach}{/if}</span></div>
{/foreach}
{/foreach}
</div>
<h3 class='serendipity_date'>{$CONST.TOPICS_OF} {$dateRange.0|@formatTime:"%B, %Y"}</h3>
<div class="serendipity_entry archive_summary_entry">
{foreach from=$entries item="entries"}
{foreach from=$entries.entries item="entry"}
<dl class="archive_summary {cycle values='archive_summary_odd,archive_summary_even'}">
<h4 class="archive_summary_title"><a href="{$entry.link}">{$entry.title|truncate:80:" ..."}</a></h4>
<dt class="archive_summary_postdate">{$entry.timestamp|@formatTime:$template_option.date_format}</dt>
<dd class="archive_summary_postdetails">
{if $template_option.footerauthor == 'true'}
{$CONST.POSTED_BY} <address class="author"><a href="{$entry.link_author}">{$entry.author}</a></address>
{/if}
{if $template_option.footercategories == 'true'}
{if $entry.categories}
{$CONST.IN} {foreach from=$entry.categories item="entry_category" name="categories"}<a href="{$entry_category.category_link}">{$entry_category.category_name|@escape}</a>{if not $smarty.foreach.categories.last}, {/if}{/foreach}
{/if}
{/if}
</dd>
</dl>
{/foreach}
{/foreach}
</div>
</div>
<div class='serendipity_pageFooter' style="text-align: center">