var/cache/dev/twig/9b/9b70ec784b17e52ee1868b2ffe766b39.php line 315

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. /* web/Default/blogs.html.twig */
  14. class __TwigTemplate_8089f8bfbc280052f18a471ca8246796 extends \Twig\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.             'blogClass' => [$this'block_blogClass'],
  24.             'title' => [$this'block_title'],
  25.             'metaDescription' => [$this'block_metaDescription'],
  26.             'metaKeywords' => [$this'block_metaKeywords'],
  27.             'metaAuthor' => [$this'block_metaAuthor'],
  28.             'googleAuthor' => [$this'block_googleAuthor'],
  29.             'body' => [$this'block_body'],
  30.             'javascripts' => [$this'block_javascripts'],
  31.         ];
  32.     }
  33.     protected function doGetParent(array $context)
  34.     {
  35.         // line 2
  36.         return "webbase.html.twig";
  37.     }
  38.     protected function doDisplay(array $context, array $blocks = [])
  39.     {
  40.         $macros $this->macros;
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""web/Default/blogs.html.twig"));
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""web/Default/blogs.html.twig"));
  45.         // line 5
  46.         if (((isset($context["tag"]) || array_key_exists("tag"$context) ? $context["tag"] : (function () { throw new RuntimeError('Variable "tag" does not exist.'5$this->source); })()) != null)) {
  47.             // line 6
  48.             $context["title"] = ((twig_get_attribute($this->env$this->source, (isset($context["pageEntity"]) || array_key_exists("pageEntity"$context) ? $context["pageEntity"] : (function () { throw new RuntimeError('Variable "pageEntity" does not exist.'6$this->source); })()), "metaTitle", [], "any"falsefalsefalse6) . " - ") . twig_get_attribute($this->env$this->source, (isset($context["tag"]) || array_key_exists("tag"$context) ? $context["tag"] : (function () { throw new RuntimeError('Variable "tag" does not exist.'6$this->source); })()), "name", [], "any"falsefalsefalse6));
  49.         } elseif ((        // line 7
  50. (isset($context["monthYear"]) || array_key_exists("monthYear"$context) ? $context["monthYear"] : (function () { throw new RuntimeError('Variable "monthYear" does not exist.'7$this->source); })()) != "/01/")) {
  51.             // line 8
  52.             $context["title"] = ((twig_get_attribute($this->env$this->source, (isset($context["pageEntity"]) || array_key_exists("pageEntity"$context) ? $context["pageEntity"] : (function () { throw new RuntimeError('Variable "pageEntity" does not exist.'8$this->source); })()), "metaTitle", [], "any"falsefalsefalse8) . " - ") . twig_date_format_filter($this->env, (isset($context["monthYear"]) || array_key_exists("monthYear"$context) ? $context["monthYear"] : (function () { throw new RuntimeError('Variable "monthYear" does not exist.'8$this->source); })()), "F Y"));
  53.         } else {
  54.             // line 10
  55.             $context["title"] = twig_get_attribute($this->env$this->source, (isset($context["pageEntity"]) || array_key_exists("pageEntity"$context) ? $context["pageEntity"] : (function () { throw new RuntimeError('Variable "pageEntity" does not exist.'10$this->source); })()), "metaTitle", [], "any"falsefalsefalse10);
  56.         }
  57.         // line 14
  58.         $context["metaDescription"] = twig_get_attribute($this->env$this->source, (isset($context["pageEntity"]) || array_key_exists("pageEntity"$context) ? $context["pageEntity"] : (function () { throw new RuntimeError('Variable "pageEntity" does not exist.'14$this->source); })()), "metaDescription", [], "any"falsefalsefalse14);
  59.         // line 18
  60.         $context["googlePlusLink"] = "";
  61.         // line 2
  62.         $this->parent $this->loadTemplate("webbase.html.twig""web/Default/blogs.html.twig"2);
  63.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  64.         
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  66.         
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  68.     }
  69.     // line 3
  70.     public function block_blogClass($context, array $blocks = [])
  71.     {
  72.         $macros $this->macros;
  73.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  74.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""blogClass"));
  75.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  76.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""blogClass"));
  77.         echo "active";
  78.         
  79.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  80.         
  81.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  82.     }
  83.     // line 12
  84.     public function block_title($context, array $blocks = [])
  85.     {
  86.         $macros $this->macros;
  87.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  88.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  89.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  90.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  91.         echo twig_escape_filter($this->env, (isset($context["title"]) || array_key_exists("title"$context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.'12$this->source); })()), "html"nulltrue);
  92.         
  93.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  94.         
  95.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  96.     }
  97.     // line 15
  98.     public function block_metaDescription($context, array $blocks = [])
  99.     {
  100.         $macros $this->macros;
  101.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  102.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaDescription"));
  103.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  104.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaDescription"));
  105.         echo twig_escape_filter($this->env, (isset($context["metaDescription"]) || array_key_exists("metaDescription"$context) ? $context["metaDescription"] : (function () { throw new RuntimeError('Variable "metaDescription" does not exist.'15$this->source); })()), "html"nulltrue);
  106.         
  107.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  108.         
  109.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  110.     }
  111.     // line 16
  112.     public function block_metaKeywords($context, array $blocks = [])
  113.     {
  114.         $macros $this->macros;
  115.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  116.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaKeywords"));
  117.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  118.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaKeywords"));
  119.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["pageEntity"]) || array_key_exists("pageEntity"$context) ? $context["pageEntity"] : (function () { throw new RuntimeError('Variable "pageEntity" does not exist.'16$this->source); })()), "metaKeywords", [], "any"falsefalsefalse16), "html"nulltrue);
  120.         
  121.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  122.         
  123.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  124.     }
  125.     // line 17
  126.     public function block_metaAuthor($context, array $blocks = [])
  127.     {
  128.         $macros $this->macros;
  129.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  130.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaAuthor"));
  131.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  132.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaAuthor"));
  133.         echo "";
  134.         
  135.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  136.         
  137.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  138.     }
  139.     // line 19
  140.     public function block_googleAuthor($context, array $blocks = [])
  141.     {
  142.         $macros $this->macros;
  143.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  144.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""googleAuthor"));
  145.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  146.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""googleAuthor"));
  147.         echo twig_escape_filter($this->env, (isset($context["googlePlusLink"]) || array_key_exists("googlePlusLink"$context) ? $context["googlePlusLink"] : (function () { throw new RuntimeError('Variable "googlePlusLink" does not exist.'19$this->source); })()), "html"nulltrue);
  148.         
  149.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  150.         
  151.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  152.     }
  153.     // line 21
  154.     public function block_body($context, array $blocks = [])
  155.     {
  156.         $macros $this->macros;
  157.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  158.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  159.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  160.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  161.         // line 23
  162.         echo "<section id=\"blog\">
  163.         <div class=\"row\">
  164.             <img data-src=\"holder.js/2400x400/auto/vine/text:Blog\" class=\"img-responsive\" alt=\"Blog\">
  165.         </div>
  166.         <div class=\"container\">
  167.             <div class=\"row\">
  168.                 <div class=\"col-md-8\">
  169.                     ";
  170.         // line 30
  171.         if (((isset($context["monthYear"]) || array_key_exists("monthYear"$context) ? $context["monthYear"] : (function () { throw new RuntimeError('Variable "monthYear" does not exist.'30$this->source); })()) != "/01/")) {
  172.             // line 31
  173.             echo "
  174.                         <h1>";
  175.             // line 32
  176.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["pageEntity"]) || array_key_exists("pageEntity"$context) ? $context["pageEntity"] : (function () { throw new RuntimeError('Variable "pageEntity" does not exist.'32$this->source); })()), "title", [], "any"falsefalsefalse32), "html"nulltrue);
  177.             echo " - ";
  178.             echo twig_escape_filter($this->envtwig_date_format_filter($this->env, (isset($context["monthYear"]) || array_key_exists("monthYear"$context) ? $context["monthYear"] : (function () { throw new RuntimeError('Variable "monthYear" does not exist.'32$this->source); })()), "F Y"), "html"nulltrue);
  179.             echo "</h1>
  180.                         <p>
  181.                             There ";
  182.             // line 34
  183.             if (((isset($context["nbResults"]) || array_key_exists("nbResults"$context) ? $context["nbResults"] : (function () { throw new RuntimeError('Variable "nbResults" does not exist.'34$this->source); })()) == 1)) {
  184.                 echo " is ";
  185.                 echo twig_escape_filter($this->env, (isset($context["nbResults"]) || array_key_exists("nbResults"$context) ? $context["nbResults"] : (function () { throw new RuntimeError('Variable "nbResults" does not exist.'34$this->source); })()), "html"nulltrue);
  186.                 echo " blog";
  187.             } else {
  188.                 echo " are ";
  189.                 echo twig_escape_filter($this->env, (isset($context["nbResults"]) || array_key_exists("nbResults"$context) ? $context["nbResults"] : (function () { throw new RuntimeError('Variable "nbResults" does not exist.'34$this->source); })()), "html"nulltrue);
  190.                 echo " blogs";
  191.             }
  192.             // line 35
  193.             echo "                            in ";
  194.             echo twig_escape_filter($this->envtwig_date_format_filter($this->env, (isset($context["monthYear"]) || array_key_exists("monthYear"$context) ? $context["monthYear"] : (function () { throw new RuntimeError('Variable "monthYear" does not exist.'35$this->source); })()), "F Y"), "html"nulltrue);
  195.             echo ". You can see all of our latest blogs <a
  196.                                     href=\"";
  197.             // line 36
  198.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog");
  199.             echo "\">here</a>.
  200.                         </p>
  201.                     ";
  202.         } elseif ((        // line 39
  203. (isset($context["tag"]) || array_key_exists("tag"$context) ? $context["tag"] : (function () { throw new RuntimeError('Variable "tag" does not exist.'39$this->source); })()) != null)) {
  204.             // line 40
  205.             echo "
  206.                         <h1>";
  207.             // line 41
  208.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["pageEntity"]) || array_key_exists("pageEntity"$context) ? $context["pageEntity"] : (function () { throw new RuntimeError('Variable "pageEntity" does not exist.'41$this->source); })()), "title", [], "any"falsefalsefalse41), "html"nulltrue);
  209.             echo " - ";
  210.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["tag"]) || array_key_exists("tag"$context) ? $context["tag"] : (function () { throw new RuntimeError('Variable "tag" does not exist.'41$this->source); })()), "name", [], "any"falsefalsefalse41), "html"nulltrue);
  211.             echo "</h1>
  212.                         ";
  213.             // line 42
  214.             $context["contactActionNoticeError"] = twig_get_attribute($this->env$this->sourcetwig_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.'42$this->source); })()), "session", [], "any"falsefalsefalse42), "flashbag", [], "any"falsefalsefalse42), "get", [=> "error"], "method"falsefalsefalse42);
  215.             // line 43
  216.             echo "                        ";
  217.             if ( !twig_test_empty((isset($context["contactActionNoticeError"]) || array_key_exists("contactActionNoticeError"$context) ? $context["contactActionNoticeError"] : (function () { throw new RuntimeError('Variable "contactActionNoticeError" does not exist.'43$this->source); })()))) {
  218.                 // line 44
  219.                 echo "                            ";
  220.                 $context['_parent'] = $context;
  221.                 $context['_seq'] = twig_ensure_traversable((isset($context["contactActionNoticeError"]) || array_key_exists("contactActionNoticeError"$context) ? $context["contactActionNoticeError"] : (function () { throw new RuntimeError('Variable "contactActionNoticeError" does not exist.'44$this->source); })()));
  222.                 foreach ($context['_seq'] as $context["_key"] => $context["flashMessage"]) {
  223.                     // line 45
  224.                     echo "                                <div class=\"flash-notice alert alert-error\">
  225.                                     <button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>
  226.                                     ";
  227.                     // line 47
  228.                     echo twig_escape_filter($this->env$context["flashMessage"], "html"nulltrue);
  229.                     echo "
  230.                                 </div>
  231.                             ";
  232.                 }
  233.                 $_parent $context['_parent'];
  234.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flashMessage'], $context['_parent'], $context['loop']);
  235.                 $context array_intersect_key($context$_parent) + $_parent;
  236.                 // line 50
  237.                 echo "                        ";
  238.             }
  239.             // line 51
  240.             echo "                        <p>
  241.                             There ";
  242.             // line 52
  243.             if (((isset($context["nbResults"]) || array_key_exists("nbResults"$context) ? $context["nbResults"] : (function () { throw new RuntimeError('Variable "nbResults" does not exist.'52$this->source); })()) == 1)) {
  244.                 echo " is ";
  245.                 echo twig_escape_filter($this->env, (isset($context["nbResults"]) || array_key_exists("nbResults"$context) ? $context["nbResults"] : (function () { throw new RuntimeError('Variable "nbResults" does not exist.'52$this->source); })()), "html"nulltrue);
  246.                 echo " blog";
  247.             } else {
  248.                 echo " are ";
  249.                 echo twig_escape_filter($this->env, (isset($context["nbResults"]) || array_key_exists("nbResults"$context) ? $context["nbResults"] : (function () { throw new RuntimeError('Variable "nbResults" does not exist.'52$this->source); })()), "html"nulltrue);
  250.                 echo " blogs";
  251.             }
  252.             // line 53
  253.             echo "                            tagged '";
  254.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["tag"]) || array_key_exists("tag"$context) ? $context["tag"] : (function () { throw new RuntimeError('Variable "tag" does not exist.'53$this->source); })()), "name", [], "any"falsefalsefalse53), "html"nulltrue);
  255.             echo "'. You can see all of our latest blogs <a
  256.                                     href=\"";
  257.             // line 54
  258.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog");
  259.             echo "\">here</a>.
  260.                         </p>
  261.                     ";
  262.         } else {
  263.             // line 58
  264.             echo "                        <h1>";
  265.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["pageEntity"]) || array_key_exists("pageEntity"$context) ? $context["pageEntity"] : (function () { throw new RuntimeError('Variable "pageEntity" does not exist.'58$this->source); })()), "title", [], "any"falsefalsefalse58), "html"nulltrue);
  266.             echo "</h1>
  267.                         ";
  268.             // line 59
  269.             $context["contactActionNoticeError"] = twig_get_attribute($this->env$this->sourcetwig_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.'59$this->source); })()), "session", [], "any"falsefalsefalse59), "flashbag", [], "any"falsefalsefalse59), "get", [=> "error"], "method"falsefalsefalse59);
  270.             // line 60
  271.             echo "                        ";
  272.             if ( !twig_test_empty((isset($context["contactActionNoticeError"]) || array_key_exists("contactActionNoticeError"$context) ? $context["contactActionNoticeError"] : (function () { throw new RuntimeError('Variable "contactActionNoticeError" does not exist.'60$this->source); })()))) {
  273.                 // line 61
  274.                 echo "                            ";
  275.                 $context['_parent'] = $context;
  276.                 $context['_seq'] = twig_ensure_traversable((isset($context["contactActionNoticeError"]) || array_key_exists("contactActionNoticeError"$context) ? $context["contactActionNoticeError"] : (function () { throw new RuntimeError('Variable "contactActionNoticeError" does not exist.'61$this->source); })()));
  277.                 foreach ($context['_seq'] as $context["_key"] => $context["flashMessage"]) {
  278.                     // line 62
  279.                     echo "                                <div class=\"flash-notice alert alert-error\">
  280.                                     <button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>
  281.                                     ";
  282.                     // line 64
  283.                     echo twig_escape_filter($this->env$context["flashMessage"], "html"nulltrue);
  284.                     echo "
  285.                                 </div>
  286.                             ";
  287.                 }
  288.                 $_parent $context['_parent'];
  289.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flashMessage'], $context['_parent'], $context['loop']);
  290.                 $context array_intersect_key($context$_parent) + $_parent;
  291.                 // line 67
  292.                 echo "                        ";
  293.             } else {
  294.                 // line 68
  295.                 echo "                            <p>";
  296.                 echo twig_get_attribute($this->env$this->source, (isset($context["pageEntity"]) || array_key_exists("pageEntity"$context) ? $context["pageEntity"] : (function () { throw new RuntimeError('Variable "pageEntity" does not exist.'68$this->source); })()), "content", [], "any"falsefalsefalse68);
  297.                 echo "</p>
  298.                         ";
  299.             }
  300.             // line 70
  301.             echo "
  302.                     ";
  303.         }
  304.         // line 72
  305.         echo "
  306.                     <div class=\"row\">
  307.                         ";
  308.         // line 75
  309.         if (((isset($context["nbResults"]) || array_key_exists("nbResults"$context) ? $context["nbResults"] : (function () { throw new RuntimeError('Variable "nbResults" does not exist.'75$this->source); })()) >= 9)) {
  310.             // line 76
  311.             echo "                            <div class=\"pagerfanta pull-right\">
  312.                                 ";
  313.             // line 77
  314.             echo $this->env->getRuntime('Pagerfanta\Twig\Extension\PagerfantaRuntime')->renderPagerfanta((isset($context["articles"]) || array_key_exists("articles"$context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.'77$this->source); })()), "twitter_bootstrap", ["proximity" => 1"dots_message" => " &nbsp;""next_message" => "<i class=\"fa fa-chevron-right\"></i>""prev_message" => "<i class=\"fa fa-chevron-left\"></i>"]);
  315.             echo "
  316.                             </div>
  317.                         ";
  318.         }
  319.         // line 79
  320.         echo " <br/>
  321.                     </div>
  322.                     ";
  323.         // line 82
  324.         $context['_parent'] = $context;
  325.         $context['_seq'] = twig_ensure_traversable((isset($context["articles"]) || array_key_exists("articles"$context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.'82$this->source); })()));
  326.         foreach ($context['_seq'] as $context["_key"] => $context["article"]) {
  327.             // line 83
  328.             echo "                        <h2>
  329.                             <a href=\"";
  330.             // line 84
  331.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("Blog_Article", ["slug" => twig_get_attribute($this->env$this->source$context["article"], "slug", [], "any"falsefalsefalse84), "date" => twig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["article"], "datePublished", [], "any"falsefalsefalse84), "Ymd")]), "html"nulltrue);
  332.             echo "\">";
  333.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["article"], "title", [], "any"falsefalsefalse84), "html"nulltrue);
  334.             echo "</a>
  335.                         </h2>
  336.                         <p class=\"text-muted\">
  337.                             by ";
  338.             // line 87
  339.             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["article"], "createdBy", [], "any"falsefalsefalse87), "person", [], "any"falsefalsefalse87), "firstName", [], "any"falsefalsefalse87), "html"nulltrue);
  340.             echo " ";
  341.             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["article"], "createdBy", [], "any"falsefalsefalse87), "person", [], "any"falsefalsefalse87), "lastName", [], "any"falsefalsefalse87), "html"nulltrue);
  342.             echo "
  343.                             - ";
  344.             // line 88
  345.             echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["article"], "datePublished", [], "any"falsefalsefalse88), "jS F Y"), "html"nulltrue);
  346.             echo "</p>
  347.                         ";
  348.             // line 89
  349.             $context['_parent'] = $context;
  350.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["article"], "tags", [], "any"falsefalsefalse89));
  351.             foreach ($context['_seq'] as $context["_key"] => $context["tag"]) {
  352.                 // line 90
  353.                 echo "                            <a href=\"";
  354.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog_tag", ["tag" => twig_get_attribute($this->env$this->source$context["tag"], "slug", [], "any"falsefalsefalse90)]), "html"nulltrue);
  355.                 echo "\"
  356.                                class=\"label label-default\">";
  357.                 // line 91
  358.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["tag"], "name", [], "any"falsefalsefalse91), "html"nulltrue);
  359.                 echo "</a>
  360.                         ";
  361.             }
  362.             $_parent $context['_parent'];
  363.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tag'], $context['_parent'], $context['loop']);
  364.             $context array_intersect_key($context$_parent) + $_parent;
  365.             // line 93
  366.             echo "                        <p>
  367.                             ";
  368.             // line 94
  369.             echo twig_get_attribute($this->env$this->source$this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(twig_striptags(twig_get_attribute($this->env$this->source$context["article"], "content", [], "any"falsefalsefalse94))), "truncate", [=> 400], "method"falsefalsefalse94);
  370.             echo "
  371.                             <a href=\"";
  372.             // line 95
  373.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("Blog_Article", ["slug" => twig_get_attribute($this->env$this->source$context["article"], "slug", [], "any"falsefalsefalse95), "date" => twig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["article"], "datePublished", [], "any"falsefalsefalse95), "Ymd")]), "html"nulltrue);
  374.             echo "\"
  375.                                class=\"pull-right\">Read More</a>
  376.                         </p>
  377.                         <hr/>
  378.                     ";
  379.         }
  380.         $_parent $context['_parent'];
  381.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['article'], $context['_parent'], $context['loop']);
  382.         $context array_intersect_key($context$_parent) + $_parent;
  383.         // line 101
  384.         echo "                </div>
  385.                 <div class=\"col-md-4\">
  386.                     ";
  387.         // line 103
  388.         $this->loadTemplate("web/Default/features.html.twig""web/Default/blogs.html.twig"103)->display(twig_array_merge($context, ["feature" => twig_get_attribute($this->env$this->source, (isset($context["pageEntity"]) || array_key_exists("pageEntity"$context) ? $context["pageEntity"] : (function () { throw new RuntimeError('Variable "pageEntity" does not exist.'103$this->source); })()), "feature1", [], "any"falsefalsefalse103)]));
  389.         // line 104
  390.         echo "                </div>
  391.             </div>
  392.             <div class=\"row\">
  393.                 ";
  394.         // line 108
  395.         if (((isset($context["nbResults"]) || array_key_exists("nbResults"$context) ? $context["nbResults"] : (function () { throw new RuntimeError('Variable "nbResults" does not exist.'108$this->source); })()) >= 9)) {
  396.             // line 109
  397.             echo "                    <div class=\"pagerfanta pull-right\">
  398.                         ";
  399.             // line 110
  400.             echo $this->env->getRuntime('Pagerfanta\Twig\Extension\PagerfantaRuntime')->renderPagerfanta((isset($context["articles"]) || array_key_exists("articles"$context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.'110$this->source); })()), "twitter_bootstrap", ["proximity" => 1"dots_message" => " &nbsp;""next_message" => "<i class=\"fa fa-chevron-right\"></i>""prev_message" => "<i class=\"fa fa-chevron-left\"></i>"]);
  401.             echo "
  402.                     </div>
  403.                 ";
  404.         }
  405.         // line 112
  406.         echo " <br/>
  407.             </div>
  408.         </div>
  409.     </section>
  410. ";
  411.         
  412.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  413.         
  414.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  415.     }
  416.     // line 120
  417.     public function block_javascripts($context, array $blocks = [])
  418.     {
  419.         $macros $this->macros;
  420.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  421.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  422.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  423.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  424.         // line 121
  425.         echo "    ";
  426.         $this->displayParentBlock("javascripts"$context$blocks);
  427.         echo "
  428. ";
  429.         
  430.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  431.         
  432.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  433.     }
  434.     public function getTemplateName()
  435.     {
  436.         return "web/Default/blogs.html.twig";
  437.     }
  438.     public function isTraitable()
  439.     {
  440.         return false;
  441.     }
  442.     public function getDebugInfo()
  443.     {
  444.         return array (  482 => 121,  472 => 120,  456 => 112,  450 => 110,  447 => 109,  445 => 108,  439 => 104,  437 => 103,  433 => 101,  421 => 95,  417 => 94,  414 => 93,  406 => 91,  401 => 90,  397 => 89,  393 => 88,  387 => 87,  379 => 84,  376 => 83,  372 => 82,  367 => 79,  361 => 77,  358 => 76,  356 => 75,  351 => 72,  347 => 70,  341 => 68,  338 => 67,  329 => 64,  325 => 62,  320 => 61,  317 => 60,  315 => 59,  310 => 58,  303 => 54,  298 => 53,  288 => 52,  285 => 51,  282 => 50,  273 => 47,  269 => 45,  264 => 44,  261 => 43,  259 => 42,  253 => 41,  250 => 40,  248 => 39,  242 => 36,  237 => 35,  227 => 34,  220 => 32,  217 => 31,  215 => 30,  206 => 23,  196 => 21,  177 => 19,  158 => 17,  139 => 16,  120 => 15,  101 => 12,  82 => 3,  71 => 2,  69 => 18,  67 => 14,  64 => 10,  61 => 8,  59 => 7,  57 => 6,  55 => 5,  42 => 2,);
  445.     }
  446.     public function getSourceContext()
  447.     {
  448.         return new Source("{# src//WebBundle/Resources/views/blog.html.twig #}
  449. {% extends 'webbase.html.twig' %}
  450. {% block blogClass 'active' %}
  451. {% if tag != null %}
  452.     {% set title = pageEntity.metaTitle~' - '~tag.name %}
  453. {% elseif monthYear != '/01/' %}
  454.     {% set title = pageEntity.metaTitle~' - '~monthYear|date('F Y') %}
  455. {% else %}
  456.     {% set title = pageEntity.metaTitle %}
  457. {% endif %}
  458. {% block title title %}
  459. {% set metaDescription = pageEntity.metaDescription|raw %}
  460. {% block metaDescription metaDescription %}
  461. {% block metaKeywords pageEntity.metaKeywords %}
  462. {% block metaAuthor '' %}
  463.     {% set googlePlusLink = '' %}
  464. {% block googleAuthor googlePlusLink %}
  465. {% block body -%}
  466.     <section id=\"blog\">
  467.         <div class=\"row\">
  468.             <img data-src=\"holder.js/2400x400/auto/vine/text:Blog\" class=\"img-responsive\" alt=\"Blog\">
  469.         </div>
  470.         <div class=\"container\">
  471.             <div class=\"row\">
  472.                 <div class=\"col-md-8\">
  473.                     {% if monthYear != '/01/' %}
  474.                         <h1>{{ pageEntity.title }} - {{ monthYear|date('F Y') }}</h1>
  475.                         <p>
  476.                             There {% if nbResults == 1 %} is {{ nbResults }} blog{% else %} are {{ nbResults }} blogs{% endif %}
  477.                             in {{ monthYear|date('F Y') }}. You can see all of our latest blogs <a
  478.                                     href=\"{{ path('blog') }}\">here</a>.
  479.                         </p>
  480.                     {% elseif tag != null %}
  481.                         <h1>{{ pageEntity.title }} - {{ tag.name }}</h1>
  482.                         {% set contactActionNoticeError = app.session.flashbag.get('error') %}
  483.                         {% if (contactActionNoticeError is not empty) %}
  484.                             {% for flashMessage in contactActionNoticeError %}
  485.                                 <div class=\"flash-notice alert alert-error\">
  486.                                     <button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>
  487.                                     {{ flashMessage }}
  488.                                 </div>
  489.                             {% endfor %}
  490.                         {% endif %}
  491.                         <p>
  492.                             There {% if nbResults == 1 %} is {{ nbResults }} blog{% else %} are {{ nbResults }} blogs{% endif %}
  493.                             tagged '{{ tag.name }}'. You can see all of our latest blogs <a
  494.                                     href=\"{{ path('blog') }}\">here</a>.
  495.                         </p>
  496.                     {% else %}
  497.                         <h1>{{ pageEntity.title }}</h1>
  498.                         {% set contactActionNoticeError = app.session.flashbag.get('error') %}
  499.                         {% if (contactActionNoticeError is not empty) %}
  500.                             {% for flashMessage in contactActionNoticeError %}
  501.                                 <div class=\"flash-notice alert alert-error\">
  502.                                     <button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>
  503.                                     {{ flashMessage }}
  504.                                 </div>
  505.                             {% endfor %}
  506.                         {% else %}
  507.                             <p>{{ pageEntity.content | raw }}</p>
  508.                         {% endif %}
  509.                     {% endif %}
  510.                     <div class=\"row\">
  511.                         {% if nbResults >= 9 %}
  512.                             <div class=\"pagerfanta pull-right\">
  513.                                 {{ pagerfanta(articles, 'twitter_bootstrap', {'proximity': 1, 'dots_message':' &nbsp;', 'next_message':'<i class=\"fa fa-chevron-right\"></i>' ,'prev_message': '<i class=\"fa fa-chevron-left\"></i>'}) }}
  514.                             </div>
  515.                         {% endif %} <br/>
  516.                     </div>
  517.                     {% for article in articles %}
  518.                         <h2>
  519.                             <a href=\"{{ path('Blog_Article', {'slug': article.slug ,'date': article.datePublished|date(\"Ymd\")}) }}\">{{ article.title }}</a>
  520.                         </h2>
  521.                         <p class=\"text-muted\">
  522.                             by {{ article.createdBy.person.firstName }} {{ article.createdBy.person.lastName }}
  523.                             - {{ article.datePublished | date(\"jS F Y\") }}</p>
  524.                         {% for tag in article.tags %}
  525.                             <a href=\"{{ path(\"blog_tag\", {\"tag\": tag.slug}) }}\"
  526.                                class=\"label label-default\">{{ tag.name }}</a>
  527.                         {% endfor %}
  528.                         <p>
  529.                             {{ article.content | striptags | u.truncate (400) | raw }}
  530.                             <a href=\"{{ path('Blog_Article', {'slug': article.slug ,'date': article.datePublished|date(\"Ymd\")}) }}\"
  531.                                class=\"pull-right\">Read More</a>
  532.                         </p>
  533.                         <hr/>
  534.                     {% endfor %}
  535.                 </div>
  536.                 <div class=\"col-md-4\">
  537.                     {% include \"web/Default/features.html.twig\" with {\"feature\": pageEntity.feature1 } %}
  538.                 </div>
  539.             </div>
  540.             <div class=\"row\">
  541.                 {% if nbResults >= 9 %}
  542.                     <div class=\"pagerfanta pull-right\">
  543.                         {{ pagerfanta(articles, 'twitter_bootstrap', {'proximity': 1, 'dots_message':' &nbsp;', 'next_message':'<i class=\"fa fa-chevron-right\"></i>' ,'prev_message': '<i class=\"fa fa-chevron-left\"></i>'}) }}
  544.                     </div>
  545.                 {% endif %} <br/>
  546.             </div>
  547.         </div>
  548.     </section>
  549. {% endblock %}
  550. {% block javascripts %}
  551.     {{ parent() }}
  552. {% endblock %}
  553. ""web/Default/blogs.html.twig""/var/www/html/templates/web/Default/blogs.html.twig");
  554.     }
  555. }