182 lines
8.7 KiB
PHP
182 lines
8.7 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/multiPageBoxCarousel.html.twig */
|
|
class __TwigTemplate_48009a26b7f7e6f576036fc0e565a01c6bde59ababf8e31dd7bf1c3ac49347f5 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/multiPageBoxCarousel.html.twig"));
|
|
|
|
// line 1
|
|
echo "<div class=\"owl-fullwidth owl-carousel owl-theme\">
|
|
|
|
";
|
|
// line 3
|
|
$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.', 3, $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 4
|
|
echo " <div class=\"owl-item-full\">
|
|
<div class=\"travel-wrapper get-box-link\">
|
|
<div class=\"item text-center\">
|
|
|
|
<div class=\"item-img\">
|
|
";
|
|
// line 9
|
|
$this->loadTemplate("default/components/pageBoxImage.html.twig", "default/components/multiPageBoxCarousel.html.twig", 9)->display($context);
|
|
// line 10
|
|
echo " </div>
|
|
<div class=\"box_mid\">
|
|
|
|
<div class=\"hl5\">";
|
|
// line 13
|
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["page"], "title", [], "any", false, false, false, 13), "html", null, true);
|
|
echo "</div>
|
|
|
|
";
|
|
// line 15
|
|
if ( !twig_test_empty((((twig_get_attribute($this->env, $this->source, $context["page"], "boxBody", [], "any", true, true, false, 15) && !(null === twig_get_attribute($this->env, $this->source, $context["page"], "boxBody", [], "any", false, false, false, 15)))) ? (twig_get_attribute($this->env, $this->source, $context["page"], "boxBody", [], "any", false, false, false, 15)) : (twig_get_attribute($this->env, $this->source, $context["page"], "description", [], "any", false, false, false, 15))))) {
|
|
// line 16
|
|
echo " <p>";
|
|
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["page"], "boxBody", [], "any", true, true, false, 16)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["page"], "boxBody", [], "any", false, false, false, 16), twig_get_attribute($this->env, $this->source, $context["page"], "description", [], "any", false, false, false, 16))) : (twig_get_attribute($this->env, $this->source, $context["page"], "description", [], "any", false, false, false, 16))), "html", null, true);
|
|
echo "</p>
|
|
";
|
|
}
|
|
// line 18
|
|
echo "
|
|
";
|
|
// line 19
|
|
if (( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["page"], "travelProgram", [], "any", false, false, false, 19)) && (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["page"], "travelProgram", [], "any", false, false, false, 19), "lowestPrice", [], "any", false, false, false, 19) > 0))) {
|
|
// line 20
|
|
echo " <div class=\"price\">
|
|
Für ";
|
|
// line 21
|
|
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, 21), "lowestPrice", [], "any", false, false, false, 21)), "html", null, true);
|
|
echo ",- € p.P.
|
|
</div>
|
|
";
|
|
}
|
|
// line 24
|
|
echo "
|
|
</div>
|
|
<a class=\"item-button is-box-link dobble_line\" href=\"";
|
|
// line 26
|
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["page"], "urlPath", [], "any", false, false, false, 26), "html", null, true);
|
|
echo "\"><span>ansehen</span></a>
|
|
</div>
|
|
</div><!-- end travel-wrapper -->
|
|
</div>
|
|
";
|
|
++$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 31
|
|
echo "
|
|
</div>";
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
|
|
|
|
}
|
|
|
|
public function getTemplateName()
|
|
{
|
|
return "default/components/multiPageBoxCarousel.html.twig";
|
|
}
|
|
|
|
public function isTraitable()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public function getDebugInfo()
|
|
{
|
|
return array ( 125 => 31, 106 => 26, 102 => 24, 96 => 21, 93 => 20, 91 => 19, 88 => 18, 82 => 16, 80 => 15, 75 => 13, 70 => 10, 68 => 9, 61 => 4, 44 => 3, 40 => 1,);
|
|
}
|
|
|
|
public function getSourceContext()
|
|
{
|
|
return new Source("<div class=\"owl-fullwidth owl-carousel owl-theme\">
|
|
|
|
{% for page in pages %}
|
|
<div class=\"owl-item-full\">
|
|
<div class=\"travel-wrapper get-box-link\">
|
|
<div 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>
|
|
|
|
{% if (page.boxBody ?? page.description) is not empty %}
|
|
<p>{{ page.boxBody|default(page.description) }}</p>
|
|
{% endif %}
|
|
|
|
{% 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 class=\"item-button is-box-link dobble_line\" href=\"{{ page.urlPath }}\"><span>ansehen</span></a>
|
|
</div>
|
|
</div><!-- end travel-wrapper -->
|
|
</div>
|
|
{% endfor %}
|
|
|
|
</div>", "default/components/multiPageBoxCarousel.html.twig", "/Users/kadmin/Websites/sterntours-3/app/Resources/views/default/components/multiPageBoxCarousel.html.twig");
|
|
}
|
|
}
|