sterntours/var/cache/dev/twig/af/af64041ab54ed4a33bef52c49c8683c88d9554d98183b1337e21839f1510d08b.php
2020-07-09 12:49:32 +02:00

213 lines
11 KiB
PHP

<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
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;
/* default/components/sidebar/pageSliderSidebarWidget.html.twig */
class __TwigTemplate_64531dcef76dd3cf88156c97d32426ce72d67d1fdddf24baf1fd311733ff7601 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "default/components/sidebar/pageSliderSidebarWidget.html.twig"));
// line 1
if ( !twig_test_empty((isset($context["pages"]) || array_key_exists("pages", $context) ? $context["pages"] : (function () { throw new RuntimeError('Variable "pages" does not exist.', 1, $this->source); })()))) {
// line 2
echo " <div class=\"widget clearfix hidden-xs\">
<div class=\"widget-title\">
<a class=\"collapse-widget\" href=\"#";
// line 5
echo twig_escape_filter($this->env, (isset($context["target_widget"]) || array_key_exists("target_widget", $context) ? $context["target_widget"] : (function () { throw new RuntimeError('Variable "target_widget" does not exist.', 5, $this->source); })()), "html", null, true);
echo "\" data-toggle=\"collapse\" aria-expanded=\"true\">";
echo twig_escape_filter($this->env, (isset($context["slider_title"]) || array_key_exists("slider_title", $context) ? $context["slider_title"] : (function () { throw new RuntimeError('Variable "slider_title" does not exist.', 5, $this->source); })()), "html", null, true);
echo "</a>
</div><!-- end title -->
<div class=\"boxwidget collapse in\" id=\"";
// line 7
echo twig_escape_filter($this->env, (isset($context["target_widget"]) || array_key_exists("target_widget", $context) ? $context["target_widget"] : (function () { throw new RuntimeError('Variable "target_widget" does not exist.', 7, $this->source); })()), "html", null, true);
echo "\" aria-expanded=\"true\">
<div class=\"box-slider\">
";
// line 10
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["pages"]) || array_key_exists("pages", $context) ? $context["pages"] : (function () { throw new RuntimeError('Variable "pages" does not exist.', 10, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["page"]) {
// line 11
echo "
<div class=\"travel-wrapper slide";
// line 12
echo ((twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 12)) ? (" active") : (""));
echo "\">
<a href=\"";
// line 14
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["page"], "urlPath", [], "any", true, true, false, 14)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["page"], "urlPath", [], "any", false, false, false, 14), "javascript:void(0);")) : ("javascript:void(0);")), "html", null, true);
echo "\" class=\"item text-center\">
<div class=\"item-img\">
";
// line 16
$this->loadTemplate("default/components/pageBoxImage.html.twig", "default/components/sidebar/pageSliderSidebarWidget.html.twig", 16)->display($context);
// line 17
echo " </div>
<div class=\"box_mid\">
<div class=\"hl5\">";
// line 20
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["page"], "title", [], "any", false, false, false, 20), "html", null, true);
echo "</div>
<p>";
// line 22
echo twig_escape_filter($this->env, (((twig_get_attribute($this->env, $this->source, $context["page"], "boxBody", [], "any", true, true, false, 22) && !(null === twig_get_attribute($this->env, $this->source, $context["page"], "boxBody", [], "any", false, false, false, 22)))) ? (twig_get_attribute($this->env, $this->source, $context["page"], "boxBody", [], "any", false, false, false, 22)) : (twig_get_attribute($this->env, $this->source, $context["page"], "description", [], "any", false, false, false, 22))), "html", null, true);
echo "</p>
";
// line 24
if (( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["page"], "travelProgram", [], "any", false, false, false, 24)) && (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["page"], "travelProgram", [], "any", false, false, false, 24), "lowestPrice", [], "any", false, false, false, 24) > 0))) {
// line 25
echo " <div class=\"price\">
Für ";
// line 26
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["page"], "travelProgram", [], "any", false, false, false, 26), "lowestPrice", [], "any", false, false, false, 26)), "html", null, true);
echo ",- € p.P.
</div>
";
}
// line 29
echo " </div>
</a>
</div><!-- end travel-wrapper -->
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['page'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 34
echo "
<div class=\"item-switch clearfix\">
<a href=\"javascript:void(0);\" class=\"item-button-prev\">zurück</a>
<a href=\"javascript:void(0);\" class=\"item-button-next\">weiter</a>
</div>
</div>
</div>
</div><!-- end widget -->
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "default/components/sidebar/pageSliderSidebarWidget.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 136 => 34, 118 => 29, 112 => 26, 109 => 25, 107 => 24, 102 => 22, 97 => 20, 92 => 17, 90 => 16, 85 => 14, 80 => 12, 77 => 11, 60 => 10, 54 => 7, 47 => 5, 42 => 2, 40 => 1,);
}
public function getSourceContext()
{
return new Source("{% if pages is not empty %}
<div class=\"widget clearfix hidden-xs\">
<div class=\"widget-title\">
<a class=\"collapse-widget\" href=\"#{{ target_widget }}\" data-toggle=\"collapse\" aria-expanded=\"true\">{{ slider_title }}</a>
</div><!-- end title -->
<div class=\"boxwidget collapse in\" id=\"{{ target_widget }}\" aria-expanded=\"true\">
<div class=\"box-slider\">
{% for page in pages %}
<div class=\"travel-wrapper slide{{ loop.first ? ' active' }}\">
<a href=\"{{ page.urlPath|default('javascript:void(0);') }}\" class=\"item text-center\">
<div class=\"item-img\">
{% include 'default/components/pageBoxImage.html.twig' %}
</div>
<div class=\"box_mid\">
<div class=\"hl5\">{{ page.title }}</div>
<p>{{ page.boxBody ?? page.description }}</p>
{% if page.travelProgram is not empty and page.travelProgram.lowestPrice > 0 %}
<div class=\"price\">
Für {{ page.travelProgram.lowestPrice|number_format }},- € p.P.
</div>
{% endif %}
</div>
</a>
</div><!-- end travel-wrapper -->
{% endfor %}
<div class=\"item-switch clearfix\">
<a href=\"javascript:void(0);\" class=\"item-button-prev\">zurück</a>
<a href=\"javascript:void(0);\" class=\"item-button-next\">weiter</a>
</div>
</div>
</div>
</div><!-- end widget -->
{% endif %}", "default/components/sidebar/pageSliderSidebarWidget.html.twig", "/Users/kadmin/Websites/sterntours-3/app/Resources/views/default/components/sidebar/pageSliderSidebarWidget.html.twig");
}
}