<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* community/index.html.twig */
class __TwigTemplate_3821e450f1af41d01401110f18b423f4aacb0c7ab5658a146398169bd6a3c288 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'stylesheets' => [$this, 'block_stylesheets'],
'title' => [$this, 'block_title'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "community/index.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "community/index.html.twig"));
// line 2
$context["page"] = "community";
// line 1
$this->parent = $this->loadTemplate("base.html.twig", "community/index.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 4
echo " ";
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
<link href=\"";
// line 5
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("css/sidebar-widget.css"), "html", null, true);
echo "\" rel=\"stylesheet\">
<style>
figure.them_overlay.thumbby {
width: 200px;
}
.after-icon{
margin-left: 3px;
}
</style>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 15
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("community.list.title"), "html", null, true);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 16
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 17
echo " <!--KODE SAB BANNER WRAP START-->
<div class=\"kode_sab_banner_wrap them_overlay\">
<!--CONTAINER START-->
<div class=\"container\">
<div class=\"sab_banner_text\">
<h1>";
// line 22
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("community.list.title"), "html", null, true);
echo "</h1>
<ul class=\"breadcrumbs\">
<li><a href=\"";
// line 24
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_front_main_index");
echo "\"><i class=\"fa fa-home\"></i></a></li>
<li><strong>";
// line 25
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sidebar.community.browse"), "html", null, true);
echo "</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\">
";
// line 37
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_array_batch((isset($context["communities"]) || array_key_exists("communities", $context) ? $context["communities"] : (function () { throw new RuntimeError('Variable "communities" does not exist.', 37, $this->source); })()), 3));
foreach ($context['_seq'] as $context["_key"] => $context["row"]) {
// line 38
echo "
<div class=\"row\">
";
// line 40
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($context["row"]);
foreach ($context['_seq'] as $context["_key"] => $context["community"]) {
// line 41
echo " ";
if ( !(null === twig_get_attribute($this->env, $this->source, $context["community"], "masjids", [], "any", false, false, false, 41))) {
// line 42
echo "
<div class=\"col-md-4 mr-auto\">
<div class=\"kode_service_des\">
<a href=\"";
// line 45
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("community_show", ["slug" => twig_get_attribute($this->env, $this->source, $context["community"], "slug", [], "any", false, false, false, 45)]), "html", null, true);
echo "\">
<figure class=\"them_overlay\">
<img src=\"";
// line 47
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter(twig_get_attribute($this->env, $this->source, $context["community"], "mainPic", [], "any", false, false, false, 47), "list"), "html", null, true);
echo "\"alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["community"], "translations", [], "any", false, false, false, 47), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 47, $this->source); })()), "request", [], "any", false, false, false, 47), "locale", [], "any", false, false, false, 47), [], "array", false, false, false, 47), "name", [], "any", false, false, false, 47), "html", null, true);
echo "\">
</figure>
</a>
<div class=\"kode_service_text\">
<span><i class=\"fa icon-art\"></i></span>
<h6><a href=\"";
// line 52
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("community_show", ["slug" => twig_get_attribute($this->env, $this->source, $context["community"], "slug", [], "any", false, false, false, 52)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, (((1 === twig_compare(twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["community"], "translations", [], "any", false, false, false, 52), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 52, $this->source); })()), "request", [], "any", false, false, false, 52), "locale", [], "any", false, false, false, 52), [], "array", false, false, false, 52), "name", [], "any", false, false, false, 52)), 20))) ? ((twig_slice($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["community"], "translations", [], "any", false, false, false, 52), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 52, $this->source); })()), "request", [], "any", false, false, false, 52), "locale", [], "any", false, false, false, 52), [], "array", false, false, false, 52), "name", [], "any", false, false, false, 52), 0, 20) . "...")) : (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["community"], "translations", [], "any", false, false, false, 52), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 52, $this->source); })()), "request", [], "any", false, false, false, 52), "locale", [], "any", false, false, false, 52), [], "array", false, false, false, 52), "name", [], "any", false, false, false, 52))), "html", null, true);
echo "</a></h6>
<p><i class=\"fa fa-map-marker\"></i>";
// line 53
echo twig_escape_filter($this->env, twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["community"], "masjids", [], "any", false, false, false, 53)), "html", null, true);
echo "</p>
<a class=\"right_arrow hvr-ripple-out\" href=\"";
// line 54
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("community_show", ["slug" => twig_get_attribute($this->env, $this->source, $context["community"], "slug", [], "any", false, false, false, 54)]), "html", null, true);
echo "\"><i class=\"fa fa-arrow-right\"></i></a>
</div>
</div>
</div>
";
}
// line 59
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['community'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 60
echo "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['row'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 66
echo " </div>
<!--CONTAINER END-->
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "community/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 228 => 66, 217 => 60, 211 => 59, 203 => 54, 199 => 53, 193 => 52, 183 => 47, 178 => 45, 173 => 42, 170 => 41, 166 => 40, 162 => 38, 158 => 37, 143 => 25, 139 => 24, 134 => 22, 127 => 17, 117 => 16, 98 => 15, 78 => 5, 73 => 4, 63 => 3, 52 => 1, 50 => 2, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% 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 %}
", "community/index.html.twig", "/var/www/sharjah/templates/community/index.html.twig");
}
}