<?php
//messages - mostly for errors from a search form submitting
$this->declareVars(
    array(
        "messages"=>array()
    )
)?>
<h2><?php echo $this->trans("Searching")?></h2>
<?php foreach($this->messages as $message):?>
<div style="color:blue"><?php echo $message?></div>
<?php endforeach?>

<?php echo $this->searchForm?>

<h2><?php echo $this->trans("Categories")?></h2>
<?php foreach($this->allCategories as $category):?>
<p>
 <?php echo $this->anchor(
   $this->url(array("name"=>$category->getTitleUrl()),"blogCategory"),
   $category->getName()." (".$category->getArticleCount().")");?>
</p>
<?php endforeach?>

<h2><?php echo $this->trans("Archive")?></h2>

<!-- whole archive idget -->
<div id="archiveWidget">
<?php echo $this->render("index/view-archive-widgets.phtml")?>
</div>

<h2><?php echo $this->trans("Blogs")?></h2>
<p>
 <a href="http://www.phpdeveloper.org/">phpDeveloper</a>
</p>
<p>
 <a href="http://php.vrana.cz/">Vrana</a>
</p>
<p>
 <a href="http://weblog.ronnieweb.net/">Ronnie</a>
</p>
<p>
 <a href="http://blog.novoj.net/">Otec Fura</a>
</p>

<p style="margin-top:1em">
 <a class="rss" href="<?php echo $this->url(array(),"blogFeed")?>"><?php echo $this->trans("RSS Articles")?></a>
</p> 
<p>
 <a class="rss" href="<?php echo $this->url(array(),"blogCommentFeed")?>"><?php echo $this->trans("RSS Comments")?></a>
</p>
