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.         {% set websiteDetails = user_service.getWebsiteDetails('knowledgebase') %}
  19.         {% set websiteConfiguration = user_service.getWebsiteConfiguration('knowledgebase') %}
  20.         {% set themeTemplate = user_service.getWebsiteView() %}
  21.         {% set canonical = app.request.server.get('REQUEST_SCHEME')~'://'~app.request.server.get('HTTP_HOST')~app.request.server.get('PATH_INFO') %}
  22.         <link rel="canonical" href="{% block canonical %}{{canonical}}{% endblock %}">
  23.         {% if websiteDetails and (websiteDetails.favicon) %}
  24.             <link rel="icon" sizes="16x16" href="{{websiteDetails.favicon ? websiteDetails.favicon : null}}" />
  25.         {% else %}
  26.             <link rel="icon" sizes="16x16" href="{{ asset('favicon.ico') }}" />
  27.         {% endif %}
  28.         {% if websiteDetails %}
  29.             <title>{% block title %}{{ websiteDetails.name ? websiteDetails.name : 'Knowledge Base'|trans }} {% endblock %}</title>
  30.             {% if websiteConfiguration.metaDescription %}
  31.                 <meta name="description" content="{% block metaDescription %}{{ websiteConfiguration.metaDescription }}{% endblock %}"/>
  32.             {% endif %}
  33.             {% if websiteConfiguration.metaKeywords %}
  34.                 <meta name="keywords" content="{% block metaKeywords %}{{ websiteConfiguration.metaKeywords }}{% endblock %}"/>
  35.             {% endif %}
  36.             <meta http-equiv="Content-Type" content="text/html;" charset="{{ _charset }}"/>
  37.             <meta name="robots" content="INDEX,FOLLOW" />
  38.             <meta name="viewport" content="width=device-width, initial-scale=1">
  39.             <meta property="og:locale" content="{{app.request.getLocale()}}" />
  40.             <meta property="og:type" content="article" />
  41.             <meta property="og:title" content="{% block ogtitle %}{% trans %}HelpDesk{% endtrans %} {{ websiteDetails.name ? websiteDetails.name : 'Knowledge Base'|trans }}{% endblock %}" />
  42.             <meta property="og:url" content="{% block ogcanonical %}{{canonical}}{% endblock %}" />
  43.             <meta property="og:site_name" content="{{ websiteDetails.name ? websiteDetails.name : 'Knowledge Base'|trans }}" />
  44.             {% if websiteDetails.logo %}
  45.                 <meta property="og:image" content="{{ websiteDetails.logo }}" />
  46.             {% endif %}
  47.             <meta name="twitter:card" content="summary" />
  48.             <meta name="twitter:title" content="{% block twtitle %}{% trans %}HelpDesk{% endtrans %} {{ websiteDetails.name ? websiteDetails.name : 'Knowledge Base'|trans }}{% endblock %}" />
  49.             <link rel='dns-prefetch' href='//www.google.com' />
  50.             <link rel='dns-prefetch' href='//fonts.googleapis.com' />
  51.             <link rel='dns-prefetch' href='//fonts.gstatic.com' />
  52.             <link rel='dns-prefetch' href='//cdn.uvdesk.com' />
  53.         {% endif %}
  54.         {% if websiteConfiguration %}
  55.             {% block head %}
  56.                 {% include "@UVDeskSupportCenter/Knowledgebase/websiteSettings.html.twig" %}
  57.             {% endblock %}
  58.         {% endif %}
  59.         {% if websiteConfiguration %}
  60.             {% if uvdesk_service.isDarkSkin(websiteConfiguration.brandColor) %}
  61.                 {% include '@UVDeskSupportCenter/Knowledgebase/darkSkin.html.twig' %}
  62.             {% else %}
  63.                 {% include '@UVDeskSupportCenter/Knowledgebase/lightSkin.html.twig' %}
  64.             {% endif %}
  65.         {% endif %}
  66.         {% block templateCSS %}{% endblock %}
  67.     </head>
  68.     {% set bodyClass = '' %}
  69.     {% set bodySkinClass = '' %}
  70.    
  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.             
  95.             <noscript>
  96.                 <div class="uv-notification uv-error">
  97.                     <p>{% trans %}Your browser does not support JavaScript or You disabled JavaScript, Please enable those !{% endtrans %}</p>
  98.                 </div>
  99.                 <style>.uv-loader-view {display: none;}</style>
  100.             </noscript>
  101.         </div>
  102.         {% block header %}
  103.          
  104.             {% include "@UVDeskSupportCenter/Templates/header.html.twig" %}
  105.         {% endblock %}
  106.         {% include "@UVDeskSupportCenter/Templates/breadcrumbs.html.twig" %}
  107.         {% block tabHeader %}
  108.         {% endblock %}
  109.         {% block wrapper %}
  110.             <div class="uv-body">
  111.                 <div class="uv-container">
  112.                     {% block body %}
  113.                         {% if websiteConfiguration is defined and websiteConfiguration.ticketCreateOption %}
  114.                             {% if not websiteConfiguration.loginRequiredToCreate or app.user %}
  115.                                 <div class="uv-cta-wrapper">
  116.                                     <div class="uv-cta-lt">
  117.                                         <svg
  118.                                         xmlns="http://www.w3.org/2000/svg"
  119.                                         xmlns:xlink="http://www.w3.org/1999/xlink"
  120.                                         width="60px" height="60px">
  121.                                         <path fill-rule="evenodd"  fill="rgb(124, 116, 241)"
  122.                                         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"/>
  123.                                         </svg>
  124.                                     </div>
  125.                                     <div class="uv-cta-rt">
  126.                                         <h2>{{"Unable to find an answer?"|trans}}</h2>
  127.                                         <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>
  128.                                         <a href="{{ path('helpdesk_customer_create_ticket') }}" class="uv-btn uv-margin-top-15">{{'Contact Us'|trans}}</a>
  129.                                     </div>
  130.                                 </div>
  131.                             {% endif %}
  132.                         {% endif %} 
  133.                     {% endblock %}
  134.                 </div>   
  135.             </div>
  136.         {% endblock %}
  137.         {% block footer %}
  138.             {% include "@UVDeskSupportCenter/Templates/footer.html.twig" %}
  139.             {% include "@UVDeskSupportCenter/Templates/pagination.html.twig" %}
  140.             <!-- Loader Template-->
  141.             <script type="text/template" id="loader-tmp">
  142.                 <div class="uv-loader">
  143.                     <span></span>
  144.                     <span></span>
  145.                     <span></span>
  146.                 </div>
  147.             </script>
  148.             <!-- Loader Template-->
  149.             <!-- Full View Loader Template-->
  150.             <script type="text/template" id="full-view-loader">
  151.                 <div class="uv-loader-view">
  152.                     <div class="uv-loader">
  153.                         <span></span>
  154.                         <span></span>
  155.                         <span></span>
  156.                     </div>
  157.                 </div>
  158.             </script>
  159.             <!-- //Full View Loader Template-->
  160.             <!-- Notification Template -->
  161.             <script type="text/template" id="notification-template">
  162.                 <div class="uv-notification <% if(alertClass == 'danger') { %>uv-error<% } else { %> <%= 'uv-' + alertClass %> <% } %>">
  163.                     <span class="uv-notification-close"></span>
  164.                     <p><%= alertMessage %> </p>
  165.                 </div>
  166.             </script>
  167.             <script type="text/javascript">
  168.                 var warningResponse = {
  169.                     'alertClass' : 'danger',
  170.                     'alertMessage' : '{{ "Error : Something went wrong, please try again later"|trans }}',
  171.                 };
  172.             </script>
  173.             {% include('@UVDeskSupportCenter/Themes/cookiePolicy.html.twig') %}
  174.         {% endblock %}
  175.     </body>
  176. </html>