Skip to content

Commit

Permalink
Fix description not loaded on complete entry display config
Browse files Browse the repository at this point in the history
  • Loading branch information
Simounet committed Jan 11, 2024
1 parent 49fe6d8 commit ee7422e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions article.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{$last_event=count($events)-1}
{loop="$events"}
{$plainDescription=strip_tags($value->getDescription())}
{function="Plugin::callHook("event_pre_section", array(&$value))"}
{* [fix] - undefined $value->view if LeedRSSOrSiteView plugin is not installed *}
<article
Expand All @@ -14,7 +13,9 @@
{if="isset($value->favicon)"}{$value->favicon}{/if}
<span class="article__feed-title">{$value->feedName}</span>
<h1 class="article__title js-article__title" tabindex="0"><a href="{$value->getLink()}" target="_blank">{function="strip_tags($value->getTitle())"}</a></h1>
<span class="article__description">{function="Functions::truncate(strip_tags($value->getDescription()),300)"}</span>
{if="$value->getDescription()"}
<span class="article__description">{function="Functions::truncate(strip_tags($value->getDescription()),300)"}</span>
{/if}
{if="$articleDisplayDate"}
<time class="article__date" title="{$value->datetime}" datetime="{$value->datetime}"{if="$value->dateLessThanOneHour"} data-timestamp="{$value->getPubdate()}"{/if}>{$value->dateValue}</time>
{/if}
Expand Down

0 comments on commit ee7422e

Please sign in to comment.