forked from friendica/friendica-addons
remove help section if images not allowed
This commit is contained in:
parent
f9862a85d9
commit
84521c8814
2 changed files with 3 additions and 0 deletions
|
@ -831,6 +831,7 @@ function retriever_content($a) {
|
||||||
$template = Renderer::getMarkupTemplate('/help.tpl', 'addon/retriever/');
|
$template = Renderer::getMarkupTemplate('/help.tpl', 'addon/retriever/');
|
||||||
$a->page['content'] .= Renderer::replaceMacros($template, array(
|
$a->page['content'] .= Renderer::replaceMacros($template, array(
|
||||||
'$config' => $a->getBaseUrl . '/settings/addon',
|
'$config' => $a->getBaseUrl . '/settings/addon',
|
||||||
|
'$allow_images' => Config::get('retriever', 'allow_images'),
|
||||||
'$feeds' => $feeds));
|
'$feeds' => $feeds));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
for up to a month, in case the website is temporarily overloaded or
|
||||||
the network is down.
|
the network is down.
|
||||||
</p>
|
</p>
|
||||||
|
{{if $allow_images}}
|
||||||
<h3>Retrieving Images</h3>
|
<h3>Retrieving Images</h3>
|
||||||
<p>
|
<p>
|
||||||
Retriever can also optionally download images and store them in the
|
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
|
click <a href="$config">"Plugin settings"</a>. Then check the "All
|
||||||
Photos" box in the "Retriever Settings" section and click "Submit".
|
Photos" box in the "Retriever Settings" section and click "Submit".
|
||||||
</p>
|
</p>
|
||||||
|
{{/if}}
|
||||||
<h2>Configure Feeds:</h2>
|
<h2>Configure Feeds:</h2>
|
||||||
<div>
|
<div>
|
||||||
{{foreach $feeds as $feed}}
|
{{foreach $feeds as $feed}}
|
||||||
|
|
Loading…
Reference in a new issue