<?php
  /**
   * Index
   *
   * @package Wojo Framework
   * @author wojoscripts.com
   * @copyright 2017
   * @version $Id: index.tpl.php, v1.00 2017-05-05 10:12:05 gewa Exp $
   */
  if (!defined("_WOJO"))
      die('Direct access to this location is not allowed.');
?>
<?php if($this->special):?>
<div class="row">
  <div class="columns screen-50 tablet-50 mobile-100 phone-100">
    <div id="special1">
      <?php if(isset($this->special[0])):?>
      <div class="row">
        <div class="columns mobile-100 phone-100">
          <div class="padding">
            <p class="margin-bottom"><span class="wojo black label"><?php echo Utility::renderPrice($this->special[0]->is_sale, $this->special[0]->price, $this->special[0]->sprice, "negative");?></span></p>
            <h3 class="wojo white text truncate"><?php echo $this->special[0]->title?></h3>
            <p class="wojo small white soft dimmed text"><?php echo Validator::sanitize($this->special[0]->body, "string", 80)?></p>
            <p class="margin-top"><a href="<?php echo Url::url('/product', $this->special[0]->slug);?>" class="wojo small transparent button"><?php echo Lang::$word->MOREINFO;?></a>
            </p>
          </div>
        </div>
        <div class="columns shrink mobile-100 phone-100 content-right mobile-content-center">
          <img src="<?php echo Product::hasThumb($this->special[0]->thumb, $this->special[0]->id);?>" alt="<?php echo $this->special[0]->title?>" class="wojo basic medium image"></div>
      </div>
      <?php endif;?>
    </div>
  </div>
  <div class="columns screen-50 tablet-50 mobile-100 phone-100">
    <div id="special2">
      <?php if(isset($this->special[1])):?>
      <div class="row">
        <div class="columns mobile-100 phone-100">
          <div class="padding">
            <p class="margin-bottom"><span class="wojo black label"><?php echo Utility::renderPrice($this->special[1]->is_sale, $this->special[1]->price, $this->special[1]->sprice, "negative");?></span></p>
            <h3 class="wojo white text truncate"><?php echo $this->special[1]->title;?></h3>
            <p class="wojo small white soft dimmed text"><?php echo Validator::sanitize($this->special[1]->body, "string", 80)?></p>
            <p class="margin-top"><a href="<?php echo Url::url('/product', $this->special[1]->slug);?>" class="wojo small transparent button"><?php echo Lang::$word->MOREINFO;?></a>
            </p>
          </div>
        </div>
        <div class="columns shrink mobile-100 phone-100 content-right mobile-content-center">
          <img src="<?php echo Product::hasThumb($this->special[1]->thumb, $this->special[1]->id);?>" alt="<?php echo $this->special[1]->title?>" class="wojo basic medium image">
        </div>
      </div>
      <?php endif;?>
    </div>
  </div>
</div>
<?php endif;?>
<?php include_once($this->core->home_layout == 1 ? THEMEBASE . "/_home_list.tpl.php" : THEMEBASE . "/_home_grid.tpl.php");?>