{% extends 'base.html.twig' %}
{% set page = "community" %}
{% block stylesheets %}
{{ parent() }}
<link href="{{asset('css/sidebar-widget.css')}}" rel="stylesheet">
<style>
figure.them_overlay.thumbby {
width: 200px;
}
.after-icon{
margin-left: 3px;
}
</style>
{% endblock %}
{% block title %}{{ 'community.list.title'|trans }}{% endblock %}
{% block body %}
<!--KODE SAB BANNER WRAP START-->
<div class="kode_sab_banner_wrap them_overlay">
<!--CONTAINER START-->
<div class="container">
<div class="sab_banner_text">
<h1>{{ 'community.list.title'|trans }}</h1>
<ul class="breadcrumbs">
<li><a href="{{ path('app_front_main_index') }}"><i class="fa fa-home"></i></a></li>
<li><strong>{{ 'sidebar.community.browse'|trans }}</strong></li>
</ul>
</div>
</div>
<!--CONTAINER END-->
</div>
<!--KODE SAB BANNER WRAP END-->
<!--KODE BLOG MADIUM WRAP START-->
<div class="kode_blog_madium_wrap">
<!--CONTAINER START-->
<div class="container">
{% for row in communities|batch(3) %}
<div class="row">
{% for community in row %}
{% if community.masjids is not null %}
<div class="col-md-4 mr-auto">
<div class="kode_service_des">
<a href="{{ path('community_show', {'slug': community.slug}) }}">
<figure class="them_overlay">
<img src="{{ community.mainPic|imagine_filter('list')}}"alt="{{community.translations[app.request.locale].name}}">
</figure>
</a>
<div class="kode_service_text">
<span><i class="fa icon-art"></i></span>
<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>
<p><i class="fa fa-map-marker"></i>{{community.masjids|length}}</p>
<a class="right_arrow hvr-ripple-out" href="{{ path('community_show', {'slug': community.slug}) }}"><i class="fa fa-arrow-right"></i></a>
</div>
</div>
</div>
{% endif %}
{% endfor %}
</div>
{% endfor %}
</div>
<!--CONTAINER END-->
</div>
{% endblock %}