base_no_card.html 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. {% load static %}
  2. <!DOCTYPE html>
  3. <html lang="fr" class="h-100">
  4. <head>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  7. <meta name="keywords" content="{%if page.p_mots_clefs%}{{page.p_mots_clefs}}{% endif %}">
  8. <meta name="description" content="{% if page.p_description %}{{page.p_description}}{% endif %}">
  9. {% block add_meta_description %}{% endblock %}
  10. <title>{% if page.p_meta_title %}{{page.p_meta_title}} | {% elif page.p_titre %}{{page.p_titre}} | {% endif %}{{page.c_sitename}}</title>
  11. <link rel="shortcut icon" href="/static/favicon.ico">
  12. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css" integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" crossorigin="anonymous">
  13. <link href="//fonts.googleapis.com/css2?family=Kufam&display=swap" rel="stylesheet">
  14. <script src="https://kit.fontawesome.com/7cf2a101ac.js"></script>
  15. <script src="https://unpkg.com/@popperjs/core@2"></script>
  16. {% if not request.user.is_authenticated %}
  17. <script data-ad-client="ca-pub-0171697375250839" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  18. {% endif %}
  19. <style type="text/css">
  20. img {
  21. display: block;
  22. max-width: 100%;
  23. height: auto;
  24. }
  25. body {
  26. background-color:black;
  27. background-image: url('{% static page.c_bgimagelogo %}'), url('{% static page.c_bgimage %}') ;
  28. background-position: 96% 95%, center ;
  29. background-size: 20%,cover;
  30. background-repeat: no-repeat;
  31. background-attachment: fixed;
  32. font-size: 15px;
  33. }
  34. </style>
  35. </head>
  36. <body class="d-flex flex-column h-100">
  37. <header style="color: #fff; font-family: Kufam', cursive;">
  38. <nav class="navbar navbar-expand-lg navbar-dark" style="background-color: {{page.c_bgcolor}};">
  39. <div class="container-fluid">
  40. <div class="collapse navbar-collapse" id="navbarSupportedContent">
  41. <a class="navbar-brand" href="{% url 'core_index' %}"><i class="{{page.c_sitelogo}}"></i> {{page.c_sitename}} </a>
  42. {% if page.p_menu_haut %}
  43. <ul class="navbar-nav mr-auto">
  44. {% regroup page.p_menu_haut by p_menu_parent as menu_with_parent %}
  45. {% for p_menu_parent in menu_with_parent%}
  46. {% if p_menu_parent.grouper != none %}
  47. <div class="navbar-nav dropdown">
  48. <a class="nav-link dropdown-toggle mr-5" href="#" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fas fa-bars" ></i> {{ p_menu_parent.grouper }}</a>
  49. <div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
  50. {% for item in p_menu_parent.list|dictsortreversed:"p_menu_poid" %}
  51. <a class="dropdown-item" {%if item.p_type == "lien_ext" %}target="_blank"{% endif %} href="{{item.p_adresse}}">{% if item.p_icone %}<i class="{{item.p_icone}}" ></i> {% endif %}{{item.p_titre}}</a></li>
  52. {% endfor %}
  53. </div>
  54. </div>
  55. {% else %}
  56. {% for item in p_menu_parent.list %}
  57. <li class="nav-item"><a class="nav-link" {%if item.p_type == "lien_ext" %}target="_blank"{% endif %} href="{{item.p_adresse}}">{% if item.p_icone %}<i class="{{item.p_icone}}" ></i> {% endif %}{{item.p_titre}}</a></li>
  58. {% endfor %}
  59. {% endif %}
  60. {% endfor %}
  61. </ul>
  62. {% endif %}
  63. {% if page.c_menulogin == 'True' %}
  64. <div class="navbar-nav dropdown">
  65. <a class="nav-link dropdown-toggle mr-5" href="#" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fas fa-id-badge" ></i> Mon profil</a>
  66. <div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
  67. {% if not request.user.is_authenticated %}
  68. <a class="dropdown-item" href="{% url 'core_login' %}" ><i class="fas fa-sign-in-alt"></i> Connexion</a>
  69. {% elif request.user.is_authenticated %}
  70. <a class="dropdown-item" href="{% url 'admin:index' %}" ><i class="fas fa-cog" ></i> Admin</a>
  71. <a class="dropdown-item" href="{% url 'core_logout' %}" ><i class="fas fa-sign-out-alt"></i> Déconnexion</a>
  72. {% endif %}
  73. </div>
  74. </div>
  75. {% endif %}
  76. </div>
  77. <div class="pos-f-t d-lg-none justify-content-end">
  78. <a class="navbar-brand" href="{% url 'core_index' %}"><i class="{{page.c_sitelogo}}"></i> {{page.c_sitename}} </a>
  79. <div class="collapse" id="navbarToggleExternalContent">
  80. <div class="p-3" style="background-color: {{page.c_bgcolor}};">
  81. {% if page.p_menu_haut %}
  82. <ul class="navbar-nav">
  83. {% for item in page.p_menu_haut %}
  84. <li class="nav-item"><a class="nav-link" {%if item.p_type == "lien_ext" %}target="_blank"{% endif %} href="{{item.p_adresse}}">{% if item.p_icone %}<i class="{{item.p_icone}}" ></i> {% endif %}{{item.p_titre}}</a></li>
  85. {% endfor %}
  86. {% if page.c_menulogin == 'True' %}
  87. <hr>
  88. {% if not request.user.is_authenticated %}
  89. <li class="nav-item"><a class="nav-link" href="{% url 'core_login' %}" ><i class="fas fa-sign-in-alt"></i> Connexion</a></li>
  90. {% elif request.user.is_authenticated %}
  91. <li class="nav-item"><a class="nav-link" href="{% url 'admin:index' %}" ><i class="fas fa-cog" ></i> Admin</a></li>
  92. <li class="nav-item"><a class="nav-link" href="{% url 'core_logout' %}" ><i class="fas fa-sign-out-alt"></i> Déconnexion</a></li>
  93. {% endif %}
  94. {% endif %}
  95. </ul>
  96. {% endif %}
  97. </div>
  98. </div>
  99. <nav class="navbar navbar-dark" style="background-color: {{page.c_bgcolor}};">
  100. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarToggleExternalContent" aria-controls="navbarToggleExternalContent" aria-expanded="false" aria-label="Toggle navigation">
  101. <span class="navbar-toggler-icon"></span>
  102. </button>
  103. </nav>
  104. </div>
  105. </div>
  106. </nav>
  107. </header>
  108. <main role="main" class="flex-shrink-0">
  109. <div class="container-fluid mw-100">
  110. <div class="row p-2">
  111. {% block left_panel %}
  112. {% endblock %}
  113. <div class="col-lg-9 p-lg-1 p-md-0 mb-sm-1">
  114. {% if messages %}
  115. <div class="card-body messages p-0 mr-3 ml-3">
  116. {% for message in messages %}
  117. <div class="m-2 alert alert-dismissable alert-{{ message.tags }}" data-alert="alert">
  118. <button type="button" class="close" data-dismiss="alert" >&times;</button>
  119. {{ message }}
  120. </div>
  121. {% endfor %}
  122. </div>
  123. {% endif %}
  124. {% block main %}{% endblock %}
  125. </div>
  126. <div class="col-lg-3 p-lg-1 p-md-0 mb-sm-1">
  127. {% include 'feeds_link.html' %}
  128. {% block right_panel %}
  129. {% endblock %}
  130. {% if not request.user.is_authenticated and page.p_right and not "account/" in request.path %}
  131. <div class="card-body">
  132. <h5 class="card-title"> Une Pub </h5>
  133. <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  134. <!-- Pub-1 -->
  135. <ins class="adsbygoogle"
  136. style="display:block"
  137. data-ad-client="ca-pub-0171697375250839"
  138. data-ad-slot="9918621322"
  139. data-ad-format="auto"
  140. data-full-width-responsive="true">
  141. </ins>
  142. <script>
  143. (adsbygoogle = window.adsbygoogle || []).push({});
  144. </script>
  145. {% endif %}
  146. </div>
  147. </div>
  148. </div>
  149. </div>
  150. </main>
  151. <footer class="footer mt-auto py-1 text-white" style="background-color: {{page.c_bgcolor}};">
  152. <div class="container">
  153. {{page.c_sitename}} - Jan. 2024
  154. {% if page.p_menu_pied %}
  155. {% for item in page.p_menu_pied %}
  156. <a class="link-light" href="{{item.p_adresse}}">{{item.p_titre}}</a>{% if not forloop.last %}, {% endif %}
  157. {% endfor %}
  158. {% endif %}
  159. </div>
  160. </footer>
  161. {% block modals %}{% endblock %}
  162. <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js" crossorigin="anonymous"></script>
  163. <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
  164. <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.min.js" integrity="sha384-+sLIOodYLS7CIrQpBjl+C7nPvqq+FbNUBDunl/OZv93DB7Ln/533i8e/mZXLi/P+" crossorigin="anonymous"></script>
  165. <script>
  166. </script>
  167. {% block script %}
  168. {% endblock %}
  169. </body>
  170. </html>