<?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;
/* masjid/index.html.twig */
class __TwigTemplate_ac93359979532df29d44520a34748b6d5d144891e8fc03c87d5a9881c570d74b extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'stylesheets' => [$this, 'block_stylesheets'],
'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", "masjid/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", "masjid/index.html.twig"));
// line 2
$context["page"] = "masjid";
// line 1
$this->parent = $this->loadTemplate("base.html.twig", "masjid/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_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("masjid.title"), "html", null, true);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 4
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 5
echo " ";
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
<link href=\"";
// line 6
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>
@media only screen and (min-width: 768px) {
figure.them_overlay.thumbby {
width: 200px;
}
.after-icon{
margin-left: 3px;
}
.mobileFirst{
display: none;
}
}
</style>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 21
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 22
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 27
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("masjid.list"), "html", null, true);
echo "</h1>
<ul class=\"breadcrumbs\">
<li><a href=\"";
// line 29
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 30
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("masjid.masjids"), "html", null, true);
echo " </strong></li>
</ul>
</div>
</div>
<!--CONTAINER END-->
</div>
<!--KODE SAB BANNER WRAP END-->
<!--KODE EVENT WRAP START-->
<div class=\"kode_event_wrap\">
<!--CONTAINER START-->
<div class=\"container\">
<div class=\"row\">
<div class=\"col-md-8\">
<div class=\"kode_search margin mobileFirst\">
<form method=\"post\" id=\"commentform\" ACTION=\"";
// line 45
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("search");
echo "\" class=\"comment-form\">
<div class=\"kf_commet_field\">
<label>
<input placeholder=\"";
// line 48
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sidebar.search"), "html", null, true);
echo "\" name=\"term\" type=\"text\" value=\"\" data-default=\"Name*\" size=\"30\" required>
</label>
<button><i class=\"fa fa-paper-plane\"></i></button>
</div>
</form>
</div>
<div class=\"kode_blog_list\">
<ul>
";
// line 56
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["masjids"]) || array_key_exists("masjids", $context) ? $context["masjids"] : (function () { throw new RuntimeError('Variable "masjids" does not exist.', 56, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["masjid"]) {
// line 57
echo " <li>
<div class=\"kode_blog_fig\">
";
// line 59
if ((1 === twig_compare(twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["masjid"], "pictures", [], "any", false, false, false, 59)), 1))) {
// line 60
echo " <figure class=\"them_overlay thumbby\">
<img srcset=\"";
// line 61
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter(twig_get_attribute($this->env, $this->source, $context["masjid"], "MainPic", [], "any", false, false, false, 61), "list_mobile"), "html", null, true);
echo " 480w,
";
// line 62
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter(twig_get_attribute($this->env, $this->source, $context["masjid"], "MainPic", [], "any", false, false, false, 62), "list"), "html", null, true);
echo " 800w\"
sizes=\"(max-width: 768px) 480px,800px\"
src=\"";
// line 64
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter(twig_get_attribute($this->env, $this->source, $context["masjid"], "MainPic", [], "any", false, false, false, 64), "list"), "html", null, true);
echo "\"
alt=\"";
// line 65
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["masjid"], "translate", [0 => 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.', 65, $this->source); })()), "request", [], "any", false, false, false, 65), "locale", [], "any", false, false, false, 65)], "method", false, false, false, 65), "getName", [], "method", false, false, false, 65), "html", null, true);
echo "\">
<a class=\"plus_icon\" href=\"";
// line 66
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("masjid_show", ["slug" => twig_get_attribute($this->env, $this->source, $context["masjid"], "slug", [], "any", false, false, false, 66)]), "html", null, true);
echo "\"><i class=\"fa fa-eye\"></i></a>
</figure>
";
} else {
// line 69
echo " <figure class=\"them_overlay thumbby\">
<i class=\"fa icon-art\" style=\"font-size:200px\" aria-hidden=\"true\" title=\"";
// line 70
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("no pictures"), "html", null, true);
echo "\"></i>
<a class=\"plus_icon\" href=\"";
// line 71
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("masjid_show", ["slug" => twig_get_attribute($this->env, $this->source, $context["masjid"], "slug", [], "any", false, false, false, 71)]), "html", null, true);
echo "\"><i class=\"fa fa-eye\"></i></a>
</figure>
";
}
// line 74
echo " <div class=\"kode_blog_text\">
<ul class=\"kode_meta\">
<li><a href=\"#\"><i class=\"fa fa-calendar\"></i>";
// line 76
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["masjid"], "dateOfConsctruct", [], "any", false, false, false, 76), "d-m-Y"), "html", null, true);
echo "</a></li>
<li><a href=\"";
// line 77
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("community_show", ["slug" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["masjid"], "community", [], "any", false, false, false, 77), "slug", [], "any", false, false, false, 77)]), "html", null, true);
echo "\"><i class=\"fa fa-map-marker\"></i>";
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["masjid"], "community", [], "any", false, false, false, 77), "translate", [0 => 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.', 77, $this->source); })()), "request", [], "any", false, false, false, 77), "locale", [], "any", false, false, false, 77)], "method", false, false, false, 77), "getName", [], "method", false, false, false, 77), "html", null, true);
echo "</a></li>
</ul>
<h5>
<a href=\"";
// line 80
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("masjid_show", ["slug" => twig_get_attribute($this->env, $this->source, $context["masjid"], "slug", [], "any", false, false, false, 80)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["masjid"], "translate", [0 => 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.', 80, $this->source); })()), "request", [], "any", false, false, false, 80), "locale", [], "any", false, false, false, 80)], "method", false, false, false, 80), "getName", [], "method", false, false, false, 80), "html", null, true);
echo "</a>
</h5>
<ul class=\"kode_meta meta_2\">
";
// line 83
if (twig_get_attribute($this->env, $this->source, $context["masjid"], "isWomen", [], "any", false, false, false, 83)) {
echo " <li><i class=\"fa fa-female\"></i><a class=\"after-icon\" href=\"#\"> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("masjid.lady"), "html", null, true);
echo " </a></li>";
}
// line 84
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["masjid"], "isEnglish", [], "any", false, false, false, 84)) {
echo " <li><i class=\"fa fa-language\"></i><a class=\"after-icon\" href=\"#\"> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("masjid.english"), "html", null, true);
echo " </a></li>";
}
// line 85
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["masjid"], "isJumah", [], "any", false, false, false, 85)) {
echo " <li><i class=\"fa fa-users\"></i><a class=\"after-icon\" href=\"#\"> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("masjid.Jumah"), "html", null, true);
echo " </a></li>";
}
// line 86
echo " </ul>
</div>
</div>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['masjid'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 91
echo " </ul>
</div>
<!--KODE PAGINATION LIST START-->
<div class=\"kode_pagination_list navi_2\">
";
// line 95
echo $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["masjids"]) || array_key_exists("masjids", $context) ? $context["masjids"] : (function () { throw new RuntimeError('Variable "masjids" does not exist.', 95, $this->source); })()), "Main/pagination_custom.html.twig");
echo "
</div>
<!--KODE PAGINATION LIST END-->
</div>
";
// line 99
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Front\\MainController::sidebar", ["masjidId" => 1]));
echo "
</div>
</div>
<!--CONTAINER END-->
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "masjid/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 299 => 99, 292 => 95, 286 => 91, 276 => 86, 269 => 85, 262 => 84, 256 => 83, 248 => 80, 240 => 77, 236 => 76, 232 => 74, 226 => 71, 222 => 70, 219 => 69, 213 => 66, 209 => 65, 205 => 64, 200 => 62, 196 => 61, 193 => 60, 191 => 59, 187 => 57, 183 => 56, 172 => 48, 166 => 45, 148 => 30, 144 => 29, 139 => 27, 132 => 22, 122 => 21, 97 => 6, 92 => 5, 82 => 4, 63 => 3, 52 => 1, 50 => 2, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% set page = \"masjid\" %}
{% block title %}{{ \"masjid.title\"|trans }}{% endblock %}
{% block stylesheets %}
{{ parent() }}
<link href=\"{{asset('css/sidebar-widget.css')}}\" rel=\"stylesheet\">
<style>
@media only screen and (min-width: 768px) {
figure.them_overlay.thumbby {
width: 200px;
}
.after-icon{
margin-left: 3px;
}
.mobileFirst{
display: none;
}
}
</style>
{% 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>{{ \"masjid.list\"|trans }}</h1>
<ul class=\"breadcrumbs\">
<li><a href=\"{{path('app_front_main_index')}}\"><i class=\"fa fa-home\"></i></a></li>
<li><strong>{{ \"masjid.masjids\"|trans }} </strong></li>
</ul>
</div>
</div>
<!--CONTAINER END-->
</div>
<!--KODE SAB BANNER WRAP END-->
<!--KODE EVENT WRAP START-->
<div class=\"kode_event_wrap\">
<!--CONTAINER START-->
<div class=\"container\">
<div class=\"row\">
<div class=\"col-md-8\">
<div class=\"kode_search margin mobileFirst\">
<form method=\"post\" id=\"commentform\" ACTION=\"{{ path('search') }}\" class=\"comment-form\">
<div class=\"kf_commet_field\">
<label>
<input placeholder=\"{{ \"sidebar.search\"|trans }}\" name=\"term\" type=\"text\" value=\"\" data-default=\"Name*\" size=\"30\" required>
</label>
<button><i class=\"fa fa-paper-plane\"></i></button>
</div>
</form>
</div>
<div class=\"kode_blog_list\">
<ul>
{% for masjid in masjids %}
<li>
<div class=\"kode_blog_fig\">
{% if masjid.pictures|length > 1 %}
<figure class=\"them_overlay thumbby\">
<img srcset=\"{{ masjid.MainPic|imagine_filter('list_mobile') }} 480w,
{{ masjid.MainPic|imagine_filter('list') }} 800w\"
sizes=\"(max-width: 768px) 480px,800px\"
src=\"{{ masjid.MainPic|imagine_filter('list') }}\"
alt=\"{{masjid.translate(app.request.locale).getName()}}\">
<a class=\"plus_icon\" href=\"{{ path('masjid_show',{slug:masjid.slug}) }}\"><i class=\"fa fa-eye\"></i></a>
</figure>
{% else %}
<figure class=\"them_overlay thumbby\">
<i class=\"fa icon-art\" style=\"font-size:200px\" aria-hidden=\"true\" title=\"{{'no pictures'|trans}}\"></i>
<a class=\"plus_icon\" href=\"{{ path('masjid_show',{slug:masjid.slug}) }}\"><i class=\"fa fa-eye\"></i></a>
</figure>
{% endif %}
<div class=\"kode_blog_text\">
<ul class=\"kode_meta\">
<li><a href=\"#\"><i class=\"fa fa-calendar\"></i>{{ masjid.dateOfConsctruct|date('d-m-Y') }}</a></li>
<li><a href=\"{{path('community_show',{slug:masjid.community.slug})}}\"><i class=\"fa fa-map-marker\"></i>{{ masjid.community.translate(app.request.locale).getName() }}</a></li>
</ul>
<h5>
<a href=\"{{ path('masjid_show',{slug:masjid.slug}) }}\">{{ masjid.translate(app.request.locale).getName() }}</a>
</h5>
<ul class=\"kode_meta meta_2\">
{% if masjid.isWomen %} <li><i class=\"fa fa-female\"></i><a class=\"after-icon\" href=\"#\"> {{ \"masjid.lady\"|trans }} </a></li>{% endif %}
{% if masjid.isEnglish %} <li><i class=\"fa fa-language\"></i><a class=\"after-icon\" href=\"#\"> {{ \"masjid.english\"|trans }} </a></li>{% endif %}
{% if masjid.isJumah %} <li><i class=\"fa fa-users\"></i><a class=\"after-icon\" href=\"#\"> {{ \"masjid.Jumah\"|trans }} </a></li>{% endif %}
</ul>
</div>
</div>
</li>
{% endfor %}
</ul>
</div>
<!--KODE PAGINATION LIST START-->
<div class=\"kode_pagination_list navi_2\">
{{ knp_pagination_render(masjids, 'Main/pagination_custom.html.twig') }}
</div>
<!--KODE PAGINATION LIST END-->
</div>
{{ render(controller(\"App\\\\Controller\\\\Front\\\\MainController::sidebar\", { 'masjidId': 1 }) )}}
</div>
</div>
<!--CONTAINER END-->
</div>
{% endblock %}
", "masjid/index.html.twig", "/var/www/sharjah/templates/masjid/index.html.twig");
}
}