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

View File

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