Skip to content

Commit

Permalink
Fixes #474 | Poor user-friendliness in the “Add comment” link
Browse files Browse the repository at this point in the history
- The “Add comment” link now also leads to the CSS ID #addcomment instead of the non-existent CSS ID #comments
  • Loading branch information
Fraenkiman committed Oct 19, 2024
1 parent ac3a257 commit d748e47
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions fp-interface/themes/leggero/entry-default.tpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<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, *}
{* 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>"}
Expand All @@ -24,15 +24,18 @@
<span itemprop="articleSection">
{if ($categories)} {$lang.plugin.categories.in} {$categories|@filed}{/if}
</span>
</li>
</li>

<li class="link-comments">
{if isset($views)}
<strong>{$views}</strong> {$lang.postviews.views}
{/if}
{if !(in_array('commslock', $categories) && !$comments)}
<a href="{$id|link:comments_link}#comments">{$comments|tag:comments_number}
</a>
{if $comments > 0}
<a href="{$id|link:comments_link}#comments">{$comments|tag:comments_number}</a>
{else}
<a href="{$id|link:comments_link}#addcomment">{$comments|tag:comments_number}</a>
{/if}
{/if}
</li>

Expand Down

0 comments on commit d748e47

Please sign in to comment.