var/cache/dev/twig/89/899016bab05a617b0d33b06ac73fcc82.php line 177

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/account/notifications/side_panel.html.twig */
  16. class __TwigTemplate_b9de00443dbbbb20f9b6fc6a37aa8143 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. ];
  30. }
  31. protected function doDisplay(array $context, array $blocks = []): iterable
  32. {
  33. $macros = $this->macros;
  34. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@admin/account/notifications/side_panel.html.twig"));
  36. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@admin/account/notifications/side_panel.html.twig"));
  38. // line 1
  39. $context["max_visible_notifications_count"] = 10;
  40. // line 2
  41. yield "
  42. ";
  43. // line 3
  44. yield from $this->load("@admin/account/notifications/side_panel.html.twig", 3, 1460537288)->unwrap()->yield(CoreExtension::merge($context, ["title" => ((($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ibexa_notifications") == "ibexa_notifications")) ? ("Notifications") : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ibexa_notifications"))), "attr" => ["data-actions" => "create", "class" => "ibexa-notifications-modal ibexa-scroll-disabled", "id" => "view-notifications", "data-close-reload" => "false"]]));
  45. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  46. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47. yield from [];
  48. }
  49. /**
  50. * @codeCoverageIgnore
  51. */
  52. public function getTemplateName(): string
  53. {
  54. return "@admin/account/notifications/side_panel.html.twig";
  55. }
  56. /**
  57. * @codeCoverageIgnore
  58. */
  59. public function isTraitable(): bool
  60. {
  61. return false;
  62. }
  63. /**
  64. * @codeCoverageIgnore
  65. */
  66. public function getDebugInfo(): array
  67. {
  68. return array ( 53 => 3, 50 => 2, 48 => 1,);
  69. }
  70. public function getSourceContext(): Source
  71. {
  72. return new Source("{% set max_visible_notifications_count = 10 %}
  73. {% embed '@ibexadesign/ui/component/side_panel/side_panel.html.twig' with {
  74. title: 'ibexa_notifications'|trans|desc('Notifications'),
  75. attr: {
  76. 'data-actions': \"create\",
  77. class: 'ibexa-notifications-modal ibexa-scroll-disabled',
  78. id: 'view-notifications',
  79. 'data-close-reload': 'false',
  80. },
  81. }%}
  82. {% block header %}
  83. <div class=\"ibexa-side-panel__header\">
  84. <span>{{ 'ibexa_notifications'|trans|desc('Notifications')}}
  85. <span class=\"ibexa-notifications-modal__count\">({{max_visible_notifications_count}})</span>
  86. </span>
  87. <button class=\"btn ibexa-btn ibexa-btn--tertiary ibexa-btn--small ibexa-notifications-modal__mark-all-read-btn\">
  88. {{ 'ibexa_notifications.btn.mark_all_as_read'|trans|desc('Mark all as read') }}
  89. </button>
  90. </div>
  91. {% endblock %}
  92. {% block content %}
  93. <div class=\"ibexa-side-panel__content\">
  94. <div class=\"ibexa-notifications-modal__spinner\">
  95. <svg class=\"ibexa-icon ibexa-spin\">
  96. <use xlink:href=\"{{ ibexa_icon_path('spinner') }}\"></use>
  97. </svg>
  98. </div>
  99. <div class=\"ibexa-notifications-modal__results\">
  100. {{ render(controller('Ibexa\\\\Bundle\\\\AdminUi\\\\Controller\\\\NotificationController::renderNotificationsPageAction', {
  101. 'page': 1,
  102. })) }}
  103. </div>
  104. </div>
  105. {% endblock %}
  106. {% block footer %}
  107. <div class=\"ibexa-notifications-modal__footer\">
  108. <a class=\"btn ibexa-btn ibexa-btn--ghost ibexa-notifications-modal__view-all-btn\" href=\"{{ path('ibexa.notifications.render.all') }}\">
  109. {{ 'side_panel.view_all'|trans|desc('View all notifications') }}
  110. <span class=\"ibexa-notifications-modal__view-all-btn--count\"></span>
  111. </a>
  112. </div>
  113. {% endblock %}
  114. {% endembed %}
  115. ", "@admin/account/notifications/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/account/notifications/side_panel.html.twig");
  116. }
  117. }
  118. /* @admin/account/notifications/side_panel.html.twig */
  119. class __TwigTemplate_b9de00443dbbbb20f9b6fc6a37aa8143___1460537288 extends Netgen\Bundle\SiteBundle\Templating\Twig\DebugTemplate
  120. {
  121. private Source $source;
  122. /**
  123. * @var array<string, Template>
  124. */
  125. private array $macros = [];
  126. public function __construct(Environment $env)
  127. {
  128. parent::__construct($env);
  129. $this->source = $this->getSourceContext();
  130. $this->blocks = [
  131. 'header' => [$this, 'block_header'],
  132. 'content' => [$this, 'block_content'],
  133. 'footer' => [$this, 'block_footer'],
  134. ];
  135. }
  136. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  137. {
  138. return "@ibexadesign/ui/component/side_panel/side_panel.html.twig";
  139. }
  140. protected function doDisplay(array $context, array $blocks = []): iterable
  141. {
  142. $macros = $this->macros;
  143. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  144. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@admin/account/notifications/side_panel.html.twig"));
  145. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  146. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@admin/account/notifications/side_panel.html.twig"));
  147. $this->parent = $this->load("@ibexadesign/ui/component/side_panel/side_panel.html.twig", 3);
  148. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  149. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  150. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  151. }
  152. // line 12
  153. /**
  154. * @return iterable<null|scalar|\Stringable>
  155. */
  156. public function block_header(array $context, array $blocks = []): iterable
  157. {
  158. $macros = $this->macros;
  159. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  160. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
  161. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  162. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
  163. // line 13
  164. yield " <div class=\"ibexa-side-panel__header\">
  165. <span>";
  166. // line 14
  167. yield ((($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ibexa_notifications") == "ibexa_notifications")) ? ("Notifications") : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ibexa_notifications"), "html", null, true)));
  168. yield "
  169. <span class=\"ibexa-notifications-modal__count\">(";
  170. // line 15
  171. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["max_visible_notifications_count"]) || array_key_exists("max_visible_notifications_count", $context) ? $context["max_visible_notifications_count"] : (function () { throw new RuntimeError('Variable "max_visible_notifications_count" does not exist.', 15, $this->source); })()), "html", null, true);
  172. yield ")</span>
  173. </span>
  174. <button class=\"btn ibexa-btn ibexa-btn--tertiary ibexa-btn--small ibexa-notifications-modal__mark-all-read-btn\">
  175. ";
  176. // line 18
  177. yield ((($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ibexa_notifications.btn.mark_all_as_read") == "ibexa_notifications.btn.mark_all_as_read")) ? ("Mark all as read") : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ibexa_notifications.btn.mark_all_as_read"), "html", null, true)));
  178. yield "
  179. </button>
  180. </div>
  181. ";
  182. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  183. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  184. yield from [];
  185. }
  186. // line 23
  187. /**
  188. * @return iterable<null|scalar|\Stringable>
  189. */
  190. public function block_content(array $context, array $blocks = []): iterable
  191. {
  192. $macros = $this->macros;
  193. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  194. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  195. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  196. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  197. // line 24
  198. yield " <div class=\"ibexa-side-panel__content\">
  199. <div class=\"ibexa-notifications-modal__spinner\">
  200. <svg class=\"ibexa-icon ibexa-spin\">
  201. <use xlink:href=\"";
  202. // line 27
  203. yield $this->extensions['Ibexa\Bundle\AdminUi\Templating\Twig\IconPathExtension']->getIconPath("spinner");
  204. yield "\"></use>
  205. </svg>
  206. </div>
  207. <div class=\"ibexa-notifications-modal__results\">
  208. ";
  209. // line 31
  210. yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("Ibexa\\Bundle\\AdminUi\\Controller\\NotificationController::renderNotificationsPageAction", ["page" => 1]));
  211. // line 33
  212. yield "
  213. </div>
  214. </div>
  215. ";
  216. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  217. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  218. yield from [];
  219. }
  220. // line 38
  221. /**
  222. * @return iterable<null|scalar|\Stringable>
  223. */
  224. public function block_footer(array $context, array $blocks = []): iterable
  225. {
  226. $macros = $this->macros;
  227. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  228. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
  229. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  230. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
  231. // line 39
  232. yield " <div class=\"ibexa-notifications-modal__footer\">
  233. <a class=\"btn ibexa-btn ibexa-btn--ghost ibexa-notifications-modal__view-all-btn\" href=\"";
  234. // line 40
  235. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ibexa.notifications.render.all");
  236. yield "\">
  237. ";
  238. // line 41
  239. yield ((($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("side_panel.view_all") == "side_panel.view_all")) ? ("View all notifications") : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("side_panel.view_all"), "html", null, true)));
  240. yield "
  241. <span class=\"ibexa-notifications-modal__view-all-btn--count\"></span>
  242. </a>
  243. </div>
  244. ";
  245. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  246. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  247. yield from [];
  248. }
  249. /**
  250. * @codeCoverageIgnore
  251. */
  252. public function getTemplateName(): string
  253. {
  254. return "@admin/account/notifications/side_panel.html.twig";
  255. }
  256. /**
  257. * @codeCoverageIgnore
  258. */
  259. public function isTraitable(): bool
  260. {
  261. return false;
  262. }
  263. /**
  264. * @codeCoverageIgnore
  265. */
  266. public function getDebugInfo(): array
  267. {
  268. return array ( 289 => 41, 285 => 40, 282 => 39, 269 => 38, 255 => 33, 253 => 31, 246 => 27, 241 => 24, 228 => 23, 213 => 18, 207 => 15, 203 => 14, 200 => 13, 187 => 12, 53 => 3, 50 => 2, 48 => 1,);
  269. }
  270. public function getSourceContext(): Source
  271. {
  272. return new Source("{% set max_visible_notifications_count = 10 %}
  273. {% embed '@ibexadesign/ui/component/side_panel/side_panel.html.twig' with {
  274. title: 'ibexa_notifications'|trans|desc('Notifications'),
  275. attr: {
  276. 'data-actions': \"create\",
  277. class: 'ibexa-notifications-modal ibexa-scroll-disabled',
  278. id: 'view-notifications',
  279. 'data-close-reload': 'false',
  280. },
  281. }%}
  282. {% block header %}
  283. <div class=\"ibexa-side-panel__header\">
  284. <span>{{ 'ibexa_notifications'|trans|desc('Notifications')}}
  285. <span class=\"ibexa-notifications-modal__count\">({{max_visible_notifications_count}})</span>
  286. </span>
  287. <button class=\"btn ibexa-btn ibexa-btn--tertiary ibexa-btn--small ibexa-notifications-modal__mark-all-read-btn\">
  288. {{ 'ibexa_notifications.btn.mark_all_as_read'|trans|desc('Mark all as read') }}
  289. </button>
  290. </div>
  291. {% endblock %}
  292. {% block content %}
  293. <div class=\"ibexa-side-panel__content\">
  294. <div class=\"ibexa-notifications-modal__spinner\">
  295. <svg class=\"ibexa-icon ibexa-spin\">
  296. <use xlink:href=\"{{ ibexa_icon_path('spinner') }}\"></use>
  297. </svg>
  298. </div>
  299. <div class=\"ibexa-notifications-modal__results\">
  300. {{ render(controller('Ibexa\\\\Bundle\\\\AdminUi\\\\Controller\\\\NotificationController::renderNotificationsPageAction', {
  301. 'page': 1,
  302. })) }}
  303. </div>
  304. </div>
  305. {% endblock %}
  306. {% block footer %}
  307. <div class=\"ibexa-notifications-modal__footer\">
  308. <a class=\"btn ibexa-btn ibexa-btn--ghost ibexa-notifications-modal__view-all-btn\" href=\"{{ path('ibexa.notifications.render.all') }}\">
  309. {{ 'side_panel.view_all'|trans|desc('View all notifications') }}
  310. <span class=\"ibexa-notifications-modal__view-all-btn--count\"></span>
  311. </a>
  312. </div>
  313. {% endblock %}
  314. {% endembed %}
  315. ", "@admin/account/notifications/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/account/notifications/side_panel.html.twig");
  316. }
  317. }