<?php

/* mart/template/extension/module/featured.twig */
class __TwigTemplate_7ab6e87834c0a2d0d33d04b0e595f6b40c135d62e40aa5c7b4248ad357057f89 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = array(
        );
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 1
        echo "<div class=\"module-featured\">
  <h3 class=\"module-header\">";
        // line 2
        echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
        echo "</h3>
  <div class=\"row\">
    ";
        // line 4
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["products"]) ? $context["products"] : null));
        foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
            // line 5
            echo "    <div class=\"product-layout product-grid col-xs-6\">
      <div class=\"product-thumb ";
            // line 6
            echo ((($this->getAttribute($context["product"], "out_of_stock", array()) && (isset($context["badge_out_of_stock"]) ? $context["badge_out_of_stock"] : null))) ? ("out-of-stock") : (""));
            echo "\">
        <div class=\"image\">
          <a href=\"";
            // line 8
            echo $this->getAttribute($context["product"], "href", array());
            echo "\"><img src=\"";
            echo $this->getAttribute($context["product"], "thumb", array());
            echo "\" alt=\"";
            echo $this->getAttribute($context["product"], "name", array());
            echo "\" title=\"";
            echo $this->getAttribute($context["product"], "name", array());
            echo "\" class=\"img-responsive\" /></a>
        </div>
        ";
            // line 10
            if (($this->getAttribute($context["product"], "out_of_stock", array()) && (isset($context["badge_out_of_stock"]) ? $context["badge_out_of_stock"] : null))) {
                // line 11
                echo "        <div class=\"badge-stock\">";
                echo (isset($context["badge_out_of_stock_label"]) ? $context["badge_out_of_stock_label"] : null);
                echo "</div>
        ";
            }
            // line 13
            echo "        ";
            if (((($this->getAttribute($context["product"], "recently_added", array()) && (isset($context["badge_recently_added"]) ? $context["badge_recently_added"] : null)) &&  !$this->getAttribute($context["product"], "special", array())) &&  !$this->getAttribute($context["product"], "out_of_stock", array()))) {
                // line 14
                echo "        <div class=\"badge-new\">";
                echo (isset($context["badge_recently_added_label"]) ? $context["badge_recently_added_label"] : null);
                echo "</div>
        ";
            }
            // line 16
            echo "        ";
            if ((($this->getAttribute($context["product"], "special", array()) && (isset($context["badge_sale"]) ? $context["badge_sale"] : null)) &&  !$this->getAttribute($context["product"], "out_of_stock", array()))) {
                // line 17
                echo "        <div class=\"badge-sale\">";
                echo (isset($context["badge_sale_label"]) ? $context["badge_sale_label"] : null);
                echo "</div>
        ";
            }
            // line 19
            echo "        <button type=\"button\" class=\"btn btn-empty pull-right\" onclick=\"wishlist.add('";
            echo $this->getAttribute($context["product"], "product_id", array());
            echo "');\"><i class=\"material-icons\">favorite_border</i></button>
        <div class=\"name\">
          <a href=\"";
            // line 21
            echo $this->getAttribute($context["product"], "href", array());
            echo "\">";
            echo $this->getAttribute($context["product"], "name", array());
            echo "</a>
        </div>
        ";
            // line 23
            if ($this->getAttribute($context["product"], "rating", array())) {
                // line 24
                echo "        <div class=\"rating\">
          ";
                // line 25
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable(range(1, 5));
                foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
                    // line 26
                    echo "          ";
                    if (($this->getAttribute($context["product"], "rating", array()) < $context["i"])) {
                        // line 27
                        echo "          <span class=\"fa fa-stack\"><i class=\"fa fa-star-o fa-stack-2x\"></i></span>
          ";
                    } else {
                        // line 29
                        echo "          <span class=\"fa fa-stack\"><i class=\"fa fa-star fa-stack-2x\"></i><i class=\"fa fa-star-o fa-stack-2x\"></i></span>
          ";
                    }
                    // line 31
                    echo "          ";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 32
                echo "        </div>
        ";
            }
            // line 34
            echo "        <div class=\"description\">
          <p>";
            // line 35
            echo $this->getAttribute($context["product"], "description", array());
            echo "</p>
        </div>
        <div class=\"caption\">
          ";
            // line 38
            if (($this->getAttribute($context["product"], "colors", array()) && (isset($context["product_color_options"]) ? $context["product_color_options"] : null))) {
                // line 39
                echo "          <div class=\"colors\">
            ";
                // line 40
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["product"], "colors", array()));
                foreach ($context['_seq'] as $context["_key"] => $context["color"]) {
                    // line 41
                    echo "            <span style=\"background:#";
                    echo $context["color"];
                    echo ";\"></span>
            ";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['color'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 43
                echo "          </div>
          ";
            }
            // line 45
            echo "          ";
            if ($this->getAttribute($context["product"], "price", array())) {
                // line 46
                echo "          <div class=\"price\">
            ";
                // line 47
                if ( !$this->getAttribute($context["product"], "special", array())) {
                    // line 48
                    echo "            <span class=\"price-regular\">";
                    echo $this->getAttribute($context["product"], "price", array());
                    echo "</span>
            ";
                } else {
                    // line 50
                    echo "            <span class=\"price-old\">";
                    echo $this->getAttribute($context["product"], "price", array());
                    echo "</span> <span class=\"price-new\">";
                    echo $this->getAttribute($context["product"], "special", array());
                    echo "</span>
            ";
                }
                // line 52
                echo "          </div>
          ";
            }
            // line 54
            echo "          <button type=\"button\" class=\"btn btn-primary\" onclick=\"cart.add('";
            echo $this->getAttribute($context["product"], "product_id", array());
            echo "', '";
            echo $this->getAttribute($context["product"], "minimum", array());
            echo "');\">";
            echo (isset($context["button_cart"]) ? $context["button_cart"] : null);
            echo "</button>
        </div>
      </div>
    </div>
    ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 59
        echo "  </div>
