templates/public/component/_main_header_content.html.twig line 1

Open in your IDE?
  1. <header class="main-header" style="padding-right: 0">
  2.     <!-- logo-->
  3.     <a href="{{ path('index') }}" class="logo-holder"
  4.        style="font-size: 1.1rem;height: 50px; color: white; top: 15px !important;">
  5.         <img src="{{ url('asset_url', {'path': '/images/logo.png', 'h':'60' }) }}" style="margin-right: 20px; border: 1px #ab1b15 solid; border-radius: 50%" alt="">
  6.         <span class="header-site-name">{{ default_app_name }}</span>
  7.     </a>
  8.     <!-- logo end-->
  9.     <!-- header-search_btn-->
  10.     <div class="header-search_btn show-search-button"><i class="fal fa-search"></i><span>Recherche</span></div>
  11.     <!-- header-search_btn end-->
  12.     <!-- nav-button-wrap-->
  13.     <div class="nav-button-wrap color-bg">
  14.         <div class="nav-button">
  15.             <span></span><span></span><span></span>
  16.         </div>
  17.     </div>
  18.     <!-- nav-button-wrap end-->
  19.     <!-- header opt -->
  20.     {% if not app.user or (app.user and app.user.role == role_service.roleAdmin) %}
  21.         <div data-target-modal="#login-modal" class="show-reg-form modal-open avatar-img"
  22.              style="margin-right: 0; height: 80px; top: 0; display: flex; align-items: center; justify-content: center; width: 200px"
  23.              data-srcav="{{ asset('townhub/images/avatar/7.png') }}">
  24.             <i class="fal fa-user profile-icon"></i>
  25.             <div class="profile-content">Se connecter</div>
  26.         </div>
  27.     {% else %}
  28.         <div class="header-user-menu"
  29.              style="margin: 0; height: 80px; top: 0; display: flex; align-items: center; justify-content: center; width: 200px; padding-left: 30px">
  30.             <div class="header-user-name" style="padding-top: 0">
  31.                 <span style="top: -11px">
  32.                     {% set profileImage = url('asset_url', {'path': '/images/logo.png', 'h':'38' }) %}
  33.                     {% if app.user.image != "" %}
  34.                         {% set profileImage = url('asset_url', {'path': get_parameter('image_user_directory_prefix') ~ app.user.image, 'h':'38' }) %}
  35.                     {% endif %}
  36.                     <img src="{{ profileImage }}" alt="" class="image-profile">
  37.                 </span>
  38.                 <div class="profile-content">
  39.                     {{ app.user.fullName|slice(0,10) ~ '...' }}
  40.                 </div>
  41.             </div>
  42.             <ul>
  43.                 <li><a href="{{ path('profile') }}">Profile</a></li>
  44. {#                <li><a href="{{ path('customer_prayer_new') }}">Soumettre un sujet de prière</a></li>#}
  45.                 <li><a href="{{ path('customer_prayer_index') }}">Mes sujets de prière</a></li>
  46. {#                <li><a href="{{ path('customer_praying_index') }}">Mes participations</a></li>#}
  47.                 <li><a href="{{ path('app_logout') }}">Déconnexion</a></li>
  48.             </ul>
  49.         </div>
  50.     {% endif %}
  51.     <!-- header opt end-->
  52.     <!--  navigation -->
  53.     <div class="nav-holder main-menu">
  54.         <nav>
  55.             <ul class="no-list-style">
  56.                 <li>
  57.                     <a href="{{ path('prayer') }}" class="{{ currentRoute == "prayer" ? "act-link" : "" }}">Sujets de
  58.                         prières</a>
  59.                 </li>
  60.                 {% if not app.user %}
  61.                     <li><a href="javascript:void(0)" data-target-route="{{ path('customer_prayer_new') }}" class="{{ currentRoute == "customer_prayer_new" ? "act-link" : "" }} modal-open" data-target-modal="#login-modal">Soumettre un sujet de prière pour le pays</a></li>
  62.                 {% else %}
  63.                     <li><a href="{{ path('customer_prayer_new') }}" class="{{ currentRoute == "customer_prayer_new" ? "act-link" : "" }}">Soumettre un sujet de prière pour le pays</a></li>
  64.                 {% endif %}
  65.             </ul>
  66.         </nav>
  67.     </div>
  68.     <!-- navigation  end -->
  69.     <!-- header-search_container -->
  70.     <div class="header-search_container header-search vis-search">
  71.         <div class="container small-container">
  72.             {{ render(controller('App\\Controller\\IndexController:searchForm')) }}
  73.             <div class="header-search_close color-bg"><i class="fal fa-long-arrow-up"></i></div>
  74.         </div>
  75.     </div>
  76.     <!-- header-search_container  end -->
  77. </header>