<?php if (!$isAjax):?>
<div class="block block-aggregator" id="<?php echo $contentId; ?>">
<?php endif;?>
<h3 class="handle">
<a class="block-close"><span>toggle</span></a>
<a class="block-toggle"><span>toggle</span></a>
<a class="block-config"><span>toggle</span></a>
<?php echo translateAdmin('Encomendas do site')?>
</h3>

<div class="content">
  <div>
<?php if (isset($lojaList)):?>
    <?php if (isset($encomendas) && $encomendas):?>
    	<ul class="encomendas_loja">
            <li class="encomenda_linhas">
            <?php foreach($encomendas as $encomenda):?>
            <ul class="encomenda_linha">
                <li><strong><?php echo $encomenda->nome?></strong></li>
                <li>&euro;&nbsp;<?php echo $encomenda->valor?></li>
                <li class="ver_mais"><a href="<?php echo $this->link($lojaList . $encomenda->id); ?>" target="_blank"><?php echo translate('ver mais'); ?>&nbsp;<span>
                <?php echo $this->img('/admin/media/js/portal/mais.png'); ?>
                </span></a></li>
            </ul>
            <?php endforeach;?>
            </li>
        </ul>
    <?php endif; ?>
<?php endif; ?>
  </div>
</div>
<?php if (!$isAjax):?>
</div>
<?php endif;?>