File "ef9c01cc219c20bff20deb6bdb861fa054d2352b1b1b48ab267d86347b2db0aa.php"
Full path: /home/cakedeco/retaildirectonline.co.uk/system/storage/cache/ef/ef9c01cc219c20bff20deb6bdb861fa054d2352b1b1b48ab267d86347b2db0aa.php
File
size: 12.13 B (12.13 KB bytes)
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor &nnbsp; Back
<?php
/* tt_madison2/template/common/cart.twig */
class __TwigTemplate_3e2630e15ee5044e463356ada20fd414b30c75854542a79acb05def51289777b 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 id=\"cart\" class=\"btn-group btn-block\">
<button type=\"button\" data-toggle=\"dropdown\" data-loading-text=\"";
// line 2
echo (isset($context["text_loading"]) ? $context["text_loading"] : null);
echo "\" class=\"btn dropdown-toggle\"><span id=\"cart-total\">";
echo (isset($context["text_items"]) ? $context["text_items"] : null);
echo "</span></button>
<ul class=\"dropdown-menu pull-right\">
";
// line 4
if (((isset($context["products"]) ? $context["products"] : null) || (isset($context["vouchers"]) ? $context["vouchers"] : null))) {
// line 5
echo " <li class=\"has-scroll\">
<table class=\"table\">
";
// line 7
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["products"]) ? $context["products"] : null));
foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
// line 8
echo " <tr>
<td class=\"text-center\">";
// line 9
if ($this->getAttribute($context["product"], "thumb", array())) {
echo " <a href=\"";
echo $this->getAttribute($context["product"], "href", array());
echo "\"><img class=\"cart-image\" 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 "\" /></a> ";
}
echo "</td>
<td class=\"text-left info-item\"><a class=\"cart-name\" href=\"";
// line 10
echo $this->getAttribute($context["product"], "href", array());
echo "\">";
echo $this->getAttribute($context["product"], "name", array());
echo "</a>
\t\t <p class=\"cart-quantity\">";
// line 11
echo $this->getAttribute($context["product"], "quantity", array());
echo " × </p>
\t\t\t<p class=\"cart-price\">";
// line 12
echo $this->getAttribute($context["product"], "total", array());
echo "</p>
\t\t ";
// line 13
if ($this->getAttribute($context["product"], "option", array())) {
// line 14
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($context["product"], "option", array()));
foreach ($context['_seq'] as $context["_key"] => $context["option"]) {
echo " <br />
- <small>";
// line 15
echo $this->getAttribute($context["option"], "name", array());
echo " ";
echo $this->getAttribute($context["option"], "value", array());
echo "</small> ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['option'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 16
echo " ";
}
// line 17
echo " ";
if ($this->getAttribute($context["product"], "recurring", array())) {
echo " <br />
- <small>";
// line 18
echo (isset($context["text_recurring"]) ? $context["text_recurring"] : null);
echo " ";
echo $this->getAttribute($context["product"], "recurring", array());
echo "</small> ";
}
// line 19
echo "\t\t\t
\t\t\t
\t\t</td>
<td class=\"text-center cart-close\"><button type=\"button\" onclick=\"cart.remove('";
// line 22
echo $this->getAttribute($context["product"], "cart_id", array());
echo "');\" title=\"";
echo (isset($context["button_remove"]) ? $context["button_remove"] : null);
echo "\" class=\"btn btn-danger btn-xs\"><i class=\"icon-delete\"></i></button></td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 25
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["vouchers"]) ? $context["vouchers"] : null));
foreach ($context['_seq'] as $context["_key"] => $context["voucher"]) {
// line 26
echo " <tr>
<td class=\"text-center\"></td>
<td class=\"text-left\">";
// line 28
echo $this->getAttribute($context["voucher"], "description", array());
echo "</td>
<td class=\"text-right\">x 1</td>
<td class=\"text-right\">";
// line 30
echo $this->getAttribute($context["voucher"], "amount", array());
echo "</td>
<td class=\"text-center text-danger\"><button type=\"button\" onclick=\"voucher.remove('";
// line 31
echo $this->getAttribute($context["voucher"], "key", array());
echo "');\" title=\"";
echo (isset($context["button_remove"]) ? $context["button_remove"] : null);
echo "\" class=\"btn btn-danger btn-xs\"><i class=\"icon-delete\"></i></button></td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['voucher'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 34
echo " </table>
</li>
<li>
<table class=\"table\">
";
// line 38
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["totals"]) ? $context["totals"] : null));
foreach ($context['_seq'] as $context["_key"] => $context["total"]) {
// line 39
echo " <tr>
<td class=\"text-left\">";
// line 40
echo ($this->getAttribute($context["total"], "title", array()) . " :");
echo "</td>
<td class=\"text-right\">";
// line 41
echo $this->getAttribute($context["total"], "text", array());
echo "</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['total'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 44
echo " </table>
<p class=\"text-center cart-button\"><a href=\"";
// line 45
echo (isset($context["cart"]) ? $context["cart"] : null);
echo "\">";
echo (isset($context["text_cart"]) ? $context["text_cart"] : null);
echo "</a><a href=\"";
echo (isset($context["checkout"]) ? $context["checkout"] : null);
echo "\">";
echo (isset($context["text_checkout"]) ? $context["text_checkout"] : null);
echo "</a></p>
</li>
";
} else {
// line 48
echo " <li>
<p class=\"text-center cart-empty\">";
// line 49
echo (isset($context["text_empty"]) ? $context["text_empty"] : null);
echo "</p>
</li>
";
}
// line 52
echo " </ul>
</div>
";
}
public function getTemplateName()
{
return "tt_madison2/template/common/cart.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 197 => 52, 191 => 49, 188 => 48, 176 => 45, 173 => 44, 164 => 41, 160 => 40, 157 => 39, 153 => 38, 147 => 34, 136 => 31, 132 => 30, 127 => 28, 123 => 26, 118 => 25, 107 => 22, 102 => 19, 96 => 18, 91 => 17, 88 => 16, 79 => 15, 72 => 14, 70 => 13, 66 => 12, 62 => 11, 56 => 10, 42 => 9, 39 => 8, 35 => 7, 31 => 5, 29 => 4, 22 => 2, 19 => 1,);
}
}
/* <div id="cart" class="btn-group btn-block">*/
/* <button type="button" data-toggle="dropdown" data-loading-text="{{ text_loading }}" class="btn dropdown-toggle"><span id="cart-total">{{ text_items }}</span></button>*/
/* <ul class="dropdown-menu pull-right">*/
/* {% if products or vouchers %}*/
/* <li class="has-scroll">*/
/* <table class="table">*/
/* {% for product in products %}*/
/* <tr>*/
/* <td class="text-center">{% if product.thumb %} <a href="{{ product.href }}"><img class="cart-image" src="{{ product.thumb }}" alt="{{ product.name }}" title="{{ product.name }}" /></a> {% endif %}</td>*/
/* <td class="text-left info-item"><a class="cart-name" href="{{ product.href }}">{{ product.name }}</a> */
/* <p class="cart-quantity">{{ product.quantity }} × </p>*/
/* <p class="cart-price">{{ product.total }}</p>*/
/* {% if product.option %}*/
/* {% for option in product.option %} <br />*/
/* - <small>{{ option.name }} {{ option.value }}</small> {% endfor %}*/
/* {% endif %}*/
/* {% if product.recurring %} <br />*/
/* - <small>{{ text_recurring }} {{ product.recurring }}</small> {% endif %}*/
/* */
/* */
/* </td> */
/* <td class="text-center cart-close"><button type="button" onclick="cart.remove('{{ product.cart_id }}');" title="{{ button_remove }}" class="btn btn-danger btn-xs"><i class="icon-delete"></i></button></td>*/
/* </tr>*/
/* {% endfor %}*/
/* {% for voucher in vouchers %}*/
/* <tr>*/
/* <td class="text-center"></td>*/
/* <td class="text-left">{{ voucher.description }}</td>*/
/* <td class="text-right">x 1</td>*/
/* <td class="text-right">{{ voucher.amount }}</td>*/
/* <td class="text-center text-danger"><button type="button" onclick="voucher.remove('{{ voucher.key }}');" title="{{ button_remove }}" class="btn btn-danger btn-xs"><i class="icon-delete"></i></button></td>*/
/* </tr>*/
/* {% endfor %}*/
/* </table>*/
/* </li>*/
/* <li>*/
/* <table class="table">*/
/* {% for total in totals %}*/
/* <tr>*/
/* <td class="text-left">{{ total.title ~ " :" }}</td>*/
/* <td class="text-right">{{ total.text }}</td>*/
/* </tr>*/
/* {% endfor %}*/
/* </table>*/
/* <p class="text-center cart-button"><a href="{{ cart }}">{{ text_cart }}</a><a href="{{ checkout }}">{{ text_checkout }}</a></p> */
/* </li>*/
/* {% else %}*/
/* <li>*/
/* <p class="text-center cart-empty">{{ text_empty }}</p>*/
/* </li>*/
/* {% endif %}*/
/* </ul>*/
/* </div>*/
/* */