var/cache/dev/twig/55/55fed3ee6f1cc606982b769e79a1e6fe.php line 50

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\MacroNamespace;
  8. use Twig\Markup;
  9. use Twig\Sandbox\SecurityError;
  10. use Twig\Sandbox\SecurityNotAllowedTagError;
  11. use Twig\Sandbox\SecurityNotAllowedFilterError;
  12. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  13. use Twig\Sandbox\SecurityNotAllowedTestError;
  14. use Twig\Source;
  15. use Twig\Template;
  16. use Twig\TemplateWrapper;
  17. /* page/index.html.twig */
  18. class __TwigTemplate_b2016d827fe7a49d49395e1c6bd05549 extends Template
  19. {
  20. private Source $source;
  21. /**
  22. * @var array<string, MacroNamespace>
  23. */
  24. private array $macros = [];
  25. private \Twig\Runtime\EscaperRuntime $escaper;
  26. public function __construct(Environment $env)
  27. {
  28. parent::__construct($env);
  29. $this->source = $this->getSourceContext();
  30. $this->escaper = $env->getRuntime('Twig\Runtime\EscaperRuntime');
  31. $this->blocks = [
  32. 'page_title' => [$this, 'block_page_title'],
  33. 'head_custom_stylesheets' => [$this, 'block_head_custom_stylesheets'],
  34. 'content' => [$this, 'block_content'],
  35. ];
  36. }
  37. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  38. {
  39. // line 1
  40. return $this->parent ??= $this->load("base.html.twig", 1);
  41. }
  42. protected function doDisplay(array $context, array $blocks = []): iterable
  43. {
  44. $macros = $this->macros;
  45. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  46. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "page/index.html.twig"));
  47. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  48. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "page/index.html.twig"));
  49. $this->parent = $this->load("base.html.twig", 1);
  50. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  51. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  52. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  53. }
  54. // line 3
  55. /**
  56. * @return iterable<null|scalar|\Stringable>
  57. */
  58. public function block_page_title(array $context, array $blocks = []): iterable
  59. {
  60. $macros = $this->macros;
  61. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  62. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_title"));
  63. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  64. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_title"));
  65. // line 4
  66. yield " ";
  67. yield (string) $this->escaper->escape(Twig\Extension\CoreExtension::striptags($this->env->getRuntime('App\Twig\TextResolverRuntime')->resolve("storefront.title")), "html", null, true);
  68. yield " | Übersicht
  69. ";
  70. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  71. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  72. return; yield;
  73. }
  74. // line 7
  75. /**
  76. * @return iterable<null|scalar|\Stringable>
  77. */
  78. public function block_head_custom_stylesheets(array $context, array $blocks = []): iterable
  79. {
  80. $macros = $this->macros;
  81. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  82. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head_custom_stylesheets"));
  83. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  84. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head_custom_stylesheets"));
  85. // line 8
  86. yield " ";
  87. yield (string) $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("hero-header");
  88. yield "
  89. ";
  90. // line 9
  91. yield (string) $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("intro-card");
  92. yield "
  93. ";
  94. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  95. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  96. return; yield;
  97. }
  98. // line 12
  99. /**
  100. * @return iterable<null|scalar|\Stringable>
  101. */
  102. public function block_content(array $context, array $blocks = []): iterable
  103. {
  104. $macros = $this->macros;
  105. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  106. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  107. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  108. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  109. // line 13
  110. yield " <div class=\"hero-header\" style=\"background-image: url(";
  111. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/hero-header.png"), "html", null, true);
  112. yield ")\">
  113. <div class=\"hero-header-inner\">
  114. <div class=\"container-3xl\">
  115. <div class=\"row\">
  116. <div class=\"col-12 pb-5\">
  117. <h1 class=\"hero-headline text-white mb-4\">";
  118. // line 18
  119. yield (string) $this->env->getRuntime('App\Twig\TextResolverRuntime')->resolve("index.hero-header.headline");
  120. yield "</h1>
  121. <a class=\"button d-inline shadow-sm accent\" href=\"https://shop.rzh.de/der-ablauf\">";
  122. // line 19
  123. yield (string) $this->env->getRuntime('App\Twig\TextResolverRuntime')->resolve("index.button.flow");
  124. yield "</a>
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. </div>
  130. <div class=\"container-3xl mb-6 mt-5\">
  131. <div class=\"row g-4\">
  132. <div class=\"col-md-12 col-lg-6 col-xl-4\">
  133. <div class=\"intro-card shadow bg-accent\">
  134. <div>
  135. <img width=\"64\" src=\"";
  136. // line 31
  137. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/icons/icon_tiproduct.svg"), "html", null, true);
  138. yield "\" alt=\"\">
  139. <span class=\"d-block mt-4 mb-5 mb-lg-0\">";
  140. // line 32
  141. yield (string) $this->env->getRuntime('App\Twig\TextResolverRuntime')->resolve("index.card.left.headline");
  142. yield "</span>
  143. </div>
  144. <a href=\"";
  145. // line 34
  146. yield (string) (((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 34, $this->source); })()), "categories", [], "any", false, false, false, 34)) > 0)) ? ($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("categories")) : ($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("products")));
  147. yield "\" class=\"button bg-white w-100\">";
  148. yield (string) $this->env->getRuntime('App\Twig\TextResolverRuntime')->resolve("index.card.left.button");
  149. yield "</a>
  150. </div>
  151. </div>
  152. <div class=\"col-md-12 col-lg-6 col-xl-4\">
  153. <div class=\"intro-card shadow grey\">
  154. <div>
  155. <img width=\"64\" src=\"";
  156. // line 40
  157. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/icons/icon_faq.svg"), "html", null, true);
  158. yield "\" alt=\"\">
  159. <span class=\"d-block mt-4 mb-5 mb-lg-0\">";
  160. // line 41
  161. yield (string) $this->env->getRuntime('App\Twig\TextResolverRuntime')->resolve("index.card.middle.headline");
  162. yield "</span>
  163. </div>
  164. <a href=\"";
  165. // line 43
  166. yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("faq");
  167. yield "\" class=\"button bg-white w-100\">";
  168. yield (string) $this->env->getRuntime('App\Twig\TextResolverRuntime')->resolve("index.card.middle.button");
  169. yield "</a>
  170. </div>
  171. </div>
  172. <div class=\"col-md-12 col-lg-6 col-xl-4\">
  173. <div class=\"intro-card shadow grey\">
  174. <div>
  175. <img width=\"64\" src=\"";
  176. // line 49
  177. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/icons/person-circle.svg"), "html", null, true);
  178. yield "\" alt=\"\">
  179. <span class=\"d-block mt-4 mb-5 mb-lg-0\">";
  180. // line 50
  181. yield (string) $this->env->getRuntime('App\Twig\TextResolverRuntime')->resolve("index.card.right.headline");
  182. yield "</span>
  183. </div>
  184. <a href=\"";
  185. // line 52
  186. yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_register");
  187. yield "\" class=\"button bg-white w-100\">";
  188. yield (string) $this->env->getRuntime('App\Twig\TextResolverRuntime')->resolve("index.card.right.button");
  189. yield "</a>
  190. </div>
  191. </div>
  192. </div>
  193. </div>
  194. <div class=\"container-3xl my-5\">
  195. <div class=\"row\">
  196. <div class=\"col-12 col-md-6\">
  197. <div class=\"d-flex flex-column justify-content-between\">
  198. <div class=\"mb-5\">
  199. <h1 class=\"ornament-with-child\">";
  200. // line 63
  201. yield (string) $this->env->getRuntime('App\Twig\TextResolverRuntime')->resolve("index.block.bottom.headline");
  202. yield "</h1>
  203. ";
  204. // line 64
  205. yield (string) $this->env->getRuntime('App\Twig\TextResolverRuntime')->resolve("index.block.bottom.text");
  206. yield "
  207. </div>
  208. <div>
  209. <a class=\"button d-inline shadow-sm accent\" href=\"";
  210. // line 67
  211. yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("flow");
  212. yield "\">";
  213. yield (string) $this->env->getRuntime('App\Twig\TextResolverRuntime')->resolve("index.button.flow");
  214. yield "</a>
  215. </div>
  216. </div>
  217. </div>
  218. <div class=\"col-12 col-md-6 mt-5 mt-md-0\">
  219. ";
  220. // line 72
  221. if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 72, $this->source); })()), "config", [], "any", false, false, false, 72), "indexImage", [], "any", false, false, false, 72)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  222. // line 73
  223. yield " <img class=\"img-fluid\" src=\"/images/";
  224. yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 73, $this->source); })()), "config", [], "any", false, false, false, 73), "tenant", [], "any", false, false, false, 73), "uploadDirectory", [], "any", false, false, false, 73), "html", null, true);
  225. yield "/";
  226. yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 73, $this->source); })()), "config", [], "any", false, false, false, 73), "indexImage", [], "any", false, false, false, 73), "html", null, true);
  227. yield "\">
  228. ";
  229. }
  230. // line 75
  231. yield " </div>
  232. </div>
  233. </div>
  234. ";
  235. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  236. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  237. return; yield;
  238. }
  239. /**
  240. * @codeCoverageIgnore
  241. */
  242. public function getTemplateName(): string
  243. {
  244. return "page/index.html.twig";
  245. }
  246. /**
  247. * @codeCoverageIgnore
  248. */
  249. public function isTraitable(): bool
  250. {
  251. return false;
  252. }
  253. /**
  254. * @codeCoverageIgnore
  255. */
  256. public function getDefaultEscapeStrategy(): string|false
  257. {
  258. return "html";
  259. }
  260. /**
  261. * @codeCoverageIgnore
  262. */
  263. public function getDebugInfo(): array
  264. {
  265. return array ( 264 => 75, 256 => 73, 254 => 72, 244 => 67, 238 => 64, 234 => 63, 218 => 52, 213 => 50, 209 => 49, 198 => 43, 193 => 41, 189 => 40, 178 => 34, 173 => 32, 169 => 31, 154 => 19, 150 => 18, 141 => 13, 128 => 12, 115 => 9, 110 => 8, 97 => 7, 83 => 4, 70 => 3, 47 => 1,);
  266. }
  267. public function getSourceContext(): Source
  268. {
  269. return new Source("{% extends \x27base.html.twig\x27 %}
  270. {% block page_title %}
  271. {{ \x27storefront.title\x27|resolve|striptags }} | Übersicht
  272. {% endblock %}
  273. {% block head_custom_stylesheets %}
  274. {{ encore_entry_link_tags(\x27hero-header\x27) }}
  275. {{ encore_entry_link_tags(\x27intro-card\x27) }}
  276. {% endblock head_custom_stylesheets %}
  277. {% block content %}
  278. <div class=\"hero-header\" style=\"background-image: url({{ asset(\x27build/images/hero-header.png\x27) }})\">
  279. <div class=\"hero-header-inner\">
  280. <div class=\"container-3xl\">
  281. <div class=\"row\">
  282. <div class=\"col-12 pb-5\">
  283. <h1 class=\"hero-headline text-white mb-4\">{{ \x27index.hero-header.headline\x27|resolve }}</h1>
  284. <a class=\"button d-inline shadow-sm accent\" href=\"https://shop.rzh.de/der-ablauf\">{{ \x27index.button.flow\x27|resolve }}</a>
  285. </div>
  286. </div>
  287. </div>
  288. </div>
  289. </div>
  290. <div class=\"container-3xl mb-6 mt-5\">
  291. <div class=\"row g-4\">
  292. <div class=\"col-md-12 col-lg-6 col-xl-4\">
  293. <div class=\"intro-card shadow bg-accent\">
  294. <div>
  295. <img width=\"64\" src=\"{{ asset(\x27build/images/icons/icon_tiproduct.svg\x27) }}\" alt=\"\">
  296. <span class=\"d-block mt-4 mb-5 mb-lg-0\">{{ \x27index.card.left.headline\x27|resolve }}</span>
  297. </div>
  298. <a href=\"{{ tenant.categories|length > 0 ? path(\x27categories\x27) : path(\x27products\x27) }}\" class=\"button bg-white w-100\">{{ \x27index.card.left.button\x27|resolve }}</a>
  299. </div>
  300. </div>
  301. <div class=\"col-md-12 col-lg-6 col-xl-4\">
  302. <div class=\"intro-card shadow grey\">
  303. <div>
  304. <img width=\"64\" src=\"{{ asset(\x27build/images/icons/icon_faq.svg\x27) }}\" alt=\"\">
  305. <span class=\"d-block mt-4 mb-5 mb-lg-0\">{{ \x27index.card.middle.headline\x27|resolve }}</span>
  306. </div>
  307. <a href=\"{{ path(\x27faq\x27) }}\" class=\"button bg-white w-100\">{{ \x27index.card.middle.button\x27|resolve }}</a>
  308. </div>
  309. </div>
  310. <div class=\"col-md-12 col-lg-6 col-xl-4\">
  311. <div class=\"intro-card shadow grey\">
  312. <div>
  313. <img width=\"64\" src=\"{{ asset(\x27build/images/icons/person-circle.svg\x27) }}\" alt=\"\">
  314. <span class=\"d-block mt-4 mb-5 mb-lg-0\">{{ \x27index.card.right.headline\x27|resolve }}</span>
  315. </div>
  316. <a href=\"{{ path(\x27app_register\x27) }}\" class=\"button bg-white w-100\">{{ \x27index.card.right.button\x27|resolve }}</a>
  317. </div>
  318. </div>
  319. </div>
  320. </div>
  321. <div class=\"container-3xl my-5\">
  322. <div class=\"row\">
  323. <div class=\"col-12 col-md-6\">
  324. <div class=\"d-flex flex-column justify-content-between\">
  325. <div class=\"mb-5\">
  326. <h1 class=\"ornament-with-child\">{{ \x27index.block.bottom.headline\x27|resolve }}</h1>
  327. {{ \x27index.block.bottom.text\x27|resolve }}
  328. </div>
  329. <div>
  330. <a class=\"button d-inline shadow-sm accent\" href=\"{{ path(\x27flow\x27) }}\">{{ \x27index.button.flow\x27|resolve }}</a>
  331. </div>
  332. </div>
  333. </div>
  334. <div class=\"col-12 col-md-6 mt-5 mt-md-0\">
  335. {% if tenant.config.indexImage %}
  336. <img class=\"img-fluid\" src=\"/images/{{ tenant.config.tenant.uploadDirectory }}/{{ tenant.config.indexImage }}\">
  337. {% endif %}
  338. </div>
  339. </div>
  340. </div>
  341. {% endblock %}
  342. ", "page/index.html.twig", "/srv/storefront/templates/page/index.html.twig");
  343. }
  344. }