var/cache/dev/twig/01/01e9d5503457847dbc124dccc550ffb4.php line 105

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. /* @admin/ui/component/side_panel/side_panel.html.twig */
  16. class __TwigTemplate_f114bff29ddb4d735ca2789eeaf2df55 extends Netgen\Bundle\SiteBundle\Templating\Twig\DebugTemplate
  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->parent = false;
  28. $this->blocks = [
  29. 'panel' => [$this, 'block_panel'],
  30. 'header' => [$this, 'block_header'],
  31. 'content' => [$this, 'block_content'],
  32. 'footer' => [$this, 'block_footer'],
  33. ];
  34. }
  35. protected function doDisplay(array $context, array $blocks = []): iterable
  36. {
  37. $macros = $this->macros;
  38. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@admin/ui/component/side_panel/side_panel.html.twig"));
  40. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@admin/ui/component/side_panel/side_panel.html.twig"));
  42. // line 1
  43. $macros["html"] = $this->macros["html"] = $this->load("@ibexadesign/ui/component/macros.html.twig", 1)->unwrap();
  44. // line 2
  45. yield "
  46. ";
  47. // line 4
  48. yield "
  49. ";
  50. // line 5
  51. $context["config_panel_main_class"] = "ibexa-side-panel ibexa-side-panel--hidden";
  52. // line 6
  53. $context["attr_footer"] = Twig\Extension\CoreExtension::merge(((array_key_exists("attr_footer", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["attr_footer"]) || array_key_exists("attr_footer", $context) ? $context["attr_footer"] : (function () { throw new RuntimeError('Variable "attr_footer" does not exist.', 6, $this->source); })()), [])) : ([])), ["class" => Twig\Extension\CoreExtension::trim(("ibexa-side-panel__footer" . (( // line 8
  54. array_key_exists("footer_class", $context)) ? (((isset($context["footer_class"]) || array_key_exists("footer_class", $context) ? $context["footer_class"] : (function () { throw new RuntimeError('Variable "footer_class" does not exist.', 8, $this->source); })()) . "")) : (""))))]);
  55. // line 10
  56. yield "
  57. ";
  58. // line 12
  59. $context["attr"] = Twig\Extension\CoreExtension::merge(((array_key_exists("attr", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["attr"]) || array_key_exists("attr", $context) ? $context["attr"] : (function () { throw new RuntimeError('Variable "attr" does not exist.', 12, $this->source); })()), [])) : ([])), ["class" => ((Twig\Extension\CoreExtension::trim(((Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, // line 13
  60. ($context["attr"] ?? null), "class", [], "any", true, true, false, 13)) ? (Twig\Extension\CoreExtension::default(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["attr"]) || array_key_exists("attr", $context) ? $context["attr"] : (function () { throw new RuntimeError('Variable "attr" does not exist.', 13, $this->source); })()), "class", [], "any", false, false, false, 13), "")) : (""))) . " ") . (isset($context["config_panel_main_class"]) || array_key_exists("config_panel_main_class", $context) ? $context["config_panel_main_class"] : (function () { throw new RuntimeError('Variable "config_panel_main_class" does not exist.', 13, $this->source); })()))]);
  61. // line 15
  62. yield "
  63. ";
  64. // line 16
  65. if (array_key_exists("id", $context)) {
  66. // line 17
  67. yield " ";
  68. $context["attr"] = Twig\Extension\CoreExtension::merge((isset($context["attr"]) || array_key_exists("attr", $context) ? $context["attr"] : (function () { throw new RuntimeError('Variable "attr" does not exist.', 17, $this->source); })()), ["id" => (isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 17, $this->source); })())]);
  69. }
  70. // line 19
  71. yield "
  72. <div ";
  73. // line 20
  74. yield $macros["html"]->getTemplateForMacro("macro_attributes", $context, 20, $this->getSourceContext())->macro_attributes(...[(isset($context["attr"]) || array_key_exists("attr", $context) ? $context["attr"] : (function () { throw new RuntimeError('Variable "attr" does not exist.', 20, $this->source); })())]);
  75. yield ">
  76. ";
  77. // line 21
  78. yield from $this->unwrap()->yieldBlock('panel', $context, $blocks);
  79. // line 48
  80. yield "</div>
  81. ";
  82. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  83. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  84. yield from [];
  85. }
  86. // line 21
  87. /**
  88. * @return iterable<null|scalar|\Stringable>
  89. */
  90. public function block_panel(array $context, array $blocks = []): iterable
  91. {
  92. $macros = $this->macros;
  93. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  94. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "panel"));
  95. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  96. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "panel"));
  97. // line 22
  98. yield " <div>
  99. ";
  100. // line 23
  101. yield from $this->unwrap()->yieldBlock('header', $context, $blocks);
  102. // line 34
  103. yield " ";
  104. yield from $this->unwrap()->yieldBlock('content', $context, $blocks);
  105. // line 35
  106. yield "
  107. <div ";
  108. // line 36
  109. yield $macros["html"]->getTemplateForMacro("macro_attributes", $context, 36, $this->getSourceContext())->macro_attributes(...[(isset($context["attr_footer"]) || array_key_exists("attr_footer", $context) ? $context["attr_footer"] : (function () { throw new RuntimeError('Variable "attr_footer" does not exist.', 36, $this->source); })())]);
  110. yield ">
  111. ";
  112. // line 37
  113. yield from $this->unwrap()->yieldBlock('footer', $context, $blocks);
  114. // line 45
  115. yield " </div>
  116. </div>
  117. ";
  118. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  119. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  120. yield from [];
  121. }
  122. // line 23
  123. /**
  124. * @return iterable<null|scalar|\Stringable>
  125. */
  126. public function block_header(array $context, array $blocks = []): iterable
  127. {
  128. $macros = $this->macros;
  129. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  130. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
  131. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  132. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
  133. // line 24
  134. yield " <button
  135. type=\"button\"
  136. class=\"btn ibexa-btn ibexa-btn--no-text ibexa-btn--close-config-panel\"
  137. >
  138. <svg class=\"ibexa-icon ibexa-icon--small\">
  139. <use xlink:href=\"";
  140. // line 29
  141. yield $this->extensions['Ibexa\Bundle\AdminUi\Templating\Twig\IconPathExtension']->getIconPath("caret-back");
  142. yield "\"></use>
  143. </svg>
  144. </button>
  145. <h2 class=\"ibexa-side-panel__title\">";
  146. // line 32
  147. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 32, $this->source); })()), "html", null, true);
  148. yield "</h2>
  149. ";
  150. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  151. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  152. yield from [];
  153. }
  154. // line 34
  155. /**
  156. * @return iterable<null|scalar|\Stringable>
  157. */
  158. public function block_content(array $context, array $blocks = []): iterable
  159. {
  160. $macros = $this->macros;
  161. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  162. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  163. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  164. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  165. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  166. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  167. yield from [];
  168. }
  169. // line 37
  170. /**
  171. * @return iterable<null|scalar|\Stringable>
  172. */
  173. public function block_footer(array $context, array $blocks = []): iterable
  174. {
  175. $macros = $this->macros;
  176. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  177. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
  178. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  179. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
  180. // line 38
  181. yield " <button
  182. type=\"button\"
  183. class=\"btn ibexa-btn ibexa-btn--info ibexa-side-panel__cancel-btn ibexa-btn--close-config-panel\"
  184. >
  185. ";
  186. // line 42
  187. yield ((($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("side_panel.btn.cancel_label", [], "ibexa_admin_ui") == "side_panel.btn.cancel_label")) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::replace("Cancel", []), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("side_panel.btn.cancel_label", [], "ibexa_admin_ui"), "html", null, true)));
  188. yield "
  189. </button>
  190. ";
  191. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  192. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  193. yield from [];
  194. }
  195. /**
  196. * @codeCoverageIgnore
  197. */
  198. public function getTemplateName(): string
  199. {
  200. return "@admin/ui/component/side_panel/side_panel.html.twig";
  201. }
  202. /**
  203. * @codeCoverageIgnore
  204. */
  205. public function isTraitable(): bool
  206. {
  207. return false;
  208. }
  209. /**
  210. * @codeCoverageIgnore
  211. */
  212. public function getDebugInfo(): array
  213. {
  214. return array ( 225 => 42, 219 => 38, 206 => 37, 184 => 34, 171 => 32, 165 => 29, 158 => 24, 145 => 23, 132 => 45, 130 => 37, 126 => 36, 123 => 35, 120 => 34, 118 => 23, 115 => 22, 102 => 21, 90 => 48, 88 => 21, 84 => 20, 81 => 19, 77 => 17, 75 => 16, 72 => 15, 70 => 13, 69 => 12, 65 => 10, 63 => 8, 62 => 6, 60 => 5, 57 => 4, 54 => 2, 52 => 1,);
  215. }
  216. public function getSourceContext(): Source
  217. {
  218. return new Source("{% import '@ibexadesign/ui/component/macros.html.twig' as html %}
  219. {% trans_default_domain 'ibexa_admin_ui' %}
  220. {% set config_panel_main_class = 'ibexa-side-panel ibexa-side-panel--hidden' %}
  221. {% set attr_footer = attr_footer|default({})|merge({
  222. class: ('ibexa-side-panel__footer'
  223. ~ (footer_class is defined ? footer_class ~ ''))|trim,
  224. }) %}
  225. {% set attr = attr|default({})|merge({
  226. class: attr.class|default('')|trim ~ ' ' ~ config_panel_main_class,
  227. }) %}
  228. {% if id is defined %}
  229. {% set attr = attr|merge({ id }) %}
  230. {% endif %}
  231. <div {{ html.attributes(attr) }}>
  232. {% block panel %}
  233. <div>
  234. {% block header %}
  235. <button
  236. type=\"button\"
  237. class=\"btn ibexa-btn ibexa-btn--no-text ibexa-btn--close-config-panel\"
  238. >
  239. <svg class=\"ibexa-icon ibexa-icon--small\">
  240. <use xlink:href=\"{{ ibexa_icon_path('caret-back') }}\"></use>
  241. </svg>
  242. </button>
  243. <h2 class=\"ibexa-side-panel__title\">{{ title }}</h2>
  244. {% endblock %}
  245. {% block content %}{% endblock %}
  246. <div {{ html.attributes(attr_footer) }}>
  247. {% block footer %}
  248. <button
  249. type=\"button\"
  250. class=\"btn ibexa-btn ibexa-btn--info ibexa-side-panel__cancel-btn ibexa-btn--close-config-panel\"
  251. >
  252. {{ 'side_panel.btn.cancel_label'|trans|desc('Cancel') }}
  253. </button>
  254. {% endblock %}
  255. </div>
  256. </div>
  257. {% endblock %}
  258. </div>
  259. ", "@admin/ui/component/side_panel/side_panel.html.twig", "/var/www/vhosts/platformv4.alpha.se7enx.com/httpdocs/platformvlegacy4.alpha.se7enx.com/vendor/se7enxweb/admin-ui/src/bundle/Resources/views/themes/admin/ui/component/side_panel/side_panel.html.twig");
  260. }
  261. }