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

Open in your IDE?
  1. {% set currentUser = app.user ? user_service.getCustomerPartialDetailById(app.user.id) : null %}
  2. <!--Header-->
  3. <style>
  4.     .uv-dropdown-list  {
  5.         text-align: left;
  6.     }
  7.     .uv-dropdown-list ul li {
  8.         width: 100%;
  9.     }
  10.     .uv-header .uv-header-rt .uv-dropdown-list ul li a {
  11.         color: #333;
  12.         font-size: 16px;
  13.         padding: 0;
  14.     }
  15.     .uv-header .uv-header-rt .uv-dropdown-list ul li a:hover {
  16.         color: #2750C4;
  17.         text-decoration: none;
  18.     }
  19.     .uv-profile-block .uv-bottom-right{
  20.         top: auto !important;
  21.     }
  22.     .uv-rtl header .uv-header-rt > span {
  23.         display: block;
  24.     }
  25.     .uv-rtl header .uv-header-rt > span > .uv-dropdown-list {
  26.         right: unset;
  27.         left: 0px;
  28.         top: 70px;
  29.         text-align: right;
  30.     }
  31.     {% if websiteConfiguration is defined and websiteConfiguration.bannerBackgroundColor %}
  32.         .uv-hero {
  33.             background-color: {{websiteConfiguration.bannerBackgroundColor}};
  34.         }
  35.         .uv-header .uv-header-rt .uv-hamburger svg path {
  36.             fill: {{ websiteConfiguration.bannerBackgroundColor }};
  37.         }
  38.         .uv-skin-dark .uv-hero {
  39.             background-color: {{websiteConfiguration.bannerBackgroundColor}};
  40.         }
  41.     {% endif %}
  42.     {% if websiteConfiguration is defined and websiteConfiguration.linkColor is defined %}
  43.         a:not(.uv-btn):not(.uv-btn-small):not(.uv-btn-social):not(.uv-table):not(.not-shiny) {
  44.             color: {{ websiteConfiguration.linkColor }} !important;
  45.         }
  46.     {% endif %}
  47.     {% if websiteConfiguration is defined and websiteConfiguration.linkHoverColor is defined %}
  48.         a:not(.uv-btn):not(.uv-btn-small):not(.uv-btn-social):not(.uv-table):not(.not-shiny):hover {
  49.             color: {{ websiteConfiguration.linkHoverColor }} !important;
  50.         }
  51.     {% endif %}
  52.     {% if websiteConfiguration is defined and websiteConfiguration.articleTextColor is defined %}
  53.         .uv-paper-article .uv-paper-section > section > p {
  54.             color: {{ websiteConfiguration.articleTextColor }} !important;
  55.         }
  56.         .uv-paper-article .uv-paper-section > section > ul {
  57.             color: {{ websiteConfiguration.articleTextColor }} !important;
  58.         }
  59.     {% endif %}
  60.     .goog-te-gadget-simple .goog-te-menu-value, .goog-te-gadget-simple .goog-te-menu-value:hover {
  61.         color: #333!important;
  62.     }
  63. </style>
  64. <div class="uv-header">
  65.     <div class="uv-container">
  66.         <header>
  67.             <div class="uv-header-lt">
  68.                 <a class="uv-logo" href="{{path('helpdesk_knowledgebase_folder')}}">
  69.                     {% if websiteConfiguration is defined and websiteConfiguration.website.logo is not empty %}
  70.                         <img src="{{ app.request.scheme ~'://' ~ app.request.httpHost ~ asset('') }}{{ websiteConfiguration.website.logo }}" alt="{{ websiteConfiguration.website.name}}" />
  71.                     {% else %}
  72.                         <svg xmlns="http://www.w3.org/2000/svg" width="122" height="48" viewBox="0 0 122 48">
  73.                             <defs>
  74.                                 <style>
  75.                                 .cls-1 {
  76.                                     fill: #9f9f9f;
  77.                                     fill-rule: evenodd;
  78.                                     }
  79.                                 </style>
  80.                             </defs>
  81.                             <path id="uvdesk-icon" class="cls-1" d="M43.5,23A1.5,1.5,0,0,1,45,24.5V25H42V24.5A1.5,1.5,0,0,1,43.5,23ZM39,31H38V18h1a2.257,2.257,0,0,1,2,2v9A2.257,2.257,0,0,1,39,31Zm6-5H42s1.769,15.329-15,17c0.011-.1-0.027,1.292,0,2C33.324,44.708,45.563,40.575,45,26ZM25.987,44A1.988,1.988,0,1,1,24,41.989,2,2,0,0,1,25.987,44ZM8,41A18.173,18.173,0,0,1,3.386,29.28L3,24a14.906,14.906,0,0,0,9-5,14.838,14.838,0,0,0,5,4,17.2,17.2,0,0,0,16-1l4-3a2.479,2.479,0,0,0,0-1C36.692,8.308,27.872,0,18,0h0A17.913,17.913,0,0,0,0,18V29A21.17,21.17,0,0,0,5,43a16.677,16.677,0,0,0,7,5l1-3C10.936,44.167,9.633,42.824,8,41Zm2.492-15A3.5,3.5,0,1,0,14,29.5,3.5,3.5,0,0,0,10.492,26ZM27.5,33A3.5,3.5,0,1,0,24,29.5,3.5,3.5,0,0,0,27.5,33Z"/>
  82.                             <path id="uvdesk" class="cls-1" d="M53.078,25.329c0,2.976,1.1,4.56,3.576,4.56a4.931,4.931,0,0,0,3.84-2.112h0.072L60.734,29.6h1.632V17.937H60.4v8.281c-1.1,1.368-1.944,1.968-3.144,1.968-1.536,0-2.184-.936-2.184-3.12V17.937H53.078v7.393ZM68.822,29.6h2.3l4.128-11.665H73.31L71.1,24.561c-0.336,1.152-.72,2.328-1.056,3.432h-0.1c-0.36-1.1-.744-2.28-1.08-3.432l-2.208-6.625h-2.04Zm7.752-5.809c0,3.888,1.9,6.1,4.824,6.1a5.262,5.262,0,0,0,3.528-1.656H85L85.166,29.6H86.8V12.512H84.806V17l0.1,1.992a4.806,4.806,0,0,0-3.264-1.344C78.973,17.649,76.573,20,76.573,23.793Zm2.04-.024c0-2.664,1.488-4.464,3.36-4.464a4.06,4.06,0,0,1,2.832,1.224v6.1a3.948,3.948,0,0,1-2.976,1.608C79.789,28.233,78.613,26.553,78.613,23.769Zm11.256,0.024c0,3.816,2.472,6.1,5.593,6.1a6.947,6.947,0,0,0,3.84-1.2l-0.7-1.3a5.271,5.271,0,0,1-2.9.912c-2.232,0-3.744-1.584-3.888-4.1h7.873a6.956,6.956,0,0,0,.072-1.08c0-3.336-1.68-5.472-4.656-5.472C92.437,17.649,89.869,19.977,89.869,23.793Zm1.92-.888c0.24-2.352,1.728-3.7,3.36-3.7,1.824,0,2.88,1.32,2.88,3.7H91.789Zm9.552,5.376a7.021,7.021,0,0,0,4.344,1.608c2.76,0,4.272-1.584,4.272-3.48,0-2.208-1.872-2.9-3.552-3.528-1.32-.5-2.592-0.936-2.592-2.016,0-.888.672-1.68,2.136-1.68a4.331,4.331,0,0,1,2.664,1.032l0.936-1.248a5.822,5.822,0,0,0-3.624-1.32c-2.52,0-4.008,1.44-4.008,3.312,0,1.968,1.824,2.76,3.48,3.36,1.272,0.48,2.664,1.008,2.664,2.208,0,1.008-.768,1.824-2.3,1.824a5.245,5.245,0,0,1-3.432-1.392Zm11.352,1.32h1.944V26.529l2.184-2.544,3.408,5.617h2.16l-4.44-6.985,3.912-4.68h-2.184l-4.968,6.145h-0.072V12.512h-1.944V29.6Z"/>
  83.                         </svg>
  84.                     {% endif %}
  85.                 </a>
  86.             </div>
  87.             <div class="uv-header-rt">
  88.                 {% if currentUser %}
  89.                     <span style="position: relative" class="uv-profile-block">
  90.                         <div class="uv-profile-wrapper uv-dropdown-other">
  91.                             <div class="uv-profile-avatar">
  92.                                 <img src="{{ currentUser.smallThumbnail ?  app.request.scheme ~'://' ~ app.request.httpHost ~ asset('') ~ currentUser.smallThumbnail : asset(default_customer_image_path) }}">                       
  93.                             </div>
  94.                             <div class="uv-profile-howdy">
  95.                                 <span>{{ 'Howdy!'|trans }}</span>
  96.                                 <span class="uv-username">{{ currentUser.firstName }}</span>
  97.                             </div>
  98.                             <div class="uv-drop-icon"></div>
  99.                         </div>
  100.                         <div class="uv-dropdown-list uv-bottom-right uv-text-left">
  101.                             <div class="uv-dropdown-container">
  102.                                 <label>{{ 'Account'|trans }}</label>
  103.                                 <ul>
  104.                                     <li>
  105.                                         <a href="{{ path('helpdesk_customer_ticket_collection') }}">{{ 'Tickets'|trans }}</a>
  106.                                     </li>
  107.                                     {% if websiteConfiguration.ticketCreateOption == 1 %}
  108.                                         <li>
  109.                                             <a href="{{ path('helpdesk_customer_create_ticket') }}">{{ 'New Ticket Request'|trans }}</a>
  110.                                         </li>
  111.                                     {% endif %}
  112.                                     <li>
  113.                                         <a href="{{ path('helpdesk_customer_account') }}">{{ 'Profile'|trans }}</a>
  114.                                     </li>
  115.                                     <li>
  116.                                         <a class="uv-text-danger" href="{{ path('helpdesk_customer_logout') }}">{{ 'Sign Out'|trans }}</a>
  117.                                     </li>
  118.                                 </ul>
  119.                             </div>
  120.                         </div>
  121.                     </span>
  122.                 {% else %}
  123.                     <nav id="front_nav">
  124.                         <ul>
  125.                             <li><a href="{{path('helpdesk_knowledgebase_folder')}}">{{"Home"|trans}}</a></li>
  126.                             {% for headerLink in websiteConfiguration.headerLinks %}
  127.                                 <li><a href="{{headerLink.url}}" target="_blank">{{headerLink.label}}</a></li>
  128.                             {% endfor %}
  129.                             {% if websiteConfiguration is defined and websiteConfiguration.ticketCreateOption %}
  130.                                 {% if not websiteConfiguration.loginRequiredToCreate or app.user %}
  131.                                     <li><a href="{{path('helpdesk_customer_create_ticket')}}" class="uv-btn-small">{% trans %}Contact Us{% endtrans %}</a></li>
  132.                                 {% endif %}
  133.                             {% endif %}
  134.                             {% if websiteConfiguration is defined and websiteConfiguration.removeCustomerLoginButton is defined %}
  135.                                 {% if not websiteConfiguration.removeCustomerLoginButton %}
  136.                                     <li><a href="{{path('helpdesk_customer_login')}}" class="uv-btn-small">{% trans %}Sign In{% endtrans %}</a></li>
  137.                                 {% endif %}  
  138.                             {% endif %}
  139.                         </ul>
  140.                     </nav>
  141.                     <div class="uv-hamburger">
  142.                         <svg
  143.                         xmlns="http://www.w3.org/2000/svg"
  144.                         xmlns:xlink="http://www.w3.org/1999/xlink"
  145.                         width="20px" height="15px">
  146.                         <path fill-rule="evenodd"
  147.                         d="M18.500,9.000 L1.500,9.000 C0.672,9.000 0.000,8.328 0.000,7.500 C0.000,6.672 0.672,6.000 1.500,6.000 L18.500,6.000 C19.328,6.000 20.000,6.672 20.000,7.500 C20.000,8.328 19.328,9.000 18.500,9.000 ZM18.500,3.000 L1.500,3.000 C0.672,3.000 0.000,2.328 0.000,1.500 C0.000,0.672 0.672,-0.000 1.500,-0.000 L18.500,-0.000 C19.328,-0.000 20.000,0.672 20.000,1.500 C20.000,2.328 19.328,3.000 18.500,3.000 ZM1.500,12.000 L18.500,12.000 C19.328,12.000 20.000,12.672 20.000,13.500 C20.000,14.328 19.328,15.000 18.500,15.000 L1.500,15.000 C0.672,15.000 0.000,14.328 0.000,13.500 C0.000,12.672 0.672,12.000 1.500,12.000 Z"/>
  148.                         </svg>
  149.                     </div>
  150.                 {% endif %}
  151.             </div>
  152.         </header>
  153.     </div>
  154. </div>
  155. <!--//Header-->
  156. {% if searchDisable is defined and searchDisable == false %}
  157.     <form method="get" action="{{path('helpdesk_knowledgebase_search')}}">
  158.         <!--Hero-->
  159.         <div class="uv-hero">
  160.             <div class="uv-container">
  161.                 <article>
  162.                     <h1>
  163.                         {% if websiteConfiguration is defined and websiteConfiguration.siteDescription is defined %}
  164.                             {{ websiteConfiguration.siteDescription }}
  165.                         {% else %}
  166.                             {% trans %}Hi! how can we help?{% endtrans %}
  167.                         {% endif %}
  168.                     </h1>
  169.                     <input type="text" name="s" class="uv-kb-search-lg" placeholder="{{"Enter search keyword"|trans}}">
  170.                 </article>
  171.             </div>
  172.         </div>
  173.         <!--Hero-->
  174.     </form>
  175. {% endif %}