flatpress/fp-interface/themes/leggero/entry-default.tpl
Fraenkiman fba5adc876 Multilingual support for "Posted by"
Closes Issue #143

Preview revised

That's funny. There is a template for the preview of static pages for 13 years, and was not used.
2023-01-30 01:39:55 +01:00

42 lines
1.2 KiB
Smarty

<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 *}
{* than one entry have been written the same day, *}
{* the date will be printed only once *}
{$date|date_format_daily:"<h2 class=\"date\">`$fp_config.locale.dateformat`</h2>"}
<h3 itemprop="name">
<a href="{$id|link:post_link}">
{$subject|tag:the_title}
</a>
</h3>
{include file="shared:entryadminctrls.tpl"}
<div itemprop="articleBody">
{$content|tag:the_content}
</div>
<ul class="entry-footer">
<li class="entry-info">{$lang.entryauthor.posted_by} <span itemprop="author">{$author}</span> {$lang.entryauthor.at}
{$date|date_format}
<span itemprop="articleSection">
{if ($categories)} {$lang.plugin.categories.in} {$categories|@filed}{/if}
</span>
</li>
{if !(in_array('commslock', $categories) && !$comments)}
<li class="link-comments">
<a href="{$id|link:comments_link}#comments">{$comments|tag:comments_number}
{if isset($views)}(<strong>{$views}</strong> {$lang.postviews.views}){/if}
</a>
</li>
{/if}
</ul>
</div>