var/cache/dev/twig/a8/a87fabba7f66ac7174474e7d7adb495c.php line 259

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/tmpl/post-single.html.twig */
  14. class __TwigTemplate_c01a439371c6b08a997f1103fafeb561 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.             'column' => [$this'block_column'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "1-col-sidebar.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/tmpl/post-single.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/tmpl/post-single.html.twig"));
  38.         $this->parent $this->loadTemplate("1-col-sidebar.html.twig""content/tmpl/post-single.html.twig"1);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  42.         
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  44.     }
  45.     // line 4
  46.     public function block_column($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""column"));
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""column"));
  53.         // line 5
  54.         echo "\t<h1 class=\"post-title\">";
  55.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'5$this->source); })()), "title", [], "any"falsefalsefalse5), "html"nulltrue);
  56.         echo "</h1>
  57. \t";
  58.         // line 6
  59.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'6$this->source); })()), "getFeaturedImageTag", [], "method"falsefalsefalse6))) {
  60.             // line 7
  61.             echo "\t\t<div class=\"post-thumbnail\">
  62. \t";
  63.             // line 8
  64.             if (twig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'8$this->source); })()), "getMediaURL", [], "method"falsefalsefalse8)) {
  65.                 echo "<a href=\"";
  66.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'8$this->source); })()), "getMediaURL", [], "method"falsefalsefalse8), "html"nulltrue);
  67.                 echo "\">";
  68.             }
  69.             // line 9
  70.             echo "\t\t\t";
  71.             echo twig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'9$this->source); })()), "getFeaturedImageTag", ["""max-height: 450px"], "method"falsefalsefalse9);
  72.             echo "
  73. \t\t";
  74.             // line 10
  75.             if (twig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'10$this->source); })()), "getMediaURL", [], "method"falsefalsefalse10)) {
  76.                 echo "</a>";
  77.             }
  78.             // line 11
  79.             echo "\t\t</div>
  80. \t";
  81.         }
  82.         // line 13
  83.         echo "\t";
  84.         // line 14
  85.         echo "\t";
  86.         echo twig_escape_filter($this->env$this->extensions['App\Twig\RCSExtension']->rcsDateFormat(twig_date_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'14$this->source); })()), "publishedat", [], "any"falsefalsefalse14))), "html"nulltrue);
  87.         echo "
  88. \t";
  89.         // line 16
  90.         if ((twig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'16$this->source); })()), "getIncludeAuthorByline", [], "method"falsefalsefalse16) && twig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'16$this->source); })()), "getAuthor", [], "method"falsefalsefalse16))) {
  91.             // line 17
  92.             echo "\t\t";
  93.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'17$this->source); })()), "getAuthor", [], "method"falsefalsefalse17), "getByline", [], "method"falsefalsefalse17)) {
  94.                 // line 18
  95.                 echo "\t\t\t<p>";
  96.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'18$this->source); })()), "getAuthor", [], "method"falsefalsefalse18), "getByline", [], "method"falsefalsefalse18), "html"nulltrue);
  97.                 echo "</p>
  98. \t\t";
  99.             }
  100.             // line 20
  101.             echo "\t";
  102.         }
  103.         // line 21
  104.         echo "
  105. \t<div class=\"post--content\">
  106. \t\t";
  107.         // line 23
  108.         echo $this->extensions['App\Twig\RCSExtension']->wordpress(twig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'23$this->source); })()), "getContentFull", [], "method"falsefalsefalse23));
  109.         echo "
  110. \t</div>
  111. \t";
  112.         // line 26
  113.         if ((twig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'26$this->source); })()), "getIncludeCustomerCallToAction", [], "method"falsefalsefalse26) && twig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'26$this->source); })()), "getPrimaryCustomer", [], "method"falsefalsefalse26))) {
  114.             // line 27
  115.             echo "\t\t";
  116.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'27$this->source); })()), "getPrimaryCustomer", [], "method"falsefalsefalse27), "getCallToAction", [], "method"falsefalsefalse27)) {
  117.                 // line 28
  118.                 echo "\t\t\t";
  119.                 echo $this->extensions['App\Twig\RCSExtension']->wordpress(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'28$this->source); })()), "getPrimaryCustomer", [], "method"falsefalsefalse28), "getCallToAction", [], "method"falsefalsefalse28));
  120.                 echo "
  121. \t\t";
  122.             }
  123.             // line 30
  124.             echo "\t";
  125.         }
  126.         // line 31
  127.         echo "
  128. \t";
  129.         // line 32
  130.         if ((twig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'32$this->source); })()), "getIncludeAuthorBio", [], "method"falsefalsefalse32) && twig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'32$this->source); })()), "getAuthor", [], "method"falsefalsefalse32))) {
  131.             // line 33
  132.             echo "\t\t";
  133.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'33$this->source); })()), "getAuthor", [], "method"falsefalsefalse33), "getAuthorBio", [], "method"falsefalsefalse33)) {
  134.                 // line 34
  135.                 echo "\t\t\t";
  136.                 echo $this->extensions['App\Twig\RCSExtension']->wordpress(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'34$this->source); })()), "getAuthor", [], "method"falsefalsefalse34), "getAuthorBio", [], "method"falsefalsefalse34));
  137.                 echo "
  138. \t\t";
  139.             }
  140.             // line 36
  141.             echo "\t";
  142.         }
  143.         // line 37
  144.         echo "
  145. \t";
  146.         // line 38
  147.         if ((twig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'38$this->source); })()), "getIncludeCustomerBio", [], "method"falsefalsefalse38) && twig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'38$this->source); })()), "getPrimaryCustomer", [], "method"falsefalsefalse38))) {
  148.             // line 39
  149.             echo "\t\t";
  150.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'39$this->source); })()), "getPrimaryCustomer", [], "method"falsefalsefalse39), "getBio", [], "method"falsefalsefalse39)) {
  151.                 // line 40
  152.                 echo "\t\t\t";
  153.                 echo $this->extensions['App\Twig\RCSExtension']->wordpress(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'40$this->source); })()), "getPrimaryCustomer", [], "method"falsefalsefalse40), "getBio", [], "method"falsefalsefalse40));
  154.                 echo "
  155. \t\t";
  156.             }
  157.             // line 42
  158.             echo "\t";
  159.         }
  160.         // line 43
  161.         echo "
  162. \t";
  163.         // line 44
  164.         $context["category"] = twig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'44$this->source); })()), "category", [], "any"falsefalsefalse44);
  165.         // line 45
  166.         echo "
  167. \t";
  168.         // line 46
  169.         if (((isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'46$this->source); })()) != "Buy Online")) {
  170.             // line 47
  171.             echo "
  172. \t\t";
  173.             // line 49
  174.             echo "\t\t";
  175.             $this->loadTemplate("includes/social-share.html.twig""content/tmpl/post-single.html.twig"49)->display($context);
  176.             // line 50
  177.             echo "
  178. \t\t";
  179.             // line 52
  180.             echo "\t\t";
  181.             if (((isset($context["site_code"]) || array_key_exists("site_code"$context) ? $context["site_code"] : (function () { throw new RuntimeError('Variable "site_code" does not exist.'52$this->source); })()) == twig_constant("App\\Entity\\Content::SITE_AAR"))) {
  182.                 // line 53
  183.                 echo "\t\t\t";
  184.                 $this->loadTemplate("includes/post-categories_aar.html.twig""content/tmpl/post-single.html.twig"53)->display($context);
  185.                 // line 54
  186.                 echo "\t\t";
  187.             }
  188.             // line 55
  189.             echo "\t\t";
  190.             // line 57
  191.             echo "\t\t";
  192.             if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["meta"]) || array_key_exists("meta"$context) ? $context["meta"] : (function () { throw new RuntimeError('Variable "meta" does not exist.'57$this->source); })()), "recommended", [], "any"falsefalsefalse57)) > 0)) {
  193.                 // line 58
  194.                 echo "\t\t\t<hr>
  195. \t\t\t<h2>
  196. \t\t\t\tRecommended For You
  197. \t\t\t</h2>
  198. \t\t\t<div class=\"rec-grid\">
  199. \t\t\t\t";
  200.                 // line 63
  201.                 $context['_parent'] = $context;
  202.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["meta"]) || array_key_exists("meta"$context) ? $context["meta"] : (function () { throw new RuntimeError('Variable "meta" does not exist.'63$this->source); })()), "recommended", [], "any"falsefalsefalse63));
  203.                 foreach ($context['_seq'] as $context["_key"] => $context["rec"]) {
  204.                     // line 64
  205.                     echo "\t\t\t\t\t<a href=\"";
  206.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["rec"], "getURL", [], "method"falsefalsefalse64), "html"nulltrue);
  207.                     echo "\" class=\"no-track\">
  208. \t\t\t\t\t\t<div class=\"card\">
  209. \t\t\t\t\t\t\t";
  210.                     // line 76
  211.                     echo "
  212. \t\t\t\t\t\t\t";
  213.                     // line 78
  214.                     echo twig_get_attribute($this->env$this->source$context["rec"], "getFeaturedImageTag", ["card-img-top""max-height: 450px"], "method"falsefalsefalse78);
  215.                     echo "
  216. \t\t\t\t\t\t\t<div class=\"card-body\">
  217. \t\t\t\t\t\t\t\t<p class=\"card-title\" style=\"font-weight: bold\">
  218. \t\t\t\t\t\t\t\t\t";
  219.                     // line 81
  220.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["rec"], "title", [], "any"falsefalsefalse81), "html"nulltrue);
  221.                     echo "
  222. \t\t\t\t\t\t\t\t</p>
  223. \t\t\t\t\t\t\t\tRead More ...
  224. \t\t\t\t\t\t\t</div>
  225. \t\t\t\t\t\t</div>
  226. \t\t\t\t\t</a>
  227. \t\t\t\t";
  228.                 }
  229.                 $_parent $context['_parent'];
  230.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['rec'], $context['_parent'], $context['loop']);
  231.                 $context array_intersect_key($context$_parent) + $_parent;
  232.                 // line 88
  233.                 echo "\t\t\t</div>
  234. \t\t";
  235.             }
  236.             // line 90
  237.             echo "\t\t";
  238.             // line 91
  239.             echo "\t\t";
  240.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\RCS\\ContentController::comment", ["content" =>             // line 93
  241. (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'93$this->source); })())]));
  242.             // line 95
  243.             echo "
  244. \t";
  245.         }
  246.         // line 98
  247.         echo "
  248. \t<style>
  249. \t\t.rec-grid {
  250. \t\t\tdisplay: grid;
  251. \t\t\tgrid-template: 'a b c';
  252. \t\t\tgap: 15px;
  253. \t\t}
  254. \t\t.card {
  255. \t\t\tcursor: pointer;
  256. \t\t\ttransition: 1s cubic-bezier(0.075, 0.82, 0.165, 1);
  257. \t\t}
  258. \t\t.card:hover {
  259. \t\t\tbox-shadow: 9px 14px 20px 0 #00000012;
  260. \t\t}
  261. \t\t@media only screen and (max-width: 992px) {
  262. \t\t\t.rec-grid {
  263. \t\t\t\tgrid-template: 'a';
  264. \t\t\t}
  265. \t\t\t.card-title{
  266. \t\t\t\tfont-size: small;
  267. \t\t\t}
  268. \t\t\t.rec-grid a:not(:first-child){
  269. \t\t\t\tdisplay: none;
  270. \t\t\t}
  271. \t\t}
  272. \t</style>
  273. ";
  274.         
  275.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  276.         
  277.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  278.     }
  279.     public function getTemplateName()
  280.     {
  281.         return "content/tmpl/post-single.html.twig";
  282.     }
  283.     public function isTraitable()
  284.     {
  285.         return false;
  286.     }
  287.     public function getDebugInfo()
  288.     {
  289.         return array (  266 => 98,  261 => 95,  259 => 93,  257 => 91,  255 => 90,  251 => 88,  238 => 81,  232 => 78,  228 => 76,  221 => 64,  217 => 63,  210 => 58,  207 => 57,  205 => 55,  202 => 54,  199 => 53,  196 => 52,  193 => 50,  190 => 49,  187 => 47,  185 => 46,  182 => 45,  180 => 44,  177 => 43,  174 => 42,  168 => 40,  165 => 39,  163 => 38,  160 => 37,  157 => 36,  151 => 34,  148 => 33,  146 => 32,  143 => 31,  140 => 30,  134 => 28,  131 => 27,  129 => 26,  123 => 23,  119 => 21,  116 => 20,  110 => 18,  107 => 17,  105 => 16,  99 => 14,  97 => 13,  93 => 11,  89 => 10,  84 => 9,  78 => 8,  75 => 7,  73 => 6,  68 => 5,  58 => 4,  35 => 1,);
  290.     }
  291.     public function getSourceContext()
  292.     {
  293.         return new Source("{% extends \"1-col-sidebar.html.twig\" %}
  294. {# single post #}
  295. {% block column %}
  296. \t<h1 class=\"post-title\">{{ content.title }}</h1>
  297. \t{% if content.getFeaturedImageTag() is not empty %}
  298. \t\t<div class=\"post-thumbnail\">
  299. \t{% if content.getMediaURL() %}<a href=\"{{content.getMediaURL()}}\">{% endif %}
  300. \t\t\t{{ content.getFeaturedImageTag(\"\", \"max-height: 450px\")|raw }}
  301. \t\t{% if content.getMediaURL() %}</a>{% endif %}
  302. \t\t</div>
  303. \t{% endif %}
  304. \t{#{{ content.publishedat | date(\"F j, Y\") }}#}
  305. \t{{ content.publishedat | date | rcsDateFormat }}
  306. \t{% if content.getIncludeAuthorByline() and content.getAuthor() %}
  307. \t\t{% if content.getAuthor().getByline() %}
  308. \t\t\t<p>{{content.getAuthor().getByline()}}</p>
  309. \t\t{% endif %}
  310. \t{% endif %}
  311. \t<div class=\"post--content\">
  312. \t\t{{ content.getContentFull() | wordpress | raw }}
  313. \t</div>
  314. \t{% if content.getIncludeCustomerCallToAction() and content.getPrimaryCustomer() %}
  315. \t\t{% if content.getPrimaryCustomer().getCallToAction() %}
  316. \t\t\t{{content.getPrimaryCustomer().getCallToAction() | wordpress | raw }}
  317. \t\t{% endif %}
  318. \t{% endif %}
  319. \t{% if content.getIncludeAuthorBio() and content.getAuthor() %}
  320. \t\t{% if content.getAuthor().getAuthorBio() %}
  321. \t\t\t{{content.getAuthor().getAuthorBio() | wordpress | raw }}
  322. \t\t{% endif %}
  323. \t{% endif %}
  324. \t{% if content.getIncludeCustomerBio() and content.getPrimaryCustomer() %}
  325. \t\t{% if content.getPrimaryCustomer().getBio() %}
  326. \t\t\t{{content.getPrimaryCustomer().getBio() | wordpress | raw }}
  327. \t\t{% endif %}
  328. \t{% endif %}
  329. \t{% set category = content.category %}
  330. \t{% if category != \"Buy Online\" %}
  331. \t\t{#social share buttons#}
  332. \t\t{% include \"includes/social-share.html.twig\" %}
  333. \t\t{# AAR categories #}
  334. \t\t{% if site_code == constant(\"App\\\\Entity\\\\Content::SITE_AAR\") %}
  335. \t\t\t{% include \"includes/post-categories_aar.html.twig\" %}
  336. \t\t{% endif %}
  337. \t\t{#count:
  338. \t\t{{meta.recommended|length}}#}
  339. \t\t{% if meta.recommended|length > 0 %}
  340. \t\t\t<hr>
  341. \t\t\t<h2>
  342. \t\t\t\tRecommended For You
  343. \t\t\t</h2>
  344. \t\t\t<div class=\"rec-grid\">
  345. \t\t\t\t{% for rec in meta.recommended %}
  346. \t\t\t\t\t<a href=\"{{ rec.getURL() }}\" class=\"no-track\">
  347. \t\t\t\t\t\t<div class=\"card\">
  348. \t\t\t\t\t\t\t{# {% if rec.hot %}
  349. \t\t\t\t\t\t\t\t<div style=\"    text-align: center;
  350. \t\t\t\t\t\t\t\t\t\t    font-size: large;
  351. \t\t\t\t\t\t\t\t\t\t    font-weight: bolder;
  352. \t\t\t\t\t\t\t\t\t\t    background: #42465691;\">
  353. \t\t\t\t\t\t\t\t\t<marquee>fTRENDING</marquee>
  354. \t\t\t\t\t\t\t\t</div>
  355. \t\t\t\t\t\t\t{% endif %} #}
  356. \t\t\t\t\t\t\t{{ rec.getFeaturedImageTag(\"card-img-top\", \"max-height: 450px\")|raw }}
  357. \t\t\t\t\t\t\t<div class=\"card-body\">
  358. \t\t\t\t\t\t\t\t<p class=\"card-title\" style=\"font-weight: bold\">
  359. \t\t\t\t\t\t\t\t\t{{rec.title}}
  360. \t\t\t\t\t\t\t\t</p>
  361. \t\t\t\t\t\t\t\tRead More ...
  362. \t\t\t\t\t\t\t</div>
  363. \t\t\t\t\t\t</div>
  364. \t\t\t\t\t</a>
  365. \t\t\t\t{% endfor  %}
  366. \t\t\t</div>
  367. \t\t{% endif %}
  368. \t\t{# comments #}
  369. \t\t{{ render(controller(
  370. \t\t\t'App\\\\Controller\\\\RCS\\\\ContentController::comment',
  371. \t\t\t{ 'content': content }
  372. \t\t   ))
  373. \t\t}}
  374. \t{% endif %}
  375. \t<style>
  376. \t\t.rec-grid {
  377. \t\t\tdisplay: grid;
  378. \t\t\tgrid-template: 'a b c';
  379. \t\t\tgap: 15px;
  380. \t\t}
  381. \t\t.card {
  382. \t\t\tcursor: pointer;
  383. \t\t\ttransition: 1s cubic-bezier(0.075, 0.82, 0.165, 1);
  384. \t\t}
  385. \t\t.card:hover {
  386. \t\t\tbox-shadow: 9px 14px 20px 0 #00000012;
  387. \t\t}
  388. \t\t@media only screen and (max-width: 992px) {
  389. \t\t\t.rec-grid {
  390. \t\t\t\tgrid-template: 'a';
  391. \t\t\t}
  392. \t\t\t.card-title{
  393. \t\t\t\tfont-size: small;
  394. \t\t\t}
  395. \t\t\t.rec-grid a:not(:first-child){
  396. \t\t\t\tdisplay: none;
  397. \t\t\t}
  398. \t\t}
  399. \t</style>
  400. {% endblock %}
  401. ""content/tmpl/post-single.html.twig""/var/www/vhosts/rooferscoffeeshop.com/staging.rooferscoffeeshop.com/rcs-website/templates/content/tmpl/post-single.html.twig");
  402.     }
  403. }