Update header.tpl

Logic changed to: if feed plugin is deactivated, the feed buttons are displayed in the header. It is unlikely that the FlatPress user wants the buttons in the head and in the menu bar to be displayed at the same time. If the FlaPress user uses a different theme, he can still activate the plugin/widget.
This commit is contained in:
Frank Hochmuth 2024-02-06 21:09:06 +01:00 committed by GitHub
parent f9e3f48192
commit 77261028bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,7 +11,7 @@
<div id="body-container">
<div id="head">
{if function_exists('plugin_feed_head')}
{if not function_exists('plugin_feed_head')}
<a href="{$smarty.const.BLOG_BASEURL}?x=feed:atom" title="{$lang.main.atom}" target="_blank"><img class="feed" src="{$smarty.const.BLOG_BASEURL}fp-content/images/atom-white.png" alt="atom-feed"></a>
<a href="{$smarty.const.BLOG_BASEURL}?x=feed:rss2" title="{$lang.main.rss}" target="_blank"><img class="feed" src="{$smarty.const.BLOG_BASEURL}fp-content/images/rss-white.png" alt="rss-feed"></a>
{/if}