]> git.mjollnir.org Git - s9y.git/commitdiff
BP: added classes and changed structure of entries_archives.tpl and entries_summary...
authordonchambers <donchambers>
Sun, 18 Nov 2007 17:44:23 +0000 (17:44 +0000)
committerdonchambers <donchambers>
Sun, 18 Nov 2007 17:44:23 +0000 (17:44 +0000)
templates/bulletproof/entries_archives.tpl
templates/bulletproof/entries_summary.tpl
templates/bulletproof/info.txt
templates/bulletproof/style.css

index 2eae4ca009bb5eb6fec4029316d5fa11af43681b..f3bf652078b7920c5574e56113c1df9999347a2d 100644 (file)
@@ -1,23 +1,25 @@
 {serendipity_hookPlugin hook="entries_header"}\r
 <div class="serendipity_Entry_Date">\r
-   <h3 class="serendipity_date">{$CONST.ARCHIVES}</h3>\r
-   {foreach from=$archives item="archive"}\r
-      <h4 class="archives_header">{$archive.year}</h4>\r
-      {foreach from=$archive.months item="month"}\r
-      <ul class="archives_row">\r
-         {if $template_option.colorset == 'blank'}\r
-             <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>\r
-         {else}\r
-             <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>\r
-         {/if}\r
-         <li class="archives_date">{$month.date|@formatTime:"%B"}</li>\r
-         <li class="archives_count">{$month.entry_count} {$CONST.ENTRIES}</li>\r
-         <li class="archives_count_link">({if $month.entry_count}<a href="{$month.link}">{/if}{$CONST.VIEW_FULL}{if $month.entry_count}</a>{/if})</li>\r
-         <li class="archives_link">({if $month.entry_count}<a href="{$month.link_summary}">{/if}{$CONST.VIEW_TOPICS}{if $month.entry_count}</a>{/if})</li>\r
-      </ul>\r
-      {/foreach}\r
-   {/foreach}\r
+    <h3 class="serendipity_date">{$CONST.ARCHIVES}</h3>\r
+    {foreach from=$archives item="archive"}\r
+        <div class="serendipity_entry archives_all_entry">\r
+            <h4 class="archives_header">{$archive.year}</h4>\r
+            {foreach from=$archive.months item="month"}\r
+                <ul class="archives_row {cycle values='archives_row_odd,archives_row_even'}">\r
+                    {if $template_option.colorset == 'blank'}\r
+                        <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>\r
+                    {else}\r
+                        <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>\r
+                    {/if}\r
+                    <li class="archives_date">{$month.date|@formatTime:"%B"}</li>\r
+                    <li class="archives_count">{$month.entry_count} {$CONST.ENTRIES}</li>\r
+                    <li class="archives_count_link">({if $month.entry_count}<a href="{$month.link}">{/if}{$CONST.VIEW_FULL}{if $month.entry_count}</a>{/if})</li>\r
+                    <li class="archives_link">({if $month.entry_count}<a href="{$month.link_summary}">{/if}{$CONST.VIEW_TOPICS}{if $month.entry_count}</a>{/if})</li>\r
+                </ul>\r
+            {/foreach}\r
+        </div>\r
+    {/foreach}\r
 </div>\r
 <div class="serendipity_pageFooter" style="text-align: center">\r
-{serendipity_hookPlugin hook="entries_footer"}\r
+    {serendipity_hookPlugin hook="entries_footer"}\r
 </div>\r
index 86e56404c5452304d3ada2e6ab2a48216e238fdc..01fd44c1bbe3ed74b132e91ecc9f7b8cb46fead1 100644 (file)
@@ -1,14 +1,26 @@
 {serendipity_hookPlugin hook="entries_header"}\r
 <div class="serendipity_Entry_Date">\r
-   <h3 class='serendipity_date'>{$CONST.TOPICS_OF} {$dateRange.0|@formatTime:"%B, %Y"}</h3>\r
-   <div class="serendipity_entry">\r
-   {foreach from=$entries item="entries"}\r
-      {foreach from=$entries.entries item="entry"}\r
-         <div class="archive_summary"><h4 class="archive_summary_title">{$entry.id} - <a href="{$entry.link}">{$entry.title|truncate:80:" ..."}</a></h4>\r
-         <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>\r
-      {/foreach}\r
-   {/foreach}\r
-   </div>\r
+    <h3 class='serendipity_date'>{$CONST.TOPICS_OF} {$dateRange.0|@formatTime:"%B, %Y"}</h3>\r
+    <div class="serendipity_entry archive_summary_entry">\r
+        {foreach from=$entries item="entries"}\r
+            {foreach from=$entries.entries item="entry"}\r
+                <dl class="archive_summary {cycle values='archive_summary_odd,archive_summary_even'}">\r
+                    <h4 class="archive_summary_title"><a href="{$entry.link}">{$entry.title|truncate:80:" ..."}</a></h4>\r
+                    <dt class="archive_summary_postdate">{$entry.timestamp|@formatTime:$template_option.date_format}</dt>\r
+                    <dd class="archive_summary_postdetails">\r
+                        {if $template_option.footerauthor == 'true'}\r
+                            {$CONST.POSTED_BY} <address class="author"><a href="{$entry.link_author}">{$entry.author}</a></address>\r
+                        {/if}\r
+                        {if $template_option.footercategories == 'true'}\r
+                            {if $entry.categories}\r
+                                {$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}\r
+                            {/if}\r
+                        {/if}\r
+                    </dd>\r
+                </dl>\r
+            {/foreach}\r
+        {/foreach}\r
+    </div>\r
 </div>\r
 \r
 <div class='serendipity_pageFooter' style="text-align: center">\r
index 2d6044bb30fa260c5af9e9f09aa3b8d1072ce0ca..8d47705b3c9a7051eef257a8e20b19a525634480 100644 (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
index edbf4a26e30a2cca70a43648d50f4019c225b314..d3968ce5d78b3106ca5eb53fb236229c6373648b 100644 (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,