var/cache/dev/twig/17/170198146fdb2fff174a46ef04c0cb78.php line 34

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/1-col-sidebar.html.twig */
  14. class __TwigTemplate_fb31c5e5988e08e61bbf19c6515adbae 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->parent false;
  23.         $this->blocks = [
  24.             'bottom' => [$this'block_bottom'],
  25.         ];
  26.     }
  27.     protected function doDisplay(array $context, array $blocks = [])
  28.     {
  29.         $macros $this->macros;
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/tmpl/1-col-sidebar.html.twig"));
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/tmpl/1-col-sidebar.html.twig"));
  34.         // line 2
  35.         echo "<div class=\"container content\">
  36. \t<div class=\"row\">
  37. \t\t<div class=\"col-12 col-md-9\">
  38. \t\t\t";
  39.         // line 6
  40.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Master\\ContentController::pinnedCurtainAd", ["base_url" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 9
  41. (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'9$this->source); })()), "request", [], "any"falsefalsefalse9), "getSchemeAndHttpHost", [], "method"falsefalsefalse9), "uri" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 10
  42. (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'10$this->source); })()), "request", [], "any"falsefalsefalse10), "getRequestUri", [], "method"falsefalsefalse10), "current_route" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 11
  43. (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'11$this->source); })()), "request", [], "any"falsefalsefalse11), "attributes", [], "any"falsefalsefalse11), "get", ["_route"], "method"falsefalsefalse11)]));
  44.         // line 14
  45.         echo "
  46. \t\t";
  47.         // line 81
  48.         echo "
  49. \t\t\t";
  50.         // line 83
  51.         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.'83$this->source); })()), "getShowTitle", [], "method"falsefalsefalse83)) {
  52.             // line 84
  53.             echo "\t\t\t\t<h1>";
  54.             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.'84$this->source); })()), "getTitle", [], "method"falsefalsefalse84);
  55.             echo "</h1>
  56. \t\t\t";
  57.         }
  58.         // line 86
  59.         echo "
  60. \t\t\t";
  61.         // line 88
  62.         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.'88$this->source); })()), "getFeaturedImageTag", [], "method"falsefalsefalse88)) {
  63.             // line 89
  64.             echo "\t\t\t\t";
  65.             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.'89$this->source); })()), "getMediaURL", [], "method"falsefalsefalse89)) {
  66.                 echo "<a href=\"";
  67.                 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.'89$this->source); })()), "getMediaURL", [], "method"falsefalsefalse89), "html"nulltrue);
  68.                 echo "\">";
  69.             }
  70.             // line 90
  71.             echo "\t\t\t\t\t";
  72.             if ((array_key_exists("site_code"$context) && ((isset($context["site_code"]) || array_key_exists("site_code"$context) ? $context["site_code"] : (function () { throw new RuntimeError('Variable "site_code" does not exist.'90$this->source); })()) == twig_constant("App\\Entity\\Content::SITE_AAR")))) {
  73.                 // line 91
  74.                 echo "\t\t\t\t\t\t";
  75.                 // line 92
  76.                 echo "\t\t\t\t\t\t<div class=\"post-thumbnail\">
  77. \t\t\t\t\t\t\t";
  78.                 // line 93
  79.                 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.'93$this->source); })()), "getFeaturedImageTag", ["""max-height: 450px"], "method"falsefalsefalse93);
  80.                 echo "
  81. \t\t\t\t\t\t</div>
  82. \t\t\t\t\t";
  83.             } else {
  84.                 // line 96
  85.                 echo "\t\t\t\t\t\t";
  86.                 // line 97
  87.                 echo "\t\t\t\t\t\t";
  88.                 if ((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.'97$this->source); })()), "request", [], "any"falsefalsefalse97), "attributes", [], "any"falsefalsefalse97), "get", ["_route"], "method"falsefalsefalse97) == "ebook")) {
  89.                     // line 98
  90.                     echo "\t\t\t\t\t\t\t";
  91.                     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.'98$this->source); })()), "getFeaturedImageTag", ["display-block""max-width: 40%"], "method"falsefalsefalse98);
  92.                     echo "
  93. \t\t\t\t\t\t";
  94.                 } else {
  95.                     // line 100
  96.                     echo "\t\t\t\t\t\t\t";
  97.                     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.'100$this->source); })()), "getFeaturedImageTag", ["display-block"""], "method"falsefalsefalse100);
  98.                     echo "
  99. \t\t\t\t\t\t";
  100.                 }
  101.                 // line 102
  102.                 echo "\t\t\t\t\t";
  103.             }
  104.             // line 103
  105.             echo "\t\t\t\t\t";
  106.             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.'103$this->source); })()), "getMediaURL", [], "method"falsefalsefalse103)) {
  107.                 echo "</a>";
  108.             }
  109.             // line 104
  110.             echo "\t\t\t";
  111.         }
  112.         // line 105
  113.         echo "
  114. \t\t\t";
  115.         // line 107
  116.         echo "\t\t\t";
  117.         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.'107$this->source); })()), "getContentFull", [], "method"falsefalsefalse107))) {
  118.             // line 108
  119.             echo "\t\t\t\t";
  120.             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.'108$this->source); })()), "getContentFull", [], "method"falsefalsefalse108));
  121.             echo "
  122. \t\t\t";
  123.         }
  124.         // line 110
  125.         echo "
  126. \t\t\t";
  127.         // line 112
  128.         echo "\t\t\t";
  129.         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.'112$this->source); })()), "getContentBuilder", [], "method"falsefalsefalse112) && (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.'112$this->source); })()), "getContentBuilder", [], "method"falsefalsefalse112) != "{}"))) {
  130.             // line 113
  131.             echo "\t\t\t\t";
  132.             echo $this->extensions['App\Twig\RCSExtension']->builder(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.'113$this->source); })()), "getContentBuilder", [], "method"falsefalsefalse113));
  133.             echo "
  134. \t\t\t";
  135.         }
  136.         // line 115
  137.         echo "
  138. \t\t\t";
  139.         // line 117
  140.         echo "\t\t\t";
  141.         $context["page"] = (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'117$this->source); })());
  142.         // line 118
  143.         echo "\t\t\t";
  144.         $context["modules"] = 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.'118$this->source); })()), "getContentMetaValueByKey", ["mtm_content_modules"], "method"falsefalsefalse118);
  145.         // line 119
  146.         echo "\t\t\t";
  147.         if ( !twig_test_empty((isset($context["modules"]) || array_key_exists("modules"$context) ? $context["modules"] : (function () { throw new RuntimeError('Variable "modules" does not exist.'119$this->source); })()))) {
  148.             // line 120
  149.             echo "\t\t\t\t";
  150.             // line 121
  151.             echo "\t\t\t\t";
  152.             $context["modules"] = $this->extensions['App\Twig\RCSExtension']->unserialize((isset($context["modules"]) || array_key_exists("modules"$context) ? $context["modules"] : (function () { throw new RuntimeError('Variable "modules" does not exist.'121$this->source); })()));
  153.             // line 122
  154.             echo "\t\t\t\t";
  155.             $this->loadTemplate("content/tmpl/mtm-module-loop.html.twig""content/tmpl/1-col-sidebar.html.twig"122)->display($context);
  156.             // line 123
  157.             echo "\t\t\t";
  158.         }
  159.         // line 124
  160.         echo "
  161. \t\t\t";
  162.         // line 126
  163.         echo "\t\t\t";
  164.         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.'126$this->source); })()), "getType", [], "method"falsefalsefalse126) == twig_constant("App\\Entity\\Content::THE_HUB"))) {
  165.             // line 127
  166.             echo "\t\t\t\t";
  167.             $context["videoLink"] = 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.'127$this->source); })()), "getContentMetaValueByKey", ["rcs_learning_center_video"], "method"falsefalsefalse127);
  168.             // line 128
  169.             echo "\t\t\t\t";
  170.             if ( !twig_test_empty((isset($context["videoLink"]) || array_key_exists("videoLink"$context) ? $context["videoLink"] : (function () { throw new RuntimeError('Variable "videoLink" does not exist.'128$this->source); })()))) {
  171.                 // line 129
  172.                 echo "\t\t\t\t\t<p>
  173. \t\t\t\t\t\t<a href=\"";
  174.                 // line 130
  175.                 echo twig_escape_filter($this->env, (isset($context["videoLink"]) || array_key_exists("videoLink"$context) ? $context["videoLink"] : (function () { throw new RuntimeError('Variable "videoLink" does not exist.'130$this->source); })()), "html"nulltrue);
  176.                 echo "\">
  177. \t\t\t\t\t\t\t<i class=\"fa fa-play-circle\"></i>
  178. \t\t\t\t\t\t\tClick here to view the video.</a>
  179. \t\t\t\t\t</p>
  180. \t\t\t\t";
  181.             }
  182.             // line 135
  183.             echo "\t\t\t\t";
  184.             // line 136
  185.             echo "\t\t\t";
  186.         }
  187.         // line 137
  188.         echo "
  189. \t\t\t";
  190.         // line 139
  191.         echo "\t\t\t";
  192.         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.'139$this->source); })()), "getType", [], "method"falsefalsefalse139) == twig_constant("App\\Entity\\Content::WEBINAR"))) {
  193.             // line 140
  194.             echo "\t\t\t\t";
  195.             $context["webinarLink"] = 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.'140$this->source); })()), "getContentMetaValueByKey", ["webinar_hostandguest"], "method"falsefalsefalse140);
  196.             // line 141
  197.             echo "\t\t\t\t";
  198.             if ( !twig_test_empty((isset($context["webinarLink"]) || array_key_exists("webinarLink"$context) ? $context["webinarLink"] : (function () { throw new RuntimeError('Variable "webinarLink" does not exist.'141$this->source); })()))) {
  199.                 // line 142
  200.                 echo "\t\t\t\t\t";
  201.                 echo (isset($context["webinarLink"]) || array_key_exists("webinarLink"$context) ? $context["webinarLink"] : (function () { throw new RuntimeError('Variable "webinarLink" does not exist.'142$this->source); })());
  202.                 echo "
  203. \t\t\t\t";
  204.             }
  205.             // line 144
  206.             echo "\t\t\t";
  207.         }
  208.         // line 145
  209.         echo "
  210. \t\t\t";
  211.         // line 146
  212.         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.'146$this->source); })()), "getScriptTag", [], "method"falsefalsefalse146)) {
  213.             // line 147
  214.             echo "\t\t\t\t";
  215.             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.'147$this->source); })()), "getScriptTag", [], "method"falsefalsefalse147));
  216.             echo "
  217. \t\t\t";
  218.         }
  219.         // line 149
  220.         echo "
  221. \t\t\t";
  222.         // line 150
  223.         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.'150$this->source); })()), "getType", [], "method"falsefalsefalse150) == twig_constant("App\\Entity\\Content::EBOOK")) || (twig_get_attribute($this->env$this->source,         // line 151
  224. (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'151$this->source); })()), "getType", [], "method"falsefalsefalse151) == twig_constant("App\\Entity\\Content::AWARD"))) || (twig_get_attribute($this->env$this->source,         // line 152
  225. (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'152$this->source); })()), "getType", [], "method"falsefalsefalse152) == twig_constant("App\\Entity\\Content::VIDEO"))) || (twig_get_attribute($this->env$this->source,         // line 153
  226. (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'153$this->source); })()), "getType", [], "method"falsefalsefalse153) == twig_constant("App\\Entity\\Content::WEBINAR"))) || (twig_get_attribute($this->env$this->source,         // line 154
  227. (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'154$this->source); })()), "getType", [], "method"falsefalsefalse154) == twig_constant("App\\Entity\\Content::CONTEST_GAMES"))) || (twig_get_attribute($this->env$this->source,         // line 155
  228. (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'155$this->source); })()), "getType", [], "method"falsefalsefalse155) == twig_constant("App\\Entity\\Content::PAGE"))) || (twig_get_attribute($this->env$this->source,         // line 156
  229. (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'156$this->source); })()), "getType", [], "method"falsefalsefalse156) == twig_constant("App\\Entity\\Content::PROMOS_REBATES"))) || (twig_get_attribute($this->env$this->source,         // line 157
  230. (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'157$this->source); })()), "getType", [], "method"falsefalsefalse157) == twig_constant("App\\Entity\\Content::R_CLUB_PERK"))) || (twig_get_attribute($this->env$this->source,         // line 158
  231. (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'158$this->source); })()), "getType", [], "method"falsefalsefalse158) == twig_constant("App\\Entity\\Content::THE_HUB"))) || (twig_get_attribute($this->env$this->source,         // line 159
  232. (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'159$this->source); })()), "getType", [], "method"falsefalsefalse159) == twig_constant("App\\Entity\\Content::SCHOLARSHIP")))) {
  233.             // line 161
  234.             echo "\t\t\t\t";
  235.             // line 162
  236.             echo "\t\t\t\t";
  237.             $this->loadTemplate("includes/social-share.html.twig""content/tmpl/1-col-sidebar.html.twig"162)->display($context);
  238.             // line 163
  239.             echo "\t\t\t";
  240.         }
  241.         // line 164
  242.         echo "
  243. \t\t\t";
  244.         // line 166
  245.         echo "\t\t\t";
  246.         $context["mtm_grid"] = 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.'166$this->source); })()), "getContentMetaValueByKey", ["mtm_grid_archive_manual"], "method"falsefalsefalse166);
  247.         // line 167
  248.         echo "\t\t\t";
  249.         $context["mtm_cols"] = 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.'167$this->source); })()), "getContentMetaValueByKey", ["mtm_grid_archive_per_row"], "method"falsefalsefalse167);
  250.         // line 168
  251.         echo "\t\t\t";
  252.         if (twig_test_empty((isset($context["mtm_cols"]) || array_key_exists("mtm_cols"$context) ? $context["mtm_cols"] : (function () { throw new RuntimeError('Variable "mtm_cols" does not exist.'168$this->source); })()))) {
  253.             // line 169
  254.             echo "\t\t\t\t";
  255.             $context["mtm_cols"] = 3;
  256.             // line 170
  257.             echo "\t\t\t";
  258.         }
  259.         // line 171
  260.         echo "\t\t\t";
  261.         if ( !twig_test_empty((isset($context["mtm_grid"]) || array_key_exists("mtm_grid"$context) ? $context["mtm_grid"] : (function () { throw new RuntimeError('Variable "mtm_grid" does not exist.'171$this->source); })()))) {
  262.             // line 172
  263.             echo "\t\t\t\t";
  264.             $context["mtm_grid"] = $this->extensions['App\Twig\RCSExtension']->unserialize((isset($context["mtm_grid"]) || array_key_exists("mtm_grid"$context) ? $context["mtm_grid"] : (function () { throw new RuntimeError('Variable "mtm_grid" does not exist.'172$this->source); })()));
  265.             // line 173
  266.             echo "\t\t\t\t";
  267.             $context["grid_count"] = 0;
  268.             // line 174
  269.             echo "\t\t\t\t<div class=\"row my-3\">
  270. \t\t\t\t\t";
  271.             // line 175
  272.             $context['_parent'] = $context;
  273.             $context['_seq'] = twig_ensure_traversable((isset($context["mtm_grid"]) || array_key_exists("mtm_grid"$context) ? $context["mtm_grid"] : (function () { throw new RuntimeError('Variable "mtm_grid" does not exist.'175$this->source); })()));
  274.             foreach ($context['_seq'] as $context["_key"] => $context["gal_id"]) {
  275.                 // line 176
  276.                 echo "\t\t\t\t\t\t";
  277.                 if ((== (isset($context["grid_count"]) || array_key_exists("grid_count"$context) ? $context["grid_count"] : (function () { throw new RuntimeError('Variable "grid_count" does not exist.'176$this->source); })()) % (isset($context["mtm_cols"]) || array_key_exists("mtm_cols"$context) ? $context["mtm_cols"] : (function () { throw new RuntimeError('Variable "mtm_cols" does not exist.'176$this->source); })()))) {
  278.                     // line 177
  279.                     echo "\t\t\t\t\t\t</div>
  280. \t\t\t\t\t\t<div class=\"row my-3\">
  281. \t\t\t\t\t\t";
  282.                 }
  283.                 // line 180
  284.                 echo "\t\t\t\t\t\t<div class=\"col-md-";
  285.                 echo twig_escape_filter($this->env, (12 / (isset($context["mtm_cols"]) || array_key_exists("mtm_cols"$context) ? $context["mtm_cols"] : (function () { throw new RuntimeError('Variable "mtm_cols" does not exist.'180$this->source); })())), "html"nulltrue);
  286.                 echo "\">
  287. \t\t\t\t\t\t\t";
  288.                 // line 181
  289.                 $context["gal"] = $this->extensions['App\Twig\RCSExtension']->get_entity("Content""old_id"$context["gal_id"]);
  290.                 // line 182
  291.                 echo "\t\t\t\t\t\t\t<a href=\"";
  292.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["gal"]) || array_key_exists("gal"$context) ? $context["gal"] : (function () { throw new RuntimeError('Variable "gal" does not exist.'182$this->source); })()), "getURL", [], "method"falsefalsefalse182), "html"nulltrue);
  293.                 echo "\">
  294. \t\t\t\t\t\t\t\t";
  295.                 // line 183
  296.                 echo twig_get_attribute($this->env$this->source, (isset($context["gal"]) || array_key_exists("gal"$context) ? $context["gal"] : (function () { throw new RuntimeError('Variable "gal" does not exist.'183$this->source); })()), "getFeaturedImageTag", [""""], "method"falsefalsefalse183);
  297.                 echo "
  298. \t\t\t\t\t\t\t\t<br/>
  299. \t\t\t\t\t\t\t\t";
  300.                 // line 185
  301.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["gal"]) || array_key_exists("gal"$context) ? $context["gal"] : (function () { throw new RuntimeError('Variable "gal" does not exist.'185$this->source); })()), "getTitle", [], "method"falsefalsefalse185), "html"nulltrue);
  302.                 echo "
  303. \t\t\t\t\t\t\t</a>
  304. \t\t\t\t\t\t</div>
  305. \t\t\t\t\t\t";
  306.                 // line 188
  307.                 $context["grid_count"] = ((isset($context["grid_count"]) || array_key_exists("grid_count"$context) ? $context["grid_count"] : (function () { throw new RuntimeError('Variable "grid_count" does not exist.'188$this->source); })()) + 1);
  308.                 // line 189
  309.                 echo "\t\t\t\t\t";
  310.             }
  311.             $_parent $context['_parent'];
  312.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['gal_id'], $context['_parent'], $context['loop']);
  313.             $context array_intersect_key($context$_parent) + $_parent;
  314.             // line 190
  315.             echo "\t\t\t\t</div>
  316. \t\t\t";
  317.         }
  318.         // line 192
  319.         echo "
  320. \t\t\t";
  321.         // line 194
  322.         $this->displayBlock('bottom'$context$blocks);
  323.         // line 197
  324.         echo "\t\t</div>
  325. \t\t<div class=\"col-md-3 d-none d-md-block\">
  326. \t\t\t";
  327.         // line 199
  328.         $this->loadTemplate("includes/sidebar.html.twig""content/tmpl/1-col-sidebar.html.twig"199)->display($context);
  329.         // line 200
  330.         echo "\t\t</div>
  331. \t</div>
  332. </div>
  333. ";
  334.         
  335.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  336.         
  337.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  338.     }
  339.     // line 194
  340.     public function block_bottom($context, array $blocks = [])
  341.     {
  342.         $macros $this->macros;
  343.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  344.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""bottom"));
  345.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  346.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""bottom"));
  347.         // line 195
  348.         echo "\t\t\t\t";
  349.         $this->loadTemplate("includes/bottom.html.twig""content/tmpl/1-col-sidebar.html.twig"195)->display($context);
  350.         // line 196
  351.         echo "\t\t\t";
  352.         
  353.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  354.         
  355.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  356.     }
  357.     public function getTemplateName()
  358.     {
  359.         return "content/tmpl/1-col-sidebar.html.twig";
  360.     }
  361.     public function isTraitable()
  362.     {
  363.         return false;
  364.     }
  365.     public function getDebugInfo()
  366.     {
  367.         return array (  370 => 196,  367 => 195,  357 => 194,  344 => 200,  342 => 199,  338 => 197,  336 => 194,  332 => 192,  328 => 190,  322 => 189,  320 => 188,  314 => 185,  309 => 183,  304 => 182,  302 => 181,  297 => 180,  292 => 177,  289 => 176,  285 => 175,  282 => 174,  279 => 173,  276 => 172,  273 => 171,  270 => 170,  267 => 169,  264 => 168,  261 => 167,  258 => 166,  255 => 164,  252 => 163,  249 => 162,  247 => 161,  245 => 159,  244 => 158,  243 => 157,  242 => 156,  241 => 155,  240 => 154,  239 => 153,  238 => 152,  237 => 151,  236 => 150,  233 => 149,  227 => 147,  225 => 146,  222 => 145,  219 => 144,  213 => 142,  210 => 141,  207 => 140,  204 => 139,  201 => 137,  198 => 136,  196 => 135,  188 => 130,  185 => 129,  182 => 128,  179 => 127,  176 => 126,  173 => 124,  170 => 123,  167 => 122,  164 => 121,  162 => 120,  159 => 119,  156 => 118,  153 => 117,  150 => 115,  144 => 113,  141 => 112,  138 => 110,  132 => 108,  129 => 107,  126 => 105,  123 => 104,  118 => 103,  115 => 102,  109 => 100,  103 => 98,  100 => 97,  98 => 96,  92 => 93,  89 => 92,  87 => 91,  84 => 90,  77 => 89,  75 => 88,  71 => 86,  65 => 84,  63 => 83,  59 => 81,  55 => 14,  53 => 11,  52 => 10,  51 => 9,  50 => 6,  44 => 2,);
  368.     }
  369.     public function getSourceContext()
  370.     {
  371.         return new Source("{# 1 column sidebar #}
  372. <div class=\"container content\">
  373. \t<div class=\"row\">
  374. \t\t<div class=\"col-12 col-md-9\">
  375. \t\t\t{{ render(controller(
  376. \t\t\t\t'App\\\\Controller\\\\Master\\\\ContentController::pinnedCurtainAd',
  377. \t\t\t\t{
  378. \t\t\t\t\t'base_url': app.request.getSchemeAndHttpHost(),
  379. \t\t\t\t\t'uri': app.request.getRequestUri(),
  380. \t\t\t\t\t'current_route': app.request.attributes.get('_route')
  381. \t\t\t\t}
  382. \t\t\t\t))
  383. \t\t\t}}
  384. \t\t{#
  385. \t\t\t{% set current_route = app.request.attributes.get('_route') %}
  386. \t\t\t{% if site_code == constant(\"App\\\\Entity\\\\Content::SITE_RCS\") %}
  387. \t\t\t\t{% if (content.getType() == constant(\"App\\\\Entity\\\\Content::THE_HUB\") or content.getType() == constant(\"App\\\\Entity\\\\Content::WEBINAR\") or content.getType() == constant(\"App\\\\Entity\\\\Content::EBOOK\") or content.getType() == constant(\"App\\\\Entity\\\\Content::VIDEO\")) %}
  388. \t\t\t\t\t{% include  \"includes/curtain-ads/rlw.html.twig\" %}
  389. \t\t\t\t{% endif %}
  390. \t\t\t\t{% if (
  391. \t\t\t\t(app.request.pathinfo == '/rcs-influencers') 
  392. \t\t\t\tor (app.request.pathinfo == '/rlw-news-header') 
  393. \t\t\t\tor (app.request.pathinfo == '/roofing-galleries') 
  394. \t\t\t\tor (app.request.pathinfo == '/news-room') 
  395. \t\t\t\tor (app.request.pathinfo == '/roofing-galleries') 
  396. \t\t\t\tor (app.request.pathinfo == '/rcs-weekly-newsletters-week-review') 
  397. \t\t\t\tor (app.request.pathinfo == '/roofing-galleries') 
  398. \t\t\t\tor (app.request.pathinfo == '/trends-report-results')
  399. \t\t\t\tor (app.request.pathinfo == '/forum-news-header')) %}
  400. \t\t\t\t\t{% include  \"includes/curtain-ads/newForum.html.twig\" %}
  401. \t\t\t\t{% endif %}
  402. \t\t\t\t{% if ((app.request.pathinfo == '/what-is-r-club') 
  403. \t\t\t\tor (app.request.pathinfo == '/members-only') 
  404. \t\t\t\tor (app.request.pathinfo == '/consulting') 
  405. \t\t\t\tor (app.request.pathinfo == '/new-club-member') 
  406. \t\t\t\tor (app.request.pathinfo == '/rcs-club-sign-up') 
  407. \t\t\t\tor (app.request.pathinfo == '/handy-forms') 
  408. \t\t\t\tor (app.request.pathinfo == '/sign-up') 
  409. \t\t\t\tor (app.request.pathinfo == '/roofers-safety-information')
  410. \t\t\t\tor (app.request.pathinfo == '/coffee-break')
  411. \t\t\t\tor (app.request.pathinfo == '/roofer-of-the-month')
  412. \t\t\t\tor current_route == \"r-club-perk\"
  413. \t\t\t\t) %}
  414. \t\t\t\t\t{% include  \"includes/curtain-ads/rclub.html.twig\" %}
  415. \t\t\t\t{% endif %}
  416. \t\t\t\t{ # information on section # }
  417. \t\t\t\t{% if (
  418. \t\t\t\t\t(app.request.pathinfo == '/opportunities') or (app.request.pathinfo == '/promos-rebates') 
  419. \t\t\t\tor \t(app.request.pathinfo == '/buy-online') or (app.request.pathinfo == '/quick-quiz')
  420. \t\t\t\tor \t(app.request.pathinfo == '/contests-and-games') or (app.request.pathinfo == '/take-our-survey')
  421. \t\t\t\tor \t(app.request.pathinfo == '/rcs-photo-contest') or (app.request.pathinfo == '/information-on')
  422. \t\t\t\tor \t(app.request.pathinfo == '/roofing') or (app.request.pathinfo == '/information-on')
  423. \t\t\t\tor \t(app.request.pathinfo == '/product-information/roofing-technology') or (app.request.pathinfo == '/scholarships')
  424. \t\t\t\tor \t(app.request.pathinfo == '/vocational-schools') or (app.request.pathinfo == '/events')
  425. \t\t\t\tor \t(app.request.pathinfo == '/add-us') or (app.request.pathinfo == '/building-owners')
  426. \t\t\t\tor \t(app.request.pathinfo == '/safety-tip-of-the-week') or (app.request.pathinfo == '/product-information')
  427. \t\t\t\tor \t(app.request.pathinfo == '/training-resources') or (app.request.pathinfo == '/capacitacion-en-espanol')
  428. \t\t\t\tor \t(app.request.pathinfo == '/advocacy') or (app.request.pathinfo == '/trade-roofing-associations')
  429. \t\t\t\tor \t(app.request.pathinfo == '/rcs-cares') or (app.request.pathinfo == '/look-up')
  430. \t\t\t\tor \t(app.request.pathinfo == '/join-roofing-industry') or (app.request.pathinfo == '/awards')
  431. \t\t\t\tor \t(app.request.pathinfo == '/giving-back') or (app.request.pathinfo == '/veterans')
  432. \t\t\t\tor \t(app.request.pathinfo == '/about-us') or (app.request.pathinfo == '/advertise-on-rcs')
  433. \t\t\t\tor \t(app.request.pathinfo == '/canada-content') or (app.request.pathinfo == '/rcs-en-espanol')
  434. \t\t\t\tor \t(app.request.pathinfo == '/meet-the-team') or (app.request.pathinfo == '/partners')
  435. \t\t\t\tor \t(app.request.pathinfo == '/how-tos') or (app.request.pathinfo == '/contact-us')
  436. \t\t\t\tor \t(current_route == 'promos') or (current_route == 'contests')
  437. \t\t\t\tor \t(current_route == 'scholarship') or (current_route == 'event')
  438. \t\t\t\tor \t(current_route == 'award')
  439. \t\t\t\t) %}
  440. \t\t\t\t\t{% include  \"includes/curtain-ads/information.html.twig\" %}
  441. \t\t\t\t{% endif %}
  442. \t\t\t{% endif %}
  443. \t\t#}
  444. \t\t\t{% if content.getShowTitle() %}
  445. \t\t\t\t<h1>{{ content.getTitle() | raw }}</h1>
  446. \t\t\t{% endif %}
  447. \t\t\t{% if content.getFeaturedImageTag() %}
  448. \t\t\t\t{% if content.getMediaURL() %}<a href=\"{{content.getMediaURL()}}\">{% endif %}
  449. \t\t\t\t\t{% if site_code is defined and site_code == constant(\"App\\\\Entity\\\\Content::SITE_AAR\") %}
  450. \t\t\t\t\t\t{# center image on AAR #}
  451. \t\t\t\t\t\t<div class=\"post-thumbnail\">
  452. \t\t\t\t\t\t\t{{ content.getFeaturedImageTag(\"\", \"max-height: 450px\")|raw }}
  453. \t\t\t\t\t\t</div>
  454. \t\t\t\t\t{% else %}
  455. \t\t\t\t\t\t{#{% if current_route == 'ebook' %}#}
  456. \t\t\t\t\t\t{% if app.request.attributes.get('_route') == 'ebook' %}
  457. \t\t\t\t\t\t\t{{ content.getFeaturedImageTag(\"display-block\",\"max-width: 40%\")|raw }}
  458. \t\t\t\t\t\t{% else %}
  459. \t\t\t\t\t\t\t{{ content.getFeaturedImageTag(\"display-block\",\"\")|raw }}
  460. \t\t\t\t\t\t{% endif %}
  461. \t\t\t\t\t{% endif %}
  462. \t\t\t\t\t{% if content.getMediaURL() %}</a>{% endif %}
  463. \t\t\t{% endif %}
  464. \t\t\t{# show full content #}
  465. \t\t\t{% if content.getContentFull() is not empty %}
  466. \t\t\t\t{{ content.getContentFull() | wordpress | raw }}
  467. \t\t\t{% endif %}
  468. \t\t\t{# show builder content #}
  469. \t\t\t{% if content.getContentBuilder() and content.getContentBuilder() != '{}' %}
  470. \t\t\t\t{{ content.getContentBuilder() | builder | raw }}
  471. \t\t\t{% endif %}
  472. \t\t\t{# show module content #}
  473. \t\t\t{% set page = content %}
  474. \t\t\t{% set modules = content.getContentMetaValueByKey(\"mtm_content_modules\") %}
  475. \t\t\t{% if modules is not empty %}
  476. \t\t\t\t{# { modules } #}
  477. \t\t\t\t{% set modules = unserialize(modules) %}
  478. \t\t\t\t{% include \"content/tmpl/mtm-module-loop.html.twig\" %}
  479. \t\t\t{% endif %}
  480. \t\t\t{# the hub link types - TODO - find better place for these exceptions #}
  481. \t\t\t{% if content.getType() == constant(\"App\\\\Entity\\\\Content::THE_HUB\") %}
  482. \t\t\t\t{% set videoLink = content.getContentMetaValueByKey(\"rcs_learning_center_video\") %}
  483. \t\t\t\t{% if videoLink is not empty %}
  484. \t\t\t\t\t<p>
  485. \t\t\t\t\t\t<a href=\"{{ videoLink }}\">
  486. \t\t\t\t\t\t\t<i class=\"fa fa-play-circle\"></i>
  487. \t\t\t\t\t\t\tClick here to view the video.</a>
  488. \t\t\t\t\t</p>
  489. \t\t\t\t{% endif %}
  490. \t\t\t\t{#social share buttons#}
  491. \t\t\t{% endif %}
  492. \t\t\t{# webinar links - TODO - find better place for these exceptions #}
  493. \t\t\t{% if content.getType() == constant(\"App\\\\Entity\\\\Content::WEBINAR\") %}
  494. \t\t\t\t{% set webinarLink = content.getContentMetaValueByKey(\"webinar_hostandguest\") %}
  495. \t\t\t\t{% if webinarLink is not empty %}
  496. \t\t\t\t\t{{ webinarLink | raw }}
  497. \t\t\t\t{% endif %}
  498. \t\t\t{% endif %}
  499. \t\t\t{% if content.getScriptTag() %}
  500. \t\t\t\t{{ content.getScriptTag() | wordpress | raw }}
  501. \t\t\t{% endif %}
  502. \t\t\t{% if content.getType() == constant(\"App\\\\Entity\\\\Content::EBOOK\") or 
  503.                 content.getType() == constant(\"App\\\\Entity\\\\Content::AWARD\") or 
  504.                 content.getType() == constant(\"App\\\\Entity\\\\Content::VIDEO\") or 
  505.                 content.getType() == constant(\"App\\\\Entity\\\\Content::WEBINAR\") or
  506.                 content.getType() == constant(\"App\\\\Entity\\\\Content::CONTEST_GAMES\") or
  507.                 content.getType() == constant(\"App\\\\Entity\\\\Content::PAGE\") or
  508.                 content.getType() == constant(\"App\\\\Entity\\\\Content::PROMOS_REBATES\") or 
  509.                 content.getType() == constant(\"App\\\\Entity\\\\Content::R_CLUB_PERK\") or
  510.                 content.getType() == constant(\"App\\\\Entity\\\\Content::THE_HUB\") or
  511.                 content.getType() == constant(\"App\\\\Entity\\\\Content::SCHOLARSHIP\")
  512.                  %}
  513. \t\t\t\t{#social share buttons#}
  514. \t\t\t\t{% include \"includes/social-share.html.twig\" %}
  515. \t\t\t{% endif %}
  516. \t\t\t{# /partner-galleries #}
  517. \t\t\t{% set mtm_grid = content.getContentMetaValueByKey(\"mtm_grid_archive_manual\") %}
  518. \t\t\t{% set mtm_cols = content.getContentMetaValueByKey(\"mtm_grid_archive_per_row\") %}
  519. \t\t\t{% if mtm_cols is empty %}
  520. \t\t\t\t{% set mtm_cols = 3 %}
  521. \t\t\t{% endif %}
  522. \t\t\t{% if mtm_grid is not empty %}
  523. \t\t\t\t{% set mtm_grid = unserialize(mtm_grid) %}
  524. \t\t\t\t{% set grid_count = 0 %}
  525. \t\t\t\t<div class=\"row my-3\">
  526. \t\t\t\t\t{% for gal_id in mtm_grid %}
  527. \t\t\t\t\t\t{% if grid_count is divisible by(mtm_cols) %}
  528. \t\t\t\t\t\t</div>
  529. \t\t\t\t\t\t<div class=\"row my-3\">
  530. \t\t\t\t\t\t{% endif %}
  531. \t\t\t\t\t\t<div class=\"col-md-{{ 12 / mtm_cols }}\">
  532. \t\t\t\t\t\t\t{% set gal = get_entity(\"Content\", \"old_id\", gal_id) %}
  533. \t\t\t\t\t\t\t<a href=\"{{ gal.getURL() }}\">
  534. \t\t\t\t\t\t\t\t{{ gal.getFeaturedImageTag(\"\",\"\")|raw }}
  535. \t\t\t\t\t\t\t\t<br/>
  536. \t\t\t\t\t\t\t\t{{ gal.getTitle() }}
  537. \t\t\t\t\t\t\t</a>
  538. \t\t\t\t\t\t</div>
  539. \t\t\t\t\t\t{% set grid_count = grid_count + 1 %}
  540. \t\t\t\t\t{% endfor %}
  541. \t\t\t\t</div>
  542. \t\t\t{% endif %}
  543. \t\t\t{% block bottom %}
  544. \t\t\t\t{% include \"includes/bottom.html.twig\" %}
  545. \t\t\t{% endblock %}
  546. \t\t</div>
  547. \t\t<div class=\"col-md-3 d-none d-md-block\">
  548. \t\t\t{% include \"includes/sidebar.html.twig\" %}
  549. \t\t</div>
  550. \t</div>
  551. </div>
  552. ""content/tmpl/1-col-sidebar.html.twig""/var/www/vhosts/rooferscoffeeshop.com/staging.rooferscoffeeshop.com/rcs-website/templates/content/tmpl/1-col-sidebar.html.twig");
  553.     }
  554. }