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,23 +1,25 @@
{serendipity_hookPlugin hook="entries_header"} {serendipity_hookPlugin hook="entries_header"}
<div class="serendipity_Entry_Date"> <div class="serendipity_Entry_Date">
<h3 class="serendipity_date">{$CONST.ARCHIVES}</h3> <h3 class="serendipity_date">{$CONST.ARCHIVES}</h3>
{foreach from=$archives item="archive"} {foreach from=$archives item="archive"}
<h4 class="archives_header">{$archive.year}</h4> <div class="serendipity_entry archives_all_entry">
{foreach from=$archive.months item="month"} <h4 class="archives_header">{$archive.year}</h4>
<ul class="archives_row"> {foreach from=$archive.months item="month"}
{if $template_option.colorset == 'blank'} <ul class="archives_row {cycle values='archives_row_odd,archives_row_even'}">
<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> {if $template_option.colorset == 'blank'}
{else} <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>
<li class="archives_graph"><img src="{$serendipityHTTPPath}templates/{$template}/img/{$template_option.colorset}_graph_bar.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}
{/if} <li class="archives_graph"><img src="{$serendipityHTTPPath}templates/{$template}/img/{$template_option.colorset}_graph_bar.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>
<li class="archives_date">{$month.date|@formatTime:"%B"}</li> {/if}
<li class="archives_count">{$month.entry_count} {$CONST.ENTRIES}</li> <li class="archives_date">{$month.date|@formatTime:"%B"}</li>
<li class="archives_count_link">({if $month.entry_count}<a href="{$month.link}">{/if}{$CONST.VIEW_FULL}{if $month.entry_count}</a>{/if})</li> <li class="archives_count">{$month.entry_count} {$CONST.ENTRIES}</li>
<li class="archives_link">({if $month.entry_count}<a href="{$month.link_summary}">{/if}{$CONST.VIEW_TOPICS}{if $month.entry_count}</a>{/if})</li> <li class="archives_count_link">({if $month.entry_count}<a href="{$month.link}">{/if}{$CONST.VIEW_FULL}{if $month.entry_count}</a>{/if})</li>
</ul> <li class="archives_link">({if $month.entry_count}<a href="{$month.link_summary}">{/if}{$CONST.VIEW_TOPICS}{if $month.entry_count}</a>{/if})</li>
{/foreach} </ul>
{/foreach} {/foreach}
</div>
{/foreach}
</div> </div>
<div class="serendipity_pageFooter" style="text-align: center"> <div class="serendipity_pageFooter" style="text-align: center">
{serendipity_hookPlugin hook="entries_footer"} {serendipity_hookPlugin hook="entries_footer"}
</div> </div>

View File

@ -1,14 +1,26 @@
{serendipity_hookPlugin hook="entries_header"} {serendipity_hookPlugin hook="entries_header"}
<div class="serendipity_Entry_Date"> <div class="serendipity_Entry_Date">
<h3 class='serendipity_date'>{$CONST.TOPICS_OF} {$dateRange.0|@formatTime:"%B, %Y"}</h3> <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 item="entries"}
{foreach from=$entries.entries item="entry"} {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> <dl class="archive_summary {cycle values='archive_summary_odd,archive_summary_even'}">
<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> <h4 class="archive_summary_title"><a href="{$entry.link}">{$entry.title|truncate:80:" ..."}</a></h4>
{/foreach} <dt class="archive_summary_postdate">{$entry.timestamp|@formatTime:$template_option.date_format}</dt>
{/foreach} <dd class="archive_summary_postdetails">
</div> {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>
<div class='serendipity_pageFooter' style="text-align: center"> <div class='serendipity_pageFooter' style="text-align: center">

View File

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

View File

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