Merge pull request #18 from MarcThibeault/Patch-Microdata

Adding microdata to entry-default template
This commit is contained in:
Edoardo Vacchi 2014-07-25 08:06:44 +02:00
commit c2d6f046d2

View File

@ -1,26 +1,29 @@
<div id="{$id}" class="entry {$date|date_format:"y-%Y m-%m d-%d"}"> <div itemscope itemtype="http://schema.org/BlogPosting" id="{$id}" class="entry {$date|date_format:"y-%Y m-%m d-%d"}">
{* using the following way to print the date, if more *} {* using the following way to print the date, if more *}
{* than one entry have been written the same day, *} {* than one entry have been written the same day, *}
{* the date will be printed only once *} {* the date will be printed only once *}
{$date|date_format_daily:"<h2 class=\"date\">`$fp_config.locale.dateformat`</h2>"} {$date|date_format_daily:"<h2 class=\"date\">`$fp_config.locale.dateformat`</h2>"}
<h3> <h3 itemprop="name">
<a href="{$id|link:post_link}"> <a href="{$id|link:post_link}">
{$subject|tag:the_title} {$subject|tag:the_title}
</a> </a>
</h3> </h3>
{include file=shared:entryadminctrls.tpl} {include file=shared:entryadminctrls.tpl}
<span itemprop="articleBody">
{$content|tag:the_content} {$content|tag:the_content}
</span>
<ul class="entry-footer"> <ul class="entry-footer">
<li class="entry-info">Posted by {$author} at <li class="entry-info">Posted by <span itemprop="author">{$author}</span> at
{$date|date_format} {$date|date_format}
<span itemprop="articleSection">
{if ($categories)} in {$categories|@filed}{/if} {if ($categories)} in {$categories|@filed}{/if}
</span>
</li> </li>
{if !(in_array('commslock', $categories) && !$comments)} {if !(in_array('commslock', $categories) && !$comments)}