</div>
";
    }

    public function getTemplateName()
    {
        return "mart/template/extension/module/featured.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  192 => 59,  176 => 54,  172 => 52,  164 => 50,  158 => 48,  156 => 47,  153 => 46,  150 => 45,  146 => 43,  137 => 41,  133 => 40,  130 => 39,  128 => 38,  122 => 35,  119 => 34,  115 => 32,  109 => 31,  105 => 29,  101 => 27,  98 => 26,  94 => 25,  91 => 24,  89 => 23,  82 => 21,  76 => 19,  70 => 17,  67 => 16,  61 => 14,  58 => 13,  52 => 11,  50 => 10,  39 => 8,  34 => 6,  31 => 5,  27 => 4,  22 => 2,  19 => 1,);
    }
}
/* <div class="module-featured">*/
/*   <h3 class="module-header">{{ heading_title }}</h3>*/
/*   <div class="row">*/
/*     {% for product in products %}*/
/*     <div class="product-layout product-grid col-xs-6">*/
/*       <div class="product-thumb {{ product.out_of_stock and badge_out_of_stock ? 'out-of-stock' : '' }}">*/
/*         <div class="image">*/
/*           <a href="{{ product.href }}"><img src="{{ product.thumb }}" alt="{{ product.name }}" title="{{ product.name }}" class="img-responsive" /></a>*/
/*         </div>*/
/*         {% if product.out_of_stock and badge_out_of_stock %}*/
/*         <div class="badge-stock">{{ badge_out_of_stock_label }}</div>*/
/*         {% endif %}*/
/*         {% if product.recently_added and badge_recently_added and not product.special and not product.out_of_stock %}*/
/*         <div class="badge-new">{{ badge_recently_added_label }}</div>*/
/*         {% endif %}*/
/*         {% if product.special and badge_sale and not product.out_of_stock %}*/
/*         <div class="badge-sale">{{ badge_sale_label }}</div>*/
/*         {% endif %}*/
/*         <button type="button" class="btn btn-empty pull-right" onclick="wishlist.add('{{ product.product_id }}');"><i class="material-icons">favorite_border</i></button>*/
/*         <div class="name">*/
/*           <a href="{{ product.href }}">{{ product.name }}</a>*/
/*         </div>*/
/*         {% if product.rating %}*/
/*         <div class="rating">*/
/*           {% for i in 1..5 %}*/
/*           {% if product.rating < i %}*/
/*           <span class="fa fa-stack"><i class="fa fa-star-o fa-stack-2x"></i></span>*/
/*           {% else %}*/
/*           <span class="fa fa-stack"><i class="fa fa-star fa-stack-2x"></i><i class="fa fa-star-o fa-stack-2x"></i></span>*/
/*           {% endif %}*/
/*           {% endfor %}*/
/*         </div>*/
/*         {% endif %}*/
/*         <div class="description">*/
/*           <p>{{ product.description }}</p>*/
/*         </div>*/
/*         <div class="caption">*/
/*           {% if product.colors and product_color_options %}*/
/*           <div class="colors">*/
/*             {% for color in product.colors %}*/
/*             <span style="background:#{{ color }};"></span>*/
/*             {% endfor %}*/
/*           </div>*/
/*           {% endif %}*/
/*           {% if product.price %}*/
/*           <div class="price">*/
/*             {% if not product.special %}*/
/*             <span class="price-regular">{{ product.price }}</span>*/
/*             {% else %}*/
/*             <span class="price-old">{{ product.price }}</span> <span class="price-new">{{ product.special }}</span>*/
/*             {% endif %}*/
/*           </div>*/
/*           {% endif %}*/
/*           <button type="button" class="btn btn-primary" onclick="cart.add('{{ product.product_id }}', '{{ product.minimum }}');">{{ button_cart }}</button>*/
/*         </div>*/
/*       </div>*/
/*     </div>*/
/*     {% endfor %}*/
/*   </div>*/
/* </div>*/
/* */
