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 %}
    <!--Header-->
    <style>
        .uv-dropdown-list  {
            text-align: left;
        }
        .uv-dropdown-list ul li {
            width: 100%;
        }
        .uv-header .uv-header-rt .uv-dropdown-list ul li a {
            color: #333;
            font-size: 16px;
            padding: 0;
        }
        .uv-header .uv-header-rt .uv-dropdown-list ul li a:hover {
            color: #2750C4;
            text-decoration: none;
        }
        .uv-profile-block .uv-bottom-right{
            top: auto !important;
        }
        .uv-rtl header .uv-header-rt > span {
            display: block;
        }
        .uv-rtl header .uv-header-rt > span > .uv-dropdown-list {
            right: unset;
            left: 0px;
            top: 70px;
            text-align: right;
        }
        {% if websiteConfiguration is defined and websiteConfiguration.bannerBackgroundColor %}
            .uv-hero {
                background-color: {{websiteConfiguration.bannerBackgroundColor}};
            }
            .uv-header .uv-header-rt .uv-hamburger svg path {
                fill: {{ websiteConfiguration.bannerBackgroundColor }};
            }
            .uv-skin-dark .uv-hero {
                background-color: {{websiteConfiguration.bannerBackgroundColor}};
            }
        {% endif %}
        {% if websiteConfiguration is defined and websiteConfiguration.linkColor is defined %}
            a:not(.uv-btn):not(.uv-btn-small):not(.uv-btn-social):not(.uv-table):not(.not-shiny) {
                color: {{ websiteConfiguration.linkColor }} !important;
            }
        {% endif %}
        {% if websiteConfiguration is defined and websiteConfiguration.linkHoverColor is defined %}
            a:not(.uv-btn):not(.uv-btn-small):not(.uv-btn-social):not(.uv-table):not(.not-shiny):hover {
                color: {{ websiteConfiguration.linkHoverColor }} !important;
            }
        {% endif %}
        {% if websiteConfiguration is defined and websiteConfiguration.articleTextColor is defined %}
            .uv-paper-article .uv-paper-section > section > p {
                color: {{ websiteConfiguration.articleTextColor }} !important;
            }
            .uv-paper-article .uv-paper-section > section > ul {
                color: {{ websiteConfiguration.articleTextColor }} !important;
            }
        {% endif %}
        .goog-te-gadget-simple .goog-te-menu-value, .goog-te-gadget-simple .goog-te-menu-value:hover {
            color: #333!important;
        }
    </style>
    <div class="uv-header">
        <div class="uv-container">
            <header>
                <div class="uv-header-lt">
                    <a class="uv-logo" href="{{path('helpdesk_knowledgebase_folder')}}">
                        {% if websiteConfiguration is defined and websiteConfiguration.website.logo is not empty %}
                            <img src="{{ app.request.scheme ~'://' ~ app.request.httpHost ~ asset('') }}{{ websiteConfiguration.website.logo }}" alt="{{ websiteConfiguration.website.name}}" />
                        {% else %}
                            <svg xmlns="http://www.w3.org/2000/svg" width="122" height="48" viewBox="0 0 122 48">
                                <defs>
                                    <style>
                                    .cls-1 {
                                        fill: #9f9f9f;
                                        fill-rule: evenodd;
                                        }
                                    </style>
                                </defs>
                                <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"/>
                                <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"/>
                            </svg>
                        {% endif %}
                    </a>
                </div>
                <div class="uv-header-rt">
                    {% if currentUser %}
                        <span style="position: relative" class="uv-profile-block">
                            <div class="uv-profile-wrapper uv-dropdown-other">
                                <div class="uv-profile-avatar">
                                    <img src="{{ currentUser.smallThumbnail ?  app.request.scheme ~'://' ~ app.request.httpHost ~ asset('') ~ currentUser.smallThumbnail : asset(default_customer_image_path) }}">                       
                                </div>
                                <div class="uv-profile-howdy">
                                    <span>{{ 'Howdy!'|trans }}</span>
                                    <span class="uv-username">{{ currentUser.firstName }}</span>
                                </div>
                                <div class="uv-drop-icon"></div>
                            </div>
                            <div class="uv-dropdown-list uv-bottom-right uv-text-left">
                                <div class="uv-dropdown-container">
                                    <label>{{ 'Account'|trans }}</label>
                                    <ul>
                                        <li>
                                            <a href="{{ path('helpdesk_customer_ticket_collection') }}">{{ 'Tickets'|trans }}</a>
                                        </li>
                                        {% if websiteConfiguration.ticketCreateOption == 1 %}
                                            <li>
                                                <a href="{{ path('helpdesk_customer_create_ticket') }}">{{ 'New Ticket Request'|trans }}</a>
                                            </li>
                                        {% endif %}
                                        <li>
                                            <a href="{{ path('helpdesk_customer_account') }}">{{ 'Profile'|trans }}</a>
                                        </li>
                                        <li>
                                            <a class="uv-text-danger" href="{{ path('helpdesk_customer_logout') }}">{{ 'Sign Out'|trans }}</a>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </span>
                    {% else %}
                        <nav id="front_nav">
                            <ul>
                                <li><a href="{{path('helpdesk_knowledgebase_folder')}}">{{"Home"|trans}}</a></li>
                                {% for headerLink in websiteConfiguration.headerLinks %}
                                    <li><a href="{{headerLink.url}}" target="_blank">{{headerLink.label}}</a></li>
                                {% endfor %}
    
                                {% if websiteConfiguration is defined and websiteConfiguration.ticketCreateOption %}
                                    {% if not websiteConfiguration.loginRequiredToCreate or app.user %}
                                        <li><a href="{{path('helpdesk_customer_create_ticket')}}" class="uv-btn-small">{% trans %}Contact Us{% endtrans %}</a></li>
                                    {% endif %}
                                {% endif %}
    
                                {% if websiteConfiguration is defined and websiteConfiguration.removeCustomerLoginButton is defined %}
                                    {% if not websiteConfiguration.removeCustomerLoginButton %}
                                        <li><a href="{{path('helpdesk_customer_login')}}" class="uv-btn-small">{% trans %}Sign In{% endtrans %}</a></li>
                                    {% endif %}  
                                {% endif %}
                            </ul>
                        </nav>
                        <div class="uv-hamburger">
                            <svg
                            xmlns="http://www.w3.org/2000/svg"
                            xmlns:xlink="http://www.w3.org/1999/xlink"
                            width="20px" height="15px">
                            <path fill-rule="evenodd"
                            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"/>
                            </svg>
                        </div>
                    {% endif %}
                </div>
            </header>
        </div>
    </div>
    <!--//Header-->
    {% if searchDisable is defined and searchDisable == false %}
        <form method="get" action="{{path('helpdesk_knowledgebase_search')}}">
            <!--Hero-->
            <div class="uv-hero">
                <div class="uv-container">
                    <article>
                        <h1>
                            {% if websiteConfiguration is defined and websiteConfiguration.siteDescription is defined %}
                                {{ websiteConfiguration.siteDescription }}
                            {% else %}
                                {% trans %}Hi! how can we help?{% endtrans %}
                            {% endif %}
                        </h1>
                        <input type="text" name="s" class="uv-kb-search-lg" placeholder="{{"Enter search keyword"|trans}}">
                    </article>
                </div>
            </div>
            <!--Hero-->
        </form>
    {% endif %}