]> git.mjollnir.org Git - s9y.git/commitdiff
BP: Added some classes and tags to index.tpl and entries.tpl to add basic microformat...
authoryellowled <yellowled>
Tue, 9 Oct 2007 11:52:33 +0000 (11:52 +0000)
committeryellowled <yellowled>
Tue, 9 Oct 2007 11:52:33 +0000 (11:52 +0000)
templates/bulletproof/entries.tpl
templates/bulletproof/index.tpl

index ad5325665d76648315600def4d55cf5a56ade9a4..6e593bfec09707bea978b3a79d5d038042e1c662 100644 (file)
@@ -2,17 +2,17 @@
 {serendipity_hookPlugin hook="entries_header" addData="$entry_id"}
 
 {foreach from=$entries item="dategroup"}
-<div class="serendipity_Entry_Date{if $dategroup.is_sticky} serendipity_Sticky_Entry{/if}">
+<div class="hentry serendipity_Entry_Date{if $dategroup.is_sticky} serendipity_Sticky_Entry{/if}">
     {if $dategroup.is_sticky}
         {if $template_option.show_sticky_entry_heading == 'true'}
             <h3 class="serendipity_date">{$CONST.STICKY_POSTINGS}</h3>
         {/if}
     {else}
-        <h3 class="serendipity_date">{$dategroup.date|@formatTime:$template_option.date_format}</h3>
+        <h3 class="serendipity_date"><abbr class="published" title="{$dategroup.date|@formatTime:'%Y-%m-%dT%H:%M:%S%Z'}">{$dategroup.date|@formatTime:$template_option.date_format}</abbr></h3>
     {/if}
 
     {foreach from=$dategroup.entries item="entry"}
-        <h4 class="serendipity_title"><a href="{$entry.link}">{$entry.title}</a></h4>
+        <h4 class="entry-title serendipity_title"><a href="{$entry.link}" rel="bookmark">{$entry.title}</a></h4>
 
         <div class="serendipity_entry serendipity_entry_author_{$entry.author|@makeFilename} {if $entry.is_entry_owner}serendipity_entry_author_self{/if}">
 
@@ -20,7 +20,7 @@
                 {if $template_option.entryfooterpos == 'belowtitle'}
                     <div class='serendipity_entryFooter belowtitle'>
                         {if $template_option.footerauthor == 'true'}
-                            {$CONST.POSTED_BY} <a href="{$entry.link_author}">{$entry.author}</a>
+                            {$CONST.POSTED_BY} <address class="author"><a href="{$entry.link_author}">{$entry.author}</a></address>
                         {/if}
 
                         {if $template_option.footercategories == 'true'}
@@ -85,7 +85,7 @@
                 {if $template_option.entryfooterpos == 'splitfoot'}
                     <div class='serendipity_entryFooter byline'>
                         {if $template_option.footerauthor == 'true'}
-                            {$CONST.POSTED_BY} <a href="{$entry.link_author}">{$entry.author}</a>
+                            {$CONST.POSTED_BY} <address class="author"><a href="{$entry.link_author}">{$entry.author}</a></address>
                         {/if}
 
                         {if $template_option.footercategories == 'true'}
                </span>
             {/if}
   
-            <div class="serendipity_entry_body">
+            <div class="entry-content serendipity_entry_body">
                 {$entry.body}
                 {if $entry.has_extended and not $is_single_entry and not $entry.is_extended}
                     <span class="continue_reading"><a href="{$entry.link}#extended" title='{$CONST.VIEW_EXTENDED_ENTRY|@sprintf:$entry.title|truncate:50:" ..."}'>{$CONST.VIEW_EXTENDED_ENTRY|@sprintf:$entry.title|truncate:50:" ..."} &raquo;</a></span>
                 {if $template_option.entryfooterpos == 'belowentry'}
                     <div class='serendipity_entryFooter belowentry'>
                         {if $template_option.footerauthor == 'true'}
-                            {$CONST.POSTED_BY} <a href="{$entry.link_author}">{$entry.author}</a>
+                            {$CONST.POSTED_BY} <address class="author"><a href="{$entry.link_author}">{$entry.author}</a></address>
                         {/if}
 
                         {if $template_option.footercategories == 'true'}
index 0b23bc5befc7daefb9986c4ef1fe91e203d5a68d..36132f4af2e451456a333e502548fbc092bd357b 100644 (file)
                 {serendipity_printSidebar side="left"}
             </div>
             <a name="skipent"></a>
-            <div id="content" class="threemain layout3sbs_content">
+            <div id="content" class="threemain layout3sbs_content hfeed">
                 {$CONTENT}
             </div>
             <a name="skiprsb"></a>
         {if $template_option.layouttype == '3bss'}
             <!-- case 2: 3 columns, content-sidebar-sidebar -->
             <a name="skipent"></a>
-            <div id="content" class="threemain layout3bss_content">
+            <div id="content" class="threemain layout3bss_content hfeed">
                 {$CONTENT}
             </div>
             <a name="skiplsb"></a>
                 {serendipity_printSidebar side="right"}
             </div>
             <a name="skipent"></a>
-            <div id="content" class="threemain layout3ssb_content">
+            <div id="content" class="threemain layout3ssb_content hfeed">
                 {$CONTENT}
             </div>
         {/if}
                 {serendipity_printSidebar side="right"}
             </div>
             <a name="skipent"></a>
-            <div id="content" class="twomain layout2sb_content">
+            <div id="content" class="twomain layout2sb_content hfeed">
                 {$CONTENT}
             </div>
         {/if}
         {if $template_option.layouttype == '2bs'}
             <!-- case 5: 2 columns, right sidebar only -->
             <a name="skipent"></a>
-            <div id="content" class="twomain layout2bs_content">
+            <div id="content" class="twomain layout2bs_content hfeed">
                 {$CONTENT}
             </div>
             <a name="skiprsb"></a>
         {if $template_option.layouttype == '1col'}
             <!-- case 6: 1 column, sidebar(s) below -->
             <a name="skipent"></a>
-            <div id="content" class="onemain layout1col_content">
+            <div id="content" class="onemain layout1col_content hfeed">
                 {$CONTENT}
             </div>