<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;
/* @frontend/public/ideas/ideas_virtual_offers.html.twig */
class __TwigTemplate_a700525f2a70868a5a7c7cdec6565f24 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "@frontend/base_layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@frontend/public/ideas/ideas_virtual_offers.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@frontend/public/ideas/ideas_virtual_offers.html.twig"));
$this->parent = $this->loadTemplate("@frontend/base_layout.html.twig", "@frontend/public/ideas/ideas_virtual_offers.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
yield "
<div class=\"container\">
<div class=\"col-md-12\">
<h1>";
// line 6
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", null, true);
yield "</h1>
</div>
<div class=\"col-md-12\">
<p>
Berufsorientierung und Online können sich wunderbar ergänzen! In diesem Informationsbereich haben wir nützliche Informationen und,
Dokumente und Webseiten zusammengefasst, die für die Berufsorientierung nützlich sein können. Angefangen bei unseren Unterrichtsideen,
die auch im Distance Learning durchgeführt werden können, einem freien Zugang zu unserem Klassenprofil bis hin zu nützlichen Links aus
der Welt der Berufsorientierung ist alles dabei. Werfen Sie einen Blick auf unsere Informationssammlung, die stets weiterentwickelt und
aktualisiert wird.
</p>
</div>
<div class=\"col-md-12\">
";
// line 18
$context['_parent'] = $context;
$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); })()));
$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["entity"]) {
// line 19
yield " ";
if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, $context["entity"], "link", [], "any", false, false, false, 19))) {
// line 20
yield " ";
$context["path"] = CoreExtension::getAttribute($this->env, $this->source, $context["entity"], "link", [], "any", false, false, false, 20);
// line 21
yield " ";
} else {
// line 22
yield " ";
$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", false, false, false, 22)]);
// line 23
yield " ";
}
// line 24
yield " ";
$context["imgUrl"] = $this->extensions['App\Twig\MediaExtensions']->getMediaPublicUrl(CoreExtension::getAttribute($this->env, $this->source, $context["entity"], "categoryPicture", [], "any", false, false, false, 24), "reference");
// line 25
yield " ";
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
$context["entity"], "targetText", [], "any", false, false, false, 26), "path" => // line 27
(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
$context["entity"], "headingColor", [], "any", false, false, false, 29), "title" => CoreExtension::getAttribute($this->env, $this->source, // line 30
$context["entity"], "heading", [], "any", false, false, false, 30), "subtitle" => CoreExtension::getAttribute($this->env, $this->source, // line 31
$context["entity"], "description", [], "any", false, false, false, 31), "src" => // line 32
(isset($context["imgUrl"]) || array_key_exists("imgUrl", $context) ? $context["imgUrl"] : (function () { throw new RuntimeError('Variable "imgUrl" does not exist.', 32, $this->source); })())]));
// line 33
yield " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['entity'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 34
yield " </div>
";
// line 35
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)) {
// line 36
yield " <div class=\"col-md-12\" style=\"min-height: 370px;\">
<p style=\"margin-top: 40px;\">Aktuell sind noch keine Einträge vorhanden</p>
</div>
";
}
// line 40
yield " </div>
<div class=\"footer-spacer\"></div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "@frontend/public/ideas/ideas_virtual_offers.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
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,);
}
public function getSourceContext(): Source
{
return new Source("{% extends \"@frontend/base_layout.html.twig\" %}
{% block content %}
<div class=\"container\">
<div class=\"col-md-12\">
<h1>{{ heading }}</h1>
</div>
<div class=\"col-md-12\">
<p>
Berufsorientierung und Online können sich wunderbar ergänzen! In diesem Informationsbereich haben wir nützliche Informationen und,
Dokumente und Webseiten zusammengefasst, die für die Berufsorientierung nützlich sein können. Angefangen bei unseren Unterrichtsideen,
die auch im Distance Learning durchgeführt werden können, einem freien Zugang zu unserem Klassenprofil bis hin zu nützlichen Links aus
der Welt der Berufsorientierung ist alles dabei. Werfen Sie einen Blick auf unsere Informationssammlung, die stets weiterentwickelt und
aktualisiert wird.
</p>
</div>
<div class=\"col-md-12\">
{% for entity in entities %}
{% if entity.link is not empty %}
{% set path=entity.link %}
{% else %}
{% set path=path(categoryRoute, {'category':entity.urlText}) %}
{% endif %}
{% set imgUrl = media_public_url(entity.categoryPicture, 'reference') %}
{% include '@frontend/templates/black_box_template.html.twig' with {
'target': entity.targetText,
'path': path,
'bootstrapClass':'col-xs-6 col-md-4',
'colorClass': entity.headingColor,
'title': entity.heading,
'subtitle': entity.description,
'src': imgUrl } %}
{% endfor %}
</div>
{% if entities|length < 1 %}
<div class=\"col-md-12\" style=\"min-height: 370px;\">
<p style=\"margin-top: 40px;\">Aktuell sind noch keine Einträge vorhanden</p>
</div>
{% endif %}
</div>
<div class=\"footer-spacer\"></div>
{% endblock %}
", "@frontend/public/ideas/ideas_virtual_offers.html.twig", "/data/web/berufsreise/home/site/web/templates/frontend/public/ideas/ideas_virtual_offers.html.twig");
}
}