templates/Theme/Produit/Service/Service/articlesblog.html.twig line 1

Open in your IDE?
  1. <div class="my-container">
  2. <div class="row">
  3.     <div class="col-md-12" style="margin-bottom: 7px;">
  4.     <div class="step-indicator" style="display: inline-block; width: 100%; margin: 0px; background: #f9f9f9;">
  5.         <a class="stepcard completed" href="" style="display: inline-block; width: 22%;"><div class="coustom-my-text">{{ site }}</div></a>
  6.         <a class="stepcard completed" href="" style="display: inline-block; width: 22%;"><div class="coustom-my-text">À propos</div></a>
  7.         <a class="stepcard" href="#!" style="display: inline-block;  width: 22%;"><div class="coustom-my-text">Le Blog</div></a>
  8.     </div>
  9.     </div>
  10. </div>
  11. </div>
  12. <div style="background: #f5f7f8; padding-top: 20px;">
  13.     <div class="my-container">
  14.         <div class="row">
  15.         <div class="col-md-4">
  16.             {{ render(controller("App\\Controller\\Produit\\Service\\ServiceController:menuarticle", {'position': position})) }}
  17.         </div>
  18.         <div class="col-md-8">
  19.         
  20.             <div class="menu-ui "style="border-radius: 0px; margin-bottom: 10px;">
  21.                 <div class="menu-wrapper">
  22.                     <div class="menu-content">
  23.                     {% for article in liste_article %}
  24.                     <div class="topic">
  25.                         <div class="open">
  26.                         <span class="faq-t" style="top: 40px;"></span>
  27.                         <h2 class="question">
  28.                         <img src="{% if article.imgservice != null %}{{ asset(article.imgservice.getwebpath) }}{% else %}{{ asset('template/images/boost2.png') }}{% endif %}" alt="{{ article.keyword }}" style="width: 100px; height: 100px; float: left; margin-right: 7px; background: #ddd; margin-top: -20px;" >  
  29.                         <span style="font-size: 25px;">{{ article.nom }}</span>
  30.                         <div style="color: #333; margin-top: 10px;">
  31.                            {{ article.breve }} <span class="badge" style="float: right; color: #222">{{ article.evenements|length + 1 }}</span>
  32.                         </div>
  33.                         </h2> 
  34.                         </div>
  35.                         <div class="answer">
  36.                         {{ article.description|rewriteLink|raw }}</br>
  37.                         
  38.                             <div class="row">
  39.                                 {% for partie in article.evenements %}
  40.                                 <div class="col s12" style="margin-top: 20px; padding: 5px 20px; border-top: 1px solid #ddd; display: block!important;">
  41.                                 <h2 style="font-size: 25px; margin: 0px;">{{ partie.nom }}</h2>
  42.                                 {% if partie.imgevenement != null %}
  43.                                     <div>
  44.                                         <img src="{{ asset(partie.imgevenement.getWebPath) }}" alt="{{ article.keyword }}" style="width: 100%; margin: 7px 0px;">
  45.                                     </div>
  46.                                 {% endif %}
  47.                                 {{ partie.description|rewriteLink|raw }}
  48.                                 </div>
  49.                                 {% endfor %}
  50.                                 <div class="clearfix"></div>
  51.                             </div>
  52.                         </div>
  53.                     </div>
  54.                     {% endfor %}
  55.                     <span class="clearfix"></span>
  56.                     {% if nombrepage > 0 %}
  57.                 
  58.                     {% if page > 1 and page <= nombrepage %}
  59.                     {% set pagepre = page - 1 %}
  60.                     {% else %}
  61.                         {% set pagepre = nombrepage %}
  62.                     {% endif %}
  63.                     {% if page < nombrepage %}
  64.                         {% set pagesuiv = page + 1 %}
  65.                     {% else %}
  66.                         {% set pagesuiv =  1 %}
  67.                     {% endif %}
  68.                     {% if nombrepage < 5 %}
  69.                         {% set debut = 1 %}
  70.                         {% set fin = nombrepage %}
  71.                     {% else %}
  72.                         {% if page > 2 and page < (nombrepage - 2) %}
  73.                             {% set debut = page - 2 %}
  74.                             {% if page + 2 >= nombrepage %}
  75.                                 {% set fin = nombrepage %}
  76.                             {% else %}
  77.                                 {% set fin = page + 2 %}
  78.                             {% endif %}
  79.                         {% else %}
  80.                             {% if page <= 2 %}
  81.                                 {% if page == 1 %}
  82.                                     {% set debut = 1 %}
  83.                                     {% set fin = page + 3 %}
  84.                                 {% else %}
  85.                                     {% set debut = 1 %}
  86.                                     {% set fin = page + 2 %}
  87.                                 {% endif %}
  88.                             {% else %}
  89.                                 {% set debut = page - 2 %}
  90.                                 {% if page + 2 >= nombrepage %}
  91.                                     {% set fin = nombrepage %}
  92.                                 {% else %}
  93.                                     {% set fin = page + 2 %}
  94.                                 {% endif %}
  95.                             {% endif %}
  96.                         {% endif %}
  97.                         
  98.                     {% endif %}
  99.                     <div>
  100.                       <ul class="pagination" style="margin-top: 20px; display: block;"> 
  101.                         <li><a href="{{ path('produit_service_afh_sps', {'position': position, 'page': 1 }) }}" title="Première page" style=" width: 34px; height: 34px; border-radius: 17px; padding-top: 5px; margin: 2px; text-align: center; line-height: 8px;"><span class="fa fa-fast-backward" style="font-size: 13px;"></span></a></li>
  102.                         <li><a href="{{ path('produit_service_afh_sps', {'position': position, 'page': pagepre }) }}" title="Page précedente" style=" width: 34px; height: 34px; border-radius: 17px; padding-top: 5px; margin: 2px; text-align: center;"><span class="fa fa-step-backward" style="font-size: 13px;"></span></a></li>
  103.                         {% for p in debut..fin %}
  104.                         <li value="{{ p }}"><a href="{{ path('produit_service_afh_sps', {'position': position, 'page': p }) }}" class="{% if p == page %}activepage{% endif %}" style="margin: 4px 0px;">{{ p }}</a></li>
  105.                         {% endfor %}
  106.                         <li><a href="{{ path('produit_service_afh_sps', {'position': position, 'page': pagesuiv }) }}"  title="Page suivante" style=" width: 34px; height: 34px; border-radius: 17px; padding-top: 5px; margin: 2px; text-align: center;"><span class="fa fa-step-forward" style="font-size: 13px;"></span></a></li>
  107.                         <li><a href="{{ path('produit_service_afh_sps', {'position': position, 'page': nombrepage }) }}" title="Dernière page" style=" width: 34px; height: 34px; border-radius: 17px; padding-top: 5px; margin: 2px; text-align: center; line-height: 8px;"><span class="fa fa-fast-forward" style="font-size: 13px;"></span></a></li>
  108.                        </ul>
  109.                     <div class="clearfix"></div>
  110.                     </div>
  111.                     {% else %}
  112.                     <div>
  113.                       <ul class="pagination" style="margin-top: 20px; display: block;">
  114.                       <li><a href="{{ path('produit_service_afh_sps', {'position': position, 'page': page }) }}" title="Première page" style=" width: 34px; height: 34px; border-radius: 17px; padding-top: 5px; margin: 2px; text-align: center; line-height: 8px;"><span class="fa fa-fast-backward" style="font-size: 13px;"></span></a></li>
  115.                         <li><a href="{{ path('produit_service_afh_sps', {'position': position, 'page': page }) }}" title="Page précedente" style="width: 34px; height: 34px; border-radius: 17px; padding-top: 5px; margin: 2px; text-align: center;"><span class="fa fa-step-backward" style="font-size: 13px;"></span></a></li>
  116.                         <li><a href="{{ path('produit_service_afh_sps', {'position': position, 'page': page }) }}" class="activepage" style="margin: 4px 0px;">0</a></li>
  117.                         <li><a href="{{ path('produit_service_afh_sps', {'position': position, 'page': page }) }}"  title="Page suivante" style="width: 34px; height: 34px; border-radius: 17px; padding-top: 5px; margin: 2px; text-align: center;"><span class="fa fa-step-forward" style="font-size: 13px;"></span></a></li>
  118.                         <li><a href="{{ path('produit_service_afh_sps', {'position': position, 'page': page }) }}" title="Dernière page" style=" width: 34px; height: 34px; border-radius: 17px; padding-top: 5px; margin: 2px; text-align: center; line-height: 8px;"><span class="fa fa-fast-forward" style="font-size: 13px;"></span></a></li>
  119.                        </ul>
  120.                     <div class="clearfix"></div>
  121.                     </div>
  122.                     {% endif %}    
  123.                     </div>
  124.                 </div>
  125.             </div>
  126.         
  127.         </div>
  128.         </div>
  129.     </div>
  130. </div>