<?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;
/* CoreBundle:Magazine:showById.html.twig */
class __TwigTemplate_c84f24db28df79f6e01341bb7bc98fcf88fa7d148ee5950c1840a0f3391dcdb5 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "pageTemplateDefault.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "CoreBundle:Magazine:showById.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "CoreBundle:Magazine:showById.html.twig"));
$this->parent = $this->loadTemplate("pageTemplateDefault.html.twig", "CoreBundle:Magazine:showById.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 2
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 3
echo "
<div class=\"magazine-detail-wrapper\">
";
// line 6
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["magazine"]) || array_key_exists("magazine", $context) ? $context["magazine"] : (function () { throw new RuntimeError('Variable "magazine" does not exist.', 6, $this->source); })()), "HeaderImage", [], "any", false, false, false, 6)) {
// line 7
echo " <div class=\"stage\">
<div class=\"stage-image main stage-with-anchor\">
<div class=\"image-wrapper\">
";
// line 10
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["magazine"]) || array_key_exists("magazine", $context) ? $context["magazine"] : (function () { throw new RuntimeError('Variable "magazine" does not exist.', 10, $this->source); })()), "getHeaderImage", [], "method", false, false, false, 10), "getThumbnail", [0 => ("magazineHeaderImage" . (isset($context["bundleName"]) || array_key_exists("bundleName", $context) ? $context["bundleName"] : (function () { throw new RuntimeError('Variable "bundleName" does not exist.', 10, $this->source); })()))], "method", false, false, false, 10)) {
// line 11
echo " ";
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["magazine"]) || array_key_exists("magazine", $context) ? $context["magazine"] : (function () { throw new RuntimeError('Variable "magazine" does not exist.', 11, $this->source); })()), "getHeaderImage", [], "method", false, false, false, 11), "getThumbnail", [0 => ("magazineHeaderImage" . (isset($context["bundleName"]) || array_key_exists("bundleName", $context) ? $context["bundleName"] : (function () { throw new RuntimeError('Variable "bundleName" does not exist.', 11, $this->source); })()))], "method", false, false, false, 11), "getHTML", [], "method", false, false, false, 11);
echo "
";
// line 13
echo " <style>
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
.stage-image.main .image-wrapper {
width: 100%;
height: 100%;
background: url( ";
// line 18
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentTagExtension']->renderTag($context, "image", "stageFlatImage"), "getSrc", [], "method", false, false, false, 18), "html", null, true);
echo " ) center right 100%/cover no-repeat;
}
.stage-image.main > .image-wrapper img {
display: none;
}
}
</style>
";
// line 27
echo " ";
}
// line 28
echo " </div>
<div class=\"text-container\">
<div class=\"main-content\">
<div class=\"text\">
<div class=\"special-headline\">
<h1>
<span class=\"special-headline-first\">
";
// line 35
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["magazine"]) || array_key_exists("magazine", $context) ? $context["magazine"] : (function () { throw new RuntimeError('Variable "magazine" does not exist.', 35, $this->source); })()), "getSubline", [], "method", false, false, false, 35), "html", null, true);
echo "
</span>
<span class=\"special-headline-second\">
";
// line 38
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["magazine"]) || array_key_exists("magazine", $context) ? $context["magazine"] : (function () { throw new RuntimeError('Variable "magazine" does not exist.', 38, $this->source); })()), "getTitle", [], "method", false, false, false, 38), "html", null, true);
echo "
</span>
</h1>
</div>
</div>
</div>
<div class=\"with-anchor\">
<a href=\"#content-section\" class=\"content-anchor offset-top\"></a>
</div>
</div>
</div>
</div>
";
}
// line 51
echo " ";
// line 52
echo "
";
// line 53
$context["items"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["magazine"]) || array_key_exists("magazine", $context) ? $context["magazine"] : (function () { throw new RuntimeError('Variable "magazine" does not exist.', 53, $this->source); })()), "getElemente", [], "method", false, false, false, 53), "getItems", [], "method", false, false, false, 53);
// line 54
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["items"]) || array_key_exists("items", $context) ? $context["items"] : (function () { throw new RuntimeError('Variable "items" does not exist.', 54, $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["item"]) {
// line 55
echo " ";
$__internal_compile_0 = null;
try {
$__internal_compile_0 = $this->loadTemplate((("FieldCollections/" . twig_get_attribute($this->env, $this->source, $context["item"], "getType", [], "method", false, false, false, 55)) . ".html.twig"), "CoreBundle:Magazine:showById.html.twig", 55);
} catch (LoaderError $e) {
// ignore missing template
}
if ($__internal_compile_0) {
$__internal_compile_0->display($context);
}
// line 56
echo " ";
++$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['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 57
echo "
";
// line 58
$context["magazineSelect"] = twig_get_attribute($this->env, $this->source, (isset($context["magazine"]) || array_key_exists("magazine", $context) ? $context["magazine"] : (function () { throw new RuntimeError('Variable "magazine" does not exist.', 58, $this->source); })()), "getMagazineSelect", [], "method", false, false, false, 58);
// line 59
echo " ";
if ( !twig_test_empty((isset($context["magazineSelect"]) || array_key_exists("magazineSelect", $context) ? $context["magazineSelect"] : (function () { throw new RuntimeError('Variable "magazineSelect" does not exist.', 59, $this->source); })()))) {
// line 60
echo " ";
$this->loadTemplate("Partials/relatedMagazines.html.twig", "CoreBundle:Magazine:showById.html.twig", 60)->display($context);
// line 61
echo " ";
}
// line 62
echo " </div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "CoreBundle:Magazine:showById.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 203 => 62, 200 => 61, 197 => 60, 194 => 59, 192 => 58, 189 => 57, 175 => 56, 164 => 55, 146 => 54, 144 => 53, 141 => 52, 139 => 51, 123 => 38, 117 => 35, 108 => 28, 105 => 27, 94 => 18, 87 => 13, 82 => 11, 80 => 10, 75 => 7, 72 => 6, 68 => 3, 58 => 2, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'pageTemplateDefault.html.twig' %}
{% block content %}
<div class=\"magazine-detail-wrapper\">
{# --- stage --- #}
{% if magazine.HeaderImage %}
<div class=\"stage\">
<div class=\"stage-image main stage-with-anchor\">
<div class=\"image-wrapper\">
{% if magazine.getHeaderImage().getThumbnail(\"magazineHeaderImage\" ~ bundleName) %}
{{ magazine.getHeaderImage().getThumbnail(\"magazineHeaderImage\" ~ bundleName).getHTML() |raw }}
{#IE Fix for thumbnails rendering start#}
<style>
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
.stage-image.main .image-wrapper {
width: 100%;
height: 100%;
background: url( {{ pimcore_image(\"stageFlatImage\").getSrc() }} ) center right 100%/cover no-repeat;
}
.stage-image.main > .image-wrapper img {
display: none;
}
}
</style>
{#IE Fix for thumbnails rendering end#}
{% endif %}
</div>
<div class=\"text-container\">
<div class=\"main-content\">
<div class=\"text\">
<div class=\"special-headline\">
<h1>
<span class=\"special-headline-first\">
{{ magazine.getSubline() }}
</span>
<span class=\"special-headline-second\">
{{ magazine.getTitle() }}
</span>
</h1>
</div>
</div>
</div>
<div class=\"with-anchor\">
<a href=\"#content-section\" class=\"content-anchor offset-top\"></a>
</div>
</div>
</div>
</div>
{% endif %}
{# --- end stage --- #}
{% set items = magazine.getElemente().getItems() %}
{% for key,item in items %}
{% include 'FieldCollections/'~item.getType()~'.html.twig' ignore missing %}
{% endfor %}
{% set magazineSelect = magazine.getMagazineSelect() %}
{% if magazineSelect is not empty %}
{% include 'Partials/relatedMagazines.html.twig' %}
{% endif %}
</div>
{% endblock %}
", "CoreBundle:Magazine:showById.html.twig", "/var/www/share/test.develey/src/CoreBundle/Resources/views/Magazine/showById.html.twig");
}
}