templates/community/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% set page = "community" %}
  3. {% block stylesheets %}
  4.     {{ parent() }}
  5.     <link href="{{asset('css/sidebar-widget.css')}}" rel="stylesheet">
  6.     <style>
  7.         figure.them_overlay.thumbby {
  8.             width: 200px;
  9.         }
  10.         .after-icon{
  11.             margin-left: 3px;
  12.         }
  13.     </style>
  14. {% endblock %}
  15. {% block title %}{{ 'community.list.title'|trans }}{% endblock %}
  16. {% block body %}
  17.     <!--KODE SAB BANNER WRAP START-->
  18.     <div class="kode_sab_banner_wrap them_overlay">
  19.         <!--CONTAINER START-->
  20.         <div class="container">
  21.             <div class="sab_banner_text">
  22.                 <h1>{{ 'community.list.title'|trans }}</h1>
  23.                 <ul class="breadcrumbs">
  24.                     <li><a href="{{ path('app_front_main_index') }}"><i class="fa fa-home"></i></a></li>
  25.                     <li><strong>{{ 'sidebar.community.browse'|trans }}</strong></li>
  26.                 </ul>
  27.             </div>
  28.         </div>
  29.         <!--CONTAINER END-->
  30.     </div>
  31.     <!--KODE SAB BANNER WRAP END-->
  32.     <!--KODE BLOG MADIUM WRAP START-->
  33.     <div class="kode_blog_madium_wrap">
  34.         <!--CONTAINER START-->
  35.         <div class="container">
  36.             {% for row in communities|batch(3) %}
  37.             <div class="row">
  38.                 {% for community in row %}
  39.                 {% if community.masjids is not null %}
  40.     
  41.                     <div class="col-md-4 mr-auto">
  42.                         <div class="kode_service_des">
  43.                             <a href="{{ path('community_show', {'slug': community.slug}) }}">
  44.                                 <figure class="them_overlay">
  45.                                         <img src="{{ community.mainPic|imagine_filter('list')}}"alt="{{community.translations[app.request.locale].name}}">
  46.                                 </figure>
  47.                             </a>
  48.                             <div class="kode_service_text">
  49.                                 <span><i class="fa icon-art"></i></span>
  50.                                 <h6><a href="{{ path('community_show', {'slug': community.slug}) }}">{{ community.translations[app.request.locale].name|length > 20 ? community.translations[app.request.locale].name|slice(0, 20) ~ '...' : community.translations[app.request.locale].name  }}</a></h6>
  51.                                 <p><i class="fa fa-map-marker"></i>{{community.masjids|length}}</p>
  52.                                 <a class="right_arrow hvr-ripple-out" href="{{ path('community_show', {'slug': community.slug}) }}"><i class="fa fa-arrow-right"></i></a>
  53.                             </div>
  54.                         </div>
  55.                     </div>
  56.                 {% endif %}
  57.                 {% endfor %}
  58.               
  59.             </div>
  60.               {% endfor %}
  61.         </div>
  62.         <!--CONTAINER END-->
  63.     </div>
  64. {% endblock %}