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