templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <title>{% block title %}Welcome!{% endblock %}</title>
  6.         <meta content='maximum-scale=1.0, initial-scale=1.0, width=device-width' name='viewport'> 
  7.         <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text></svg>">
  8.         {# Run `composer require symfony/webpack-encore-bundle` to start using Symfony UX #}
  9.         {% block stylesheets %}
  10.             {{ encore_entry_link_tags('app') }}
  11.             {# <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> #}
  12.             <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous" defer></script>
  13.              <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
  14.             <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
  15.             <link rel="stylesheet" href="{{asset('css/style.css')}}">
  16.             <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
  17.             <link href="https://fonts.cdnfonts.com/css/bw-nista-grotesk-demo" rel="stylesheet">
  18.             <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" integrity="sha512-iBBXm8fW90+nuLcSKlbmrPcLa0OT92xO1BIsZ+ywDWZCvqsWgccV3gFoRBv0z+8dLJgyAHIhR35VZc2oM/gI1w==" crossorigin="anonymous" referrerpolicy="no-referrer">
  19.         {% endblock %}
  20.         {% block javascripts %}
  21.             {{ encore_entry_script_tags('app') }}
  22.         {% endblock %}
  23.     </head>
  24.     <body>
  25.     <div class="navbarbg">
  26.         <div class="container">
  27.             <nav class="navbar navbar-expand-lg navbar-light">
  28.                 {# {{ app.session.get('_locale') }} #}
  29.                 {{ app.user.id | default('') }}
  30.                 <a target class="navbar-brand" href="{{path('app_livre_index')}}">
  31.                     <img alt="" id="ct-loadding" src="{{asset('img/logo.png')}}" width="250px" class="logo" type="image/svg">
  32.                 </a>
  33.                 <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarTogglerDemo02" aria-controls="navbarTogglerDemo02" aria-expanded="false" aria-label="Toggle navigation">
  34.                   <span class="navbar-toggler-icon"></span>
  35.                 </button>
  36.                 <div class="collapse navbar-collapse" id="navbarTogglerDemo02">
  37.                     <ul class="navbar-nav ml-auto mt-2 mt-lg-0 ">
  38.                         {% if not is_granted('ROLE_USER')  %}
  39.                         <li class="nav-item active">
  40.                             <a class="btn btn-success" href="{{ path('app_livre_new') }}">
  41.                             <i class="fa fa-plus-square" aria-hidden="true"></i>{% trans %}Publish a book{% endtrans %}</a>
  42.                         </li>
  43.                         <li class="nav-item">
  44.                             <a class="nav-link" href="{{path('login')}}">{% trans %}Sign in{% endtrans %}</a>
  45.                         </li>
  46.                         <li class="nav-item">
  47.                             <a class="nav-link" href="{{path('app_user_new')}}">{% trans %}Register{% endtrans %}</a>
  48.                         </li>
  49.                         {% else %}
  50.                         <li class="nav-item">
  51.                             <a class="btn btn-success " href="{{ path('app_livre_new') }}">
  52.                                 <i class="fa fa-plus-square" aria-hidden="true"></i>{% trans %}Publish a book{% endtrans %}</a>
  53.                         </li>
  54.                         <li class="nav-item">
  55.                             <a class="btn btn-success " href="{{ path('mesFavoris') }}">
  56.                                 <i class="fa fa-heart" aria-hidden="true"></i>{% trans %}Wishlist{% endtrans %}</a>
  57.                         </li>
  58.                         <li class="nav-item">
  59.                             <a class="nav-link " href="{{ path('profile') }}">
  60.                                 <i class="fa fa-user" aria-hidden="true"></i>{% trans %}Profile{% endtrans %}</a>
  61.                         </li>
  62.                         {# <li class="nav-item" style="background: #0000005c;">
  63.                           {{ render(controller('App\\Controller\\LivreController::notif')) }}
  64.                         </li> #}
  65.                         <li class="nav-item">
  66.                           {{ render(controller('App\\Controller\\LivreController::notif2')) }}
  67.                         </li>
  68.                         <li class="nav-item">
  69.                             <a class="nav-link" href="{{ path('logout') }}">
  70.                                 <i class="fa fa-sign-out-alt" style="color:#320258;" aria-hidden="true"></i>
  71.                                 <span class="mobile-inline"></span>
  72.                             </a>
  73.                         </li>
  74.                         {% endif %}
  75.                         <div class="dropdown">
  76.                           <span class="navbar-brand dropdown-toggle notification nav-link" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  77.                             <span>{% trans %}Language{% endtrans %}</span>
  78.                           </span>
  79.                           <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
  80.                             {% for locale in locales %} 
  81.                               {% if locale != app.request.locale %} {% if locale == 'fr' %}
  82.                                 <a class="item text-secondary" href="{{path('change_locale',{'locale':locale})}}">
  83.                                     <img src="{{asset('img/'~locale~'.png')}}" alt="{{locale}}"> {% trans %}French{% endtrans %}
  84.                                 </a>
  85.                               {% elseif locale == 'en' %}
  86.                                 <a class="item text-secondary" href="{{path('change_locale',{'locale':locale})}}">
  87.                                     <img src="{{asset('img/'~locale~'.png')}}" alt="{{locale}}"> {% trans %}English{% endtrans %}
  88.                                 </a>
  89.                               {% elseif locale == 'es' %}
  90.                                 <a class="item text-secondary" href="{{path('change_locale',{'locale':locale})}}">
  91.                                     <img src="{{asset('img/'~locale~'.png')}}" alt="{{locale}}"> {% trans %}Spanish{% endtrans %}
  92.                                 </a>
  93.                               {% elseif locale == 'de' %}
  94.                                 <a class="item text-secondary" href="{{path('change_locale',{'locale':locale})}}">
  95.                                     <img src="{{asset('img/'~locale~'.png')}}" alt="{{locale}}"> {% trans %}German{% endtrans %}
  96.                                 </a>
  97.                               {% elseif locale == 'cn' %}
  98.                                 <a class="block item text-secondary" href="{{path('change_locale',{'locale':locale})}}">
  99.                                     <img src="{{asset('img/'~locale~'.png')}}" alt="{{locale}}"> {% trans %}chinese{% endtrans %}
  100.                                 </a>
  101.                               {% endif %} {% endif %} {% endfor %}
  102.                           </div>
  103.                         </div>
  104.                     </ul>
  105.                 </div>
  106.             </nav>
  107.         </div>
  108.     </div>
  109.     {% for type, flash_messages in app.session.flashbag.all() %}
  110.       {% for flash_message in flash_messages %}
  111.           {% if type == 'success' %}
  112.               <div class="alert alert-success fixed-bottom">
  113.                   {{ flash_message }}
  114.               </div>
  115.           {% elseif type == 'error' %}
  116.               <div class="alert alert-danger fixed-bottom">
  117.                   {{ flash_message }}
  118.               </div>
  119.           {% else %}
  120.               <div class="alert alert-info fixed-bottom">
  121.                   {{ flash_message }}
  122.               </div>
  123.           {% endif %}
  124.       {% endfor %}
  125.     {% endfor %}
  126.        <div class="container">{% block body %}{% endblock %}</div>
  127.        <span style="width: 100%; display: inline-block;"></span>
  128.   <footer>
  129.   <div class="container">
  130.     <div class="row">
  131.       <div class="col-xl-5 col-lg-6 col-md-6">
  132.         <div>
  133.           <a target class="navbar-brand" href="#">
  134.                 <img alt="" src="{{asset('img/logo.png')}}" width="250px" class="logo" type="image/svg">
  135.                 </a>
  136.           <p class="mb-30 footer-desc">{% trans %}Discover a new way to share your passion for reading. Our platform allows you to borrow, lend, and trade books with other book lovers, all from the comfort of your home. Explore our extensive catalog of digital and physical books, connect with other community members, and share your literary discoveries. Join us today to enrich your library and reading experience{% endtrans %}
  137.         </div>
  138.       </div>
  139.       <div class="col-xl-3 col-lg-3 col-md-6">
  140.         <div>
  141.           <h4>Service</h4>
  142.           <ul class="list-unstyled">
  143.             <li>
  144.               <a href="#" class="text-decoration-none">Accueil</a>
  145.             </li>
  146.             <li>
  147.               <a href="#" class="text-decoration-none">Brandlistesing</a>
  148.             </li>
  149.             <li>
  150.               <a href="#" class="text-decoration-none">Web Design</a>
  151.             </li>
  152.             <li>
  153.               <a href="#" class="text-decoration-none">Graphics Design</a>
  154.             </li>
  155.           </ul>
  156.         </div>
  157.       </div>
  158.       <div class="col-xl-3 col-lg-3 col-md-6">
  159.         <div>
  160.           <h4>Newsletter</h4>
  161.           <div>
  162.             <label for="Newsletter" class="form-label">Subscribe To Our Newsletter</label>
  163.             <input type="text" class="form-control" Placeholder="Enter Your Email">
  164.             <button class="btn btn-danger mt-3">Subscribe</button>
  165.           </div>
  166.         </div>
  167.       </div>
  168.     </div>
  169.     <div class="d-flex justify-content-center">
  170.       <div class="copyright">
  171.         <p>Developed  by <a href="#" target="_blank">Hicham.tech</a></p>
  172.       </div>
  173.     </div>
  174.   </div>
  175. </footer>
  176.     </body>
  177.     <style>
  178.         .navbarbg{
  179.             background: #ededed;
  180.         }
  181.         .dropdown-content {
  182.           background: #fff;
  183.           display: none;
  184.           position: absolute;
  185.           width: max-content;
  186.           padding: 3px;
  187.           box-shadow: 0 0 14px -3px #000;
  188.         }
  189.         .show {
  190.             display: block;
  191.         }
  192.     </style>
  193.     <script>
  194.       function myFunction() {
  195.           document.getElementById("myDropdown").classList.toggle("show");
  196.       }
  197.   </script>
  198. </html>