<?php require( DIR_TEMPLATE.$this->config->get('config_template')."/template/common/config.tpl" ); ?>
<?php echo $header; ?>
<div id="breadcrumb">
  <div class="container">
    <div class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
    <?php } ?>
    </div>

  </div>
</div>
<div id="group-content">
<?php if( $SPAN[0] ): ?>
	<div class="span<?php echo $SPAN[0];?>">
		<?php echo $column_left; ?>
	</div>
<?php endif; ?> 
<div class="span<?php echo $SPAN[1];?>">
<?php if ($success) { ?>
<div class="success"><?php echo $success; ?><img src="catalog/view/theme/default/image/close.png" alt="" class="close" /></div>
<?php } ?>
<div id="content"><?php echo $content_top; ?>
 
    <h1 class="title-category"><?php echo $heading_title; ?></h1>
  <?php if ($products) { ?>
  <div class="wishlist-info content">
    <table >
      <thead class="hidden-phone">
        <tr>
          <td class="image"><?php echo $column_image; ?></td>
          <td class="name"><?php echo $column_name; ?></td>
          <td class="model"><?php echo $column_model; ?></td>
          <td class="stock"><?php echo $column_stock; ?></td>
          <td class="price"><?php echo $column_price; ?></td>
          <td class="action"><?php echo $column_action; ?></td>
        </tr>
      </thead>
      <?php foreach ($products as $product) { ?>
      <tbody id="wishlist-row<?php echo $product['product_id']; ?>">
        <tr>
		
          <td class="image" >
		  <?php if ($product['thumb'] == '') { ?>
				<a href="<?php echo $product['href']; ?>"><img src="image/data/sem-imagem.png" width="47" height="47" title="<?php echo $product['name']; ?>" alt="<?php echo $product['name']; ?>" /></a>
				<?php } else { ?>
            <a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>" /></a>
            <?php } ?></td>
          <td class="name">
            <span class="phone hidden-desktop hidden-tablet"><?php echo $column_name; ?></span>
                  <div class="avg-right"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></div>
              </td>
          <td class="model">
            <span class="phone hidden-desktop hidden-tablet"><?php echo $column_model; ?></span>
                  <div class="avg-right"><?php echo $product['model']; ?></div></td>
          <td class="stock">
            <span class="phone hidden-desktop hidden-tablet"><?php echo $column_stock; ?></span>
                  <div class="avg-right"><?php echo $product['stock']; ?></div></td>
          <td class="price">
            <span class="phone hidden-desktop hidden-tablet"><?php echo $column_price; ?></span>
                  <div class="avg-right"><?php if ($product['price']) { ?>
            <div class="price">
              <?php if (!$product['special']) { ?>
              <?php echo $product['price']; ?>
              <?php } else { ?>
              <s><?php echo $product['price']; ?></s> <b><?php echo $product['special']; ?></b>
              <?php } ?>
            </div>
            <?php } ?></div></td>
          <td class="action">
            <span class="phone hidden-desktop hidden-tablet"><?php echo $column_action; ?></span>
                  <div class="avg-right"><img src="catalog/view/theme/default/image/cart-add.png" alt="<?php echo $button_cart; ?>" title="<?php echo $button_cart; ?>" onclick="addToCart('<?php echo $product['product_id']; ?>');" />&nbsp;&nbsp;<a href="<?php echo $product['remove']; ?>"><img src="catalog/view/theme/default/image/remove.png" alt="<?php echo $button_remove; ?>" title="<?php echo $button_remove; ?>" /></a></div></td>
        </tr>
      </tbody>
      <?php } ?>
    </table>
  </div>
  <div class="buttons">
    <div class="right"><a href="<?php echo $continue; ?>" class="button"><?php echo $button_continue; ?></a></div>
  </div>
  <?php } else { ?>
  <div class="content"><?php echo $text_empty; ?></div>
  <div class="buttons">
    <div class="right"><a href="<?php echo $continue; ?>" class="button"><?php echo $button_continue; ?></a></div>
  </div>
  <?php } ?>
  <?php echo $content_bottom; ?></div>
</div>
<?php if( $SPAN[2] ): ?>
<div class="span<?php echo $SPAN[2];?>">	
	<?php echo $column_right; ?>
</div>
<?php endif; ?>
</div>
<?php echo $footer; ?>