templates/pages/detail.realisation.html.twig line 1

Open in your IDE?
  1. {% extends "frontend.html.twig" %}
  2. {% block stylesheet %}
  3. {{ parent()}}
  4. <style>
  5.   .zoom-background {
  6.       transition: transform 0.5s ease;
  7.       background-size: cover;
  8.       background-position: center;
  9.   }
  10.   .zoom-background:hover {
  11.       transform: scale(1.1);
  12.   }
  13.   .post-item {
  14.     overflow: hidden;
  15.     position: relative;
  16.   }
  17.   .post-date {
  18.     position: relative;
  19.     z-index: 1;
  20.   }
  21. </style>
  22. {% endblock %}
  23. {% block main %}
  24.     {# ARIANE #}
  25.     {{ render(controller('App\\Controller\\LibrairieController::afficherAriane', {'menu': menu })) }}
  26.     <!-- Recent Blog Posts Section -->
  27.     <section id="recent-blog-posts" class="recent-blog-posts section">
  28.     <div class="container">
  29.       <div class="row">
  30.         <div class="col-lg-8">
  31.           <!-- Blog Details Section -->
  32.           <section id="blog-details" class="blog-details section">
  33.             <div class="container">
  34.               <article class="article">
  35.                 <div class="post-img"
  36.                     {# style="background-image: url('{{ asset('uploads/pub_' ~ p.id ~ '/' ~ p.nomImage ) }}'); height: auto;" #}
  37.                 >
  38.                   <img src="{{ asset('uploads/pub_' ~ p.id ~ '/' ~ p.nomImage ) }}" alt="" class="img-fluid">
  39.                 </div>
  40.                 <h2 class="title">{{ p.titre|capitalize }}</h2>
  41.                 {# <div class="meta-top">
  42.                   <ul>
  43.                     <li class="d-flex align-items-center"><i class="bi bi-person"></i> <a href="blog-details.html">John Doe</a></li>
  44.                     <li class="d-flex align-items-center"><i class="bi bi-clock"></i> <a href="blog-details.html"><time datetime="2020-01-01">Jan 1, 2022</time></a></li>
  45.                     <li class="d-flex align-items-center"><i class="bi bi-chat-dots"></i> <a href="blog-details.html">12 Comments</a></li>
  46.                   </ul>
  47.                 </div> #}
  48.                 <!-- End meta top -->
  49.                 <div class="content">
  50.                   <h3>{{ p.sousTitre }}</h3>
  51.                   <p>{{ p.description }}</p>
  52.                   {% if p.description %}
  53.                     <blockquote style="text-align: left !important;">
  54.                         <p> {{ p.description }}</p>
  55.                     </blockquote>
  56.                   {% endif %}
  57.                   {{ p.contenu|raw }}
  58.                   
  59.                   {# <img src="assets/img/blog/blog-inside-post.jpg" class="img-fluid" alt=""> #}
  60.                 </div><!-- End post content -->
  61.                 {# <div class="meta-bottom">
  62.                   <i class="bi bi-folder"></i>
  63.                   <ul class="cats">
  64.                     <li><a href="#">Business</a></li>
  65.                   </ul>
  66.                   <i class="bi bi-tags"></i>
  67.                   <ul class="tags">
  68.                     <li><a href="#">Creative</a></li>
  69.                     <li><a href="#">Tips</a></li>
  70.                     <li><a href="#">Marketing</a></li>
  71.                   </ul>
  72.                 </div> #}
  73.                 <!-- End meta bottom -->
  74.               </article>
  75.             </div>
  76.           </section><!-- /Blog Details Section -->
  77.          
  78.         </div>
  79.         <div class="col-lg-4 sidebar">
  80.           <div class="widgets-container">
  81.             <!-- Categories Widget -->
  82.             {# <div class="categories-widget widget-item">
  83.               <h3 class="widget-title">Categories</h3>
  84.               <ul class="mt-3">
  85.                 <li><a href="#">General <span>(25)</span></a></li>
  86.                 <li><a href="#">Lifestyle <span>(12)</span></a></li>
  87.                 <li><a href="#">Travel <span>(5)</span></a></li>
  88.                 <li><a href="#">Design <span>(22)</span></a></li>
  89.                 <li><a href="#">Creative <span>(8)</span></a></li>
  90.                 <li><a href="#">Educaion <span>(14)</span></a></li>
  91.               </ul>
  92.             </div> #}
  93.             <!--/Categories Widget -->
  94.             <!-- Recent Posts Widget -->
  95.             <div class="recent-posts-widget widget-item">
  96.               <h3 class="widget-title">Autre rĂ©alisations</h3>
  97.               {% for ap in aps %}
  98.               {% if ap.id != p.id %}
  99.               <div class="post-item">
  100.                 <div class="flex-shrink-0"
  101.                     style="background-image: url('{{ asset('uploads/pub_' ~ ap.id ~ '/' ~ ap.nomImage ) }}'); 
  102.                     height: 80px;width: 80px;background-size: cover;background-position: center;"
  103.                 ></div>
  104.                 <div style="padding:5px 10px;">
  105.                   <h4><a href="{{ path('app_detail_realisation',{'slug': ap.slug })}}">
  106.                     {% if ap.titre|length > 70 %}
  107.                       {{ ap.titre|slice(0, 70)|capitalize }}...
  108.                     {% else %}
  109.                       {{ ap.titre|capitalize }}
  110.                     {% endif %}
  111.                   </a></h4>
  112.                   <time datetime="2020-01-01">
  113.                     {% if ap.sousTitre|length > 40 %}
  114.                       {{ ap.sousTitre|slice(0, 40)|capitalize }}...
  115.                     {% else %}
  116.                     {{ ap.sousTitre }}
  117.                     {% endif %}
  118.                   </time>
  119.                 </div>
  120.               </div><!-- End recent post item-->
  121.               {% endif %}
  122.               {% endfor %}
  123.             </div><!--/Recent Posts Widget -->
  124.             <!-- Tags Widget -->
  125.             <div class="tags-widget widget-item">
  126.               <h3 class="widget-title">Tags</h3>
  127.               {# <ul>
  128.                 <li><a href="#">App</a></li>
  129.                 <li><a href="#">IT</a></li>
  130.                 <li><a href="#">Business</a></li>
  131.                 <li><a href="#">Mac</a></li>
  132.                 <li><a href="#">Design</a></li>
  133.                 <li><a href="#">Office</a></li>
  134.                 <li><a href="#">Creative</a></li>
  135.                 <li><a href="#">Studio</a></li>
  136.                 <li><a href="#">Smart</a></li>
  137.                 <li><a href="#">Tips</a></li>
  138.                 <li><a href="#">Marketing</a></li>
  139.               </ul> #}
  140.             </div><!--/Tags Widget -->
  141.           </div>
  142.         </div>
  143.       </div>
  144.     </div>
  145.     </section>
  146.     <!-- /Recent Blog Posts Section -->
  147. {% endblock %}