<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* component/product/list/box/default.html.twig */
class __TwigTemplate_0970138c984b46661885bbac8a5c7853c79ad947205eb99a4f076d66d82f3ad7 extends \Twig\Template
{
public function __construct(Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "component/product/list/box/default.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "component/product/list/box/default.html.twig"));
// line 1
$context["id"] = $this->getAttribute((isset($context["product"]) ? $context["product"] : $this->getContext($context, "product")), "getId", [], "method");
// line 2
$context["name"] = $this->getAttribute((isset($context["product"]) ? $context["product"] : $this->getContext($context, "product")), "getName", [], "method");
// line 3
$context["link"] = $this->getAttribute((isset($context["product"]) ? $context["product"] : $this->getContext($context, "product")), "getLink", [], "method");
// line 4
$context["annot"] = strip_tags($this->getAttribute((isset($context["product"]) ? $context["product"] : $this->getContext($context, "product")), "getAnnotation", [], "method"));
// line 5
$context["price"] = $this->getAttribute((isset($context["price_calculator"]) ? $context["price_calculator"] : $this->getContext($context, "price_calculator")), "calculate", [0 => (isset($context["product"]) ? $context["product"] : $this->getContext($context, "product"))], "method");
// line 6
$context["availability"] = $this->getAttribute((isset($context["availability"]) ? $context["availability"] : $this->getContext($context, "availability")), "get", [0 => (isset($context["product"]) ? $context["product"] : $this->getContext($context, "product"))], "method");
// line 7
echo "
<div class=\"productList__item col-xs-12 col-md-";
// line 8
echo twig_escape_filter($this->env, (isset($context["colSize"]) ? $context["colSize"] : $this->getContext($context, "colSize")), "html", null, true);
echo "\">
<div class=\"productList__inner\">
<a class=\"productList__img block cf\" href=\"";
// line 10
echo twig_escape_filter($this->env, (isset($context["link"]) ? $context["link"] : $this->getContext($context, "link")), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, (isset($context["name"]) ? $context["name"] : $this->getContext($context, "name")), "html", null, true);
echo "\" data-gtm=\"";
echo twig_escape_filter($this->env, $this->getAttribute((isset($context["product"]) ? $context["product"] : $this->getContext($context, "product")), "getGtmId", [], "method"), "html", null, true);
echo "\">
<img src=\"";
// line 11
echo twig_escape_filter($this->env, $this->getAttribute((isset($context["product"]) ? $context["product"] : $this->getContext($context, "product")), "getImageUri", [0 => "m"], "method"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, (isset($context["name"]) ? $context["name"] : $this->getContext($context, "name")), "html", null, true);
echo "\">
";
// line 13
$this->loadTemplate("component/product/list/labels.html.twig", "component/product/list/box/default.html.twig", 13)->display(twig_array_merge($context, ["price" => (isset($context["price"]) ? $context["price"] : $this->getContext($context, "price")), "product" => (isset($context["product"]) ? $context["product"] : $this->getContext($context, "product"))]));
// line 14
echo "
</a>
";
// line 16
$this->loadTemplate("component/product/common/rating/stars.html.twig", "component/product/list/box/default.html.twig", 16)->display(twig_array_merge($context, ["stars" => $this->getAttribute((isset($context["product"]) ? $context["product"] : $this->getContext($context, "product")), "getUserRatingStars", [], "method"), "rating" => $this->getAttribute((isset($context["product"]) ? $context["product"] : $this->getContext($context, "product")), "getUserRating", [], "method")]));
// line 17
echo " <h3 class=\"productList__title\"><a href=\"";
echo twig_escape_filter($this->env, (isset($context["link"]) ? $context["link"] : $this->getContext($context, "link")), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, (isset($context["name"]) ? $context["name"] : $this->getContext($context, "name")), "html", null, true);
echo "\" data-gtm=\"";
echo twig_escape_filter($this->env, $this->getAttribute((isset($context["product"]) ? $context["product"] : $this->getContext($context, "product")), "getGtmId", [], "method"), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, (((twig_length_filter($this->env, (isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"))) > (isset($context["nameLength"]) ? $context["nameLength"] : $this->getContext($context, "nameLength")))) ? ((twig_slice($this->env, (isset($context["name"]) ? $context["name"] : $this->getContext($context, "name")), 0, (isset($context["nameLength"]) ? $context["nameLength"] : $this->getContext($context, "nameLength"))) . "...")) : ((isset($context["name"]) ? $context["name"] : $this->getContext($context, "name")))), "html", null, true);
echo "</a></h3>
<div class=\"productList__info cf\">
<div class=\"productList__info__col price\">
";
// line 21
if (($this->getAttribute((isset($context["price"]) ? $context["price"] : $this->getContext($context, "price")), "excVat", []) > 0)) {
// line 22
echo " ";
// line 23
echo " ";
$context["priceToCompare"] = (($this->getAttribute((isset($context["settings"]) ? $context["settings"] : $this->getContext($context, "settings")), "priceIncVat", [])) ? ($this->getAttribute((isset($context["price"]) ? $context["price"] : $this->getContext($context, "price")), "incVat", [])) : ($this->getAttribute((isset($context["price"]) ? $context["price"] : $this->getContext($context, "price")), "excVat", [])));
// line 24
echo " ";
if (((($this->getAttribute((isset($context["price"]) ? $context["price"] : null), "rrp", [], "any", true, true) && ($this->getAttribute((isset($context["price"]) ? $context["price"] : $this->getContext($context, "price")), "rrp", []) > 0)) && ($this->getAttribute((isset($context["price"]) ? $context["price"] : $this->getContext($context, "price")), "rrp", []) > (isset($context["priceToCompare"]) ? $context["priceToCompare"] : $this->getContext($context, "priceToCompare")))) && !($this->getAttribute((isset($context["product"]) ? $context["product"] : $this->getContext($context, "product")), "getTypes", []) && twig_length_filter($this->env, $this->getAttribute((isset($context["product"]) ? $context["product"] : $this->getContext($context, "product")), "getVariant", []))))) {
// line 25
echo "
<small class=\"price price--comPrice\">
";
// line 27
if ($this->getAttribute((isset($context["category"]) ? $context["category"] : $this->getContext($context, "category")), "getDecimalPricesStatus", [], "method")) {
// line 28
echo " ";
echo $this->getAttribute((isset($context["currency"]) ? $context["currency"] : $this->getContext($context, "currency")), "formatCustom", [0 => $this->getAttribute((isset($context["price"]) ? $context["price"] : $this->getContext($context, "price")), "rrp", [])], "method");
echo "
";
} else {
// line 30
echo " ";
echo $this->getAttribute((isset($context["currency"]) ? $context["currency"] : $this->getContext($context, "currency")), "format", [0 => $this->getAttribute((isset($context["price"]) ? $context["price"] : $this->getContext($context, "price")), "rrp", [])], "method");
echo "
";
}
// line 32
echo " </small>
";
}
// line 35
echo " ";
// line 36
echo " ";
if ($this->getAttribute((isset($context["settings"]) ? $context["settings"] : $this->getContext($context, "settings")), "priceIncVat", [])) {
// line 37
echo "
";
// line 38
if ($this->getAttribute((isset($context["category"]) ? $context["category"] : $this->getContext($context, "category")), "getDecimalPricesStatus", [], "method")) {
// line 39
echo " <strong class=\"price price--incVat\">";
echo $this->getAttribute((isset($context["currency"]) ? $context["currency"] : $this->getContext($context, "currency")), "formatCustom", [0 => $this->getAttribute((isset($context["price"]) ? $context["price"] : $this->getContext($context, "price")), "incVat", [])], "method");
echo "</strong>
";
// line 40
if ($this->getAttribute((isset($context["settings"]) ? $context["settings"] : $this->getContext($context, "settings")), "listPriceExtended", [])) {
// line 41
echo " <div class=\"price price--excVat\">";
echo $this->getAttribute((isset($context["currency"]) ? $context["currency"] : $this->getContext($context, "currency")), "formatCustom", [0 => $this->getAttribute((isset($context["price"]) ? $context["price"] : $this->getContext($context, "price")), "excVat", [])], "method");
echo " ";
echo twig_escape_filter($this->env, $this->getAttribute((isset($context["translator"]) ? $context["translator"] : $this->getContext($context, "translator")), "getValue", [0 => "BEZ_DPH"], "method"), "html", null, true);
echo "</div>
";
}
// line 43
echo " ";
} else {
// line 44
echo " <strong class=\"price price--incVat\">";
echo $this->getAttribute((isset($context["currency"]) ? $context["currency"] : $this->getContext($context, "currency")), "format", [0 => $this->getAttribute((isset($context["price"]) ? $context["price"] : $this->getContext($context, "price")), "incVat", [])], "method");
echo "</strong>
";
// line 45
if ($this->getAttribute((isset($context["settings"]) ? $context["settings"] : $this->getContext($context, "settings")), "listPriceExtended", [])) {
// line 46
echo " <div class=\"price price--excVat\">";
echo $this->getAttribute((isset($context["currency"]) ? $context["currency"] : $this->getContext($context, "currency")), "format", [0 => $this->getAttribute((isset($context["price"]) ? $context["price"] : $this->getContext($context, "price")), "excVat", [])], "method");
echo " ";
echo twig_escape_filter($this->env, $this->getAttribute((isset($context["translator"]) ? $context["translator"] : $this->getContext($context, "translator")), "getValue", [0 => "BEZ_DPH"], "method"), "html", null, true);
echo "</div>
";
}
// line 48
echo " ";
}
// line 49
echo "
";
} else {
// line 51
echo "
";
// line 52
if ($this->getAttribute((isset($context["category"]) ? $context["category"] : $this->getContext($context, "category")), "getDecimalPricesStatus", [], "method")) {
// line 53
echo " <strong class=\"price price--incVat\">";
echo $this->getAttribute((isset($context["currency"]) ? $context["currency"] : $this->getContext($context, "currency")), "formatCustom", [0 => $this->getAttribute((isset($context["price"]) ? $context["price"] : $this->getContext($context, "price")), "excVat", [])], "method");
echo "</strong> ";
echo twig_escape_filter($this->env, $this->getAttribute((isset($context["translator"]) ? $context["translator"] : $this->getContext($context, "translator")), "getValue", [0 => "BEZ_DPH", 1 => "bez DPH"], "method"), "html", null, true);
// line 54
echo " ";
if ($this->getAttribute((isset($context["settings"]) ? $context["settings"] : $this->getContext($context, "settings")), "listPriceExtended", [])) {
// line 55
echo " <div class=\"price price--excVat\">";
echo $this->getAttribute((isset($context["currency"]) ? $context["currency"] : $this->getContext($context, "currency")), "formatCustom", [0 => $this->getAttribute((isset($context["price"]) ? $context["price"] : $this->getContext($context, "price")), "incVat", [])], "method");
echo " ";
echo twig_escape_filter($this->env, $this->getAttribute((isset($context["translator"]) ? $context["translator"] : $this->getContext($context, "translator")), "getValue", [0 => "S_DPH"], "method"), "html", null, true);
echo "</div>
";
}
// line 57
echo " ";
} else {
// line 58
echo " <strong class=\"price price--incVat\">";
echo $this->getAttribute((isset($context["currency"]) ? $context["currency"] : $this->getContext($context, "currency")), "format", [0 => $this->getAttribute((isset($context["price"]) ? $context["price"] : $this->getContext($context, "price")), "excVat", [])], "method");
echo "</strong> ";
echo twig_escape_filter($this->env, $this->getAttribute((isset($context["translator"]) ? $context["translator"] : $this->getContext($context, "translator")), "getValue", [0 => "BEZ_DPH", 1 => "bez DPH"], "method"), "html", null, true);
// line 59
echo " ";
if ($this->getAttribute((isset($context["settings"]) ? $context["settings"] : $this->getContext($context, "settings")), "listPriceExtended", [])) {
// line 60
echo " <div class=\"price price--excVat\">";
echo $this->getAttribute((isset($context["currency"]) ? $context["currency"] : $this->getContext($context, "currency")), "format", [0 => $this->getAttribute((isset($context["price"]) ? $context["price"] : $this->getContext($context, "price")), "incVat", [])], "method");
echo " ";
echo twig_escape_filter($this->env, $this->getAttribute((isset($context["translator"]) ? $context["translator"] : $this->getContext($context, "translator")), "getValue", [0 => "S_DPH"], "method"), "html", null, true);
echo "</div>
";
}
// line 62
echo " ";
}
// line 63
echo "
";
}
// line 65
echo " ";
} else {
// line 66
echo " <strong class=\"price price--incVat\">";
echo twig_escape_filter($this->env, $this->getAttribute((isset($context["translator"]) ? $context["translator"] : $this->getContext($context, "translator")), "getValue", [0 => "NA_DOTAZ", 1 => "Na dotaz"], "method"), "html", null, true);
echo "</strong>
";
}
// line 68
echo " </div>
<div class=\"productList__info__col action\">
";
// line 71
if (($this->getAttribute((isset($context["partner_config"]) ? $context["partner_config"] : $this->getContext($context, "partner_config")), "getAllowListBuy", []) && ($this->getAttribute((isset($context["product"]) ? $context["product"] : $this->getContext($context, "product")), "getPrice", []) > 0))) {
echo " ";
// line 72
echo " ";
if (($this->getAttribute((isset($context["product"]) ? $context["product"] : $this->getContext($context, "product")), "getTypes", []) && twig_length_filter($this->env, $this->getAttribute((isset($context["product"]) ? $context["product"] : $this->getContext($context, "product")), "getVariant", [])))) {
// line 73
echo " <a href=\"";
echo twig_escape_filter($this->env, (isset($context["link"]) ? $context["link"] : $this->getContext($context, "link")), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, (isset($context["name"]) ? $context["name"] : $this->getContext($context, "name")), "html", null, true);
echo "\" class=\"btn btn-primary btn-detail pull-right\" data-gtm=\"";
echo twig_escape_filter($this->env, $this->getAttribute((isset($context["product"]) ? $context["product"] : $this->getContext($context, "product")), "getGtmId", [], "method"), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->getAttribute((isset($context["translator"]) ? $context["translator"] : $this->getContext($context, "translator")), "getValue", [0 => "DETAIL"], "method"), "html", null, true);
echo "</a>
";
} else {
// line 75
echo " ";
// line 76
echo " ";
$this->loadTemplate("component/product/common/purchase_form/list.html.erb", "component/product/list/box/default.html.twig", 76)->display(twig_array_merge($context, ["product" => (isset($context["product"]) ? $context["product"] : $this->getContext($context, "product"))]));
// line 77
echo " ";
// line 78
echo " ";
}
// line 79
echo " ";
} else {
// line 80
echo " <a href=\"";
echo twig_escape_filter($this->env, (isset($context["link"]) ? $context["link"] : $this->getContext($context, "link")), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, (isset($context["name"]) ? $context["name"] : $this->getContext($context, "name")), "html", null, true);
echo "\" class=\"btn btn-primary btn-detail pull-right\" data-gtm=\"";
echo twig_escape_filter($this->env, $this->getAttribute((isset($context["product"]) ? $context["product"] : $this->getContext($context, "product")), "getGtmId", [], "method"), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->getAttribute((isset($context["translator"]) ? $context["translator"] : $this->getContext($context, "translator")), "getValue", [0 => "DETAIL"], "method"), "html", null, true);
echo "</a>
";
}
// line 82
echo " </div>
</div>
";
// line 85
echo " <div class=\"productList__avail\">
";
// line 86
if ((isset($context["enableCompare"]) ? $context["enableCompare"] : $this->getContext($context, "enableCompare"))) {
// line 87
echo " ";
if ($this->getAttribute((isset($context["comparator"]) ? $context["comparator"] : $this->getContext($context, "comparator")), "hasProduct", [0 => (isset($context["id"]) ? $context["id"] : $this->getContext($context, "id"))], "method")) {
// line 88
echo " <div class=\"productList__avail__col bg-compare\">
<a class=\"compare\" data-compare=\"1\" href=\"/_product-compare/toggle/";
// line 89
echo twig_escape_filter($this->env, $this->getAttribute((isset($context["product"]) ? $context["product"] : $this->getContext($context, "product")), "getId", [], "method"), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, $this->getAttribute((isset($context["translator"]) ? $context["translator"] : $this->getContext($context, "translator")), "getValue", [0 => "REMOVE_FROM_COMPARE"], "method"), "html", null, true);
echo "\">
<i class=\"icon-compare\"></i> ";
// line 90
echo twig_escape_filter($this->env, $this->getAttribute((isset($context["translator"]) ? $context["translator"] : $this->getContext($context, "translator")), "getValue", [0 => "POROVNANI"], "method"), "html", null, true);
echo "
</a>
</div>
";
} else {
// line 94
echo " <div class=\"productList__avail__col\">
<a class=\"compare\" data-compare=\"1\" href=\"/_product-compare/toggle/";
// line 95
echo twig_escape_filter($this->env, $this->getAttribute((isset($context["product"]) ? $context["product"] : $this->getContext($context, "product")), "getId", [], "method"), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, $this->getAttribute((isset($context["translator"]) ? $context["translator"] : $this->getContext($context, "translator")), "getValue", [0 => "ADD_TO_COMPARE"], "method"), "html", null, true);
echo "\">
<i class=\"icon-compare\"></i> ";
// line 96
echo twig_escape_filter($this->env, $this->getAttribute((isset($context["translator"]) ? $context["translator"] : $this->getContext($context, "translator")), "getValue", [0 => "POROVNANI"], "method"), "html", null, true);
echo "
</a>
</div>
";
}
// line 100
echo " ";
}
// line 101
echo " <div class=\"productList__avail__col\">
";
// line 102
if (twig_length_filter($this->env, $this->getAttribute((isset($context["product"]) ? $context["product"] : $this->getContext($context, "product")), "getTypes", []))) {
// line 103
echo " ";
$this->loadTemplate("component/product/common/availability/avail-types.html.twig", "component/product/list/box/default.html.twig", 103)->display($context);
// line 104
echo " ";
} else {
// line 105
echo " ";
$this->loadTemplate("component/product/common/availability/avail-basic.html.twig", "component/product/list/box/default.html.twig", 105)->display($context);
// line 106
echo " ";
}
// line 107
echo " </div>
</div>
";
// line 110
echo " <div class=\"productList__desc\">";
echo (((twig_length_filter($this->env, (isset($context["annot"]) ? $context["annot"] : $this->getContext($context, "annot"))) > (isset($context["annotLength"]) ? $context["annotLength"] : $this->getContext($context, "annotLength")))) ? ((twig_slice($this->env, (isset($context["annot"]) ? $context["annot"] : $this->getContext($context, "annot")), 0, (isset($context["annotLength"]) ? $context["annotLength"] : $this->getContext($context, "annotLength"))) . "...")) : ((isset($context["annot"]) ? $context["annot"] : $this->getContext($context, "annot"))));
echo "</div>
";
// line 112
echo " </div>
</div>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "component/product/list/box/default.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 353 => 112, 348 => 110, 344 => 107, 341 => 106, 338 => 105, 335 => 104, 332 => 103, 330 => 102, 327 => 101, 324 => 100, 317 => 96, 311 => 95, 308 => 94, 301 => 90, 295 => 89, 292 => 88, 289 => 87, 287 => 86, 284 => 85, 280 => 82, 268 => 80, 265 => 79, 262 => 78, 260 => 77, 257 => 76, 255 => 75, 243 => 73, 240 => 72, 237 => 71, 232 => 68, 226 => 66, 223 => 65, 219 => 63, 216 => 62, 208 => 60, 205 => 59, 200 => 58, 197 => 57, 189 => 55, 186 => 54, 181 => 53, 179 => 52, 176 => 51, 172 => 49, 169 => 48, 161 => 46, 159 => 45, 154 => 44, 151 => 43, 143 => 41, 141 => 40, 136 => 39, 134 => 38, 131 => 37, 128 => 36, 126 => 35, 121 => 32, 115 => 30, 109 => 28, 107 => 27, 103 => 25, 100 => 24, 97 => 23, 95 => 22, 93 => 21, 79 => 17, 77 => 16, 73 => 14, 71 => 13, 64 => 11, 56 => 10, 51 => 8, 48 => 7, 46 => 6, 44 => 5, 42 => 4, 40 => 3, 38 => 2, 36 => 1,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Source("{% set id = product.getId() %}
{% set name = product.getName() %}
{% set link = product.getLink() %}
{% set annot = product.getAnnotation() | striptags %}
{% set price = price_calculator.calculate(product) %}
{% set availability = availability.get(product) %}
<div class=\"productList__item col-xs-12 col-md-{{ colSize }}\">
<div class=\"productList__inner\">
<a class=\"productList__img block cf\" href=\"{{ link }}\" title=\"{{ name }}\" data-gtm=\"{{ product.getGtmId() }}\">
<img src=\"{{ product.getImageUri('m') }}\" alt=\"{{ name }}\">
{% include 'component/product/list/labels.html.twig' with { price: price, product: product} %}
</a>
{% include 'component/product/common/rating/stars.html.twig' with { 'stars': product.getUserRatingStars(), 'rating': product.getUserRating() } %}
<h3 class=\"productList__title\"><a href=\"{{ link }}\" title=\"{{ name }}\" data-gtm=\"{{ product.getGtmId() }}\">{{ name | length > nameLength ? name | slice(0, nameLength) ~ '...' : name }}</a></h3>
<div class=\"productList__info cf\">
<div class=\"productList__info__col price\">
{% if price.excVat > 0.00 %}
{# Bezna cena #}
{% set priceToCompare = settings.priceIncVat ? price.incVat : price.excVat %}
{% if price.rrp is defined and price.rrp > 0 and price.rrp > priceToCompare and not (product.getTypes and product.getVariant|length) %}
<small class=\"price price--comPrice\">
{% if category.getDecimalPricesStatus() %}
{{ currency.formatCustom(price.rrp)|raw }}
{% else %}
{{ currency.format(price.rrp)|raw }}
{% endif %}
</small>
{% endif %}
{# Cena s a bez DPH #}
{% if settings.priceIncVat %}
{% if category.getDecimalPricesStatus() %}
<strong class=\"price price--incVat\">{{ currency.formatCustom(price.incVat)|raw }}</strong>
{% if settings.listPriceExtended %}
<div class=\"price price--excVat\">{{ currency.formatCustom(price.excVat)|raw }} {{ translator.getValue('BEZ_DPH') }}</div>
{% endif %}
{% else %}
<strong class=\"price price--incVat\">{{ currency.format(price.incVat)|raw }}</strong>
{% if settings.listPriceExtended %}
<div class=\"price price--excVat\">{{ currency.format(price.excVat)|raw }} {{ translator.getValue('BEZ_DPH') }}</div>
{% endif %}
{% endif %}
{% else %}
{% if category.getDecimalPricesStatus() %}
<strong class=\"price price--incVat\">{{ currency.formatCustom(price.excVat)|raw }}</strong> {{ translator.getValue('BEZ_DPH', 'bez DPH') }}{# EJ V080601 11.10.2021 #}
{% if settings.listPriceExtended %}
<div class=\"price price--excVat\">{{ currency.formatCustom(price.incVat)|raw }} {{ translator.getValue('S_DPH') }}</div>
{% endif %}
{% else %}
<strong class=\"price price--incVat\">{{ currency.format(price.excVat)|raw }}</strong> {{ translator.getValue('BEZ_DPH', 'bez DPH') }}{# EJ V080601 11.10.2021 #}
{% if settings.listPriceExtended %}
<div class=\"price price--excVat\">{{ currency.format(price.incVat)|raw }} {{ translator.getValue('S_DPH') }}</div>
{% endif %}
{% endif %}
{% endif %}
{% else %}
<strong class=\"price price--incVat\">{{ translator.getValue('NA_DOTAZ', 'Na dotaz') }}</strong>
{% endif %}
</div>
<div class=\"productList__info__col action\">
{% if partner_config.getAllowListBuy and product.getPrice > 0 %} {# DS 2021-06-28 V078926 nákup z listu jen pokud má produkt cenu #}
{% if product.getTypes and product.getVariant|length %}
<a href=\"{{ link }}\" title=\"{{ name }}\" class=\"btn btn-primary btn-detail pull-right\" data-gtm=\"{{ product.getGtmId() }}\">{{ translator.getValue('DETAIL') }}</a>
{% else %}
{# DONE: includnout sablonu jednoducheho nakupnho formu, zbytek by mel fungovat automaticky #}
{% include 'component/product/common/purchase_form/list.html.erb' with { product: product } %}
{# <a href=\"{{ link }}\" title=\"{{ name }}\" class=\"buyable btn btn-primary btn-detail pull-right\">{{ translator.getValue('PRODUCT_TYPE_BUY') }}</a> #}
{% endif %}
{% else %}
<a href=\"{{ link }}\" title=\"{{ name }}\" class=\"btn btn-primary btn-detail pull-right\" data-gtm=\"{{ product.getGtmId() }}\">{{ translator.getValue('DETAIL') }}</a>
{% endif %}
</div>
</div>
{# Dostupnost produktu + porovnani #}
<div class=\"productList__avail\">
{% if enableCompare %}
{% if comparator.hasProduct(id) %}
<div class=\"productList__avail__col bg-compare\">
<a class=\"compare\" data-compare=\"1\" href=\"/_product-compare/toggle/{{ product.getId() }}\" title=\"{{ translator.getValue('REMOVE_FROM_COMPARE') }}\">
<i class=\"icon-compare\"></i> {{ translator.getValue('POROVNANI') }}
</a>
</div>
{% else %}
<div class=\"productList__avail__col\">
<a class=\"compare\" data-compare=\"1\" href=\"/_product-compare/toggle/{{ product.getId() }}\" title=\"{{ translator.getValue('ADD_TO_COMPARE') }}\">
<i class=\"icon-compare\"></i> {{ translator.getValue('POROVNANI') }}
</a>
</div>
{% endif %}
{% endif %}
<div class=\"productList__avail__col\">
{% if product.getTypes|length %}
{% include 'component/product/common/availability/avail-types.html.twig' %}
{% else %}
{% include 'component/product/common/availability/avail-basic.html.twig' %}
{% endif %}
</div>
</div>
{% autoescape false %}
<div class=\"productList__desc\">{{ annot | length > annotLength ? annot | slice(0, annotLength) ~ '...' : annot }}</div>
{% endautoescape %}
</div>
</div>
", "component/product/list/box/default.html.twig", "/home/www/vac-star-b2c15/custom/src/EshopBundle/Resources/views/component/product/list/box/default.html.twig");
}
}