vendor/uvdesk/support-center-bundle/Resources/views/Templates/layout.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html lang="{{app.request.getLocale()}}">
  3. <head>
  4. <link rel="stylesheet" href="{{ asset('bundles/uvdesksupportcenter/css/knowledgebase.css') }}">
  5. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.7.14/css/bootstrap-datetimepicker.min.css">
  6. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
  7. <script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.13.1/underscore-min.js"></script>
  8. <script src="https://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.4.0/backbone-min.js"></script>
  9. <script src="https://cdnjs.cloudflare.com/ajax/libs/backbone.validation/0.11.5/backbone-validation-min.js"></script>
  10. <script src="https://cdnjs.cloudflare.com/ajax/libs/backbone.paginator/2.0.8/backbone.paginator.min.js"></script>
  11. <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.0/moment.min.js"></script>
  12. <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/js/bootstrap-datetimepicker.min.js"></script>
  13. <script src="{{ asset('bundles/uvdesksupportcenter/js/_common.js') }}"></script>
  14. <script src = "{{ asset('bundles/uvdesksupportcenter/js/uikit.front.js') }}"></script>
  15. <script src = "{{ asset('bundles/uvdeskcoreframework/js/dropdown.js') }}"></script>
  16. {% set websiteDetails = user_service.getWebsiteDetails('knowledgebase') %}
  17. {% set websiteConfiguration = user_service.getWebsiteConfiguration('knowledgebase') %}
  18. {% set themeTemplate = user_service.getWebsiteView() %}
  19. {% set canonical = app.request.server.get('REQUEST_SCHEME')~'://'~app.request.server.get('HTTP_HOST')~app.request.server.get('PATH_INFO') %}
  20. <link rel="canonical" href="{% block canonical %}{{canonical}}{% endblock %}">
  21. {% if websiteDetails and (websiteDetails.favicon) %}
  22. <link rel="icon" sizes="16x16" href="{{websiteDetails.favicon ? websiteDetails.favicon : null}}" />
  23. {% else %}
  24. <link rel="icon" sizes="16x16" href="{{ asset('favicon.ico') }}" />
  25. {% endif %}
  26. {% if websiteDetails %}
  27. <title>{% block title %}{{ websiteDetails.name ? websiteDetails.name : 'Knowledge Base'|trans }} {% endblock %}</title>
  28. {% if websiteConfiguration.metaDescription %}
  29. <meta name="description" content="{% block metaDescription %}{{ websiteConfiguration.metaDescription }}{% endblock %}"/>
  30. {% endif %}
  31. {% if websiteConfiguration.metaKeywords %}
  32. <meta name="keywords" content="{% block metaKeywords %}{{ websiteConfiguration.metaKeywords }}{% endblock %}"/>
  33. {% endif %}
  34. <meta http-equiv="Content-Type" content="text/html;" charset="{{ _charset }}"/>
  35. <meta name="robots" content="INDEX,FOLLOW" />
  36. <meta name="viewport" content="width=device-width, initial-scale=1">
  37. <meta property="og:locale" content="{{app.request.getLocale()}}" />
  38. <meta property="og:type" content="article" />
  39. <meta property="og:title" content="{% block ogtitle %}{% trans %}HelpDesk{% endtrans %} {{ websiteDetails.name ? websiteDetails.name : 'Knowledge Base'|trans }}{% endblock %}" />
  40. <meta property="og:url" content="{% block ogcanonical %}{{canonical}}{% endblock %}" />
  41. <meta property="og:site_name" content="{{ websiteDetails.name ? websiteDetails.name : 'Knowledge Base'|trans }}" />
  42. {% if websiteDetails.logo %}
  43. <meta property="og:image" content="{{ websiteDetails.logo }}" />
  44. {% endif %}
  45. <meta name="twitter:card" content="summary" />
  46. <meta name="twitter:title" content="{% block twtitle %}{% trans %}HelpDesk{% endtrans %} {{ websiteDetails.name ? websiteDetails.name : 'Knowledge Base'|trans }}{% endblock %}" />
  47. <link rel='dns-prefetch' href='//www.google.com' />
  48. <link rel='dns-prefetch' href='//fonts.googleapis.com' />
  49. <link rel='dns-prefetch' href='//fonts.gstatic.com' />
  50. <link rel='dns-prefetch' href='//cdn.uvdesk.com' />
  51. {% endif %}
  52. {% if websiteConfiguration %}
  53. {% block head %}
  54. {% include "@UVDeskSupportCenter/Knowledgebase/websiteSettings.html.twig" %}
  55. {% endblock %}
  56. {% endif %}
  57. {% if websiteConfiguration %}
  58. {% if uvdesk_service.isDarkSkin(websiteConfiguration.brandColor) %}
  59. {% include '@UVDeskSupportCenter/Knowledgebase/darkSkin.html.twig' %}
  60. {% else %}
  61. {% include '@UVDeskSupportCenter/Knowledgebase/lightSkin.html.twig' %}
  62. {% endif %}
  63. {% endif %}
  64. {% block templateCSS %}{% endblock %}
  65. </head>
  66. {% set bodyClass = '' %}
  67. {% set bodySkinClass = '' %}
  68. {% if app.request.locale == "ar" %}
  69. {% set bodyClass = 'uv-rtl' %}
  70. {% endif %}
  71. <body class="{{ bodySkinClass ~ ' ' ~ bodyClass }}">
  72. {% set broadcastMessage = uvdesk_service.getValidBroadcastMessage(websiteConfiguration.broadcastMessage is defined ? websiteConfiguration.broadcastMessage : '') %}
  73. {% if broadcastMessage %}
  74. <div class="uv-kb-info" id="uv-kb-info-broadcast">
  75. <p>{{ broadcastMessage.message is defined ? broadcastMessage.message : '' }}</p>
  76. <span class="uv-kb-info-remove" onclick="document.getElementById('uv-kb-info-broadcast').remove()"></span>
  77. </div>
  78. {% endif %}
  79. <div class="uv-notifications-wrapper">
  80. {% if uvdesk_service.requestHeadersSent() == false %}
  81. {% for flashMessage in app.session.flashbag.get('success') %}
  82. <div class="uv-notification page-load uv-success">
  83. <span class="uv-notification-close"></span>
  84. <p>{{ flashMessage|raw }}</p>
  85. </div>
  86. {% endfor %}
  87. {% for flashMessage in app.session.flashbag.get('warning') %}
  88. <div class="uv-notification page-load uv-error">
  89. <span class="uv-notification-close"></span>
  90. <p>{{ flashMessage|raw }}</p>
  91. </div>
  92. {% endfor %}
  93. {% endif %}
  94. <noscript>
  95. <div class="uv-notification uv-error">
  96. <p>{% trans %}Your browser does not support JavaScript or You disabled JavaScript, Please enable those !{% endtrans %}</p>
  97. </div>
  98. <style>.uv-loader-view {display: none;}</style>
  99. </noscript>
  100. </div>
  101. {% block header %}
  102. {% include "@UVDeskSupportCenter/Templates/header.html.twig" %}
  103. {% endblock %}
  104. {% include "@UVDeskSupportCenter/Templates/breadcrumbs.html.twig" %}
  105. {% block tabHeader %}
  106. {% endblock %}
  107. {% block wrapper %}
  108. <div class="uv-body">
  109. <div class="uv-container">
  110. {% block body %}
  111. {% if websiteConfiguration is defined and websiteConfiguration.ticketCreateOption %}
  112. {% if not websiteConfiguration.loginRequiredToCreate or app.user %}
  113. <div class="uv-cta-wrapper">
  114. <div class="uv-cta-lt">
  115. <svg
  116. xmlns="http://www.w3.org/2000/svg"
  117. xmlns:xlink="http://www.w3.org/1999/xlink"
  118. width="60px" height="60px">
  119. <path fill-rule="evenodd" fill="rgb(124, 116, 241)"
  120. 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"/>
  121. </svg>
  122. </div>
  123. <div class="uv-cta-rt">
  124. <h2>{{"Unable to find an answer?"|trans}}</h2>
  125. <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>
  126. <a href="{{ path('helpdesk_customer_create_ticket') }}" class="uv-btn uv-margin-top-15">{{'Contact Us'|trans}}</a>
  127. </div>
  128. </div>
  129. {% endif %}
  130. {% endif %}
  131. {% endblock %}
  132. </div>
  133. </div>
  134. {% endblock %}
  135. {% block footer %}
  136. {% include "@UVDeskSupportCenter/Templates/footer.html.twig" %}
  137. {% include "@UVDeskSupportCenter/Templates/pagination.html.twig" %}
  138. <!-- Loader Template-->
  139. <script type="text/template" id="loader-tmp">
  140. <div class="uv-loader">
  141. <span></span>
  142. <span></span>
  143. <span></span>
  144. </div>
  145. </script>
  146. <!-- Loader Template-->
  147. <!-- Full View Loader Template-->
  148. <script type="text/template" id="full-view-loader">
  149. <div class="uv-loader-view">
  150. <div class="uv-loader">
  151. <span></span>
  152. <span></span>
  153. <span></span>
  154. </div>
  155. </div>
  156. </script>
  157. <!-- //Full View Loader Template-->
  158. <!-- Notification Template -->
  159. <script type="text/template" id="notification-template">
  160. <div class="uv-notification <% if(alertClass == 'danger') { %>uv-error<% } else { %> <%= 'uv-' + alertClass %> <% } %>">
  161. <span class="uv-notification-close"></span>
  162. <p><%= alertMessage %> </p>
  163. </div>
  164. </script>
  165. <script type="text/javascript">
  166. var warningResponse = {
  167. 'alertClass' : 'danger',
  168. 'alertMessage' : '{{ "Error : Something went wrong, please try again later"|trans }}',
  169. };
  170. </script>
  171. {% include('@UVDeskSupportCenter/Themes/cookiePolicy.html.twig') %}
  172. {% endblock %}
  173. </body>
  174. </html>