<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* web/Default/blogs.html.twig */
class __TwigTemplate_8089f8bfbc280052f18a471ca8246796 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'blogClass' => [$this, 'block_blogClass'],
'title' => [$this, 'block_title'],
'metaDescription' => [$this, 'block_metaDescription'],
'metaKeywords' => [$this, 'block_metaKeywords'],
'metaAuthor' => [$this, 'block_metaAuthor'],
'googleAuthor' => [$this, 'block_googleAuthor'],
'body' => [$this, 'block_body'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "webbase.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "web/Default/blogs.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "web/Default/blogs.html.twig"));
// line 5
if (((isset($context["tag"]) || array_key_exists("tag", $context) ? $context["tag"] : (function () { throw new RuntimeError('Variable "tag" does not exist.', 5, $this->source); })()) != null)) {
// line 6
$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", false, false, false, 6) . " - ") . 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", false, false, false, 6));
} elseif (( // line 7
(isset($context["monthYear"]) || array_key_exists("monthYear", $context) ? $context["monthYear"] : (function () { throw new RuntimeError('Variable "monthYear" does not exist.', 7, $this->source); })()) != "/01/")) {
// line 8
$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", false, false, false, 8) . " - ") . 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"));
} else {
// line 10
$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", false, false, false, 10);
}
// line 14
$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", false, false, false, 14);
// line 18
$context["googlePlusLink"] = "";
// line 2
$this->parent = $this->loadTemplate("webbase.html.twig", "web/Default/blogs.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_blogClass($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "blogClass"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "blogClass"));
echo "active";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 12
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
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", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 15
public function block_metaDescription($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
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", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 16
public function block_metaKeywords($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaKeywords"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaKeywords"));
echo twig_escape_filter($this->env, 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.', 16, $this->source); })()), "metaKeywords", [], "any", false, false, false, 16), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 17
public function block_metaAuthor($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaAuthor"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaAuthor"));
echo "";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 19
public function block_googleAuthor($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "googleAuthor"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "googleAuthor"));
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", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 21
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 23
echo "<section id=\"blog\">
<div class=\"row\">
<img data-src=\"holder.js/2400x400/auto/vine/text:Blog\" class=\"img-responsive\" alt=\"Blog\">
</div>
<div class=\"container\">
<div class=\"row\">
<div class=\"col-md-8\">
";
// line 30
if (((isset($context["monthYear"]) || array_key_exists("monthYear", $context) ? $context["monthYear"] : (function () { throw new RuntimeError('Variable "monthYear" does not exist.', 30, $this->source); })()) != "/01/")) {
// line 31
echo "
<h1>";
// line 32
echo twig_escape_filter($this->env, 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.', 32, $this->source); })()), "title", [], "any", false, false, false, 32), "html", null, true);
echo " - ";
echo twig_escape_filter($this->env, 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.', 32, $this->source); })()), "F Y"), "html", null, true);
echo "</h1>
<p>
There ";
// line 34
if (((isset($context["nbResults"]) || array_key_exists("nbResults", $context) ? $context["nbResults"] : (function () { throw new RuntimeError('Variable "nbResults" does not exist.', 34, $this->source); })()) == 1)) {
echo " is ";
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", null, true);
echo " blog";
} else {
echo " are ";
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", null, true);
echo " blogs";
}
// line 35
echo " in ";
echo twig_escape_filter($this->env, 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.', 35, $this->source); })()), "F Y"), "html", null, true);
echo ". You can see all of our latest blogs <a
href=\"";
// line 36
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog");
echo "\">here</a>.
</p>
";
} elseif (( // line 39
(isset($context["tag"]) || array_key_exists("tag", $context) ? $context["tag"] : (function () { throw new RuntimeError('Variable "tag" does not exist.', 39, $this->source); })()) != null)) {
// line 40
echo "
<h1>";
// line 41
echo twig_escape_filter($this->env, 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.', 41, $this->source); })()), "title", [], "any", false, false, false, 41), "html", null, true);
echo " - ";
echo twig_escape_filter($this->env, 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.', 41, $this->source); })()), "name", [], "any", false, false, false, 41), "html", null, true);
echo "</h1>
";
// line 42
$context["contactActionNoticeError"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 42, $this->source); })()), "session", [], "any", false, false, false, 42), "flashbag", [], "any", false, false, false, 42), "get", [0 => "error"], "method", false, false, false, 42);
// line 43
echo " ";
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); })()))) {
// line 44
echo " ";
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["flashMessage"]) {
// line 45
echo " <div class=\"flash-notice alert alert-error\">
<button type=\"button\" class=\"close\" data-dismiss=\"alert\">×</button>
";
// line 47
echo twig_escape_filter($this->env, $context["flashMessage"], "html", null, true);
echo "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flashMessage'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 50
echo " ";
}
// line 51
echo " <p>
There ";
// line 52
if (((isset($context["nbResults"]) || array_key_exists("nbResults", $context) ? $context["nbResults"] : (function () { throw new RuntimeError('Variable "nbResults" does not exist.', 52, $this->source); })()) == 1)) {
echo " is ";
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", null, true);
echo " blog";
} else {
echo " are ";
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", null, true);
echo " blogs";
}
// line 53
echo " tagged '";
echo twig_escape_filter($this->env, 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.', 53, $this->source); })()), "name", [], "any", false, false, false, 53), "html", null, true);
echo "'. You can see all of our latest blogs <a
href=\"";
// line 54
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog");
echo "\">here</a>.
</p>
";
} else {
// line 58
echo " <h1>";
echo twig_escape_filter($this->env, 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.', 58, $this->source); })()), "title", [], "any", false, false, false, 58), "html", null, true);
echo "</h1>
";
// line 59
$context["contactActionNoticeError"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 59, $this->source); })()), "session", [], "any", false, false, false, 59), "flashbag", [], "any", false, false, false, 59), "get", [0 => "error"], "method", false, false, false, 59);
// line 60
echo " ";
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); })()))) {
// line 61
echo " ";
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["flashMessage"]) {
// line 62
echo " <div class=\"flash-notice alert alert-error\">
<button type=\"button\" class=\"close\" data-dismiss=\"alert\">×</button>
";
// line 64
echo twig_escape_filter($this->env, $context["flashMessage"], "html", null, true);
echo "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flashMessage'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 67
echo " ";
} else {
// line 68
echo " <p>";
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", false, false, false, 68);
echo "</p>
";
}
// line 70
echo "
";
}
// line 72
echo "
<div class=\"row\">
";
// line 75
if (((isset($context["nbResults"]) || array_key_exists("nbResults", $context) ? $context["nbResults"] : (function () { throw new RuntimeError('Variable "nbResults" does not exist.', 75, $this->source); })()) >= 9)) {
// line 76
echo " <div class=\"pagerfanta pull-right\">
";
// line 77
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" => " ", "next_message" => "<i class=\"fa fa-chevron-right\"></i>", "prev_message" => "<i class=\"fa fa-chevron-left\"></i>"]);
echo "
</div>
";
}
// line 79
echo " <br/>
</div>
";
// line 82
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["article"]) {
// line 83
echo " <h2>
<a href=\"";
// line 84
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", false, false, false, 84), "date" => twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["article"], "datePublished", [], "any", false, false, false, 84), "Ymd")]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["article"], "title", [], "any", false, false, false, 84), "html", null, true);
echo "</a>
</h2>
<p class=\"text-muted\">
by ";
// line 87
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["article"], "createdBy", [], "any", false, false, false, 87), "person", [], "any", false, false, false, 87), "firstName", [], "any", false, false, false, 87), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["article"], "createdBy", [], "any", false, false, false, 87), "person", [], "any", false, false, false, 87), "lastName", [], "any", false, false, false, 87), "html", null, true);
echo "
- ";
// line 88
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["article"], "datePublished", [], "any", false, false, false, 88), "jS F Y"), "html", null, true);
echo "</p>
";
// line 89
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["article"], "tags", [], "any", false, false, false, 89));
foreach ($context['_seq'] as $context["_key"] => $context["tag"]) {
// line 90
echo " <a href=\"";
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", false, false, false, 90)]), "html", null, true);
echo "\"
class=\"label label-default\">";
// line 91
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["tag"], "name", [], "any", false, false, false, 91), "html", null, true);
echo "</a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tag'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 93
echo " <p>
";
// line 94
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", false, false, false, 94))), "truncate", [0 => 400], "method", false, false, false, 94);
echo "
<a href=\"";
// line 95
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", false, false, false, 95), "date" => twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["article"], "datePublished", [], "any", false, false, false, 95), "Ymd")]), "html", null, true);
echo "\"
class=\"pull-right\">Read More</a>
</p>
<hr/>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['article'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 101
echo " </div>
<div class=\"col-md-4\">
";
// line 103
$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", false, false, false, 103)]));
// line 104
echo " </div>
</div>
<div class=\"row\">
";
// line 108
if (((isset($context["nbResults"]) || array_key_exists("nbResults", $context) ? $context["nbResults"] : (function () { throw new RuntimeError('Variable "nbResults" does not exist.', 108, $this->source); })()) >= 9)) {
// line 109
echo " <div class=\"pagerfanta pull-right\">
";
// line 110
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" => " ", "next_message" => "<i class=\"fa fa-chevron-right\"></i>", "prev_message" => "<i class=\"fa fa-chevron-left\"></i>"]);
echo "
</div>
";
}
// line 112
echo " <br/>
</div>
</div>
</section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 120
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 121
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "web/Default/blogs.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{# src//WebBundle/Resources/views/blog.html.twig #}
{% extends 'webbase.html.twig' %}
{% block blogClass 'active' %}
{% if tag != null %}
{% set title = pageEntity.metaTitle~' - '~tag.name %}
{% elseif monthYear != '/01/' %}
{% set title = pageEntity.metaTitle~' - '~monthYear|date('F Y') %}
{% else %}
{% set title = pageEntity.metaTitle %}
{% endif %}
{% block title title %}
{% set metaDescription = pageEntity.metaDescription|raw %}
{% block metaDescription metaDescription %}
{% block metaKeywords pageEntity.metaKeywords %}
{% block metaAuthor '' %}
{% set googlePlusLink = '' %}
{% block googleAuthor googlePlusLink %}
{% block body -%}
<section id=\"blog\">
<div class=\"row\">
<img data-src=\"holder.js/2400x400/auto/vine/text:Blog\" class=\"img-responsive\" alt=\"Blog\">
</div>
<div class=\"container\">
<div class=\"row\">
<div class=\"col-md-8\">
{% if monthYear != '/01/' %}
<h1>{{ pageEntity.title }} - {{ monthYear|date('F Y') }}</h1>
<p>
There {% if nbResults == 1 %} is {{ nbResults }} blog{% else %} are {{ nbResults }} blogs{% endif %}
in {{ monthYear|date('F Y') }}. You can see all of our latest blogs <a
href=\"{{ path('blog') }}\">here</a>.
</p>
{% elseif tag != null %}
<h1>{{ pageEntity.title }} - {{ tag.name }}</h1>
{% set contactActionNoticeError = app.session.flashbag.get('error') %}
{% if (contactActionNoticeError is not empty) %}
{% for flashMessage in contactActionNoticeError %}
<div class=\"flash-notice alert alert-error\">
<button type=\"button\" class=\"close\" data-dismiss=\"alert\">×</button>
{{ flashMessage }}
</div>
{% endfor %}
{% endif %}
<p>
There {% if nbResults == 1 %} is {{ nbResults }} blog{% else %} are {{ nbResults }} blogs{% endif %}
tagged '{{ tag.name }}'. You can see all of our latest blogs <a
href=\"{{ path('blog') }}\">here</a>.
</p>
{% else %}
<h1>{{ pageEntity.title }}</h1>
{% set contactActionNoticeError = app.session.flashbag.get('error') %}
{% if (contactActionNoticeError is not empty) %}
{% for flashMessage in contactActionNoticeError %}
<div class=\"flash-notice alert alert-error\">
<button type=\"button\" class=\"close\" data-dismiss=\"alert\">×</button>
{{ flashMessage }}
</div>
{% endfor %}
{% else %}
<p>{{ pageEntity.content | raw }}</p>
{% endif %}
{% endif %}
<div class=\"row\">
{% if nbResults >= 9 %}
<div class=\"pagerfanta pull-right\">
{{ pagerfanta(articles, 'twitter_bootstrap', {'proximity': 1, 'dots_message':' ', 'next_message':'<i class=\"fa fa-chevron-right\"></i>' ,'prev_message': '<i class=\"fa fa-chevron-left\"></i>'}) }}
</div>
{% endif %} <br/>
</div>
{% for article in articles %}
<h2>
<a href=\"{{ path('Blog_Article', {'slug': article.slug ,'date': article.datePublished|date(\"Ymd\")}) }}\">{{ article.title }}</a>
</h2>
<p class=\"text-muted\">
by {{ article.createdBy.person.firstName }} {{ article.createdBy.person.lastName }}
- {{ article.datePublished | date(\"jS F Y\") }}</p>
{% for tag in article.tags %}
<a href=\"{{ path(\"blog_tag\", {\"tag\": tag.slug}) }}\"
class=\"label label-default\">{{ tag.name }}</a>
{% endfor %}
<p>
{{ article.content | striptags | u.truncate (400) | raw }}
<a href=\"{{ path('Blog_Article', {'slug': article.slug ,'date': article.datePublished|date(\"Ymd\")}) }}\"
class=\"pull-right\">Read More</a>
</p>
<hr/>
{% endfor %}
</div>
<div class=\"col-md-4\">
{% include \"web/Default/features.html.twig\" with {\"feature\": pageEntity.feature1 } %}
</div>
</div>
<div class=\"row\">
{% if nbResults >= 9 %}
<div class=\"pagerfanta pull-right\">
{{ pagerfanta(articles, 'twitter_bootstrap', {'proximity': 1, 'dots_message':' ', 'next_message':'<i class=\"fa fa-chevron-right\"></i>' ,'prev_message': '<i class=\"fa fa-chevron-left\"></i>'}) }}
</div>
{% endif %} <br/>
</div>
</div>
</section>
{% endblock %}
{% block javascripts %}
{{ parent() }}
{% endblock %}
", "web/Default/blogs.html.twig", "/var/www/html/templates/web/Default/blogs.html.twig");
}
}