var/cache/dev/twig/37/37d5f60a0baa1d1c0a87d5e1f9bc0ccf.php line 51

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* Blog/blog_category.html.twig */
  15. class __TwigTemplate_08abd6937bd679788b51816f5fa30caa extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->blocks = [
  24.             'content' => [$this'block_content'],
  25.         ];
  26.         $this->sandbox $this->env->getExtension(SandboxExtension::class);
  27.         $this->checkSecurity();
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "layouts/layout.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Blog/blog_category.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Blog/blog_category.html.twig"));
  41.         $this->parent $this->loadTemplate("layouts/layout.html.twig""Blog/blog_category.html.twig"1);
  42.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  45.         
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47.     }
  48.     // line 2
  49.     public function block_content($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  56.         // line 3
  57.         yield "
  58. ";
  59.         // line 4
  60.         $context["bannerImage"] = "";
  61.         // line 5
  62.         yield "
  63. ";
  64.         // line 7
  65.         if (CoreExtension::getAttribute($this->env$this->source, (isset($context["blogcategory"]) || array_key_exists("blogcategory"$context) ? $context["blogcategory"] : (function () { throw new RuntimeError('Variable "blogcategory" does not exist.'7$this->source); })()), "bannerImage", [], "any"falsefalsetrue7)) {
  66.             // line 8
  67.             yield "\t";
  68.             $context["bannerImage"] = CoreExtension::getAttribute($this->env$this->source, (isset($context["blogcategory"]) || array_key_exists("blogcategory"$context) ? $context["blogcategory"] : (function () { throw new RuntimeError('Variable "blogcategory" does not exist.'8$this->source); })()), "bannerImage", [], "any"falsefalsetrue8);
  69.         } else {
  70.             // line 10
  71.             yield "\t";
  72.             $context["bannerImage"] = "/insights/insight_banner_image_general.jpg";
  73.         }
  74.         // line 12
  75.         yield "
  76.   <!--Hero Section -->
  77.   <div id=\"hero\" class=\"has-image has-logo\">
  78.   <div id=\"hero-styles\">
  79.     <div id=\"hero-caption\" class=\"content-max-width\">
  80.       <div class=\"inner\">
  81.         <div class=\"hero-title-wrapper\">
  82.           <div class=\"one_half\">
  83.             <div class=\"inner\">
  84.               <div
  85.                 class=\"hero-title hero-title-small\"
  86.                 style=\"margin-bottom: 1rem\"
  87.               >
  88.               <h1 class=\"h1-banner-heading\">
  89.                   <span>";
  90.         // line 26
  91.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, (isset($context["blogcategory"]) || array_key_exists("blogcategory"$context) ? $context["blogcategory"] : (function () { throw new RuntimeError('Variable "blogcategory" does not exist.'26$this->source); })()), "name", [], "any"falsefalsetrue26), 26$this->source), "html"nulltrue);
  92.         yield "</span>
  93.               </h1>
  94.               </div>
  95.               <div class=\"hero-text\">
  96.                 <span>
  97.                   ";
  98.         // line 31
  99.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, (isset($context["blogcategory"]) || array_key_exists("blogcategory"$context) ? $context["blogcategory"] : (function () { throw new RuntimeError('Variable "blogcategory" does not exist.'31$this->source); })()), "description", [], "any"falsefalsetrue31), 31$this->source), "html"nulltrue);
  100.         yield "
  101.                 </span>
  102.               </div>
  103.             </div>
  104.           </div>
  105.           <div class=\"one_half last\"></div>
  106.         </div>
  107.       </div>
  108.     </div>
  109.     <div id=\"hero-footer\">
  110.       <div class=\"hero-footer-right\">
  111.         <div class=\"button-wrap right scroll-down\">
  112.           <div class=\"icon-wrap parallax-wrap\">
  113.             <div class=\"button-icon parallax-element\">
  114.               <i class=\"fa fa-angle-down\"></i>
  115.             </div>
  116.           </div>
  117.           <div class=\"button-text sticky right\">
  118.             <span data-hover=\"Scroll to navigate\"
  119.               >Scroll to navigate</span
  120.             >
  121.           </div>
  122.         </div>
  123.       </div>
  124.     </div>
  125.   </div>
  126. </div>
  127. <div id=\"hero-image-wrapper\">
  128.   <div id=\"hero-background-layer\" class=\"parallax-scroll-image\">
  129.     <div
  130.       id=\"hero-bg-image\"
  131.       style=\"
  132.         background-image: url(";
  133.         // line 63
  134.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed((isset($context["bannerImage"]) || array_key_exists("bannerImage"$context) ? $context["bannerImage"] : (function () { throw new RuntimeError('Variable "bannerImage" does not exist.'63$this->source); })()), 63$this->source), "html"nulltrue);
  135.         yield ");
  136.       \"
  137.     ></div>
  138.   </div>
  139. </div>
  140. <!--/Hero Section -->
  141. <!-- Main Content -->
  142. <div id=\"main-content\">
  143. <!-- Main Page Content -->
  144. <div id=\"main-page-content\" class=\"content-max-width\">
  145.   <div class=\"content-row light-section\" data-bgcolor=\"#fff\">
  146.     <!-- Row -->
  147.     <div
  148.       class=\"content-row row_padding_top row_padding_bottom light-section change-header-color\"
  149.       data-bgcolor=\"#fff\"
  150.     >
  151.       <div class=\"one_half\">
  152.       ";
  153.         // line 84
  154.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'84$this->source); })())) {
  155.             // line 85
  156.             yield "      ";
  157.             yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""HeadlineOne", ["placeholder" => "heading two"]);
  158.             yield "
  159.       ";
  160.             // line 86
  161.             yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""HeadlineTwo", ["placeholder" => "heading two"]);
  162.             yield "
  163.     ";
  164.         } else {
  165.             // line 88
  166.             yield "        <h2 class=\"has-mask-fill our-product-N no-margins\">";
  167.             yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""HeadlineOne");
  168.             yield "</h2>
  169.         <h2 class=\"has-mask-fill our-product-N\">  ";
  170.             // line 89
  171.             yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""HeadlineTwo");
  172.             yield "</h2>
  173. ";
  174.         }
  175.         // line 92
  176.         yield "
  177.         <hr />
  178.         <p class=\"has-animation\" data-delay=\"0\">
  179.         ";
  180.         // line 96
  181.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""description", ["nl2br" => false"height" => 100"placeholder" => "content"]);
  182.         // line 100
  183.         yield "
  184.         </p>
  185.       </div>
  186.       <div class=\"one_half last\"></div>
  187.     </div>
  188.     
  189.     <!-- blogs grid -->
  190.     <div class=\"\">
  191.       <!-- Row -->
  192.       <div  class=\"content-row row_padding_bottom light-section change-header-color\"  data-bgcolor=\"#fff\">
  193.         <div class=\"blogs-layout\">
  194.           <div class=\"blogs-main change-header\" id='blog-category'>
  195.           ";
  196.         // line 114
  197.         $context["catUrl"] = "";
  198.         // line 115
  199.         yield "          ";
  200.         $context["catId"] = "";
  201.         // line 116
  202.         yield "          ";
  203.         $context["image"] = "/assets/images/blog-aside.png";
  204.         // line 117
  205.         yield "          ";
  206.         $context["altTag"] = "Design Retainer | Centric";
  207.         // line 118
  208.         yield "
  209.           ";
  210.         // line 119
  211.         if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["blogs"]) || array_key_exists("blogs"$context) ? $context["blogs"] : (function () { throw new RuntimeError('Variable "blogs" does not exist.'119$this->source); })())) > 0)) {
  212.             // line 120
  213.             yield "
  214.           ";
  215.             // line 121
  216.             $context['_parent'] = $context;
  217.             $context['_seq'] = CoreExtension::ensureTraversable((isset($context["blogs"]) || array_key_exists("blogs"$context) ? $context["blogs"] : (function () { throw new RuntimeError('Variable "blogs" does not exist.'121$this->source); })()));
  218.             $context['loop'] = [
  219.               'parent' => $context['_parent'],
  220.               'index0' => 0,
  221.               'index'  => 1,
  222.               'first'  => true,
  223.             ];
  224.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  225.                 $length count($context['_seq']);
  226.                 $context['loop']['revindex0'] = $length 1;
  227.                 $context['loop']['revindex'] = $length;
  228.                 $context['loop']['length'] = $length;
  229.                 $context['loop']['last'] = === $length;
  230.             }
  231.             foreach ($context['_seq'] as $context["_key"] => $context["blog"]) {
  232.                 // line 122
  233.                 yield "
  234.             ";
  235.                 // line 123
  236.                 if (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["blog"], "category", [], "any"falsefalsetrue123), "image", [], "any"falsefalsetrue123)) {
  237.                     // line 124
  238.                     yield "              ";
  239.                     $context["image"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["blog"], "category", [], "any"falsefalsetrue124), "image", [], "any"falsefalsetrue124);
  240.                     // line 125
  241.                     yield "              ";
  242.                     $context["altTag"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["blog"], "category", [], "any"falsefalsetrue125), "imageAltTag", [], "any"falsefalsetrue125);
  243.                     // line 126
  244.                     yield "            
  245.             ";
  246.                 }
  247.                 // line 128
  248.                 yield "
  249.           ";
  250.                 // line 129
  251.                 $context["catUrl"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["blog"], "category", [], "any"falsefalsetrue129), "url", [], "any"falsefalsetrue129);
  252.                 // line 130
  253.                 yield "          ";
  254.                 $context["catId"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["blog"], "category", [], "any"falsefalsetrue130), "id", [], "any"falsefalsetrue130);
  255.                 // line 131
  256.                 yield "
  257.           ";
  258.                 // line 132
  259.                 yield from                 $this->loadTemplate("Blog/blog_category_teaser.html.twig""Blog/blog_category.html.twig"132)->unwrap()->yield($context);
  260.                 // line 133
  261.                 yield "          
  262.           ";
  263.                 ++$context['loop']['index0'];
  264.                 ++$context['loop']['index'];
  265.                 $context['loop']['first'] = false;
  266.                 if (isset($context['loop']['length'])) {
  267.                     --$context['loop']['revindex0'];
  268.                     --$context['loop']['revindex'];
  269.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  270.                 }
  271.             }
  272.             $_parent $context['_parent'];
  273.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['blog'], $context['_parent'], $context['loop']);
  274.             $context array_intersect_key($context$_parent) + $_parent;
  275.             // line 135
  276.             yield "            
  277.         ";
  278.         }
  279.         // line 137
  280.         yield "       
  281.           </div>
  282.           <aside class=\"blogs-aside\">
  283.           <img
  284.             src=\"/assets/images/icons/filter-icon.svg\"
  285.             alt=\"Icon\"
  286.             class=\"filter-icon\"
  287.           />
  288.           <form action=\"/insights-search\" method =\"GET\" class=\"blog-aside-form\">
  289.             <div class=\"search-input\">
  290.               <input type=\"text\" placeholder=\"Search\" name=\"name\"/>
  291.               <span class=\"search-input-icon\">
  292.                 <i class=\"fa-solid fa-magnifying-glass\"></i>
  293.               </span>
  294.             </div>
  295.             <select name=\"category\" class=\"primary-select\">
  296.             ";
  297.         // line 153
  298.         if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["categories"]) || array_key_exists("categories"$context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.'153$this->source); })())) > 0)) {
  299.             // line 154
  300.             yield "            ";
  301.             $context['_parent'] = $context;
  302.             $context['_seq'] = CoreExtension::ensureTraversable((isset($context["categories"]) || array_key_exists("categories"$context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.'154$this->source); })()));
  303.             foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  304.                 // line 155
  305.                 yield "
  306.             ";
  307.                 // line 156
  308.                 if ((CoreExtension::getAttribute($this->env$this->source$context["category"], "id", [], "any"falsefalsetrue156) == (isset($context["catId"]) || array_key_exists("catId"$context) ? $context["catId"] : (function () { throw new RuntimeError('Variable "catId" does not exist.'156$this->source); })()))) {
  309.                     // line 157
  310.                     yield "
  311.             <option value=\"\" selected> ";
  312.                     // line 158
  313.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["category"], "name", [], "any"falsefalsetrue158), 158$this->source), "html"nulltrue);
  314.                     yield " </option>
  315.             ";
  316.                 } else {
  317.                     // line 160
  318.                     yield "
  319.           <option value=\"";
  320.                     // line 161
  321.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["category"], "url", [], "any"falsefalsetrue161), 161$this->source), "html"nulltrue);
  322.                     yield "\" > ";
  323.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["category"], "name", [], "any"falsefalsetrue161), 161$this->source), "html"nulltrue);
  324.                     yield " </option>
  325.           ";
  326.                 }
  327.                 // line 164
  328.                 yield "              
  329.             ";
  330.             }
  331.             $_parent $context['_parent'];
  332.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  333.             $context array_intersect_key($context$_parent) + $_parent;
  334.             // line 166
  335.             yield "              
  336.             ";
  337.         }
  338.         // line 168
  339.         yield "          <option value=\"all\" > ";
  340.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("All"), "html"nulltrue);
  341.         yield " </option>
  342.               
  343.             </select>
  344.             <button
  345.               class=\"primary-button button-square has-animation\"
  346.               style=\"width: 100%\"
  347.             >
  348.               Search
  349.             </button>
  350.           </form>
  351.           ";
  352.         // line 179
  353.         yield from         $this->loadTemplate("Blog/__banner_sidebar.html.twig""Blog/blog_category.html.twig"179)->unwrap()->yield(CoreExtension::merge($context, ["image" =>         // line 180
  354. (isset($context["image"]) || array_key_exists("image"$context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.'180$this->source); })()), "alt" =>         // line 181
  355. (isset($context["altTag"]) || array_key_exists("altTag"$context) ? $context["altTag"] : (function () { throw new RuntimeError('Variable "altTag" does not exist.'181$this->source); })())]));
  356.         // line 184
  357.         yield "\t\t\t\t
  358. \t\t\t
  359.          
  360.         </aside>
  361.         </div>
  362.         <!-- blog pagination starts -->
  363.         <div class=\"blog-pagination\" id=\"paginate\" data-url=\"/insights-";
  364.         // line 191
  365.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed((isset($context["catUrl"]) || array_key_exists("catUrl"$context) ? $context["catUrl"] : (function () { throw new RuntimeError('Variable "catUrl" does not exist.'191$this->source); })()), 191$this->source), "html"nulltrue);
  366.         yield "-listing?page=\">
  367.              ";
  368.         // line 193
  369.         yield from         $this->loadTemplate("Blog/pagination.html.twig""Blog/blog_category.html.twig"193)->unwrap()->yield(CoreExtension::merge($context, ["paginationVariables" =>         // line 194
  370. (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'194$this->source); })()), "catUrl" =>         // line 195
  371. (isset($context["catUrl"]) || array_key_exists("catUrl"$context) ? $context["catUrl"] : (function () { throw new RuntimeError('Variable "catUrl" does not exist.'195$this->source); })())]));
  372.         // line 197
  373.         yield "        </div>
  374.          <!-- blog pagination ends -->
  375.       </div>
  376.       <!--/Row -->
  377.     </div>
  378.     <!-- /blogs grid -->
  379.     <!--/Row -->
  380.   </div>
  381. </div>
  382. <!--/Main Page Content -->
  383. </div>
  384. <!--/Main Content -->
  385. <script src=\"/assets/js/jquery.min.js\"></script>
  386. <script>
  387.     \$(document).ready(function () {
  388.     
  389.     function blogList( page) {
  390.         let postUrl = \$(this).data('url');
  391.         console.log(postUrl);
  392.             \$.ajax({
  393.             url: postUrl,
  394.             type: 'POST',
  395.             data: {
  396.                 page: page
  397.             },
  398.             success: function (response) {
  399.                 \$('#blog-category').html('');
  400.                 \$('#blog-category').html(response.html);
  401.                  \$('#paginate').empty()
  402.           
  403.                   \$('#paginate').html(response.pagination);
  404.                
  405.             }
  406.         });
  407.     }
  408.  
  409.     function handleFilterChange(event) {
  410.           
  411.         var page = \$(event.target).data('value') || \$(event.target).parent().data('value');
  412. console.log(page)
  413.            blogList(page);
  414.     }
  415.     
  416.     \$('#paginate').on('click', handleFilterChange);
  417.         });
  418. </script>
  419. ";
  420.         
  421.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  422.         
  423.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  424.         return; yield '';
  425.     }
  426.     /**
  427.      * @codeCoverageIgnore
  428.      */
  429.     public function getTemplateName()
  430.     {
  431.         return "Blog/blog_category.html.twig";
  432.     }
  433.     /**
  434.      * @codeCoverageIgnore
  435.      */
  436.     public function isTraitable()
  437.     {
  438.         return false;
  439.     }
  440.     /**
  441.      * @codeCoverageIgnore
  442.      */
  443.     public function getDebugInfo()
  444.     {
  445.         return array (  399 => 197,  397 => 195,  396 => 194,  395 => 193,  391 => 191,  382 => 184,  380 => 181,  379 => 180,  378 => 179,  363 => 168,  359 => 166,  352 => 164,  344 => 161,  341 => 160,  336 => 158,  333 => 157,  331 => 156,  328 => 155,  323 => 154,  321 => 153,  303 => 137,  299 => 135,  284 => 133,  282 => 132,  279 => 131,  276 => 130,  274 => 129,  271 => 128,  267 => 126,  264 => 125,  261 => 124,  259 => 123,  256 => 122,  239 => 121,  236 => 120,  234 => 119,  231 => 118,  228 => 117,  225 => 116,  222 => 115,  220 => 114,  204 => 100,  202 => 96,  196 => 92,  190 => 89,  185 => 88,  180 => 86,  175 => 85,  173 => 84,  149 => 63,  114 => 31,  106 => 26,  90 => 12,  86 => 10,  82 => 8,  80 => 7,  76 => 5,  74 => 4,  71 => 3,  61 => 2,  38 => 1,);
  446.     }
  447.     public function getSourceContext()
  448.     {
  449.         return new Source("{% extends 'layouts/layout.html.twig' %}
  450. {% block content %}
  451. {% set bannerImage = ''%}
  452. {% if blogcategory.bannerImage %}
  453. \t{% set bannerImage = blogcategory.bannerImage %}
  454. {% else %}
  455. \t{% set bannerImage = '/insights/insight_banner_image_general.jpg' %}
  456. {% endif %}
  457.   <!--Hero Section -->
  458.   <div id=\"hero\" class=\"has-image has-logo\">
  459.   <div id=\"hero-styles\">
  460.     <div id=\"hero-caption\" class=\"content-max-width\">
  461.       <div class=\"inner\">
  462.         <div class=\"hero-title-wrapper\">
  463.           <div class=\"one_half\">
  464.             <div class=\"inner\">
  465.               <div
  466.                 class=\"hero-title hero-title-small\"
  467.                 style=\"margin-bottom: 1rem\"
  468.               >
  469.               <h1 class=\"h1-banner-heading\">
  470.                   <span>{{blogcategory.name}}</span>
  471.               </h1>
  472.               </div>
  473.               <div class=\"hero-text\">
  474.                 <span>
  475.                   {{blogcategory.description}}
  476.                 </span>
  477.               </div>
  478.             </div>
  479.           </div>
  480.           <div class=\"one_half last\"></div>
  481.         </div>
  482.       </div>
  483.     </div>
  484.     <div id=\"hero-footer\">
  485.       <div class=\"hero-footer-right\">
  486.         <div class=\"button-wrap right scroll-down\">
  487.           <div class=\"icon-wrap parallax-wrap\">
  488.             <div class=\"button-icon parallax-element\">
  489.               <i class=\"fa fa-angle-down\"></i>
  490.             </div>
  491.           </div>
  492.           <div class=\"button-text sticky right\">
  493.             <span data-hover=\"Scroll to navigate\"
  494.               >Scroll to navigate</span
  495.             >
  496.           </div>
  497.         </div>
  498.       </div>
  499.     </div>
  500.   </div>
  501. </div>
  502. <div id=\"hero-image-wrapper\">
  503.   <div id=\"hero-background-layer\" class=\"parallax-scroll-image\">
  504.     <div
  505.       id=\"hero-bg-image\"
  506.       style=\"
  507.         background-image: url({{bannerImage}});
  508.       \"
  509.     ></div>
  510.   </div>
  511. </div>
  512. <!--/Hero Section -->
  513. <!-- Main Content -->
  514. <div id=\"main-content\">
  515. <!-- Main Page Content -->
  516. <div id=\"main-page-content\" class=\"content-max-width\">
  517.   <div class=\"content-row light-section\" data-bgcolor=\"#fff\">
  518.     <!-- Row -->
  519.     <div
  520.       class=\"content-row row_padding_top row_padding_bottom light-section change-header-color\"
  521.       data-bgcolor=\"#fff\"
  522.     >
  523.       <div class=\"one_half\">
  524.       {% if editmode %}
  525.       {{ pimcore_input(\"HeadlineOne\", {\"placeholder\": \"heading two\"}) }}
  526.       {{ pimcore_input(\"HeadlineTwo\", {\"placeholder\": \"heading two\"}) }}
  527.     {% else %}
  528.         <h2 class=\"has-mask-fill our-product-N no-margins\">{{ pimcore_input(\"HeadlineOne\") }}</h2>
  529.         <h2 class=\"has-mask-fill our-product-N\">  {{ pimcore_input(\"HeadlineTwo\") }}</h2>
  530. {% endif %}
  531.         <hr />
  532.         <p class=\"has-animation\" data-delay=\"0\">
  533.         {{ pimcore_textarea(\"description\",{
  534.             \"nl2br\": false,
  535.             \"height\": 100,
  536.             \"placeholder\": \"content\"
  537.         }) }}
  538.         </p>
  539.       </div>
  540.       <div class=\"one_half last\"></div>
  541.     </div>
  542.     
  543.     <!-- blogs grid -->
  544.     <div class=\"\">
  545.       <!-- Row -->
  546.       <div  class=\"content-row row_padding_bottom light-section change-header-color\"  data-bgcolor=\"#fff\">
  547.         <div class=\"blogs-layout\">
  548.           <div class=\"blogs-main change-header\" id='blog-category'>
  549.           {% set catUrl = ''%}
  550.           {% set catId = ''%}
  551.           {% set image = '/assets/images/blog-aside.png'%}
  552.           {% set altTag = 'Design Retainer | Centric' %}
  553.           {% if blogs|length > 0 %}
  554.           {% for blog in blogs %}
  555.             {% if blog.category.image %}
  556.               {% set image = blog.category.image %}
  557.               {% set altTag =  blog.category.imageAltTag %}
  558.             
  559.             {% endif %}
  560.           {% set catUrl =  blog.category.url %}
  561.           {% set catId =  blog.category.id %}
  562.           {% include \"Blog/blog_category_teaser.html.twig\" %}
  563.           
  564.           {% endfor %}
  565.             
  566.         {% endif %}
  567.        
  568.           </div>
  569.           <aside class=\"blogs-aside\">
  570.           <img
  571.             src=\"/assets/images/icons/filter-icon.svg\"
  572.             alt=\"Icon\"
  573.             class=\"filter-icon\"
  574.           />
  575.           <form action=\"/insights-search\" method =\"GET\" class=\"blog-aside-form\">
  576.             <div class=\"search-input\">
  577.               <input type=\"text\" placeholder=\"Search\" name=\"name\"/>
  578.               <span class=\"search-input-icon\">
  579.                 <i class=\"fa-solid fa-magnifying-glass\"></i>
  580.               </span>
  581.             </div>
  582.             <select name=\"category\" class=\"primary-select\">
  583.             {% if categories|length > 0 %}
  584.             {% for category in categories %}
  585.             {% if category.id == catId %}
  586.             <option value=\"\" selected> {{category.name}} </option>
  587.             {% else %}
  588.           <option value=\"{{category.url}}\" > {{category.name}} </option>
  589.           {% endif %}
  590.               
  591.             {% endfor %}
  592.               
  593.             {% endif %}
  594.           <option value=\"all\" > {{\"All\" |trans}} </option>
  595.               
  596.             </select>
  597.             <button
  598.               class=\"primary-button button-square has-animation\"
  599.               style=\"width: 100%\"
  600.             >
  601.               Search
  602.             </button>
  603.           </form>
  604.           {% include \"Blog/__banner_sidebar.html.twig\" with {
  605. \t\t\t\t\t\t'image': image,
  606.             'alt':altTag
  607.             
  608.             } %}
  609. \t\t\t\t
  610. \t\t\t
  611.          
  612.         </aside>
  613.         </div>
  614.         <!-- blog pagination starts -->
  615.         <div class=\"blog-pagination\" id=\"paginate\" data-url=\"/insights-{{catUrl}}-listing?page=\">
  616.              {% 
  617.                 include \"Blog/pagination.html.twig\" with {
  618.                     'paginationVariables': pagination,
  619.                     'catUrl':catUrl } 
  620.             %}
  621.         </div>
  622.          <!-- blog pagination ends -->
  623.       </div>
  624.       <!--/Row -->
  625.     </div>
  626.     <!-- /blogs grid -->
  627.     <!--/Row -->
  628.   </div>
  629. </div>
  630. <!--/Main Page Content -->
  631. </div>
  632. <!--/Main Content -->
  633. <script src=\"/assets/js/jquery.min.js\"></script>
  634. <script>
  635.     \$(document).ready(function () {
  636.     
  637.     function blogList( page) {
  638.         let postUrl = \$(this).data('url');
  639.         console.log(postUrl);
  640.             \$.ajax({
  641.             url: postUrl,
  642.             type: 'POST',
  643.             data: {
  644.                 page: page
  645.             },
  646.             success: function (response) {
  647.                 \$('#blog-category').html('');
  648.                 \$('#blog-category').html(response.html);
  649.                  \$('#paginate').empty()
  650.           
  651.                   \$('#paginate').html(response.pagination);
  652.                
  653.             }
  654.         });
  655.     }
  656.  
  657.     function handleFilterChange(event) {
  658.           
  659.         var page = \$(event.target).data('value') || \$(event.target).parent().data('value');
  660. console.log(page)
  661.            blogList(page);
  662.     }
  663.     
  664.     \$('#paginate').on('click', handleFilterChange);
  665.         });
  666. </script>
  667. {% endblock %}""Blog/blog_category.html.twig""/var/www/html/templates/Blog/blog_category.html.twig");
  668.     }
  669.     
  670.     public function checkSecurity()
  671.     {
  672.         static $tags = array("set" => 4"if" => 7"for" => 121"include" => 132);
  673.         static $filters = array("escape" => 26"length" => 119"trans" => 168);
  674.         static $functions = array("pimcore_input" => 85"pimcore_textarea" => 96);
  675.         try {
  676.             $this->sandbox->checkSecurity(
  677.                 ['set''if''for''include'],
  678.                 ['escape''length''trans'],
  679.                 ['pimcore_input''pimcore_textarea'],
  680.                 $this->source
  681.             );
  682.         } catch (SecurityError $e) {
  683.             $e->setSourceContext($this->source);
  684.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  685.                 $e->setTemplateLine($tags[$e->getTagName()]);
  686.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  687.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  688.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  689.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  690.             }
  691.             throw $e;
  692.         }
  693.     }
  694. }