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

@ -2,9 +2,10 @@
<div class="serendipity_Entry_Date">
<h3 class="serendipity_date">{$CONST.ARCHIVES}</h3>
{foreach from=$archives item="archive"}
<div class="serendipity_entry archives_all_entry">
<h4 class="archives_header">{$archive.year}</h4>
{foreach from=$archive.months item="month"}
<ul class="archives_row">
<ul class="archives_row {cycle values='archives_row_odd,archives_row_even'}">
{if $template_option.colorset == 'blank'}
<li class="archives_graph"><img src="{serendipity_getFile file="img/graph_bar_horisontal.png"}" alt="bar graph" height="10" width="{math width=100 equation="count * width / max" count=$month.entry_count max=$max_entries format="%d"}" style="border: 1px solid #000000" /></li>
{else}
@ -16,8 +17,9 @@
<li class="archives_link">({if $month.entry_count}<a href="{$month.link_summary}">{/if}{$CONST.VIEW_TOPICS}{if $month.entry_count}</a>{/if})</li>
</ul>
{/foreach}
</div>
{/foreach}
</div>
<div class="serendipity_pageFooter" style="text-align: center">
{serendipity_hookPlugin hook="entries_footer"}
{serendipity_hookPlugin hook="entries_footer"}
</div>

View File

@ -1,11 +1,23 @@
{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">
<div class="serendipity_entry archive_summary_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>
<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>

View File

@ -1,4 +1,4 @@
Name: Bulletproof v1.2 beta (s9y-bulletproof.com)
Author: Bulletproof development team
Date: 2007-11-15
Date: 2007-11-18
Require Serendipity: 1.2

View File

@ -122,7 +122,7 @@ abbr, acronym, .help{
/*** Entry styles ***/
.serendipity_Entry_Date {
padding: 0.5em 1em;
margin: 0.5em 1em;
}
.serendipity_entry {
@ -164,6 +164,7 @@ ul.archives_row li {
font-size: 80%;
}
.archive_summary_postdetails ,
.archive_summary_title {
margin: 0;
}
@ -172,6 +173,7 @@ ul.archives_row li {
margin-bottom: 10px;
}
/*** s9y image manager ***/
.serendipity_imageComment_center,
.serendipity_imageComment_left,