var/cache/dev/twig/f2/f2a2c89575dcdd5f4cec2d6422d06c47.php line 58

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/dashboard/dashboard.html.twig */
  16. class __TwigTemplate_1b84a0dc4ab1d3b22be6ae8de4a4a4b7 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->blocks = [
  28. 'body_class' => [$this, 'block_body_class'],
  29. 'breadcrumbs' => [$this, 'block_breadcrumbs'],
  30. 'context_menu' => [$this, 'block_context_menu'],
  31. 'header' => [$this, 'block_header'],
  32. 'content' => [$this, 'block_content'],
  33. 'javascripts' => [$this, 'block_javascripts'],
  34. ];
  35. }
  36. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  37. {
  38. // line 1
  39. return "@ibexadesign/ui/layout.html.twig";
  40. }
  41. protected function doDisplay(array $context, array $blocks = []): iterable
  42. {
  43. $macros = $this->macros;
  44. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  45. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@admin/ui/dashboard/dashboard.html.twig"));
  46. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  47. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@admin/ui/dashboard/dashboard.html.twig"));
  48. $this->parent = $this->load("@ibexadesign/ui/layout.html.twig", 1);
  49. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  50. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  51. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  52. }
  53. // line 5
  54. /**
  55. * @return iterable<null|scalar|\Stringable>
  56. */
  57. public function block_body_class(array $context, array $blocks = []): iterable
  58. {
  59. $macros = $this->macros;
  60. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  61. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_class"));
  62. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  63. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_class"));
  64. yield "ibexa-dashboard";
  65. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  66. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  67. yield from [];
  68. }
  69. // line 7
  70. /**
  71. * @return iterable<null|scalar|\Stringable>
  72. */
  73. public function block_breadcrumbs(array $context, array $blocks = []): iterable
  74. {
  75. $macros = $this->macros;
  76. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  77. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumbs"));
  78. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  79. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumbs"));
  80. // line 8
  81. yield " ";
  82. yield from $this->load("@ibexadesign/ui/breadcrumbs.html.twig", 8)->unwrap()->yield(CoreExtension::merge($context, ["items" => [["value" => ((($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("dashboard.breadcrumbs.dashboard", [], "ibexa_dashboard") == "dashboard.breadcrumbs.dashboard")) ? (Twig\Extension\CoreExtension::replace("Dashboard", [])) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("dashboard.breadcrumbs.dashboard", [], "ibexa_dashboard")))]]]));
  83. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  84. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  85. yield from [];
  86. }
  87. // line 13
  88. /**
  89. * @return iterable<null|scalar|\Stringable>
  90. */
  91. public function block_context_menu(array $context, array $blocks = []): iterable
  92. {
  93. $macros = $this->macros;
  94. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  95. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "context_menu"));
  96. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  97. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "context_menu"));
  98. // line 14
  99. yield " <div class=\"ibexa-dashboard__create\">
  100. <button
  101. class=\"btn ibexa-btn ibexa-btn--primary ibexa-btn--cotf-create\"
  102. data-udw-config=\"";
  103. // line 17
  104. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Ibexa\Bundle\AdminUi\Templating\Twig\UniversalDiscoveryExtension']->renderUniversalDiscoveryWidgetConfig("create", ["type" => "content_create"]), "html", null, true);
  105. yield "\"
  106. ";
  107. // line 18
  108. if ((($tmp = !(isset($context["can_create_content"]) || array_key_exists("can_create_content", $context) ? $context["can_create_content"] : (function () { throw new RuntimeError('Variable "can_create_content" does not exist.', 18, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  109. yield "disabled";
  110. }
  111. // line 19
  112. yield " >
  113. <svg class=\"ibexa-icon ibexa-icon--small ibexa-icon--create\">
  114. <use xlink:href=\"";
  115. // line 21
  116. yield $this->extensions['Ibexa\Bundle\AdminUi\Templating\Twig\IconPathExtension']->getIconPath("create");
  117. yield "\"></use>
  118. </svg>
  119. <span>";
  120. // line 23
  121. yield ((($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("dashboard.create", [], "ibexa_dashboard") == "dashboard.create")) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::replace("Create content", []), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("dashboard.create", [], "ibexa_dashboard"), "html", null, true)));
  122. yield "</span>
  123. </button>
  124. </div>
  125. ";
  126. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  127. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  128. yield from [];
  129. }
  130. // line 28
  131. /**
  132. * @return iterable<null|scalar|\Stringable>
  133. */
  134. public function block_header(array $context, array $blocks = []): iterable
  135. {
  136. $macros = $this->macros;
  137. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  138. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
  139. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  140. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
  141. // line 29
  142. yield " <h1>";
  143. yield ((($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("my.dashboard", [], "ibexa_dashboard") == "my.dashboard")) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::replace("My dashboard", []), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("my.dashboard", [], "ibexa_dashboard"), "html", null, true)));
  144. yield "</h1>
  145. ";
  146. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  147. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  148. yield from [];
  149. }
  150. // line 32
  151. /**
  152. * @return iterable<null|scalar|\Stringable>
  153. */
  154. public function block_content(array $context, array $blocks = []): iterable
  155. {
  156. $macros = $this->macros;
  157. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  158. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  159. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  160. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  161. // line 33
  162. yield " ";
  163. yield $this->extensions['Ibexa\Bundle\TwigComponents\Templating\Twig\ComponentExtension']->renderComponentGroup("admin-ui-dashboard-blocks");
  164. yield "
  165. ";
  166. // line 35
  167. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form_edit"]) || array_key_exists("form_edit", $context) ? $context["form_edit"] : (function () { throw new RuntimeError('Variable "form_edit" does not exist.', 35, $this->source); })()), 'form_start', ["action" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ibexa.content.edit"), "attr" => ["class" => "ibexa-edit-content-form"]]);
  168. // line 38
  169. yield "
  170. ";
  171. // line 39
  172. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["form_edit"]) || array_key_exists("form_edit", $context) ? $context["form_edit"] : (function () { throw new RuntimeError('Variable "form_edit" does not exist.', 39, $this->source); })()), "language", [], "any", false, false, false, 39), 'widget', ["attr" => ["hidden" => "hidden", "class" => "language-input"]]);
  173. yield "
  174. ";
  175. // line 40
  176. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form_edit"]) || array_key_exists("form_edit", $context) ? $context["form_edit"] : (function () { throw new RuntimeError('Variable "form_edit" does not exist.', 40, $this->source); })()), 'form_end');
  177. yield "
  178. ";
  179. // line 42
  180. yield from $this->load("@ibexadesign/content/modal/version_conflict.html.twig", 42)->unwrap()->yield($context);
  181. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  182. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  183. yield from [];
  184. }
  185. // line 45
  186. /**
  187. * @return iterable<null|scalar|\Stringable>
  188. */
  189. public function block_javascripts(array $context, array $blocks = []): iterable
  190. {
  191. $macros = $this->macros;
  192. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  193. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  194. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  195. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  196. // line 46
  197. yield " ";
  198. yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("ibexa-admin-ui-dashboard-js", null, "ibexa");
  199. yield "
  200. ";
  201. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  202. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  203. yield from [];
  204. }
  205. /**
  206. * @codeCoverageIgnore
  207. */
  208. public function getTemplateName(): string
  209. {
  210. return "@admin/ui/dashboard/dashboard.html.twig";
  211. }
  212. /**
  213. * @codeCoverageIgnore
  214. */
  215. public function isTraitable(): bool
  216. {
  217. return false;
  218. }
  219. /**
  220. * @codeCoverageIgnore
  221. */
  222. public function getDebugInfo(): array
  223. {
  224. return array ( 250 => 46, 237 => 45, 226 => 42, 221 => 40, 217 => 39, 214 => 38, 212 => 35, 206 => 33, 193 => 32, 179 => 29, 166 => 28, 151 => 23, 146 => 21, 142 => 19, 138 => 18, 134 => 17, 129 => 14, 116 => 13, 104 => 8, 91 => 7, 68 => 5, 45 => 1,);
  225. }
  226. public function getSourceContext(): Source
  227. {
  228. return new Source("{% extends '@ibexadesign/ui/layout.html.twig' %}
  229. {% trans_default_domain 'ibexa_dashboard' %}
  230. {% block body_class %}ibexa-dashboard{% endblock %}
  231. {% block breadcrumbs %}
  232. {% include '@ibexadesign/ui/breadcrumbs.html.twig' with { items: [
  233. { value: 'dashboard.breadcrumbs.dashboard'|trans|desc('Dashboard') }
  234. ]} %}
  235. {% endblock %}
  236. {% block context_menu %}
  237. <div class=\"ibexa-dashboard__create\">
  238. <button
  239. class=\"btn ibexa-btn ibexa-btn--primary ibexa-btn--cotf-create\"
  240. data-udw-config=\"{{ ibexa_udw_config('create', {'type': 'content_create'}) }}\"
  241. {% if not can_create_content %}disabled{% endif %}
  242. >
  243. <svg class=\"ibexa-icon ibexa-icon--small ibexa-icon--create\">
  244. <use xlink:href=\"{{ ibexa_icon_path('create') }}\"></use>
  245. </svg>
  246. <span>{{ 'dashboard.create'|trans|desc('Create content') }}</span>
  247. </button>
  248. </div>
  249. {% endblock %}
  250. {% block header %}
  251. <h1>{{ 'my.dashboard'|trans|desc('My dashboard') }}</h1>
  252. {% endblock %}
  253. {% block content %}
  254. {{ ibexa_twig_component_group('admin-ui-dashboard-blocks') }}
  255. {{ form_start(form_edit, {
  256. 'action': path('ibexa.content.edit'),
  257. 'attr': { 'class': 'ibexa-edit-content-form'}
  258. }) }}
  259. {{ form_widget(form_edit.language, {'attr': {'hidden': 'hidden', 'class': 'language-input'}}) }}
  260. {{ form_end(form_edit) }}
  261. {% include '@ibexadesign/content/modal/version_conflict.html.twig' %}
  262. {% endblock %}
  263. {% block javascripts %}
  264. {{ encore_entry_script_tags('ibexa-admin-ui-dashboard-js', null, 'ibexa') }}
  265. {% endblock %}
  266. ", "@admin/ui/dashboard/dashboard.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/dashboard/dashboard.html.twig");
  267. }
  268. }