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.     {% if app.request.locale == "ar" %}
  71.         {% set bodyClass = 'uv-rtl' %}
  72.     {% endif %}
  73.     <body class="{{ bodySkinClass ~ ' ' ~ bodyClass }}">
  74.         {% set broadcastMessage = uvdesk_service.getValidBroadcastMessage(websiteConfiguration.broadcastMessage is defined ? websiteConfiguration.broadcastMessage : '') %}
  75.         {% if broadcastMessage %}
  76.             <div class="uv-kb-info" id="uv-kb-info-broadcast">
  77.                 <p>{{ broadcastMessage.message is defined ? broadcastMessage.message : '' }}</p>
  78.                 <span class="uv-kb-info-remove" onclick="document.getElementById('uv-kb-info-broadcast').remove()"></span>
  79.             </div>
  80.         {% endif %}
  81.         <div class="uv-notifications-wrapper">
  82.             {% if uvdesk_service.requestHeadersSent() == false %}
  83.                 {% for flashMessage in app.session.flashbag.get('success') %}
  84.                     <div class="uv-notification page-load uv-success">
  85.                         <span class="uv-notification-close"></span>
  86.                         <p>{{ flashMessage|raw }}</p>
  87.                     </div>
  88.                 {% endfor %}
  89.                 {% for flashMessage in app.session.flashbag.get('warning') %}
  90.                     <div class="uv-notification page-load uv-error">
  91.                         <span class="uv-notification-close"></span>
  92.                         <p>{{ flashMessage|raw }}</p>
  93.                     </div>
  94.                 {% endfor %}
  95.             {% endif %}
  96.             
  97.             <noscript>
  98.                 <div class="uv-notification uv-error">
  99.                     <p>{% trans %}Your browser does not support JavaScript or You disabled JavaScript, Please enable those !{% endtrans %}</p>
  100.                 </div>
  101.                 <style>.uv-loader-view {display: none;}</style>
  102.             </noscript>
  103.         </div>
  104.         {% block header %}
  105.          
  106.             {% include "@UVDeskSupportCenter/Templates/header.html.twig" %}
  107.         {% endblock %}
  108.         {% include "@UVDeskSupportCenter/Templates/breadcrumbs.html.twig" %}
  109.         {% block tabHeader %}
  110.         {% endblock %}
  111.         {% block wrapper %}
  112.             <div class="uv-body">
  113.                 <div class="uv-container">
  114.                     {% block body %}
  115.                         {% if websiteConfiguration is defined and websiteConfiguration.ticketCreateOption %}
  116.                             {% if not websiteConfiguration.loginRequiredToCreate or app.user %}
  117.                                 <div class="uv-cta-wrapper">
  118.                                     <div class="uv-cta-lt">
  119.                                         <svg
  120.                                         xmlns="http://www.w3.org/2000/svg"
  121.                                         xmlns:xlink="http://www.w3.org/1999/xlink"
  122.                                         width="60px" height="60px">
  123.                                         <path fill-rule="evenodd"  fill="rgb(124, 116, 241)"
  124.                                         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"/>
  125.                                         </svg>
  126.                                     </div>
  127.                                     <div class="uv-cta-rt">
  128.                                         <h2>{{"Unable to find an answer?"|trans}}</h2>
  129.                                         <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>
  130.                                         <a href="{{ path('helpdesk_customer_create_ticket') }}" class="uv-btn uv-margin-top-15">{{'Contact Us'|trans}}</a>
  131.                                     </div>
  132.                                 </div>
  133.                             {% endif %}
  134.                         {% endif %} 
  135.                     {% endblock %}
  136.                 </div>   
  137.             </div>
  138.         {% endblock %}
  139.         {% block footer %}
  140.             {% include "@UVDeskSupportCenter/Templates/footer.html.twig" %}
  141.             {% include "@UVDeskSupportCenter/Templates/pagination.html.twig" %}
  142.             <!-- Loader Template-->
  143.             <script type="text/template" id="loader-tmp">
  144.                 <div class="uv-loader">
  145.                     <span></span>
  146.                     <span></span>
  147.                     <span></span>
  148.                 </div>
  149.             </script>
  150.             <!-- Loader Template-->
  151.             <!-- Full View Loader Template-->
  152.             <script type="text/template" id="full-view-loader">
  153.                 <div class="uv-loader-view">
  154.                     <div class="uv-loader">
  155.                         <span></span>
  156.                         <span></span>
  157.                         <span></span>
  158.                     </div>
  159.                 </div>
  160.             </script>
  161.             <!-- //Full View Loader Template-->
  162.             <!-- Notification Template -->
  163.             <script type="text/template" id="notification-template">
  164.                 <div class="uv-notification <% if(alertClass == 'danger') { %>uv-error<% } else { %> <%= 'uv-' + alertClass %> <% } %>">
  165.                     <span class="uv-notification-close"></span>
  166.                     <p><%= alertMessage %> </p>
  167.                 </div>
  168.             </script>
  169.             <script type="text/javascript">
  170.                 var warningResponse = {
  171.                     'alertClass' : 'danger',
  172.                     'alertMessage' : '{{ "Error : Something went wrong, please try again later"|trans }}',
  173.                 };
  174.             </script>
  175.             {% include('@UVDeskSupportCenter/Themes/cookiePolicy.html.twig') %}
  176.         {% endblock %}
  177.     </body>
  178. </html>