<?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;
/* content/blogPost.html.twig */
class __TwigTemplate_c4c66a780b85c0c19b259025f6076846 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'body' => [$this, 'block_body'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 1
return "layouts/layout.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", "content/blogPost.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "content/blogPost.html.twig"));
$this->parent = $this->loadTemplate("layouts/layout.html.twig", "content/blogPost.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 2
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 3
echo "<div id=\"main-content\" class=\"content\">
<div class=\"section top-padding\">
<div class=\"inner\">
<div class=\"row bottom-padding gutter-space--lg\">
<div class=\"col col-lg-8 col-md-8 col-sm-12 col-xs-12\">
";
// line 8
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["blogPost"]) || array_key_exists("blogPost", $context) ? $context["blogPost"] : (function () { throw new RuntimeError('Variable "blogPost" does not exist.', 8, $this->source); })()), "getWysiwyg", [], "method", false, false, true, 8), 8, $this->source);
echo "
</div>
<div class=\"col col-lg-4 col-md-4 col-sm-12 col-xs-12\">
<h3>Other Posts</h3>
";
// line 12
$context["blogPosts"] = $this->extensions['App\Twig\Extension\BlogPostsExtension']->getBlogPosts();
// line 13
echo " ";
if (((isset($context["blogPosts"]) || array_key_exists("blogPosts", $context) ? $context["blogPosts"] : (function () { throw new RuntimeError('Variable "blogPosts" does not exist.', 13, $this->source); })()) && (twig_length_filter($this->env, (isset($context["blogPosts"]) || array_key_exists("blogPosts", $context) ? $context["blogPosts"] : (function () { throw new RuntimeError('Variable "blogPosts" does not exist.', 13, $this->source); })())) > 0))) {
// line 14
echo " <div class=\"sidebar--posts\">
";
// line 15
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["blogPosts"]) || array_key_exists("blogPosts", $context) ? $context["blogPosts"] : (function () { throw new RuntimeError('Variable "blogPosts" does not exist.', 15, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["blogPost"]) {
// line 16
echo " ";
$context["blogPostLink"] = twig_get_attribute($this->env, $this->source, $context["blogPost"], "slug", [], "array", false, false, true, 16);
// line 17
echo " ";
$context["currentPath"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath($this->sandbox->ensureToStringAllowed(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.', 17, $this->source); })()), "request", [], "any", false, false, true, 17), "attributes", [], "any", false, false, true, 17), "get", [0 => "_route"], "method", false, false, true, 17), 17, $this->source), $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 18
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 18, $this->source); })()), "request", [], "any", false, false, true, 18), "attributes", [], "any", false, false, true, 18), "get", [0 => "_route_params"], "method", false, false, true, 18), 18, $this->source));
// line 19
echo " ";
$context["blogPath"] = ("/insights/" . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["blogPost"], "slug", [], "array", false, false, true, 19), 19, $this->source));
// line 20
echo " ";
if ( !((isset($context["currentPath"]) || array_key_exists("currentPath", $context) ? $context["currentPath"] : (function () { throw new RuntimeError('Variable "currentPath" does not exist.', 20, $this->source); })()) === (isset($context["blogPath"]) || array_key_exists("blogPath", $context) ? $context["blogPath"] : (function () { throw new RuntimeError('Variable "blogPath" does not exist.', 20, $this->source); })()))) {
// line 21
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["blogPostLink"]) || array_key_exists("blogPostLink", $context) ? $context["blogPostLink"] : (function () { throw new RuntimeError('Variable "blogPostLink" does not exist.', 21, $this->source); })()), 21, $this->source), "html", null, true);
echo "\">
<div class=\"row gutter-space--xs sidebar--post\">
<div class=\"col-lg-3 col-md-3 col-sm-3 col-xs-3 text-align-center square-crop\">
";
// line 24
if (twig_get_attribute($this->env, $this->source, $context["blogPost"], "featuredImageThumbnail", [], "array", false, false, true, 24)) {
// line 25
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["blogPost"], "featuredImageThumbnail", [], "array", false, false, true, 25), 25, $this->source), "html", null, true);
echo "\" style=\"width:100%;height:100%;object-fit:cover;\">
";
} else {
// line 27
echo " ";
echo twig_source($this->env, "@torq_static/img/branding/torq-logo-letter-t.svg");
echo "
";
}
// line 29
echo " </div>
<div class=\"col col-lg-9 col-md-9 col-sm-9 col-xs-9\">
<p>";
// line 31
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["blogPost"], "title", [], "array", false, false, true, 31), 31, $this->source), "html", null, true);
echo "</p>
<p class=\"meta--date\">";
// line 32
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["blogPost"], "date", [], "array", false, false, true, 32), 32, $this->source), "html", null, true);
echo "</p>
</div>
</div>
</a>
";
}
// line 37
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['blogPost'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 38
echo "
</div>
";
}
// line 41
echo " </div>
</div>
</div>
";
// line 45
$this->loadTemplate("content/includes/case-study-carousel.html.twig", "content/blogPost.html.twig", 45)->display($context);
// line 46
echo "
<section class=\"section top-bottom-padding bg-color--red light\">
<div class=\"inner text-align-center\">
<div class=\"row gutter-space--md center-lg center-md center-sm center-xs\">
<div data-aos=\"fade-up\" class=\"cta-display-flex no-bottom-margin col-lg-12 col-md-12 col-sm-12 col-xs-12\">
<h1 data-aos=\"fade-up\" class=\"h2--lg aos-init aos-animate\">Ready to get started?</h1>
<a href=\"/contact\" class=\"btn dark\">Talk to an expert</a>
</div>
</div>
</div>
</section>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "content/blogPost.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 165 => 46, 163 => 45, 157 => 41, 152 => 38, 146 => 37, 138 => 32, 134 => 31, 130 => 29, 124 => 27, 118 => 25, 116 => 24, 109 => 21, 106 => 20, 103 => 19, 101 => 18, 99 => 17, 96 => 16, 92 => 15, 89 => 14, 86 => 13, 84 => 12, 77 => 8, 70 => 3, 60 => 2, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'layouts/layout.html.twig' %}
{% block body %}
<div id=\"main-content\" class=\"content\">
<div class=\"section top-padding\">
<div class=\"inner\">
<div class=\"row bottom-padding gutter-space--lg\">
<div class=\"col col-lg-8 col-md-8 col-sm-12 col-xs-12\">
{{ blogPost.getWysiwyg()|raw }}
</div>
<div class=\"col col-lg-4 col-md-4 col-sm-12 col-xs-12\">
<h3>Other Posts</h3>
{% set blogPosts = app_blog_posts_get() %}
{% if blogPosts and blogPosts|length > 0 %}
<div class=\"sidebar--posts\">
{% for blogPost in blogPosts %}
{% set blogPostLink = blogPost['slug'] %}
{% set currentPath = path(app.request.attributes.get('_route'),
app.request.attributes.get('_route_params')) %}
{% set blogPath = '/insights/' ~ blogPost['slug'] %}
{% if currentPath is not same as blogPath %}
<a href=\"{{ blogPostLink }}\">
<div class=\"row gutter-space--xs sidebar--post\">
<div class=\"col-lg-3 col-md-3 col-sm-3 col-xs-3 text-align-center square-crop\">
{% if blogPost['featuredImageThumbnail'] %}
<img src=\"{{ blogPost['featuredImageThumbnail'] }}\" style=\"width:100%;height:100%;object-fit:cover;\">
{% else %}
{{ source(\"@torq_static/img/branding/torq-logo-letter-t.svg\") }}
{% endif %}
</div>
<div class=\"col col-lg-9 col-md-9 col-sm-9 col-xs-9\">
<p>{{ blogPost['title'] }}</p>
<p class=\"meta--date\">{{ blogPost['date'] }}</p>
</div>
</div>
</a>
{% endif %}
{% endfor %}
</div>
{% endif %}
</div>
</div>
</div>
{% include 'content/includes/case-study-carousel.html.twig' %}
<section class=\"section top-bottom-padding bg-color--red light\">
<div class=\"inner text-align-center\">
<div class=\"row gutter-space--md center-lg center-md center-sm center-xs\">
<div data-aos=\"fade-up\" class=\"cta-display-flex no-bottom-margin col-lg-12 col-md-12 col-sm-12 col-xs-12\">
<h1 data-aos=\"fade-up\" class=\"h2--lg aos-init aos-animate\">Ready to get started?</h1>
<a href=\"/contact\" class=\"btn dark\">Talk to an expert</a>
</div>
</div>
</div>
</section>
</div>
{% endblock %}
", "content/blogPost.html.twig", "/var/www/html/templates/content/blogPost.html.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 12, "if" => 13, "for" => 15, "include" => 45);
static $filters = array("raw" => 8, "length" => 13, "escape" => 21);
static $functions = array("app_blog_posts_get" => 12, "path" => 17, "source" => 27);
try {
$this->sandbox->checkSecurity(
['set', 'if', 'for', 'include'],
['raw', 'length', 'escape'],
['app_blog_posts_get', 'path', 'source']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}