ACC SHELL
<div id="main">
<div style="padding: 30px 50px 10px 50px">
<?php if (! empty($single)) : $article = $news['Article']; ?>
<h1><?php e($article['title']); ?></h1>
<div id="navigation">
<?php
if (! $article['article_type']) :
e($html->link('Novinky', '/novinky') . ' » ');
else:
echo 'Informace » ' . $html->link('Výstavy, konference, semináře', '/vystavy-konference-seminare')
. ' » ';
endif;
e($article['title']);
?>
</div>
<div class="news-date"><?php echo en2czMonth(date('j. F Y', strtotime($article['created_d']))); ?></div>
<div class="content">
<?php e($article['perex']) ?>
<?php e($article['content']) ?>
<div class="clear"></div>
</div>
<?php
$downloads = '';
foreach ($files as $file) {
if (! $file['id']) continue;
$downloads .= $html->link($file['name'], '/file/' . $file['id'])
. ' <span class="light">(' . round($file['size'] / 1024, 1) . 'kB)<br />';
}
if ($downloads) { ?>
<p style="clear: both; padding-top: 0.5em; margin: 0;">
Podrobnosti:
</p>
<p style="padding-left: 2em;">
<?php echo $downloads; ?>
</p>
<?php } ?>
<?php else: ?>
<h1><?php echo $where; ?></h1>
<div id="navigation">
<?php if (strlen($where) > 10) echo 'Informace » '; ?>
<?php echo $where; ?>
</div>
<?php foreach ($news as $article) : $article = $article['Article']; ?>
<h4><?php e($article['title']); ?></h4>
<div class="news-date"><?php echo en2czMonth(date('j. F Y', strtotime($article['created_d']))); ?></div>
<p style="text-align: justify">
<?php if ($article['icon']) : ?>
<img style="vertical-align: top" class="icon" src="<?php echo $article['icon']; ?>" alt="Icon" />
<?php endif; ?>
<?php e(strip_tags($article['perex'])); ?>
</p>
<div class="news-more">
<?php if ($article['article_type']) : ?>
<?php
echo $html->link('celá zpráva', '/vystavy-konference-seminare/' . join('/', explode('-', $article['title_idx'], 2)));
?>
<?php else: ?>
<?php
echo $html->link('celá zpráva', '/novinky/' . join('/', explode('-', $article['title_idx'], 2)));
?>
<?php endif; ?>
</div>
<br style="clear: both" />
<?php endforeach; ?>
<?php endif; ?>
</div>
</div>
ACC SHELL 2018