Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
bobdenotter committed Dec 14, 2019
1 parent d182f2d commit 483fd08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/NewsWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class NewsWidget extends BaseWidget implements TwigAware, RequestAware, CacheAwa
protected $priority = 150;
protected $template = '@news-widget/news.html.twig';
protected $zone = RequestZone::BACKEND;
protected $cacheDuration = 3600;
protected $cacheDuration = 4 * 3600;

protected function run(array $params = []): ?string
{
Expand Down
4 changes: 3 additions & 1 deletion templates/news.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
<p><strong>{{ title|raw }}</strong></p>
{{ news|raw }}
{% if link %}
<a href="{{ link }}" target="_blank" class="btn btn-tertiary btn-sm">{{ __('general.phrase.read-more') }}</a>
<a href="{{ link }}" target="_blank" class="btn btn-tertiary btn-sm">
<i class="fas fa-external-link-square-alt"></i> {{ __('general.phrase.read-more') }}
</a>
{% endif %}
</div>
</div>

0 comments on commit 483fd08

Please sign in to comment.