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