BP: Added some classes and tags to index.tpl and entries.tpl to add basic microformats support.
This commit is contained in:
parent
f51da87467
commit
6d37813fdc
@ -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'}
|
||||
@ -116,7 +116,7 @@
|
||||
</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:" ..."} »</a></span>
|
||||
@ -131,7 +131,7 @@
|
||||
{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'}
|
||||
|
@ -144,7 +144,7 @@
|
||||
{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>
|
||||
@ -168,7 +168,7 @@
|
||||
{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>
|
||||
@ -240,7 +240,7 @@
|
||||
{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}
|
||||
@ -265,7 +265,7 @@
|
||||
{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}
|
||||
@ -273,7 +273,7 @@
|
||||
{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>
|
||||
@ -298,7 +298,7 @@
|
||||
{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>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user