templates/frontend/layout.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block stylesheets %}
  3.     <!-- Bootstrap v4.5.0 CSS via CDN -->
  4.     <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css">
  5.     <!-- Plugins required on all pages NOTE: Additional non-required plugins are loaded ondemand as of AppStrap 2.5 -->
  6.     <!-- Theme style -->
  7.     <link href="{{ asset('bundles/frontend/assets/css/theme-style.min.css') }}" rel="stylesheet">
  8.     <!--Your custom colour override-->
  9.     <link href="#" id="colour-scheme" rel="stylesheet">
  10.     <!-- Your custom override -->
  11.     <link href="{{ asset('bundles/frontend/assets/css/custom-style.css') }}" rel="stylesheet">
  12.     <!-- Optional: ICON SETS -->
  13.     <!-- Iconset: Font Awesome 5.12.0 via CDN -->
  14.     <link href="https://use.fontawesome.com/releases/v5.12.0/css/all.css" rel="stylesheet">
  15.     <!-- Iconset: flag icons - http://lipis.github.io/flag-icon-css/ -->
  16.     <link href="assets/plugins/flag-icon-css/css/flag-icon.min.css" rel="stylesheet">
  17.     <!-- Iconset: ionicons - http://ionicons.com/ -->
  18.     <link href="http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css" rel="stylesheet">
  19.     <!-- Iconset: Linearicons - https://linearicons.com/free -->
  20.     <link href="https://cdn.linearicons.com/free/1.0.0/icon-font.min.css" rel="stylesheet">
  21.     <!-- Iconset: Lineawesome - https://icons8.com/articles/line-awesome -->
  22.     <link href="https://maxcdn.icons8.com/fonts/line-awesome/1.1/css/line-awesome.min.css" rel="stylesheet">
  23.     <!-- Google fonts -->
  24.     <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,300' rel='stylesheet' type='text/css'>
  25.     <link href='http://fonts.googleapis.com/css?family=Rambla:400,700' rel='stylesheet' type='text/css'>
  26.     <link href='http://fonts.googleapis.com/css?family=Calligraffitti' rel='stylesheet' type='text/css'>
  27.     <link href='http://fonts.googleapis.com/css?family=Roboto+Slab:400,700' rel='stylesheet' type='text/css'>
  28.     <link href='http://fonts.googleapis.com/css?family=Roboto:100,400,700' rel='stylesheet' type='text/css'>
  29.     {% block stylesheetspecific %} {% endblock %}
  30. {% endblock %}
  31. {% block body_class %}page header-below header-dark header-compact-sticky navbar-layout-default{% endblock %}
  32. {% block body %}
  33.     <a href="#content" id="top" class="sr-only">Skip to content</a>
  34.     <!-- ======== @Region: #highlighted ======== -->
  35.     {% block highlighted %} {% endblock %}
  36.     <!-- ======== @Region: #header ======== -->
  37.     <div id="header">
  38.         <div data-toggle="sticky">
  39.             <!--Header search region - hidden by default -->
  40.             {#
  41.             <div class="header-search collapse" id="search">
  42.                 <form class="search-form container">
  43.                     <input type="text" name="search" class="form-control search" value="" placeholder="Search">
  44.                     <button type="button" class="btn btn-link"><span class="sr-only">Search </span><i
  45.                                 class="fa fa-search fa-flip-horizontal search-icon"></i></button>
  46.                     <button type="button" class="btn btn-link close-btn" data-toggle="search-form-close"><span
  47.                                 class="sr-only">Close </span><i class="fa fa-times search-icon"></i></button>
  48.                 </form>
  49.             </div>
  50.             #}
  51.             <!--Header & Branding region-->
  52.             <div class="header">
  53.                 <!-- all direct children of the .header-inner element will be vertically aligned with each other you can override all the behaviours using the flexbox utilities (flexbox.html) All elements with .header-brand & .header-block-flex wrappers will automatically be aligned inline & vertically using flexbox, this can be overridden using the flexbox utilities (flexbox.htm) Use .header-block to stack elements within on small screen & "float" on larger screens use .order-first or/and .order-last classes to make an element show first or last within .header-inner or .headr-block elements -->
  54.                 <div class="header-inner container">
  55.                     <!--branding/logo -->
  56.                     <div class="header-brand">
  57.                         <a class="header-brand-text" href="{{ url('homefrontend') }}" title="Home">
  58.                             <h1 class="h2">
  59.                                 <span class="header-brand-text-alt">{{ empresa_nombre }}</span>
  60.                             </h1>
  61.                         </a>
  62.                         {#
  63.                         <div class="header-divider d-none d-lg-block"></div>
  64.                         <div class="header-slogan d-none d-lg-block">Serenity Awaits!</div>
  65.                         #}
  66.                     </div>
  67.                     <!-- other header content -->
  68.                     <div class="header-block order-12">
  69.                         <!--Search trigger -->
  70.                         {#
  71.                         <a href="#search" class="btn btn-icon btn-link text-white header-btn float-right order-11"
  72.                            data-toggle="search-form" data-target=".header-search"><i
  73.                                     class="fa fa-search fa-flip-horizontal search-icon"></i></a>
  74.                         #}
  75.                         <!-- mobile collapse menu button - data-toggle="collapse" = default BS menu - data-toggle="off-canvas" = Off-cavnas Menu - data-toggle="overlay" = Overlay Menu -->
  76.                         <a href="#top" class="btn btn-link btn-icon text-white header-btn float-right d-lg-none"
  77.                            data-toggle="off-canvas" data-target=".navbar-main"
  78.                            data-settings='{"cloneTarget":true, "targetClassExtras": "navbar-offcanvas"}'> <i
  79.                                     class="fa fa-bars"></i> </a>
  80.                     </div>
  81.                     <div class="navbar navbar-expand-md navbar-static-top">
  82.                         <!--everything within this div is collapsed on mobile-->
  83.                         <div class="navbar-main collapse">
  84.                             <!--main navigation-->
  85.                             <ul class="nav navbar-nav navbar-dark navbar-nav-stretch float-lg-right dropdown-effect-fade">
  86.                                 <!-- pages -->
  87.                                 {#
  88.                                 <li class="nav-item {% block header_nav_item_home_active_class %}{% endblock %}">
  89.                                     <a href="{{ url('homefrontend') }}" class="nav-link">
  90.                                         Home
  91.                                     </a>
  92.                                 </li>
  93.                                 #}
  94.                                 <li class="nav-item {% block header_nav_item_about_active_class %}{% endblock %}">
  95.                                     <a href="{{ url('homefrontend') }}#about" class="nav-link">
  96.                                         About
  97.                                     </a>
  98.                                 </li>
  99.                                 <!-- Documents -->
  100.                                 <li class="nav-item dropdown {% block header_nav_item_document_active_class %}{% endblock %}">
  101.                                     <a href="#" class="nav-link dropdown-toggle" id="pages-drop" data-toggle="dropdown"
  102.                                        data-hover="dropdown">Documents</a>
  103.                                     <!-- Menu -->
  104.                                     <div class="dropdown-menu">
  105.                                         <a href="{{ url('documentspublicfrontend') }}"
  106.                                            class="dropdown-item {% block header_nav_item_document_public_active_class %}{% endblock %}">Public</a>
  107.                                         <a href="{{ url('documentsprivatefrontend') }}"
  108.                                            class="dropdown-item {% block header_nav_item_document_private_active_class %}{% endblock %}">Private</a>
  109.                                     </div>
  110.                                 </li>
  111.                                 <li class="nav-item {% block header_nav_item_board_active_class %}{% endblock %}">
  112.                                     <a href="{{ url('homefrontend') }}#board" class="nav-link">
  113.                                         Board
  114.                                     </a>
  115.                                 </li>
  116.                                 <li class="nav-item {% block header_nav_item_announcement_active_class %}{% endblock %}">
  117.                                     <a href="{{ url('listadoblog') }}" class="nav-link">
  118.                                         Announcements
  119.                                     </a>
  120.                                 </li>
  121.                                 <li class="nav-item {% block header_nav_item_event_active_class %}{% endblock %}">
  122.                                     <a href="{{url('eventsfrontend')}}" class="nav-link">
  123.                                         Events
  124.                                     </a>
  125.                                 </li>
  126.                                 <li class="nav-item {% block header_nav_item_faq_active_class %}{% endblock %}">
  127.                                     <a href="{{ url('homefrontend') }}#faq" class="nav-link">
  128.                                         FAQ
  129.                                     </a>
  130.                                 </li>
  131.                                 <li class="nav-item {% block header_nav_item_contact_active_class %}{% endblock %}">
  132.                                     <a href="{{ url('contacto') }}" class="nav-link">
  133.                                         Contact
  134.                                     </a>
  135.                                 </li>
  136.                                 {% if app.user == null %}
  137.                                     <li class="nav-item {% block header_nav_item_login_active_class %}{% endblock %}">
  138.                                         <a href="{{ url('loginfrontend') }}" class="nav-link">
  139.                                             Log in
  140.                                         </a>
  141.                                     </li>
  142.                                 {% else %}
  143.                                     <li class="nav-item dropdown dropdowns-no-carets dropdown-persist">
  144.                                         <a href="#" class="nav-link dropdown-toggle" id="account-drop"
  145.                                            data-toggle="dropdown" data-hover="dropdown">
  146.                                         <i class="fa fa-user mr-2"></i>My Account</a>
  147.                                         <!-- Dropdown Menu -->
  148.                                         <div class="dropdown-menu dropdown-menu-right">
  149.                                             <a href="{{ url('perfilAdmin') }}" class="dropdown-item" target="_blank">My Profile</a>
  150.                                             <a href="{{ url('home') }}" class="dropdown-item" target="_blank">Admin</a>
  151.                                             <a href="{{ url('logout') }}" class="dropdown-item">Logout</a>
  152.                                         </div>
  153.                                     </li>
  154.                                 {% endif %}
  155.                             </ul>
  156.                         </div>
  157.                         <!--/.navbar-collapse -->
  158.                     </div>
  159.                 </div>
  160.             </div>
  161.         </div>
  162.     </div>
  163.     {% block content %} {% endblock %}
  164.     <!-- Footer -->
  165.     {{ render(controller('App\\Controller\\DefaultController::mostrarFooter')) }}
  166. {% endblock %}
  167. {% block javascripts %}
  168.     <!--Plugin: Retina.js (high def image replacement) - @see: http://retinajs.com/-->
  169.     <script src="https://cdnjs.cloudflare.com/ajax/libs/retina.js/1.3.0/retina.min.js"></script>
  170.     <!--jQuery 3.3.1 via CDN -->
  171.     {#
  172.     <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  173.     #}
  174.     <!-- metronic utils -->
  175.     <script src="{{ asset('bundles/frontend/js/vendors.bundle.js') }}" type="text/javascript"></script>
  176.     <script src="{{ asset('bundles/frontend/js/scripts.bundle.js') }}" type="text/javascript"></script>
  177.     <!-- Popper 1.16.0 via CDN, needed for Bootstrap Tooltips & Popovers -->
  178.     <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
  179.     <!-- Bootstrap v4.5.0 JS via CDN -->
  180.     <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script>
  181.     <!-- JS plugins required on all pages NOTE: Additional non-required plugins are loaded ondemand as of AppStrap 2.5 To disable this and load plugin assets manually simple add data-plugins-manual=true to the body tag -->
  182.     <!--Custom scripts & AppStrap API integration -->
  183.     <script src="{{ asset('bundles/frontend/assets/js/custom-script.js') }}"></script>
  184.     <!--AppStrap scripts mainly used to trigger libraries/plugins -->
  185.     <script>
  186.         var direccion_url = "{{ direccion_url }}";
  187.     </script>
  188.     <script src="{{ asset('bundles/frontend/assets/js/script.js') }}"></script>
  189.     {% block javascriptspecific %}
  190.     {% endblock %}
  191. {% endblock %}