- In the Leggero theme, the number of views is now also displayed when comments are locked
This commit is contained in:
Frank Hochmuth 2024-03-24 20:10:31 +01:00 committed by GitHub
commit 69574bd8be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,9 +6,9 @@
{$date|date_format_daily:"<h2 class=\"date\">`$fp_config.locale.dateformat`</h2>"} {$date|date_format_daily:"<h2 class=\"date\">`$fp_config.locale.dateformat`</h2>"}
<h2 itemprop="name" class="entry-title"> <h2 itemprop="name" class="entry-title">
<a href="{$id|link:post_link}"> <a href="{$id|link:post_link}">
{$subject|tag:the_title} {$subject|tag:the_title}
</a> </a>
</h2> </h2>
{include file="shared:entryadminctrls.tpl"} {include file="shared:entryadminctrls.tpl"}
@ -18,24 +18,24 @@
<ul class="entry-footer"> <ul class="entry-footer">
<li class="entry-info">{$lang.entryauthor.posted_by} <span itemprop="author">{$author}</span> {$lang.entryauthor.at} <li class="entry-info">{$lang.entryauthor.posted_by} <span itemprop="author">{$author}</span> {$lang.entryauthor.at}
{$date|date_format} {$date|date_format}
<span itemprop="articleSection"> <span itemprop="articleSection">
{if ($categories)} {$lang.plugin.categories.in} {$categories|@filed}{/if} {if ($categories)} {$lang.plugin.categories.in} {$categories|@filed}{/if}
</span> </span>
</li> </li>
{if !(in_array('commslock', $categories) && !$comments)} <li class="link-comments">
<li class="link-comments"> {if isset($views)}
<a href="{$id|link:comments_link}#comments">{$comments|tag:comments_number} <strong>{$views}</strong> {$lang.postviews.views}
{if isset($views)}(<strong>{$views}</strong> {$lang.postviews.views}){/if} {/if}
</a> {if !(in_array('commslock', $categories) && !$comments)}
</li> <a href="{$id|link:comments_link}#comments">{$comments|tag:comments_number}
{/if} </a>
{/if}
</li>
</ul> </ul>
</div> </div>