<ul id="listcategories">
    <?php if($this->categoriesList){
        foreach ($this->categoriesList as $page){
            ?>
    <li>
        <?php if(!empty($page['pageImagePath'])){ ?>
        <a href="<?php echo $this->escape($this->websiteUrl . $page['url']).'.html'; ?>" title="<?php echo  $page['h1']; ?>">
            <img alt="<?php echo $page['h1'];?>" src="<?php echo $this->escape($this->websiteUrl . $page['pageImagePath']); ?>" />
        </a>
        <?php } ?>
        <a href="<?php echo $this->escape($this->websiteUrl . $page['url']).'.html'; ?>" title="<?php echo  $page['h1']; ?>" class="listtitle"><?php echo $page['navigationTitle']; ?></a>
        <span><?php echo $page['description']; ?></span>
    </li>
    <?php } }?>
</ul>