<?php echo $this->render('common/header.phtml'); ?>	
<h1>Úvodní stránka</h1>
<p><a href="?strana=all">Zobrazit vše</a></p>
<p class="pagination"><?php echo $this->pagination($this->articles, $this->page, $this->url);?></p>
<?php foreach($this->articles as $article) { ?>
	<h2><a href="<?php echo $this->url(array('articleRewriteString' => $article->rewrite_string), 'article'); ?>"><?php echo $this->escape($article->name); ?></a></h2>
	<p><i><?php echo date('j. n. Y', strtotime($article->date)); ?></i><br />
	<?php echo $this->escape($article->description); ?><br />
	<a href="<?php echo $this->wwwroot; ?>/admin/clanek/id/<?php echo $article->id; ?>/">Editovat</a>
	</p>
	<hr />
<?php } ?>

<?php echo $this->render('common/footer.phtml'); ?>