blog: Only show sources in full view

This commit is contained in:
Markus Koch 2017-06-18 16:15:07 +02:00
parent bc7e8c82cb
commit c5485ea9f8
1 changed files with 3 additions and 1 deletions

View File

@ -117,10 +117,12 @@
}
function renderFooter() {
global $CMS_SINGLE_POST;
global $counters;
global $meta;
$i = 1;
if ($counters['sources'] > 1) {
$renderExt = isset($CMS_SINGLE_POST) && $CMS_SINGLE_POST;
if ($renderExt && $counters['sources'] > 1) {
echo '<hr class="sourceSeparator"><p class="sources">Sources:<br>';
foreach ($meta['sources'] as $v) {
echo '<span id="src' . $i . '">&nbsp;&nbsp;&nbsp;&nbsp;[' . $i++ . ']: <a href="' . $v . '">' . $v . '</a></span><br>';