var/cache/dev/twig/3e/3e5364797867b2a67a9f6e0b2d31e59a48c0cb361336b655cabcbb564c73c545.php line 53

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* community/index.html.twig */
  14. class __TwigTemplate_3821e450f1af41d01401110f18b423f4aacb0c7ab5658a146398169bd6a3c288 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'stylesheets' => [$this'block_stylesheets'],
  24.             'title' => [$this'block_title'],
  25.             'body' => [$this'block_body'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "base.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""community/index.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""community/index.html.twig"));
  40.         // line 2
  41.         $context["page"] = "community";
  42.         // line 1
  43.         $this->parent $this->loadTemplate("base.html.twig""community/index.html.twig"1);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  47.         
  48.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  49.     }
  50.     // line 3
  51.     public function block_stylesheets($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  58.         // line 4
  59.         echo "    ";
  60.         $this->displayParentBlock("stylesheets"$context$blocks);
  61.         echo "
  62.     <link href=\"";
  63.         // line 5
  64.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("css/sidebar-widget.css"), "html"nulltrue);
  65.         echo "\" rel=\"stylesheet\">
  66.     <style>
  67.         figure.them_overlay.thumbby {
  68.             width: 200px;
  69.         }
  70.         .after-icon{
  71.             margin-left: 3px;
  72.         }
  73.     </style>
  74. ";
  75.         
  76.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  77.         
  78.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  79.     }
  80.     // line 15
  81.     public function block_title($context, array $blocks = [])
  82.     {
  83.         $macros $this->macros;
  84.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  85.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  86.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  87.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  88.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("community.list.title"), "html"nulltrue);
  89.         
  90.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  91.         
  92.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  93.     }
  94.     // line 16
  95.     public function block_body($context, array $blocks = [])
  96.     {
  97.         $macros $this->macros;
  98.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  99.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  100.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  101.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  102.         // line 17
  103.         echo "    <!--KODE SAB BANNER WRAP START-->
  104.     <div class=\"kode_sab_banner_wrap them_overlay\">
  105.         <!--CONTAINER START-->
  106.         <div class=\"container\">
  107.             <div class=\"sab_banner_text\">
  108.                 <h1>";
  109.         // line 22
  110.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("community.list.title"), "html"nulltrue);
  111.         echo "</h1>
  112.                 <ul class=\"breadcrumbs\">
  113.                     <li><a href=\"";
  114.         // line 24
  115.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_front_main_index");
  116.         echo "\"><i class=\"fa fa-home\"></i></a></li>
  117.                     <li><strong>";
  118.         // line 25
  119.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sidebar.community.browse"), "html"nulltrue);
  120.         echo "</strong></li>
  121.                 </ul>
  122.             </div>
  123.         </div>
  124.         <!--CONTAINER END-->
  125.     </div>
  126.     <!--KODE SAB BANNER WRAP END-->
  127.     <!--KODE BLOG MADIUM WRAP START-->
  128.     <div class=\"kode_blog_madium_wrap\">
  129.         <!--CONTAINER START-->
  130.         <div class=\"container\">
  131.             ";
  132.         // line 37
  133.         $context['_parent'] = $context;
  134.         $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));
  135.         foreach ($context['_seq'] as $context["_key"] => $context["row"]) {
  136.             // line 38
  137.             echo "
  138.             <div class=\"row\">
  139.                 ";
  140.             // line 40
  141.             $context['_parent'] = $context;
  142.             $context['_seq'] = twig_ensure_traversable($context["row"]);
  143.             foreach ($context['_seq'] as $context["_key"] => $context["community"]) {
  144.                 // line 41
  145.                 echo "                ";
  146.                 if ( !(null === twig_get_attribute($this->env$this->source$context["community"], "masjids", [], "any"falsefalsefalse41))) {
  147.                     // line 42
  148.                     echo "    
  149.                     <div class=\"col-md-4 mr-auto\">
  150.                         <div class=\"kode_service_des\">
  151.                             <a href=\"";
  152.                     // line 45
  153.                     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"falsefalsefalse45)]), "html"nulltrue);
  154.                     echo "\">
  155.                                 <figure class=\"them_overlay\">
  156.                                         <img src=\"";
  157.                     // line 47
  158.                     echo twig_escape_filter($this->env$this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter(twig_get_attribute($this->env$this->source$context["community"], "mainPic", [], "any"falsefalsefalse47), "list"), "html"nulltrue);
  159.                     echo "\"alt=\"";
  160.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["community"], "translations", [], "any"falsefalsefalse47), twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse47), "locale", [], "any"falsefalsefalse47), [], "array"falsefalsefalse47), "name", [], "any"falsefalsefalse47), "html"nulltrue);
  161.                     echo "\">
  162.                                 </figure>
  163.                             </a>
  164.                             <div class=\"kode_service_text\">
  165.                                 <span><i class=\"fa icon-art\"></i></span>
  166.                                 <h6><a href=\"";
  167.                     // line 52
  168.                     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"falsefalsefalse52)]), "html"nulltrue);
  169.                     echo "\">";
  170.                     echo twig_escape_filter($this->env, (((=== twig_compare(twig_length_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["community"], "translations", [], "any"falsefalsefalse52), twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse52), "locale", [], "any"falsefalsefalse52), [], "array"falsefalsefalse52), "name", [], "any"falsefalsefalse52)), 20))) ? ((twig_slice($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["community"], "translations", [], "any"falsefalsefalse52), twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse52), "locale", [], "any"falsefalsefalse52), [], "array"falsefalsefalse52), "name", [], "any"falsefalsefalse52), 020) . "...")) : (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["community"], "translations", [], "any"falsefalsefalse52), twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse52), "locale", [], "any"falsefalsefalse52), [], "array"falsefalsefalse52), "name", [], "any"falsefalsefalse52))), "html"nulltrue);
  171.                     echo "</a></h6>
  172.                                 <p><i class=\"fa fa-map-marker\"></i>";
  173.                     // line 53
  174.                     echo twig_escape_filter($this->envtwig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["community"], "masjids", [], "any"falsefalsefalse53)), "html"nulltrue);
  175.                     echo "</p>
  176.                                 <a class=\"right_arrow hvr-ripple-out\" href=\"";
  177.                     // line 54
  178.                     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"falsefalsefalse54)]), "html"nulltrue);
  179.                     echo "\"><i class=\"fa fa-arrow-right\"></i></a>
  180.                             </div>
  181.                         </div>
  182.                     </div>
  183.                 ";
  184.                 }
  185.                 // line 59
  186.                 echo "                ";
  187.             }
  188.             $_parent $context['_parent'];
  189.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['community'], $context['_parent'], $context['loop']);
  190.             $context array_intersect_key($context$_parent) + $_parent;
  191.             // line 60
  192.             echo "
  193.               
  194.             </div>
  195.               ";
  196.         }
  197.         $_parent $context['_parent'];
  198.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['row'], $context['_parent'], $context['loop']);
  199.         $context array_intersect_key($context$_parent) + $_parent;
  200.         // line 66
  201.         echo "        </div>
  202.         <!--CONTAINER END-->
  203.     </div>
  204. ";
  205.         
  206.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  207.         
  208.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  209.     }
  210.     public function getTemplateName()
  211.     {
  212.         return "community/index.html.twig";
  213.     }
  214.     public function isTraitable()
  215.     {
  216.         return false;
  217.     }
  218.     public function getDebugInfo()
  219.     {
  220.         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,);
  221.     }
  222.     public function getSourceContext()
  223.     {
  224.         return new Source("{% extends 'base.html.twig' %}
  225. {% set page = \"community\" %}
  226. {% block stylesheets %}
  227.     {{ parent() }}
  228.     <link href=\"{{asset('css/sidebar-widget.css')}}\" rel=\"stylesheet\">
  229.     <style>
  230.         figure.them_overlay.thumbby {
  231.             width: 200px;
  232.         }
  233.         .after-icon{
  234.             margin-left: 3px;
  235.         }
  236.     </style>
  237. {% endblock %}
  238. {% block title %}{{ 'community.list.title'|trans }}{% endblock %}
  239. {% block body %}
  240.     <!--KODE SAB BANNER WRAP START-->
  241.     <div class=\"kode_sab_banner_wrap them_overlay\">
  242.         <!--CONTAINER START-->
  243.         <div class=\"container\">
  244.             <div class=\"sab_banner_text\">
  245.                 <h1>{{ 'community.list.title'|trans }}</h1>
  246.                 <ul class=\"breadcrumbs\">
  247.                     <li><a href=\"{{ path('app_front_main_index') }}\"><i class=\"fa fa-home\"></i></a></li>
  248.                     <li><strong>{{ 'sidebar.community.browse'|trans }}</strong></li>
  249.                 </ul>
  250.             </div>
  251.         </div>
  252.         <!--CONTAINER END-->
  253.     </div>
  254.     <!--KODE SAB BANNER WRAP END-->
  255.     <!--KODE BLOG MADIUM WRAP START-->
  256.     <div class=\"kode_blog_madium_wrap\">
  257.         <!--CONTAINER START-->
  258.         <div class=\"container\">
  259.             {% for row in communities|batch(3) %}
  260.             <div class=\"row\">
  261.                 {% for community in row %}
  262.                 {% if community.masjids is not null %}
  263.     
  264.                     <div class=\"col-md-4 mr-auto\">
  265.                         <div class=\"kode_service_des\">
  266.                             <a href=\"{{ path('community_show', {'slug': community.slug}) }}\">
  267.                                 <figure class=\"them_overlay\">
  268.                                         <img src=\"{{ community.mainPic|imagine_filter('list')}}\"alt=\"{{community.translations[app.request.locale].name}}\">
  269.                                 </figure>
  270.                             </a>
  271.                             <div class=\"kode_service_text\">
  272.                                 <span><i class=\"fa icon-art\"></i></span>
  273.                                 <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>
  274.                                 <p><i class=\"fa fa-map-marker\"></i>{{community.masjids|length}}</p>
  275.                                 <a class=\"right_arrow hvr-ripple-out\" href=\"{{ path('community_show', {'slug': community.slug}) }}\"><i class=\"fa fa-arrow-right\"></i></a>
  276.                             </div>
  277.                         </div>
  278.                     </div>
  279.                 {% endif %}
  280.                 {% endfor %}
  281.               
  282.             </div>
  283.               {% endfor %}
  284.         </div>
  285.         <!--CONTAINER END-->
  286.     </div>
  287. {% endblock %}
  288. ""community/index.html.twig""/var/www/sharjah/templates/community/index.html.twig");
  289.     }
  290. }