var/cache/dev/twig/c8/c86392e8ffeaae45dfbc3a8789c46862.php line 43

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* @frontend/public/ideas/ideas_virtual_offers.html.twig */
  16. class __TwigTemplate_a700525f2a70868a5a7c7cdec6565f24 extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->blocks = [
  28.             'content' => [$this'block_content'],
  29.         ];
  30.     }
  31.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  32.     {
  33.         // line 1
  34.         return "@frontend/base_layout.html.twig";
  35.     }
  36.     protected function doDisplay(array $context, array $blocks = []): iterable
  37.     {
  38.         $macros $this->macros;
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@frontend/public/ideas/ideas_virtual_offers.html.twig"));
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@frontend/public/ideas/ideas_virtual_offers.html.twig"));
  43.         $this->parent $this->loadTemplate("@frontend/base_layout.html.twig""@frontend/public/ideas/ideas_virtual_offers.html.twig"1);
  44.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47.         
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49.     }
  50.     // line 3
  51.     /**
  52.      * @return iterable<null|scalar|\Stringable>
  53.      */
  54.     public function block_content(array $context, array $blocks = []): iterable
  55.     {
  56.         $macros $this->macros;
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  61.         yield "    
  62.     <div class=\"container\">
  63.         <div class=\"col-md-12\">
  64.             <h1>";
  65.         // line 6
  66.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["heading"]) || array_key_exists("heading"$context) ? $context["heading"] : (function () { throw new RuntimeError('Variable "heading" does not exist.'6$this->source); })()), "html"nulltrue);
  67.         yield "</h1>
  68.         </div>
  69.         <div class=\"col-md-12\">
  70.             <p>
  71.                 Berufsorientierung und Online können sich wunderbar ergänzen! In diesem Informationsbereich haben wir nützliche Informationen und, 
  72.                 Dokumente und Webseiten zusammengefasst, die für die Berufsorientierung nützlich sein können. Angefangen bei unseren Unterrichtsideen, 
  73.                 die auch im Distance Learning durchgeführt werden können, einem freien Zugang zu unserem Klassenprofil bis hin zu nützlichen Links aus 
  74.                 der Welt der Berufsorientierung ist alles dabei. Werfen Sie einen Blick auf unsere Informationssammlung, die stets weiterentwickelt und 
  75.                 aktualisiert wird.  
  76.             </p>
  77.         </div>
  78.         <div class=\"col-md-12\">
  79.             ";
  80.         // line 18
  81.         $context['_parent'] = $context;
  82.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["entities"]) || array_key_exists("entities"$context) ? $context["entities"] : (function () { throw new RuntimeError('Variable "entities" does not exist.'18$this->source); })()));
  83.         $context['loop'] = [
  84.           'parent' => $context['_parent'],
  85.           'index0' => 0,
  86.           'index'  => 1,
  87.           'first'  => true,
  88.         ];
  89.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  90.             $length count($context['_seq']);
  91.             $context['loop']['revindex0'] = $length 1;
  92.             $context['loop']['revindex'] = $length;
  93.             $context['loop']['length'] = $length;
  94.             $context['loop']['last'] = === $length;
  95.         }
  96.         foreach ($context['_seq'] as $context["_key"] => $context["entity"]) {
  97.             // line 19
  98.             yield "                ";
  99.             if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source$context["entity"], "link", [], "any"falsefalsefalse19))) {
  100.                 // line 20
  101.                 yield "                    ";
  102.                 $context["path"] = CoreExtension::getAttribute($this->env$this->source$context["entity"], "link", [], "any"falsefalsefalse20);
  103.                 // line 21
  104.                 yield "                ";
  105.             } else {
  106.                 // line 22
  107.                 yield "                    ";
  108.                 $context["path"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath((isset($context["categoryRoute"]) || array_key_exists("categoryRoute"$context) ? $context["categoryRoute"] : (function () { throw new RuntimeError('Variable "categoryRoute" does not exist.'22$this->source); })()), ["category" => CoreExtension::getAttribute($this->env$this->source$context["entity"], "urlText", [], "any"falsefalsefalse22)]);
  109.                 // line 23
  110.                 yield "                ";
  111.             }
  112.             // line 24
  113.             yield "                ";
  114.             $context["imgUrl"] = $this->extensions['App\Twig\MediaExtensions']->getMediaPublicUrl(CoreExtension::getAttribute($this->env$this->source$context["entity"], "categoryPicture", [], "any"falsefalsefalse24), "reference");
  115.             // line 25
  116.             yield "                ";
  117.             yield from $this->loadTemplate("@frontend/templates/black_box_template.html.twig""@frontend/public/ideas/ideas_virtual_offers.html.twig"25)->unwrap()->yield(CoreExtension::merge($context, ["target" => CoreExtension::getAttribute($this->env$this->source,             // line 26
  118. $context["entity"], "targetText", [], "any"falsefalsefalse26), "path" =>             // line 27
  119. (isset($context["path"]) || array_key_exists("path"$context) ? $context["path"] : (function () { throw new RuntimeError('Variable "path" does not exist.'27$this->source); })()), "bootstrapClass" => "col-xs-6 col-md-4""colorClass" => CoreExtension::getAttribute($this->env$this->source,             // line 29
  120. $context["entity"], "headingColor", [], "any"falsefalsefalse29), "title" => CoreExtension::getAttribute($this->env$this->source,             // line 30
  121. $context["entity"], "heading", [], "any"falsefalsefalse30), "subtitle" => CoreExtension::getAttribute($this->env$this->source,             // line 31
  122. $context["entity"], "description", [], "any"falsefalsefalse31), "src" =>             // line 32
  123. (isset($context["imgUrl"]) || array_key_exists("imgUrl"$context) ? $context["imgUrl"] : (function () { throw new RuntimeError('Variable "imgUrl" does not exist.'32$this->source); })())]));
  124.             // line 33
  125.             yield "            ";
  126.             ++$context['loop']['index0'];
  127.             ++$context['loop']['index'];
  128.             $context['loop']['first'] = false;
  129.             if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  130.                 --$context['loop']['revindex0'];
  131.                 --$context['loop']['revindex'];
  132.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  133.             }
  134.         }
  135.         $_parent $context['_parent'];
  136.         unset($context['_seq'], $context['_key'], $context['entity'], $context['_parent'], $context['loop']);
  137.         $context array_intersect_key($context$_parent) + $_parent;
  138.         // line 34
  139.         yield "        </div>
  140.         ";
  141.         // line 35
  142.         if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["entities"]) || array_key_exists("entities"$context) ? $context["entities"] : (function () { throw new RuntimeError('Variable "entities" does not exist.'35$this->source); })())) < 1)) {
  143.             // line 36
  144.             yield "            <div class=\"col-md-12\" style=\"min-height: 370px;\">
  145.                 <p style=\"margin-top: 40px;\">Aktuell sind noch keine Einträge vorhanden</p>
  146.             </div>                 
  147.         ";
  148.         }
  149.         // line 40
  150.         yield "    </div>
  151.     <div class=\"footer-spacer\"></div>
  152. ";
  153.         
  154.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  155.         
  156.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  157.         yield from [];
  158.     }
  159.     /**
  160.      * @codeCoverageIgnore
  161.      */
  162.     public function getTemplateName(): string
  163.     {
  164.         return "@frontend/public/ideas/ideas_virtual_offers.html.twig";
  165.     }
  166.     /**
  167.      * @codeCoverageIgnore
  168.      */
  169.     public function isTraitable(): bool
  170.     {
  171.         return false;
  172.     }
  173.     /**
  174.      * @codeCoverageIgnore
  175.      */
  176.     public function getDebugInfo(): array
  177.     {
  178.         return array (  164 => 40,  158 => 36,  156 => 35,  153 => 34,  139 => 33,  137 => 32,  136 => 31,  135 => 30,  134 => 29,  133 => 27,  132 => 26,  130 => 25,  127 => 24,  124 => 23,  121 => 22,  118 => 21,  115 => 20,  112 => 19,  95 => 18,  80 => 6,  63 => 3,  40 => 1,);
  179.     }
  180.     public function getSourceContext(): Source
  181.     {
  182.         return new Source("{% extends \"@frontend/base_layout.html.twig\" %}
  183. {% block content %}    
  184.     <div class=\"container\">
  185.         <div class=\"col-md-12\">
  186.             <h1>{{ heading }}</h1>
  187.         </div>
  188.         <div class=\"col-md-12\">
  189.             <p>
  190.                 Berufsorientierung und Online können sich wunderbar ergänzen! In diesem Informationsbereich haben wir nützliche Informationen und, 
  191.                 Dokumente und Webseiten zusammengefasst, die für die Berufsorientierung nützlich sein können. Angefangen bei unseren Unterrichtsideen, 
  192.                 die auch im Distance Learning durchgeführt werden können, einem freien Zugang zu unserem Klassenprofil bis hin zu nützlichen Links aus 
  193.                 der Welt der Berufsorientierung ist alles dabei. Werfen Sie einen Blick auf unsere Informationssammlung, die stets weiterentwickelt und 
  194.                 aktualisiert wird.  
  195.             </p>
  196.         </div>
  197.         <div class=\"col-md-12\">
  198.             {% for entity in entities %}
  199.                 {% if entity.link is not empty %}
  200.                     {% set path=entity.link %}
  201.                 {% else %}
  202.                     {% set path=path(categoryRoute, {'category':entity.urlText}) %}
  203.                 {% endif %}
  204.                 {% set imgUrl = media_public_url(entity.categoryPicture, 'reference') %}
  205.                 {% include '@frontend/templates/black_box_template.html.twig' with {
  206.                     'target': entity.targetText,
  207.                     'path': path, 
  208.                     'bootstrapClass':'col-xs-6 col-md-4', 
  209.                     'colorClass': entity.headingColor, 
  210.                     'title': entity.heading, 
  211.                     'subtitle': entity.description, 
  212.                     'src': imgUrl } %}
  213.             {% endfor %}
  214.         </div>
  215.         {% if entities|length < 1 %}
  216.             <div class=\"col-md-12\" style=\"min-height: 370px;\">
  217.                 <p style=\"margin-top: 40px;\">Aktuell sind noch keine Einträge vorhanden</p>
  218.             </div>                 
  219.         {% endif %}
  220.     </div>
  221.     <div class=\"footer-spacer\"></div>
  222. {% endblock %}
  223. ""@frontend/public/ideas/ideas_virtual_offers.html.twig""/data/web/berufsreise/home/site/web/templates/frontend/public/ideas/ideas_virtual_offers.html.twig");
  224.     }
  225. }