var/cache/dev/twig/97/97dfc558939e06aea5ee5dc702db3e56.php line 295

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. /* @UVDeskSupportCenter/Templates/layout.html.twig */
  16. class __TwigTemplate_57ce0c3a293a2c689a75657a0683ede8 extends Template
  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. 'canonical' => [$this, 'block_canonical'],
  30. 'title' => [$this, 'block_title'],
  31. 'metaDescription' => [$this, 'block_metaDescription'],
  32. 'metaKeywords' => [$this, 'block_metaKeywords'],
  33. 'ogtitle' => [$this, 'block_ogtitle'],
  34. 'ogcanonical' => [$this, 'block_ogcanonical'],
  35. 'twtitle' => [$this, 'block_twtitle'],
  36. 'head' => [$this, 'block_head'],
  37. 'templateCSS' => [$this, 'block_templateCSS'],
  38. 'header' => [$this, 'block_header'],
  39. 'tabHeader' => [$this, 'block_tabHeader'],
  40. 'wrapper' => [$this, 'block_wrapper'],
  41. 'body' => [$this, 'block_body'],
  42. 'footer' => [$this, 'block_footer'],
  43. ];
  44. }
  45. protected function doDisplay(array $context, array $blocks = []): iterable
  46. {
  47. $macros = $this->macros;
  48. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  49. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@UVDeskSupportCenter/Templates/layout.html.twig"));
  50. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  51. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@UVDeskSupportCenter/Templates/layout.html.twig"));
  52. // line 1
  53. yield "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">
  54. <html lang=\"";
  55. // line 2
  56. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 2, $this->source); })()), "request", [], "any", false, false, false, 2), "getLocale", [], "method", false, false, false, 2), "html", null, true);
  57. yield "\">
  58. <head>
  59. <link rel=\"stylesheet\" href=\"";
  60. // line 4
  61. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/uvdesksupportcenter/css/knowledgebase.css"), "html", null, true);
  62. yield "\">
  63. <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.7.14/css/bootstrap-datetimepicker.min.css\">
  64. <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js\"></script>
  65. <script src=\"https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.13.1/underscore-min.js\"></script>
  66. <script src=\"https://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.4.0/backbone-min.js\"></script>
  67. <script src=\"https://cdnjs.cloudflare.com/ajax/libs/backbone.validation/0.11.5/backbone-validation-min.js\"></script>
  68. <script src=\"https://cdnjs.cloudflare.com/ajax/libs/backbone.paginator/2.0.8/backbone.paginator.min.js\"></script>
  69. <script src=\"https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.0/moment.min.js\"></script>\t
  70. <script src=\"https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/js/bootstrap-datetimepicker.min.js\"></script>
  71. <script src=\"";
  72. // line 16
  73. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/uvdesksupportcenter/js/_common.js"), "html", null, true);
  74. yield "\"></script>
  75. <script src = \"";
  76. // line 17
  77. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/uvdesksupportcenter/js/uikit.front.js"), "html", null, true);
  78. yield "\"></script>
  79. <script src = \"";
  80. // line 18
  81. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/uvdeskcoreframework/js/dropdown.js"), "html", null, true);
  82. yield "\"></script>
  83. ";
  84. // line 20
  85. $context["websiteDetails"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["user_service"]) || array_key_exists("user_service", $context) ? $context["user_service"] : (function () { throw new RuntimeError('Variable "user_service" does not exist.', 20, $this->source); })()), "getWebsiteDetails", ["knowledgebase"], "method", false, false, false, 20);
  86. // line 21
  87. yield " ";
  88. $context["websiteConfiguration"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["user_service"]) || array_key_exists("user_service", $context) ? $context["user_service"] : (function () { throw new RuntimeError('Variable "user_service" does not exist.', 21, $this->source); })()), "getWebsiteConfiguration", ["knowledgebase"], "method", false, false, false, 21);
  89. // line 22
  90. yield " ";
  91. $context["themeTemplate"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["user_service"]) || array_key_exists("user_service", $context) ? $context["user_service"] : (function () { throw new RuntimeError('Variable "user_service" does not exist.', 22, $this->source); })()), "getWebsiteView", [], "method", false, false, false, 22);
  92. // line 23
  93. yield "
  94. ";
  95. // line 24
  96. $context["canonical"] = (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 24, $this->source); })()), "request", [], "any", false, false, false, 24), "server", [], "any", false, false, false, 24), "get", ["REQUEST_SCHEME"], "method", false, false, false, 24) . "://") . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 24, $this->source); })()), "request", [], "any", false, false, false, 24), "server", [], "any", false, false, false, 24), "get", ["HTTP_HOST"], "method", false, false, false, 24)) . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 24, $this->source); })()), "request", [], "any", false, false, false, 24), "server", [], "any", false, false, false, 24), "get", ["PATH_INFO"], "method", false, false, false, 24));
  97. // line 25
  98. yield " <link rel=\"canonical\" href=\"";
  99. yield from $this->unwrap()->yieldBlock('canonical', $context, $blocks);
  100. yield "\">
  101. ";
  102. // line 27
  103. if (((isset($context["websiteDetails"]) || array_key_exists("websiteDetails", $context) ? $context["websiteDetails"] : (function () { throw new RuntimeError('Variable "websiteDetails" does not exist.', 27, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["websiteDetails"]) || array_key_exists("websiteDetails", $context) ? $context["websiteDetails"] : (function () { throw new RuntimeError('Variable "websiteDetails" does not exist.', 27, $this->source); })()), "favicon", [], "any", false, false, false, 27))) {
  104. // line 28
  105. yield " <link rel=\"icon\" sizes=\"16x16\" href=\"";
  106. yield (((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["websiteDetails"]) || array_key_exists("websiteDetails", $context) ? $context["websiteDetails"] : (function () { throw new RuntimeError('Variable "websiteDetails" does not exist.', 28, $this->source); })()), "favicon", [], "any", false, false, false, 28)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["websiteDetails"]) || array_key_exists("websiteDetails", $context) ? $context["websiteDetails"] : (function () { throw new RuntimeError('Variable "websiteDetails" does not exist.', 28, $this->source); })()), "favicon", [], "any", false, false, false, 28), "html", null, true)) : (null));
  107. yield "\" />
  108. ";
  109. } else {
  110. // line 30
  111. yield " <link rel=\"icon\" sizes=\"16x16\" href=\"";
  112. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("favicon.ico"), "html", null, true);
  113. yield "\" />
  114. ";
  115. }
  116. // line 32
  117. yield "
  118. ";
  119. // line 33
  120. if ((($tmp = (isset($context["websiteDetails"]) || array_key_exists("websiteDetails", $context) ? $context["websiteDetails"] : (function () { throw new RuntimeError('Variable "websiteDetails" does not exist.', 33, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  121. // line 34
  122. yield " <title>";
  123. yield from $this->unwrap()->yieldBlock('title', $context, $blocks);
  124. yield "</title>
  125. ";
  126. // line 35
  127. if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["websiteConfiguration"]) || array_key_exists("websiteConfiguration", $context) ? $context["websiteConfiguration"] : (function () { throw new RuntimeError('Variable "websiteConfiguration" does not exist.', 35, $this->source); })()), "metaDescription", [], "any", false, false, false, 35)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  128. // line 36
  129. yield " <meta name=\"description\" content=\"";
  130. yield from $this->unwrap()->yieldBlock('metaDescription', $context, $blocks);
  131. yield "\"/>
  132. ";
  133. }
  134. // line 38
  135. yield " ";
  136. if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["websiteConfiguration"]) || array_key_exists("websiteConfiguration", $context) ? $context["websiteConfiguration"] : (function () { throw new RuntimeError('Variable "websiteConfiguration" does not exist.', 38, $this->source); })()), "metaKeywords", [], "any", false, false, false, 38)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  137. // line 39
  138. yield " <meta name=\"keywords\" content=\"";
  139. yield from $this->unwrap()->yieldBlock('metaKeywords', $context, $blocks);
  140. yield "\"/>
  141. ";
  142. }
  143. // line 41
  144. yield "
  145. <meta http-equiv=\"Content-Type\" content=\"text/html;\" charset=\"";
  146. // line 42
  147. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getCharset(), "html", null, true);
  148. yield "\"/>
  149. <meta name=\"robots\" content=\"INDEX,FOLLOW\" />
  150. <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
  151. <meta property=\"og:locale\" content=\"";
  152. // line 46
  153. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 46, $this->source); })()), "request", [], "any", false, false, false, 46), "getLocale", [], "method", false, false, false, 46), "html", null, true);
  154. yield "\" />
  155. <meta property=\"og:type\" content=\"article\" />
  156. <meta property=\"og:title\" content=\"";
  157. // line 48
  158. yield from $this->unwrap()->yieldBlock('ogtitle', $context, $blocks);
  159. yield "\" />
  160. <meta property=\"og:url\" content=\"";
  161. // line 49
  162. yield from $this->unwrap()->yieldBlock('ogcanonical', $context, $blocks);
  163. yield "\" />
  164. <meta property=\"og:site_name\" content=\"";
  165. // line 50
  166. yield (((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["websiteDetails"]) || array_key_exists("websiteDetails", $context) ? $context["websiteDetails"] : (function () { throw new RuntimeError('Variable "websiteDetails" does not exist.', 50, $this->source); })()), "name", [], "any", false, false, false, 50)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["websiteDetails"]) || array_key_exists("websiteDetails", $context) ? $context["websiteDetails"] : (function () { throw new RuntimeError('Variable "websiteDetails" does not exist.', 50, $this->source); })()), "name", [], "any", false, false, false, 50), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Knowledge Base"), "html", null, true)));
  167. yield "\" />
  168. ";
  169. // line 51
  170. if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["websiteDetails"]) || array_key_exists("websiteDetails", $context) ? $context["websiteDetails"] : (function () { throw new RuntimeError('Variable "websiteDetails" does not exist.', 51, $this->source); })()), "logo", [], "any", false, false, false, 51)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  171. // line 52
  172. yield " <meta property=\"og:image\" content=\"";
  173. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["websiteDetails"]) || array_key_exists("websiteDetails", $context) ? $context["websiteDetails"] : (function () { throw new RuntimeError('Variable "websiteDetails" does not exist.', 52, $this->source); })()), "logo", [], "any", false, false, false, 52), "html", null, true);
  174. yield "\" />
  175. ";
  176. }
  177. // line 54
  178. yield " <meta name=\"twitter:card\" content=\"summary\" />
  179. <meta name=\"twitter:title\" content=\"";
  180. // line 55
  181. yield from $this->unwrap()->yieldBlock('twtitle', $context, $blocks);
  182. yield "\" />
  183. <link rel='dns-prefetch' href='//www.google.com' />
  184. <link rel='dns-prefetch' href='//fonts.googleapis.com' />
  185. <link rel='dns-prefetch' href='//fonts.gstatic.com' />
  186. <link rel='dns-prefetch' href='//cdn.uvdesk.com' />
  187. ";
  188. }
  189. // line 62
  190. yield "
  191. ";
  192. // line 63
  193. if ((($tmp = (isset($context["websiteConfiguration"]) || array_key_exists("websiteConfiguration", $context) ? $context["websiteConfiguration"] : (function () { throw new RuntimeError('Variable "websiteConfiguration" does not exist.', 63, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  194. // line 64
  195. yield " ";
  196. yield from $this->unwrap()->yieldBlock('head', $context, $blocks);
  197. // line 67
  198. yield " ";
  199. }
  200. // line 68
  201. yield "
  202. ";
  203. // line 69
  204. if ((($tmp = (isset($context["websiteConfiguration"]) || array_key_exists("websiteConfiguration", $context) ? $context["websiteConfiguration"] : (function () { throw new RuntimeError('Variable "websiteConfiguration" does not exist.', 69, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  205. // line 70
  206. yield " ";
  207. if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["uvdesk_service"]) || array_key_exists("uvdesk_service", $context) ? $context["uvdesk_service"] : (function () { throw new RuntimeError('Variable "uvdesk_service" does not exist.', 70, $this->source); })()), "isDarkSkin", [CoreExtension::getAttribute($this->env, $this->source, (isset($context["websiteConfiguration"]) || array_key_exists("websiteConfiguration", $context) ? $context["websiteConfiguration"] : (function () { throw new RuntimeError('Variable "websiteConfiguration" does not exist.', 70, $this->source); })()), "brandColor", [], "any", false, false, false, 70)], "method", false, false, false, 70)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  208. // line 71
  209. yield " ";
  210. yield from $this->load("@UVDeskSupportCenter/Knowledgebase/darkSkin.html.twig", 71)->unwrap()->yield($context);
  211. // line 72
  212. yield " ";
  213. } else {
  214. // line 73
  215. yield " ";
  216. yield from $this->load("@UVDeskSupportCenter/Knowledgebase/lightSkin.html.twig", 73)->unwrap()->yield($context);
  217. // line 74
  218. yield " ";
  219. }
  220. // line 75
  221. yield " ";
  222. }
  223. // line 76
  224. yield "
  225. ";
  226. // line 77
  227. yield from $this->unwrap()->yieldBlock('templateCSS', $context, $blocks);
  228. // line 78
  229. yield " </head>
  230. ";
  231. // line 80
  232. $context["bodyClass"] = "";
  233. // line 81
  234. yield " ";
  235. $context["bodySkinClass"] = "";
  236. // line 82
  237. yield "
  238. ";
  239. // line 83
  240. if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 83, $this->source); })()), "request", [], "any", false, false, false, 83), "locale", [], "any", false, false, false, 83) == "ar")) {
  241. // line 84
  242. yield " ";
  243. $context["bodyClass"] = "uv-rtl";
  244. // line 85
  245. yield " ";
  246. }
  247. // line 86
  248. yield "
  249. <body class=\"";
  250. // line 87
  251. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((((isset($context["bodySkinClass"]) || array_key_exists("bodySkinClass", $context) ? $context["bodySkinClass"] : (function () { throw new RuntimeError('Variable "bodySkinClass" does not exist.', 87, $this->source); })()) . " ") . (isset($context["bodyClass"]) || array_key_exists("bodyClass", $context) ? $context["bodyClass"] : (function () { throw new RuntimeError('Variable "bodyClass" does not exist.', 87, $this->source); })())), "html", null, true);
  252. yield "\">
  253. ";
  254. // line 88
  255. $context["broadcastMessage"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["uvdesk_service"]) || array_key_exists("uvdesk_service", $context) ? $context["uvdesk_service"] : (function () { throw new RuntimeError('Variable "uvdesk_service" does not exist.', 88, $this->source); })()), "getValidBroadcastMessage", [((CoreExtension::getAttribute($this->env, $this->source, ($context["websiteConfiguration"] ?? null), "broadcastMessage", [], "any", true, true, false, 88)) ? (CoreExtension::getAttribute($this->env, $this->source, (isset($context["websiteConfiguration"]) || array_key_exists("websiteConfiguration", $context) ? $context["websiteConfiguration"] : (function () { throw new RuntimeError('Variable "websiteConfiguration" does not exist.', 88, $this->source); })()), "broadcastMessage", [], "any", false, false, false, 88)) : (""))], "method", false, false, false, 88);
  256. // line 89
  257. yield " ";
  258. if ((($tmp = (isset($context["broadcastMessage"]) || array_key_exists("broadcastMessage", $context) ? $context["broadcastMessage"] : (function () { throw new RuntimeError('Variable "broadcastMessage" does not exist.', 89, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  259. // line 90
  260. yield " <div class=\"uv-kb-info\" id=\"uv-kb-info-broadcast\">
  261. <p>";
  262. // line 91
  263. yield ((CoreExtension::getAttribute($this->env, $this->source, ($context["broadcastMessage"] ?? null), "message", [], "any", true, true, false, 91)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["broadcastMessage"]) || array_key_exists("broadcastMessage", $context) ? $context["broadcastMessage"] : (function () { throw new RuntimeError('Variable "broadcastMessage" does not exist.', 91, $this->source); })()), "message", [], "any", false, false, false, 91), "html", null, true)) : (""));
  264. yield "</p>
  265. <span class=\"uv-kb-info-remove\" onclick=\"document.getElementById('uv-kb-info-broadcast').remove()\"></span>
  266. </div>
  267. ";
  268. }
  269. // line 95
  270. yield "
  271. <div class=\"uv-notifications-wrapper\">
  272. ";
  273. // line 97
  274. if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["uvdesk_service"]) || array_key_exists("uvdesk_service", $context) ? $context["uvdesk_service"] : (function () { throw new RuntimeError('Variable "uvdesk_service" does not exist.', 97, $this->source); })()), "requestHeadersSent", [], "method", false, false, false, 97) == false)) {
  275. // line 98
  276. yield " ";
  277. $context['_parent'] = $context;
  278. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 98, $this->source); })()), "session", [], "any", false, false, false, 98), "flashbag", [], "any", false, false, false, 98), "get", ["success"], "method", false, false, false, 98));
  279. foreach ($context['_seq'] as $context["_key"] => $context["flashMessage"]) {
  280. // line 99
  281. yield " <div class=\"uv-notification page-load uv-success\">
  282. <span class=\"uv-notification-close\"></span>
  283. <p>";
  284. // line 101
  285. yield $context["flashMessage"];
  286. yield "</p>
  287. </div>
  288. ";
  289. }
  290. $_parent = $context['_parent'];
  291. unset($context['_seq'], $context['_key'], $context['flashMessage'], $context['_parent']);
  292. $context = array_intersect_key($context, $_parent) + $_parent;
  293. // line 104
  294. yield " ";
  295. $context['_parent'] = $context;
  296. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 104, $this->source); })()), "session", [], "any", false, false, false, 104), "flashbag", [], "any", false, false, false, 104), "get", ["warning"], "method", false, false, false, 104));
  297. foreach ($context['_seq'] as $context["_key"] => $context["flashMessage"]) {
  298. // line 105
  299. yield " <div class=\"uv-notification page-load uv-error\">
  300. <span class=\"uv-notification-close\"></span>
  301. <p>";
  302. // line 107
  303. yield $context["flashMessage"];
  304. yield "</p>
  305. </div>
  306. ";
  307. }
  308. $_parent = $context['_parent'];
  309. unset($context['_seq'], $context['_key'], $context['flashMessage'], $context['_parent']);
  310. $context = array_intersect_key($context, $_parent) + $_parent;
  311. // line 110
  312. yield " ";
  313. }
  314. // line 111
  315. yield "
  316. <noscript>
  317. <div class=\"uv-notification uv-error\">
  318. <p>";
  319. // line 114
  320. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Your browser does not support JavaScript or You disabled JavaScript, Please enable those !", [], "messages");
  321. yield "</p>
  322. </div>
  323. <style>.uv-loader-view {display: none;}</style>
  324. </noscript>
  325. </div>
  326. ";
  327. // line 121
  328. yield from $this->unwrap()->yieldBlock('header', $context, $blocks);
  329. // line 124
  330. yield "
  331. ";
  332. // line 125
  333. yield from $this->load("@UVDeskSupportCenter/Templates/breadcrumbs.html.twig", 125)->unwrap()->yield($context);
  334. // line 126
  335. yield "
  336. ";
  337. // line 127
  338. yield from $this->unwrap()->yieldBlock('tabHeader', $context, $blocks);
  339. // line 129
  340. yield " ";
  341. yield from $this->unwrap()->yieldBlock('wrapper', $context, $blocks);
  342. // line 157
  343. yield "
  344. ";
  345. // line 158
  346. yield from $this->unwrap()->yieldBlock('footer', $context, $blocks);
  347. // line 227
  348. yield " </body>
  349. </html>
  350. ";
  351. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  352. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  353. yield from [];
  354. }
  355. // line 25
  356. /**
  357. * @return iterable<null|scalar|\Stringable>
  358. */
  359. public function block_canonical(array $context, array $blocks = []): iterable
  360. {
  361. $macros = $this->macros;
  362. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  363. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "canonical"));
  364. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  365. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "canonical"));
  366. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["canonical"]) || array_key_exists("canonical", $context) ? $context["canonical"] : (function () { throw new RuntimeError('Variable "canonical" does not exist.', 25, $this->source); })()), "html", null, true);
  367. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  368. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  369. yield from [];
  370. }
  371. // line 34
  372. /**
  373. * @return iterable<null|scalar|\Stringable>
  374. */
  375. public function block_title(array $context, array $blocks = []): iterable
  376. {
  377. $macros = $this->macros;
  378. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  379. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  380. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  381. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  382. yield (((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["websiteDetails"]) || array_key_exists("websiteDetails", $context) ? $context["websiteDetails"] : (function () { throw new RuntimeError('Variable "websiteDetails" does not exist.', 34, $this->source); })()), "name", [], "any", false, false, false, 34)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["websiteDetails"]) || array_key_exists("websiteDetails", $context) ? $context["websiteDetails"] : (function () { throw new RuntimeError('Variable "websiteDetails" does not exist.', 34, $this->source); })()), "name", [], "any", false, false, false, 34), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Knowledge Base"), "html", null, true)));
  383. yield " ";
  384. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  385. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  386. yield from [];
  387. }
  388. // line 36
  389. /**
  390. * @return iterable<null|scalar|\Stringable>
  391. */
  392. public function block_metaDescription(array $context, array $blocks = []): iterable
  393. {
  394. $macros = $this->macros;
  395. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  396. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
  397. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  398. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
  399. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["websiteConfiguration"]) || array_key_exists("websiteConfiguration", $context) ? $context["websiteConfiguration"] : (function () { throw new RuntimeError('Variable "websiteConfiguration" does not exist.', 36, $this->source); })()), "metaDescription", [], "any", false, false, false, 36), "html", null, true);
  400. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  401. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  402. yield from [];
  403. }
  404. // line 39
  405. /**
  406. * @return iterable<null|scalar|\Stringable>
  407. */
  408. public function block_metaKeywords(array $context, array $blocks = []): iterable
  409. {
  410. $macros = $this->macros;
  411. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  412. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaKeywords"));
  413. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  414. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaKeywords"));
  415. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["websiteConfiguration"]) || array_key_exists("websiteConfiguration", $context) ? $context["websiteConfiguration"] : (function () { throw new RuntimeError('Variable "websiteConfiguration" does not exist.', 39, $this->source); })()), "metaKeywords", [], "any", false, false, false, 39), "html", null, true);
  416. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  417. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  418. yield from [];
  419. }
  420. // line 48
  421. /**
  422. * @return iterable<null|scalar|\Stringable>
  423. */
  424. public function block_ogtitle(array $context, array $blocks = []): iterable
  425. {
  426. $macros = $this->macros;
  427. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  428. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ogtitle"));
  429. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  430. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ogtitle"));
  431. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("HelpDesk", [], "messages");
  432. yield " ";
  433. yield (((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["websiteDetails"]) || array_key_exists("websiteDetails", $context) ? $context["websiteDetails"] : (function () { throw new RuntimeError('Variable "websiteDetails" does not exist.', 48, $this->source); })()), "name", [], "any", false, false, false, 48)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["websiteDetails"]) || array_key_exists("websiteDetails", $context) ? $context["websiteDetails"] : (function () { throw new RuntimeError('Variable "websiteDetails" does not exist.', 48, $this->source); })()), "name", [], "any", false, false, false, 48), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Knowledge Base"), "html", null, true)));
  434. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  435. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  436. yield from [];
  437. }
  438. // line 49
  439. /**
  440. * @return iterable<null|scalar|\Stringable>
  441. */
  442. public function block_ogcanonical(array $context, array $blocks = []): iterable
  443. {
  444. $macros = $this->macros;
  445. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  446. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ogcanonical"));
  447. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  448. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ogcanonical"));
  449. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["canonical"]) || array_key_exists("canonical", $context) ? $context["canonical"] : (function () { throw new RuntimeError('Variable "canonical" does not exist.', 49, $this->source); })()), "html", null, true);
  450. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  451. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  452. yield from [];
  453. }
  454. // line 55
  455. /**
  456. * @return iterable<null|scalar|\Stringable>
  457. */
  458. public function block_twtitle(array $context, array $blocks = []): iterable
  459. {
  460. $macros = $this->macros;
  461. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  462. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "twtitle"));
  463. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  464. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "twtitle"));
  465. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("HelpDesk", [], "messages");
  466. yield " ";
  467. yield (((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["websiteDetails"]) || array_key_exists("websiteDetails", $context) ? $context["websiteDetails"] : (function () { throw new RuntimeError('Variable "websiteDetails" does not exist.', 55, $this->source); })()), "name", [], "any", false, false, false, 55)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["websiteDetails"]) || array_key_exists("websiteDetails", $context) ? $context["websiteDetails"] : (function () { throw new RuntimeError('Variable "websiteDetails" does not exist.', 55, $this->source); })()), "name", [], "any", false, false, false, 55), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Knowledge Base"), "html", null, true)));
  468. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  469. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  470. yield from [];
  471. }
  472. // line 64
  473. /**
  474. * @return iterable<null|scalar|\Stringable>
  475. */
  476. public function block_head(array $context, array $blocks = []): iterable
  477. {
  478. $macros = $this->macros;
  479. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  480. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head"));
  481. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  482. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head"));
  483. // line 65
  484. yield " ";
  485. yield from $this->load("@UVDeskSupportCenter/Knowledgebase/websiteSettings.html.twig", 65)->unwrap()->yield($context);
  486. // line 66
  487. yield " ";
  488. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  489. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  490. yield from [];
  491. }
  492. // line 77
  493. /**
  494. * @return iterable<null|scalar|\Stringable>
  495. */
  496. public function block_templateCSS(array $context, array $blocks = []): iterable
  497. {
  498. $macros = $this->macros;
  499. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  500. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "templateCSS"));
  501. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  502. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "templateCSS"));
  503. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  504. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  505. yield from [];
  506. }
  507. // line 121
  508. /**
  509. * @return iterable<null|scalar|\Stringable>
  510. */
  511. public function block_header(array $context, array $blocks = []): iterable
  512. {
  513. $macros = $this->macros;
  514. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  515. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
  516. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  517. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
  518. // line 122
  519. yield " ";
  520. yield from $this->load("@UVDeskSupportCenter/Templates/header.html.twig", 122)->unwrap()->yield($context);
  521. // line 123
  522. yield " ";
  523. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  524. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  525. yield from [];
  526. }
  527. // line 127
  528. /**
  529. * @return iterable<null|scalar|\Stringable>
  530. */
  531. public function block_tabHeader(array $context, array $blocks = []): iterable
  532. {
  533. $macros = $this->macros;
  534. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  535. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "tabHeader"));
  536. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  537. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "tabHeader"));
  538. // line 128
  539. yield " ";
  540. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  541. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  542. yield from [];
  543. }
  544. // line 129
  545. /**
  546. * @return iterable<null|scalar|\Stringable>
  547. */
  548. public function block_wrapper(array $context, array $blocks = []): iterable
  549. {
  550. $macros = $this->macros;
  551. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  552. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "wrapper"));
  553. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  554. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "wrapper"));
  555. // line 130
  556. yield " <div class=\"uv-body\">
  557. <div class=\"uv-container\">
  558. ";
  559. // line 132
  560. yield from $this->unwrap()->yieldBlock('body', $context, $blocks);
  561. // line 154
  562. yield " </div>
  563. </div>
  564. ";
  565. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  566. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  567. yield from [];
  568. }
  569. // line 132
  570. /**
  571. * @return iterable<null|scalar|\Stringable>
  572. */
  573. public function block_body(array $context, array $blocks = []): iterable
  574. {
  575. $macros = $this->macros;
  576. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  577. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  578. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  579. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  580. // line 133
  581. yield " ";
  582. if ((array_key_exists("websiteConfiguration", $context) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["websiteConfiguration"]) || array_key_exists("websiteConfiguration", $context) ? $context["websiteConfiguration"] : (function () { throw new RuntimeError('Variable "websiteConfiguration" does not exist.', 133, $this->source); })()), "ticketCreateOption", [], "any", false, false, false, 133))) {
  583. // line 134
  584. yield " ";
  585. if (( !CoreExtension::getAttribute($this->env, $this->source, (isset($context["websiteConfiguration"]) || array_key_exists("websiteConfiguration", $context) ? $context["websiteConfiguration"] : (function () { throw new RuntimeError('Variable "websiteConfiguration" does not exist.', 134, $this->source); })()), "loginRequiredToCreate", [], "any", false, false, false, 134) || CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 134, $this->source); })()), "user", [], "any", false, false, false, 134))) {
  586. // line 135
  587. yield " <div class=\"uv-cta-wrapper\">
  588. <div class=\"uv-cta-lt\">
  589. <svg
  590. xmlns=\"http://www.w3.org/2000/svg\"
  591. xmlns:xlink=\"http://www.w3.org/1999/xlink\"
  592. width=\"60px\" height=\"60px\">
  593. <path fill-rule=\"evenodd\" fill=\"rgb(124, 116, 241)\"
  594. d=\"M57.000,12.000 L51.000,12.000 L50.984,38.993 L12.000,39.000 L12.000,45.000 C12.000,46.649 13.351,48.000 15.000,48.000 L48.000,48.000 L60.000,60.000 L60.000,15.000 C60.000,13.351 58.649,12.000 57.000,12.000 ZM45.000,30.000 L45.000,3.000 C45.000,1.351 43.649,0.000 42.000,0.000 L3.000,0.000 C1.351,0.000 -0.000,1.351 -0.000,3.000 L-0.000,45.000 L12.000,33.000 L42.000,33.000 C43.649,33.000 45.000,31.649 45.000,30.000 Z\"/>
  595. </svg>
  596. </div>
  597. <div class=\"uv-cta-rt\">
  598. <h2>";
  599. // line 146
  600. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Unable to find an answer?"), "html", null, true);
  601. yield "</h2>
  602. <p>";
  603. // line 147
  604. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Looking for anything specific article which resides in general queries? Just browse the various relevant folders and categories and then you will find the desired article."), "html", null, true);
  605. yield "</p>
  606. <a href=\"";
  607. // line 148
  608. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_customer_create_ticket");
  609. yield "\" class=\"uv-btn uv-margin-top-15\">";
  610. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Contact Us"), "html", null, true);
  611. yield "</a>
  612. </div>
  613. </div>
  614. ";
  615. }
  616. // line 152
  617. yield " ";
  618. }
  619. yield "
  620. ";
  621. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  622. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  623. yield from [];
  624. }
  625. // line 158
  626. /**
  627. * @return iterable<null|scalar|\Stringable>
  628. */
  629. public function block_footer(array $context, array $blocks = []): iterable
  630. {
  631. $macros = $this->macros;
  632. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  633. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
  634. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  635. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
  636. // line 159
  637. yield " ";
  638. yield from $this->load("@UVDeskSupportCenter/Templates/footer.html.twig", 159)->unwrap()->yield($context);
  639. // line 160
  640. yield "
  641. ";
  642. // line 161
  643. yield from $this->load("@UVDeskSupportCenter/Templates/pagination.html.twig", 161)->unwrap()->yield($context);
  644. // line 162
  645. yield "
  646. <!-- Loader Template-->
  647. <script type=\"text/template\" id=\"loader-tmp\">
  648. <div class=\"uv-loader\">
  649. <span></span>
  650. <span></span>
  651. <span></span>
  652. </div>
  653. </script>
  654. <!-- Loader Template-->
  655. <!-- Full View Loader Template-->
  656. <script type=\"text/template\" id=\"full-view-loader\">
  657. <div class=\"uv-loader-view\">
  658. <div class=\"uv-loader\">
  659. <span></span>
  660. <span></span>
  661. <span></span>
  662. </div>
  663. </div>
  664. </script>
  665. <!-- //Full View Loader Template-->
  666. <!-- Notification Template -->
  667. <script type=\"text/template\" id=\"notification-template\">
  668. <div class=\"uv-notification <% if (alertClass == 'danger') { %>uv-error<% } else { %> <%= 'uv-' + alertClass %> <% } %>\">
  669. <span class=\"uv-notification-close\"></span>
  670. <p><%= alertMessage %> </p>
  671. </div>
  672. </script>
  673. <script type=\"text/javascript\">
  674. var warningResponse = {
  675. 'alertClass' : 'danger',
  676. 'alertMessage' : '";
  677. // line 195
  678. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Error : Something went wrong, please try again later"), "html", null, true);
  679. yield "',
  680. };
  681. </script>
  682. ";
  683. // line 199
  684. if ((CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "user", [], "any", true, true, false, 199) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 199, $this->source); })()), "user", [], "any", false, false, false, 199)))) {
  685. // line 200
  686. yield " <script type=\"text/javascript\">
  687. setInterval(async () => {
  688. try {
  689. const response = await fetch('";
  690. // line 203
  691. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_customer_session_check");
  692. yield "', {
  693. credentials: 'include'
  694. });
  695. if (!response.ok) {
  696. if (
  697. response.status === 401
  698. || response.status === 440
  699. ) {
  700. window.location.href = '";
  701. // line 212
  702. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_customer_login");
  703. yield "';
  704. }
  705. } else {
  706. const data = await response.json();
  707. console.log('Session status:', data.session);
  708. }
  709. } catch (err) {
  710. console.error('Error checking session:', err);
  711. }
  712. }, 20 * 60 * 1000); // Every 20 minutes
  713. </script>
  714. ";
  715. }
  716. // line 224
  717. yield "
  718. ";
  719. // line 225
  720. yield from $this->load("@UVDeskSupportCenter/Themes/cookiePolicy.html.twig", 225)->unwrap()->yield($context);
  721. // line 226
  722. yield " ";
  723. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  724. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  725. yield from [];
  726. }
  727. /**
  728. * @codeCoverageIgnore
  729. */
  730. public function getTemplateName(): string
  731. {
  732. return "@UVDeskSupportCenter/Templates/layout.html.twig";
  733. }
  734. /**
  735. * @codeCoverageIgnore
  736. */
  737. public function isTraitable(): bool
  738. {
  739. return false;
  740. }
  741. /**
  742. * @codeCoverageIgnore
  743. */
  744. public function getDebugInfo(): array
  745. {
  746. return array ( 843 => 226, 841 => 225, 838 => 224, 823 => 212, 811 => 203, 806 => 200, 804 => 199, 797 => 195, 762 => 162, 760 => 161, 757 => 160, 754 => 159, 741 => 158, 727 => 152, 718 => 148, 714 => 147, 710 => 146, 697 => 135, 694 => 134, 691 => 133, 678 => 132, 665 => 154, 663 => 132, 659 => 130, 646 => 129, 635 => 128, 622 => 127, 611 => 123, 608 => 122, 595 => 121, 573 => 77, 562 => 66, 559 => 65, 546 => 64, 521 => 55, 498 => 49, 473 => 48, 450 => 39, 427 => 36, 403 => 34, 380 => 25, 367 => 227, 365 => 158, 362 => 157, 359 => 129, 357 => 127, 354 => 126, 352 => 125, 349 => 124, 347 => 121, 337 => 114, 332 => 111, 329 => 110, 320 => 107, 316 => 105, 311 => 104, 302 => 101, 298 => 99, 293 => 98, 291 => 97, 287 => 95, 280 => 91, 277 => 90, 274 => 89, 272 => 88, 268 => 87, 265 => 86, 262 => 85, 259 => 84, 257 => 83, 254 => 82, 251 => 81, 249 => 80, 245 => 78, 243 => 77, 240 => 76, 237 => 75, 234 => 74, 231 => 73, 228 => 72, 225 => 71, 222 => 70, 220 => 69, 217 => 68, 214 => 67, 211 => 64, 209 => 63, 206 => 62, 196 => 55, 193 => 54, 187 => 52, 185 => 51, 181 => 50, 177 => 49, 173 => 48, 168 => 46, 161 => 42, 158 => 41, 152 => 39, 149 => 38, 143 => 36, 141 => 35, 136 => 34, 134 => 33, 131 => 32, 125 => 30, 119 => 28, 117 => 27, 111 => 25, 109 => 24, 106 => 23, 103 => 22, 100 => 21, 98 => 20, 93 => 18, 89 => 17, 85 => 16, 70 => 4, 65 => 2, 62 => 1,);
  747. }
  748. public function getSourceContext(): Source
  749. {
  750. return new Source("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">
  751. <html lang=\"{{app.request.getLocale()}}\">
  752. <head>
  753. <link rel=\"stylesheet\" href=\"{{ asset('bundles/uvdesksupportcenter/css/knowledgebase.css') }}\">
  754. <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.7.14/css/bootstrap-datetimepicker.min.css\">
  755. <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js\"></script>
  756. <script src=\"https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.13.1/underscore-min.js\"></script>
  757. <script src=\"https://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.4.0/backbone-min.js\"></script>
  758. <script src=\"https://cdnjs.cloudflare.com/ajax/libs/backbone.validation/0.11.5/backbone-validation-min.js\"></script>
  759. <script src=\"https://cdnjs.cloudflare.com/ajax/libs/backbone.paginator/2.0.8/backbone.paginator.min.js\"></script>
  760. <script src=\"https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.0/moment.min.js\"></script>\t
  761. <script src=\"https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/js/bootstrap-datetimepicker.min.js\"></script>
  762. <script src=\"{{ asset('bundles/uvdesksupportcenter/js/_common.js') }}\"></script>
  763. <script src = \"{{ asset('bundles/uvdesksupportcenter/js/uikit.front.js') }}\"></script>
  764. <script src = \"{{ asset('bundles/uvdeskcoreframework/js/dropdown.js') }}\"></script>
  765. {% set websiteDetails = user_service.getWebsiteDetails('knowledgebase') %}
  766. {% set websiteConfiguration = user_service.getWebsiteConfiguration('knowledgebase') %}
  767. {% set themeTemplate = user_service.getWebsiteView() %}
  768. {% set canonical = app.request.server.get('REQUEST_SCHEME')~'://'~app.request.server.get('HTTP_HOST')~app.request.server.get('PATH_INFO') %}
  769. <link rel=\"canonical\" href=\"{% block canonical %}{{canonical}}{% endblock %}\">
  770. {% if websiteDetails and (websiteDetails.favicon) %}
  771. <link rel=\"icon\" sizes=\"16x16\" href=\"{{websiteDetails.favicon ? websiteDetails.favicon : null}}\" />
  772. {% else %}
  773. <link rel=\"icon\" sizes=\"16x16\" href=\"{{ asset('favicon.ico') }}\" />
  774. {% endif %}
  775. {% if websiteDetails %}
  776. <title>{% block title %}{{ websiteDetails.name ? websiteDetails.name : 'Knowledge Base'|trans }} {% endblock %}</title>
  777. {% if websiteConfiguration.metaDescription %}
  778. <meta name=\"description\" content=\"{% block metaDescription %}{{ websiteConfiguration.metaDescription }}{% endblock %}\"/>
  779. {% endif %}
  780. {% if websiteConfiguration.metaKeywords %}
  781. <meta name=\"keywords\" content=\"{% block metaKeywords %}{{ websiteConfiguration.metaKeywords }}{% endblock %}\"/>
  782. {% endif %}
  783. <meta http-equiv=\"Content-Type\" content=\"text/html;\" charset=\"{{ _charset }}\"/>
  784. <meta name=\"robots\" content=\"INDEX,FOLLOW\" />
  785. <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
  786. <meta property=\"og:locale\" content=\"{{app.request.getLocale()}}\" />
  787. <meta property=\"og:type\" content=\"article\" />
  788. <meta property=\"og:title\" content=\"{% block ogtitle %}{% trans %}HelpDesk{% endtrans %} {{ websiteDetails.name ? websiteDetails.name : 'Knowledge Base'|trans }}{% endblock %}\" />
  789. <meta property=\"og:url\" content=\"{% block ogcanonical %}{{canonical}}{% endblock %}\" />
  790. <meta property=\"og:site_name\" content=\"{{ websiteDetails.name ? websiteDetails.name : 'Knowledge Base'|trans }}\" />
  791. {% if websiteDetails.logo %}
  792. <meta property=\"og:image\" content=\"{{ websiteDetails.logo }}\" />
  793. {% endif %}
  794. <meta name=\"twitter:card\" content=\"summary\" />
  795. <meta name=\"twitter:title\" content=\"{% block twtitle %}{% trans %}HelpDesk{% endtrans %} {{ websiteDetails.name ? websiteDetails.name : 'Knowledge Base'|trans }}{% endblock %}\" />
  796. <link rel='dns-prefetch' href='//www.google.com' />
  797. <link rel='dns-prefetch' href='//fonts.googleapis.com' />
  798. <link rel='dns-prefetch' href='//fonts.gstatic.com' />
  799. <link rel='dns-prefetch' href='//cdn.uvdesk.com' />
  800. {% endif %}
  801. {% if websiteConfiguration %}
  802. {% block head %}
  803. {% include \"@UVDeskSupportCenter/Knowledgebase/websiteSettings.html.twig\" %}
  804. {% endblock %}
  805. {% endif %}
  806. {% if websiteConfiguration %}
  807. {% if uvdesk_service.isDarkSkin(websiteConfiguration.brandColor) %}
  808. {% include '@UVDeskSupportCenter/Knowledgebase/darkSkin.html.twig' %}
  809. {% else %}
  810. {% include '@UVDeskSupportCenter/Knowledgebase/lightSkin.html.twig' %}
  811. {% endif %}
  812. {% endif %}
  813. {% block templateCSS %}{% endblock %}
  814. </head>
  815. {% set bodyClass = '' %}
  816. {% set bodySkinClass = '' %}
  817. {% if app.request.locale == \"ar\" %}
  818. {% set bodyClass = 'uv-rtl' %}
  819. {% endif %}
  820. <body class=\"{{ bodySkinClass ~ ' ' ~ bodyClass }}\">
  821. {% set broadcastMessage = uvdesk_service.getValidBroadcastMessage(websiteConfiguration.broadcastMessage is defined ? websiteConfiguration.broadcastMessage : '') %}
  822. {% if broadcastMessage %}
  823. <div class=\"uv-kb-info\" id=\"uv-kb-info-broadcast\">
  824. <p>{{ broadcastMessage.message is defined ? broadcastMessage.message : '' }}</p>
  825. <span class=\"uv-kb-info-remove\" onclick=\"document.getElementById('uv-kb-info-broadcast').remove()\"></span>
  826. </div>
  827. {% endif %}
  828. <div class=\"uv-notifications-wrapper\">
  829. {% if uvdesk_service.requestHeadersSent() == false %}
  830. {% for flashMessage in app.session.flashbag.get('success') %}
  831. <div class=\"uv-notification page-load uv-success\">
  832. <span class=\"uv-notification-close\"></span>
  833. <p>{{ flashMessage|raw }}</p>
  834. </div>
  835. {% endfor %}
  836. {% for flashMessage in app.session.flashbag.get('warning') %}
  837. <div class=\"uv-notification page-load uv-error\">
  838. <span class=\"uv-notification-close\"></span>
  839. <p>{{ flashMessage|raw }}</p>
  840. </div>
  841. {% endfor %}
  842. {% endif %}
  843. <noscript>
  844. <div class=\"uv-notification uv-error\">
  845. <p>{% trans %}Your browser does not support JavaScript or You disabled JavaScript, Please enable those !{% endtrans %}</p>
  846. </div>
  847. <style>.uv-loader-view {display: none;}</style>
  848. </noscript>
  849. </div>
  850. {% block header %}
  851. {% include \"@UVDeskSupportCenter/Templates/header.html.twig\" %}
  852. {% endblock %}
  853. {% include \"@UVDeskSupportCenter/Templates/breadcrumbs.html.twig\" %}
  854. {% block tabHeader %}
  855. {% endblock %}
  856. {% block wrapper %}
  857. <div class=\"uv-body\">
  858. <div class=\"uv-container\">
  859. {% block body %}
  860. {% if websiteConfiguration is defined and websiteConfiguration.ticketCreateOption %}
  861. {% if not websiteConfiguration.loginRequiredToCreate or app.user %}
  862. <div class=\"uv-cta-wrapper\">
  863. <div class=\"uv-cta-lt\">
  864. <svg
  865. xmlns=\"http://www.w3.org/2000/svg\"
  866. xmlns:xlink=\"http://www.w3.org/1999/xlink\"
  867. width=\"60px\" height=\"60px\">
  868. <path fill-rule=\"evenodd\" fill=\"rgb(124, 116, 241)\"
  869. d=\"M57.000,12.000 L51.000,12.000 L50.984,38.993 L12.000,39.000 L12.000,45.000 C12.000,46.649 13.351,48.000 15.000,48.000 L48.000,48.000 L60.000,60.000 L60.000,15.000 C60.000,13.351 58.649,12.000 57.000,12.000 ZM45.000,30.000 L45.000,3.000 C45.000,1.351 43.649,0.000 42.000,0.000 L3.000,0.000 C1.351,0.000 -0.000,1.351 -0.000,3.000 L-0.000,45.000 L12.000,33.000 L42.000,33.000 C43.649,33.000 45.000,31.649 45.000,30.000 Z\"/>
  870. </svg>
  871. </div>
  872. <div class=\"uv-cta-rt\">
  873. <h2>{{\"Unable to find an answer?\"|trans}}</h2>
  874. <p>{{\"Looking for anything specific article which resides in general queries? Just browse the various relevant folders and categories and then you will find the desired article.\"|trans}}</p>
  875. <a href=\"{{ path('helpdesk_customer_create_ticket') }}\" class=\"uv-btn uv-margin-top-15\">{{'Contact Us'|trans}}</a>
  876. </div>
  877. </div>
  878. {% endif %}
  879. {% endif %}
  880. {% endblock %}
  881. </div>
  882. </div>
  883. {% endblock %}
  884. {% block footer %}
  885. {% include \"@UVDeskSupportCenter/Templates/footer.html.twig\" %}
  886. {% include \"@UVDeskSupportCenter/Templates/pagination.html.twig\" %}
  887. <!-- Loader Template-->
  888. <script type=\"text/template\" id=\"loader-tmp\">
  889. <div class=\"uv-loader\">
  890. <span></span>
  891. <span></span>
  892. <span></span>
  893. </div>
  894. </script>
  895. <!-- Loader Template-->
  896. <!-- Full View Loader Template-->
  897. <script type=\"text/template\" id=\"full-view-loader\">
  898. <div class=\"uv-loader-view\">
  899. <div class=\"uv-loader\">
  900. <span></span>
  901. <span></span>
  902. <span></span>
  903. </div>
  904. </div>
  905. </script>
  906. <!-- //Full View Loader Template-->
  907. <!-- Notification Template -->
  908. <script type=\"text/template\" id=\"notification-template\">
  909. <div class=\"uv-notification <% if (alertClass == 'danger') { %>uv-error<% } else { %> <%= 'uv-' + alertClass %> <% } %>\">
  910. <span class=\"uv-notification-close\"></span>
  911. <p><%= alertMessage %> </p>
  912. </div>
  913. </script>
  914. <script type=\"text/javascript\">
  915. var warningResponse = {
  916. 'alertClass' : 'danger',
  917. 'alertMessage' : '{{ \"Error : Something went wrong, please try again later\"|trans }}',
  918. };
  919. </script>
  920. {% if app.user is defined and app.user is not empty %}
  921. <script type=\"text/javascript\">
  922. setInterval(async () => {
  923. try {
  924. const response = await fetch('{{ path('helpdesk_customer_session_check') }}', {
  925. credentials: 'include'
  926. });
  927. if (!response.ok) {
  928. if (
  929. response.status === 401
  930. || response.status === 440
  931. ) {
  932. window.location.href = '{{ path('helpdesk_customer_login') }}';
  933. }
  934. } else {
  935. const data = await response.json();
  936. console.log('Session status:', data.session);
  937. }
  938. } catch (err) {
  939. console.error('Error checking session:', err);
  940. }
  941. }, 20 * 60 * 1000); // Every 20 minutes
  942. </script>
  943. {% endif %}
  944. {% include('@UVDeskSupportCenter/Themes/cookiePolicy.html.twig') %}
  945. {% endblock %}
  946. </body>
  947. </html>
  948. ", "@UVDeskSupportCenter/Templates/layout.html.twig", "/var/www/html/uvdesk-community-v1.1.8/vendor/uvdesk/support-center-bundle/Resources/views/Templates/layout.html.twig");
  949. }
  950. }