var/cache/dev/twig/15/150ea8decf1609773dcd40790345be35.php line 50

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. /* content/blogPost.html.twig */
  14. class __TwigTemplate_c4c66a780b85c0c19b259025f6076846 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'body' => [$this'block_body'],
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "layouts/layout.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/blogPost.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/blogPost.html.twig"));
  40.         $this->parent $this->loadTemplate("layouts/layout.html.twig""content/blogPost.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 2
  48.     public function block_body($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  55.         // line 3
  56.         echo "<div id=\"main-content\" class=\"content\">
  57.   <div class=\"section top-padding\">
  58.       <div class=\"inner\">
  59.         <div class=\"row bottom-padding gutter-space--lg\">
  60.           <div class=\"col col-lg-8 col-md-8 col-sm-12 col-xs-12\">
  61.             ";
  62.         // line 8
  63.         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"falsefalsetrue8), 8$this->source);
  64.         echo "
  65.           </div>
  66.           <div class=\"col col-lg-4 col-md-4 col-sm-12 col-xs-12\">
  67.             <h3>Other Posts</h3>
  68.             ";
  69.         // line 12
  70.         $context["blogPosts"] = $this->extensions['App\Twig\Extension\BlogPostsExtension']->getBlogPosts();
  71.         // line 13
  72.         echo "            ";
  73.         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))) {
  74.             // line 14
  75.             echo "              <div class=\"sidebar--posts\">
  76.                 ";
  77.             // line 15
  78.             $context['_parent'] = $context;
  79.             $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); })()));
  80.             foreach ($context['_seq'] as $context["_key"] => $context["blogPost"]) {
  81.                 // line 16
  82.                 echo "                ";
  83.                 $context["blogPostLink"] = twig_get_attribute($this->env$this->source$context["blogPost"], "slug", [], "array"falsefalsetrue16);
  84.                 // line 17
  85.                 echo "                ";
  86.                 $context["currentPath"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath($this->sandbox->ensureToStringAllowed(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.'17$this->source); })()), "request", [], "any"falsefalsetrue17), "attributes", [], "any"falsefalsetrue17), "get", [=> "_route"], "method"falsefalsetrue17), 17$this->source), $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,                 // line 18
  87. (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'18$this->source); })()), "request", [], "any"falsefalsetrue18), "attributes", [], "any"falsefalsetrue18), "get", [=> "_route_params"], "method"falsefalsetrue18), 18$this->source));
  88.                 // line 19
  89.                 echo "                ";
  90.                 $context["blogPath"] = ("/insights/" $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["blogPost"], "slug", [], "array"falsefalsetrue19), 19$this->source));
  91.                 // line 20
  92.                 echo "                ";
  93.                 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); })()))) {
  94.                     // line 21
  95.                     echo "                  <a href=\"";
  96.                     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"nulltrue);
  97.                     echo "\">
  98.                     <div class=\"row gutter-space--xs sidebar--post\">
  99.                             <div class=\"col-lg-3 col-md-3 col-sm-3 col-xs-3 text-align-center square-crop\">
  100.                               ";
  101.                     // line 24
  102.                     if (twig_get_attribute($this->env$this->source$context["blogPost"], "featuredImageThumbnail", [], "array"falsefalsetrue24)) {
  103.                         // line 25
  104.                         echo "                              <img src=\"";
  105.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["blogPost"], "featuredImageThumbnail", [], "array"falsefalsetrue25), 25$this->source), "html"nulltrue);
  106.                         echo "\" style=\"width:100%;height:100%;object-fit:cover;\">
  107.                               ";
  108.                     } else {
  109.                         // line 27
  110.                         echo "                              ";
  111.                         echo twig_source($this->env"@torq_static/img/branding/torq-logo-letter-t.svg");
  112.                         echo "
  113.                               ";
  114.                     }
  115.                     // line 29
  116.                     echo "                            </div>
  117.                             <div class=\"col col-lg-9 col-md-9 col-sm-9 col-xs-9\">
  118.                               <p>";
  119.                     // line 31
  120.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["blogPost"], "title", [], "array"falsefalsetrue31), 31$this->source), "html"nulltrue);
  121.                     echo "</p>
  122.                               <p class=\"meta--date\">";
  123.                     // line 32
  124.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["blogPost"], "date", [], "array"falsefalsetrue32), 32$this->source), "html"nulltrue);
  125.                     echo "</p>
  126.                             </div>
  127.                     </div>
  128.                   </a>
  129.                 ";
  130.                 }
  131.                 // line 37
  132.                 echo "                ";
  133.             }
  134.             $_parent $context['_parent'];
  135.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['blogPost'], $context['_parent'], $context['loop']);
  136.             $context array_intersect_key($context$_parent) + $_parent;
  137.             // line 38
  138.             echo "
  139.               </div>
  140.             ";
  141.         }
  142.         // line 41
  143.         echo "          </div>
  144.       </div>
  145.   </div>
  146.   ";
  147.         // line 45
  148.         $this->loadTemplate("content/includes/case-study-carousel.html.twig""content/blogPost.html.twig"45)->display($context);
  149.         // line 46
  150.         echo "
  151.   <section class=\"section top-bottom-padding bg-color--red light\">
  152.     <div class=\"inner text-align-center\">
  153.         <div class=\"row gutter-space--md center-lg center-md center-sm center-xs\">
  154.             <div data-aos=\"fade-up\" class=\"cta-display-flex no-bottom-margin col-lg-12 col-md-12 col-sm-12 col-xs-12\">
  155.                 <h1 data-aos=\"fade-up\" class=\"h2--lg aos-init aos-animate\">Ready to get started?</h1>
  156.                 <a href=\"/contact\" class=\"btn dark\">Talk to an expert</a>
  157.             </div>
  158.         </div>
  159.     </div>
  160.   </section>
  161. </div>
  162. ";
  163.         
  164.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  165.         
  166.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  167.     }
  168.     public function getTemplateName()
  169.     {
  170.         return "content/blogPost.html.twig";
  171.     }
  172.     public function isTraitable()
  173.     {
  174.         return false;
  175.     }
  176.     public function getDebugInfo()
  177.     {
  178.         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,);
  179.     }
  180.     public function getSourceContext()
  181.     {
  182.         return new Source("{% extends 'layouts/layout.html.twig' %} 
  183. {% block body %}
  184. <div id=\"main-content\" class=\"content\">
  185.   <div class=\"section top-padding\">
  186.       <div class=\"inner\">
  187.         <div class=\"row bottom-padding gutter-space--lg\">
  188.           <div class=\"col col-lg-8 col-md-8 col-sm-12 col-xs-12\">
  189.             {{ blogPost.getWysiwyg()|raw }}
  190.           </div>
  191.           <div class=\"col col-lg-4 col-md-4 col-sm-12 col-xs-12\">
  192.             <h3>Other Posts</h3>
  193.             {% set blogPosts = app_blog_posts_get() %}
  194.             {% if blogPosts and blogPosts|length > 0 %}
  195.               <div class=\"sidebar--posts\">
  196.                 {% for blogPost in blogPosts %}
  197.                 {% set blogPostLink = blogPost['slug'] %}
  198.                 {% set currentPath = path(app.request.attributes.get('_route'),
  199.                        app.request.attributes.get('_route_params')) %}
  200.                 {% set blogPath = '/insights/' ~ blogPost['slug'] %}
  201.                 {% if currentPath is not same as blogPath %}
  202.                   <a href=\"{{ blogPostLink }}\">
  203.                     <div class=\"row gutter-space--xs sidebar--post\">
  204.                             <div class=\"col-lg-3 col-md-3 col-sm-3 col-xs-3 text-align-center square-crop\">
  205.                               {% if blogPost['featuredImageThumbnail'] %}
  206.                               <img src=\"{{ blogPost['featuredImageThumbnail'] }}\" style=\"width:100%;height:100%;object-fit:cover;\">
  207.                               {% else %}
  208.                               {{ source(\"@torq_static/img/branding/torq-logo-letter-t.svg\") }}
  209.                               {% endif %}
  210.                             </div>
  211.                             <div class=\"col col-lg-9 col-md-9 col-sm-9 col-xs-9\">
  212.                               <p>{{ blogPost['title'] }}</p>
  213.                               <p class=\"meta--date\">{{ blogPost['date'] }}</p>
  214.                             </div>
  215.                     </div>
  216.                   </a>
  217.                 {% endif %}
  218.                 {% endfor %}
  219.               </div>
  220.             {% endif %}
  221.           </div>
  222.       </div>
  223.   </div>
  224.   {% include 'content/includes/case-study-carousel.html.twig' %}
  225.   <section class=\"section top-bottom-padding bg-color--red light\">
  226.     <div class=\"inner text-align-center\">
  227.         <div class=\"row gutter-space--md center-lg center-md center-sm center-xs\">
  228.             <div data-aos=\"fade-up\" class=\"cta-display-flex no-bottom-margin col-lg-12 col-md-12 col-sm-12 col-xs-12\">
  229.                 <h1 data-aos=\"fade-up\" class=\"h2--lg aos-init aos-animate\">Ready to get started?</h1>
  230.                 <a href=\"/contact\" class=\"btn dark\">Talk to an expert</a>
  231.             </div>
  232.         </div>
  233.     </div>
  234.   </section>
  235. </div>
  236. {% endblock %}
  237. ""content/blogPost.html.twig""/var/www/html/templates/content/blogPost.html.twig");
  238.     }
  239.     
  240.     public function checkSecurity()
  241.     {
  242.         static $tags = array("set" => 12"if" => 13"for" => 15"include" => 45);
  243.         static $filters = array("raw" => 8"length" => 13"escape" => 21);
  244.         static $functions = array("app_blog_posts_get" => 12"path" => 17"source" => 27);
  245.         try {
  246.             $this->sandbox->checkSecurity(
  247.                 ['set''if''for''include'],
  248.                 ['raw''length''escape'],
  249.                 ['app_blog_posts_get''path''source']
  250.             );
  251.         } catch (SecurityError $e) {
  252.             $e->setSourceContext($this->source);
  253.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  254.                 $e->setTemplateLine($tags[$e->getTagName()]);
  255.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  256.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  257.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  258.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  259.             }
  260.             throw $e;
  261.         }
  262.     }
  263. }