remove help section if images not allowed

This commit is contained in:
Matthew Exon 2019-10-13 11:27:19 +02:00 committed by Matthew Exon
parent f9862a85d9
commit 84521c8814
2 changed files with 3 additions and 0 deletions

View file

@ -831,6 +831,7 @@ function retriever_content($a) {
$template = Renderer::getMarkupTemplate('/help.tpl', 'addon/retriever/');
$a->page['content'] .= Renderer::replaceMacros($template, array(
'$config' => $a->getBaseUrl . '/settings/addon',
'$allow_images' => Config::get('retriever', 'allow_images'),
'$feeds' => $feeds));
return;
}

View file

@ -131,6 +131,7 @@ fails, the plugin will keep trying at progressively longer intervals
for up to a month, in case the website is temporarily overloaded or
the network is down.
</p>
{{if $allow_images}}
<h3>Retrieving Images</h3>
<p>
Retriever can also optionally download images and store them in the
@ -140,6 +141,7 @@ an RSS feed or not. Go to the "Settings" page and
click <a href="$config">"Plugin settings"</a>. Then check the "All
Photos" box in the "Retriever Settings" section and click "Submit".
</p>
{{/if}}
<h2>Configure Feeds:</h2>
<div>
{{foreach $feeds as $feed}}