var/cache/dev/twig/a8/a8af0e56ed5ea25b6d50138eec1fe4c1.php line 33

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/mtm-module-loop.html.twig */
  14. class __TwigTemplate_c20dab49ad64e38aae53627e633b6d2c 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.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/tmpl/mtm-module-loop.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/tmpl/mtm-module-loop.html.twig"));
  33.         // line 1
  34.         $context["form_attr"] = ["thankyou" => twig_get_attribute($this->env$this->source,         // line 2
  35. (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'2$this->source); })()), "getContentMetaValueByKey", ["lp_thankyou"], "method"falsefalsefalse2), "btn_text" => twig_get_attribute($this->env$this->source,         // line 3
  36. (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'3$this->source); })()), "getContentMetaValueByKey", ["lp_button"], "method"falsefalsefalse3), "btn_color" => twig_get_attribute($this->env$this->source,         // line 4
  37. (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'4$this->source); })()), "getContentMetaValueByKey", ["rcs_call_to_action_color"], "method"falsefalsefalse4)];
  38.         // line 6
  39.         echo "
  40. ";
  41.         // line 7
  42.         $context['_parent'] = $context;
  43.         $context['_seq'] = twig_ensure_traversable(range(0, (twig_length_filter($this->env, (isset($context["modules"]) || array_key_exists("modules"$context) ? $context["modules"] : (function () { throw new RuntimeError('Variable "modules" does not exist.'7$this->source); })())) - 1)));
  44.         foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  45.             // line 8
  46.             echo "    ";
  47.             // line 9
  48.             echo "    ";
  49.             $context["mod_bg"] = twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'9$this->source); })()), "getContentMetaValueByKey", [(("mtm_content_modules_" $context["i"]) . "_rcs_element_background_color")], "method"falsefalsefalse9);
  50.             // line 10
  51.             echo "    ";
  52.             $context["mod_title"] = twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'10$this->source); })()), "getContentMetaValueByKey", [(("mtm_content_modules_" $context["i"]) . "_mtm_text_area_title")], "method"falsefalsefalse10);
  53.             // line 11
  54.             echo "    ";
  55.             $context["mod_title_color"] = twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'11$this->source); })()), "getContentMetaValueByKey", [(("mtm_content_modules_" $context["i"]) . "_rcs_module_title_color")], "method"falsefalsefalse11);
  56.             // line 12
  57.             echo "    
  58.     ";
  59.             // line 14
  60.             echo "    ";
  61.             if (twig_test_empty((isset($context["mod_bg"]) || array_key_exists("mod_bg"$context) ? $context["mod_bg"] : (function () { throw new RuntimeError('Variable "mod_bg" does not exist.'14$this->source); })()))) {
  62.                 // line 15
  63.                 echo "        ";
  64.                 $context["mod_bg"] = "#fff";
  65.                 // line 16
  66.                 echo "    ";
  67.             }
  68.             // line 17
  69.             echo "    
  70.     ";
  71.             // line 18
  72.             if (twig_test_empty((isset($context["mod_title_color"]) || array_key_exists("mod_title_color"$context) ? $context["mod_title_color"] : (function () { throw new RuntimeError('Variable "mod_title_color" does not exist.'18$this->source); })()))) {
  73.                 // line 19
  74.                 echo "        ";
  75.                 $context["mod_title_color"] = "#222";
  76.                 // line 20
  77.                 echo "    ";
  78.             }
  79.             // line 21
  80.             echo "    
  81.     ";
  82.             // line 22
  83.             if ((twig_get_attribute($this->env$this->source, (isset($context["modules"]) || array_key_exists("modules"$context) ? $context["modules"] : (function () { throw new RuntimeError('Variable "modules" does not exist.'22$this->source); })()), $context["i"], [], "array"falsefalsefalse22) == "mtm_module_hero_image")) {
  84.                 // line 23
  85.                 echo "        ";
  86.                 $context["mod_subhead"] = twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'23$this->source); })()), "getContentMetaValueByKey", [(("mtm_content_modules_" $context["i"]) . "_mtm_hero_subheading")], "method"falsefalsefalse23);
  87.                 // line 24
  88.                 echo "        ";
  89.                 $context["mod_image"] = twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'24$this->source); })()), "getContentMetaValueByKey", [(("mtm_content_modules_" $context["i"]) . "_mtm_hero_image")], "method"falsefalsefalse24);
  90.                 // line 25
  91.                 echo "        
  92.         ";
  93.                 // line 26
  94.                 if (( !twig_test_empty((isset($context["mod_image"]) || array_key_exists("mod_image"$context) ? $context["mod_image"] : (function () { throw new RuntimeError('Variable "mod_image" does not exist.'26$this->source); })())) ||  !twig_test_empty((isset($context["mod_subhead"]) || array_key_exists("mod_subhead"$context) ? $context["mod_subhead"] : (function () { throw new RuntimeError('Variable "mod_subhead" does not exist.'26$this->source); })())))) {
  95.                     // line 27
  96.                     echo "            <div class=\"row\" style=\"min-height: 10px\">
  97.                 <div class=\"col-sm-12\" style=\"background: ";
  98.                     // line 28
  99.                     echo twig_escape_filter($this->env, (isset($context["mod_bg"]) || array_key_exists("mod_bg"$context) ? $context["mod_bg"] : (function () { throw new RuntimeError('Variable "mod_bg" does not exist.'28$this->source); })()), "html"nulltrue);
  100.                     echo "; ";
  101.                     if ( !twig_test_empty((isset($context["mod_image"]) || array_key_exists("mod_image"$context) ? $context["mod_image"] : (function () { throw new RuntimeError('Variable "mod_image" does not exist.'28$this->source); })()))) {
  102.                         echo " padding-bottom: 15px; ";
  103.                     }
  104.                     echo "\">
  105.             
  106.             ";
  107.                     // line 30
  108.                     $context["mod_sub"] = twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'30$this->source); })()), "getContentMetaValueByKey", [(("mtm_content_modules_" $context["i"]) . "_mtm_hero_subheading")], "method"falsefalsefalse30);
  109.                     // line 31
  110.                     echo "            ";
  111.                     if ( !twig_test_empty((isset($context["mod_image"]) || array_key_exists("mod_image"$context) ? $context["mod_image"] : (function () { throw new RuntimeError('Variable "mod_image" does not exist.'31$this->source); })()))) {
  112.                         // line 32
  113.                         echo "                ";
  114.                         $context["mod_image"] = $this->extensions['App\Twig\RCSExtension']->get_entity("Media""old_id", (isset($context["mod_image"]) || array_key_exists("mod_image"$context) ? $context["mod_image"] : (function () { throw new RuntimeError('Variable "mod_image" does not exist.'32$this->source); })()));
  115.                         // line 33
  116.                         echo "                ";
  117.                         if ( !twig_test_empty((isset($context["mod_image"]) || array_key_exists("mod_image"$context) ? $context["mod_image"] : (function () { throw new RuntimeError('Variable "mod_image" does not exist.'33$this->source); })()))) {
  118.                             // line 34
  119.                             echo "                    <img 
  120.                         class=\"mod-hero-image\"
  121.                         src=\"";
  122.                             // line 36
  123.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["mod_image"]) || array_key_exists("mod_image"$context) ? $context["mod_image"] : (function () { throw new RuntimeError('Variable "mod_image" does not exist.'36$this->source); })()), "getURL", [], "method"falsefalsefalse36), "html"nulltrue);
  124.                             echo "\"
  125.                         alt=\"";
  126.                             // line 37
  127.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["mod_image"]) || array_key_exists("mod_image"$context) ? $context["mod_image"] : (function () { throw new RuntimeError('Variable "mod_image" does not exist.'37$this->source); })()), "getTitle", [], "method"falsefalsefalse37), "html"nulltrue);
  128.                             echo "\"
  129.                         style=\"visibility: hidden; display: block;\"
  130. \t\t\t\t\t\tloading='lazy'
  131.                     />
  132.                     <img 
  133.                         class=\"mod-hero-image\"
  134.                         src=\"";
  135.                             // line 43
  136.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["mod_image"]) || array_key_exists("mod_image"$context) ? $context["mod_image"] : (function () { throw new RuntimeError('Variable "mod_image" does not exist.'43$this->source); })()), "getURL", [], "method"falsefalsefalse43), "html"nulltrue);
  137.                             echo "\"
  138.                         alt=\"";
  139.                             // line 44
  140.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["mod_image"]) || array_key_exists("mod_image"$context) ? $context["mod_image"] : (function () { throw new RuntimeError('Variable "mod_image" does not exist.'44$this->source); })()), "getTitle", [], "method"falsefalsefalse44), "html"nulltrue);
  141.                             echo "\"
  142.                         style=\"position:absolute; top: 0; left: 0; right: -15px; width: 100%;\"
  143. \t\t\t\t\t\tloading='lazy'
  144.                     />
  145.                 ";
  146.                         }
  147.                         // line 49
  148.                         echo "            ";
  149.                     }
  150.                     // line 50
  151.                     echo "            ";
  152.                     if ( !twig_test_empty((isset($context["mod_subhead"]) || array_key_exists("mod_subhead"$context) ? $context["mod_subhead"] : (function () { throw new RuntimeError('Variable "mod_subhead" does not exist.'50$this->source); })()))) {
  153.                         // line 51
  154.                         echo "                ";
  155.                         if ( !twig_test_empty((isset($context["mod_image"]) || array_key_exists("mod_image"$context) ? $context["mod_image"] : (function () { throw new RuntimeError('Variable "mod_image" does not exist.'51$this->source); })()))) {
  156.                             // line 52
  157.                             echo "                    <div style=\"padding-top: 20px;\">
  158.                 ";
  159.                         }
  160.                         // line 54
  161.                         echo "                ";
  162.                         echo $this->extensions['App\Twig\RCSExtension']->wordpress((isset($context["mod_subhead"]) || array_key_exists("mod_subhead"$context) ? $context["mod_subhead"] : (function () { throw new RuntimeError('Variable "mod_subhead" does not exist.'54$this->source); })()));
  163.                         echo "
  164.                 ";
  165.                         // line 55
  166.                         if ( !twig_test_empty((isset($context["mod_image"]) || array_key_exists("mod_image"$context) ? $context["mod_image"] : (function () { throw new RuntimeError('Variable "mod_image" does not exist.'55$this->source); })()))) {
  167.                             // line 56
  168.                             echo "                    </div>
  169.                 ";
  170.                         }
  171.                         // line 58
  172.                         echo "            ";
  173.                     }
  174.                     // line 59
  175.                     echo "                </div>
  176.             </div>
  177.         ";
  178.                 }
  179.                 // line 62
  180.                 echo "    ";
  181.             } elseif ((twig_get_attribute($this->env$this->source, (isset($context["modules"]) || array_key_exists("modules"$context) ? $context["modules"] : (function () { throw new RuntimeError('Variable "modules" does not exist.'62$this->source); })()), $context["i"], [], "array"falsefalsefalse62) == "mtm_module_single_content_area")) {
  182.                 // line 63
  183.                 echo "        ";
  184.                 $context["mod_text"] = twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'63$this->source); })()), "getContentMetaValueByKey", [(("mtm_content_modules_" $context["i"]) . "_mtm_module_text_area")], "method"falsefalsefalse63);
  185.                 // line 64
  186.                 echo "        
  187.         ";
  188.                 // line 65
  189.                 if ( !twig_test_empty((isset($context["mod_text"]) || array_key_exists("mod_text"$context) ? $context["mod_text"] : (function () { throw new RuntimeError('Variable "mod_text" does not exist.'65$this->source); })()))) {
  190.                     // line 66
  191.                     echo "        <div class=\"row\">
  192.             <div class=\"col-md-12 p-3\" style=\"background: ";
  193.                     // line 67
  194.                     echo twig_escape_filter($this->env, (isset($context["mod_bg"]) || array_key_exists("mod_bg"$context) ? $context["mod_bg"] : (function () { throw new RuntimeError('Variable "mod_bg" does not exist.'67$this->source); })()), "html"nulltrue);
  195.                     echo ";\">
  196.                 ";
  197.                     // line 68
  198.                     if ( !twig_test_empty((isset($context["mod_title"]) || array_key_exists("mod_title"$context) ? $context["mod_title"] : (function () { throw new RuntimeError('Variable "mod_title" does not exist.'68$this->source); })()))) {
  199.                         // line 69
  200.                         echo "                    <h2 
  201.                         class=\"mod-title\"
  202.                         style=\"color: ";
  203.                         // line 71
  204.                         echo twig_escape_filter($this->env, (isset($context["mod_title_color"]) || array_key_exists("mod_title_color"$context) ? $context["mod_title_color"] : (function () { throw new RuntimeError('Variable "mod_title_color" does not exist.'71$this->source); })()), "html"nulltrue);
  205.                         echo ";\"
  206.                     >";
  207.                         // line 72
  208.                         echo twig_escape_filter($this->env, (isset($context["mod_title"]) || array_key_exists("mod_title"$context) ? $context["mod_title"] : (function () { throw new RuntimeError('Variable "mod_title" does not exist.'72$this->source); })()), "html"nulltrue);
  209.                         echo "</h2>
  210.                 ";
  211.                     }
  212.                     // line 74
  213.                     echo "                ";
  214.                     if ( !twig_test_empty((isset($context["mod_text"]) || array_key_exists("mod_text"$context) ? $context["mod_text"] : (function () { throw new RuntimeError('Variable "mod_text" does not exist.'74$this->source); })()))) {
  215.                         // line 75
  216.                         echo "                    ";
  217.                         echo $this->extensions['App\Twig\RCSExtension']->wordpress((isset($context["mod_text"]) || array_key_exists("mod_text"$context) ? $context["mod_text"] : (function () { throw new RuntimeError('Variable "mod_text" does not exist.'75$this->source); })()), (isset($context["form_attr"]) || array_key_exists("form_attr"$context) ? $context["form_attr"] : (function () { throw new RuntimeError('Variable "form_attr" does not exist.'75$this->source); })()));
  218.                         echo "
  219.                 ";
  220.                     }
  221.                     // line 77
  222.                     echo "            </div>
  223.         </div>
  224.         ";
  225.                 }
  226.                 // line 80
  227.                 echo "    
  228.     ";
  229.             } elseif ((twig_get_attribute($this->env$this->source,             // line 81
  230. (isset($context["modules"]) || array_key_exists("modules"$context) ? $context["modules"] : (function () { throw new RuntimeError('Variable "modules" does not exist.'81$this->source); })()), $context["i"], [], "array"falsefalsefalse81) == "mtm_module_dual_content_area")) {
  231.                 // line 82
  232.                 echo "        ";
  233.                 $context["mod_text"] = twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'82$this->source); })()), "getContentMetaValueByKey", [(("mtm_content_modules_" $context["i"]) . "_mtm_module_text_area")], "method"falsefalsefalse82);
  234.                 // line 83
  235.                 echo "        
  236.         ";
  237.                 // line 84
  238.                 $context["mod_text2"] = twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'84$this->source); })()), "getContentMetaValueByKey", [(("mtm_content_modules_" $context["i"]) . "_mtm_module_text_area_2")], "method"falsefalsefalse84);
  239.                 // line 85
  240.                 echo "        ";
  241.                 $context["mod_bg2"] = twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'85$this->source); })()), "getContentMetaValueByKey", [(("mtm_content_modules_" $context["i"]) . "_rcs_element_background_color_2")], "method"falsefalsefalse85);
  242.                 // line 86
  243.                 echo "        ";
  244.                 $context["mod_title2"] = twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'86$this->source); })()), "getContentMetaValueByKey", [(("mtm_content_modules_" $context["i"]) . "_mtm_text_area_title_2")], "method"falsefalsefalse86);
  245.                 // line 87
  246.                 echo "        ";
  247.                 $context["mod_title_color2"] = twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'87$this->source); })()), "getContentMetaValueByKey", [(("mtm_content_modules_" $context["i"]) . "_rcs_module_title_color_2")], "method"falsefalsefalse87);
  248.                 // line 88
  249.                 echo "        
  250.         ";
  251.                 // line 89
  252.                 if (twig_test_empty((isset($context["mod_bg2"]) || array_key_exists("mod_bg2"$context) ? $context["mod_bg2"] : (function () { throw new RuntimeError('Variable "mod_bg2" does not exist.'89$this->source); })()))) {
  253.                     // line 90
  254.                     echo "            ";
  255.                     $context["mod_bg2"] = "#fff";
  256.                     // line 91
  257.                     echo "        ";
  258.                 }
  259.                 // line 92
  260.                 echo "        
  261.         ";
  262.                 // line 93
  263.                 if (twig_test_empty((isset($context["mod_title_color2"]) || array_key_exists("mod_title_color2"$context) ? $context["mod_title_color2"] : (function () { throw new RuntimeError('Variable "mod_title_color2" does not exist.'93$this->source); })()))) {
  264.                     // line 94
  265.                     echo "            ";
  266.                     $context["mod_title_color2"] = "#222";
  267.                     // line 95
  268.                     echo "        ";
  269.                 }
  270.                 // line 96
  271.                 echo "        
  272.         <div class=\"row\">
  273.             <div class=\"col-md-6 p-3\" style=\"background: ";
  274.                 // line 98
  275.                 echo twig_escape_filter($this->env, (isset($context["mod_bg"]) || array_key_exists("mod_bg"$context) ? $context["mod_bg"] : (function () { throw new RuntimeError('Variable "mod_bg" does not exist.'98$this->source); })()), "html"nulltrue);
  276.                 echo ";\">
  277.                 ";
  278.                 // line 99
  279.                 if ( !twig_test_empty((isset($context["mod_title"]) || array_key_exists("mod_title"$context) ? $context["mod_title"] : (function () { throw new RuntimeError('Variable "mod_title" does not exist.'99$this->source); })()))) {
  280.                     // line 100
  281.                     echo "                    <h2 
  282.                         class=\"mod-title\"
  283.                         style=\"color: ";
  284.                     // line 102
  285.                     echo twig_escape_filter($this->env, (isset($context["mod_title_color"]) || array_key_exists("mod_title_color"$context) ? $context["mod_title_color"] : (function () { throw new RuntimeError('Variable "mod_title_color" does not exist.'102$this->source); })()), "html"nulltrue);
  286.                     echo ";\"
  287.                     >";
  288.                     // line 103
  289.                     echo twig_escape_filter($this->env, (isset($context["mod_title"]) || array_key_exists("mod_title"$context) ? $context["mod_title"] : (function () { throw new RuntimeError('Variable "mod_title" does not exist.'103$this->source); })()), "html"nulltrue);
  290.                     echo "</h2>
  291.                 ";
  292.                 }
  293.                 // line 105
  294.                 echo "                ";
  295.                 if ( !twig_test_empty((isset($context["mod_text"]) || array_key_exists("mod_text"$context) ? $context["mod_text"] : (function () { throw new RuntimeError('Variable "mod_text" does not exist.'105$this->source); })()))) {
  296.                     // line 106
  297.                     echo "                    ";
  298.                     echo $this->extensions['App\Twig\RCSExtension']->wordpress((isset($context["mod_text"]) || array_key_exists("mod_text"$context) ? $context["mod_text"] : (function () { throw new RuntimeError('Variable "mod_text" does not exist.'106$this->source); })()), (isset($context["form_attr"]) || array_key_exists("form_attr"$context) ? $context["form_attr"] : (function () { throw new RuntimeError('Variable "form_attr" does not exist.'106$this->source); })()));
  299.                     echo "
  300.                 ";
  301.                 }
  302.                 // line 108
  303.                 echo "            </div>
  304.             <div class=\"col-md-6 p-3\" style=\"background: ";
  305.                 // line 109
  306.                 echo twig_escape_filter($this->env, (isset($context["mod_bg2"]) || array_key_exists("mod_bg2"$context) ? $context["mod_bg2"] : (function () { throw new RuntimeError('Variable "mod_bg2" does not exist.'109$this->source); })()), "html"nulltrue);
  307.                 echo ";\">
  308.                 ";
  309.                 // line 110
  310.                 if ( !twig_test_empty((isset($context["mod_title2"]) || array_key_exists("mod_title2"$context) ? $context["mod_title2"] : (function () { throw new RuntimeError('Variable "mod_title2" does not exist.'110$this->source); })()))) {
  311.                     // line 111
  312.                     echo "                    <h2 
  313.                         class=\"mod-title\"
  314.                         style=\"color: ";
  315.                     // line 113
  316.                     echo twig_escape_filter($this->env, (isset($context["mod_title_color"]) || array_key_exists("mod_title_color"$context) ? $context["mod_title_color"] : (function () { throw new RuntimeError('Variable "mod_title_color" does not exist.'113$this->source); })()), "html"nulltrue);
  317.                     echo ";\"
  318.                     >";
  319.                     // line 114
  320.                     echo twig_escape_filter($this->env, (isset($context["mod_title2"]) || array_key_exists("mod_title2"$context) ? $context["mod_title2"] : (function () { throw new RuntimeError('Variable "mod_title2" does not exist.'114$this->source); })()), "html"nulltrue);
  321.                     echo "</h2>
  322.                 ";
  323.                 }
  324.                 // line 116
  325.                 echo "                ";
  326.                 if ( !twig_test_empty((isset($context["mod_text2"]) || array_key_exists("mod_text2"$context) ? $context["mod_text2"] : (function () { throw new RuntimeError('Variable "mod_text2" does not exist.'116$this->source); })()))) {
  327.                     // line 117
  328.                     echo "                    ";
  329.                     echo $this->extensions['App\Twig\RCSExtension']->wordpress((isset($context["mod_text2"]) || array_key_exists("mod_text2"$context) ? $context["mod_text2"] : (function () { throw new RuntimeError('Variable "mod_text2" does not exist.'117$this->source); })()), (isset($context["form_attr"]) || array_key_exists("form_attr"$context) ? $context["form_attr"] : (function () { throw new RuntimeError('Variable "form_attr" does not exist.'117$this->source); })()));
  330.                     echo "
  331.                 ";
  332.                 }
  333.                 // line 119
  334.                 echo "            </div>
  335.         </div>
  336.     
  337.     ";
  338.             } elseif ((twig_get_attribute($this->env$this->source,             // line 122
  339. (isset($context["modules"]) || array_key_exists("modules"$context) ? $context["modules"] : (function () { throw new RuntimeError('Variable "modules" does not exist.'122$this->source); })()), $context["i"], [], "array"falsefalsefalse122) == "mtm_module_listgrid")) {
  340.                 // line 123
  341.                 echo "        ";
  342.                 // line 124
  343.                 echo "        ";
  344.                 $context["looping"] = true;
  345.                 // line 125
  346.                 echo "        ";
  347.                 $context['_parent'] = $context;
  348.                 $context['_seq'] = twig_ensure_traversable(range(05000));
  349.                 foreach ($context['_seq'] as $context["_key"] => $context["j"]) {
  350.                     // line 126
  351.                     echo "            ";
  352.                     if ((isset($context["looping"]) || array_key_exists("looping"$context) ? $context["looping"] : (function () { throw new RuntimeError('Variable "looping" does not exist.'126$this->source); })())) {
  353.                         // line 127
  354.                         echo "                ";
  355.                         $context["grid_heading"] = twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'127$this->source); })()), "getContentMetaValueByKey", [(((("mtm_content_modules_" $context["i"]) . "_mtm_add_list_item_") . $context["j"]) . "_mtm_list_item_heading")], "method"falsefalsefalse127);
  356.                         // line 128
  357.                         echo "                ";
  358.                         $context["grid_link"] = twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'128$this->source); })()), "getContentMetaValueByKey", [(((("mtm_content_modules_" $context["i"]) . "_mtm_add_list_item_") . $context["j"]) . "_mtm_list_item_link")], "method"falsefalsefalse128);
  359.                         // line 129
  360.                         echo "                ";
  361.                         $context["grid_image"] = twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'129$this->source); })()), "getContentMetaValueByKey", [(((("mtm_content_modules_" $context["i"]) . "_mtm_add_list_item_") . $context["j"]) . "_mtm_list_item_image")], "method"falsefalsefalse129);
  362.                         // line 130
  363.                         echo "                
  364.                 ";
  365.                         // line 131
  366.                         if (twig_test_empty((isset($context["grid_heading"]) || array_key_exists("grid_heading"$context) ? $context["grid_heading"] : (function () { throw new RuntimeError('Variable "grid_heading" does not exist.'131$this->source); })()))) {
  367.                             // line 132
  368.                             echo "                    ";
  369.                             $context["looping"] = false;
  370.                             // line 133
  371.                             echo "                ";
  372.                         }
  373.                         // line 134
  374.                         echo "                
  375.                 ";
  376.                         // line 135
  377.                         if (($context["j"] == 50)) {
  378.                             // line 136
  379.                             echo "                <div class=\"row\">
  380.                     <div class=\"col-md-12\">
  381.                     <h1 id=\"2017\" style=\"margin-bottom:unset\">2017</h1>
  382.                     <hr style=\"border-top: 6px solid #a6252a; margin-top: unset;\">
  383.                     </div>
  384.                 </div>
  385.                 ";
  386.                         } elseif ((                        // line 142
  387. $context["j"] == 102)) {
  388.                             // line 143
  389.                             echo "                <div class=\"row\">
  390.                 <div class=\"col-md-12\">
  391.                     <h1 id=\"2016\" style=\"margin-bottom:unset\">2016</h1>
  392.                     <hr style=\"border-top: 6px solid #a6252a; margin-top: unset;\" />
  393.                 </div>
  394.                 </div>
  395.                 ";
  396.                         }
  397.                         // line 150
  398.                         echo "                
  399.                 <div class=\"row my-3\">
  400.                     ";
  401.                         // line 152
  402.                         if ( !twig_test_empty((isset($context["grid_image"]) || array_key_exists("grid_image"$context) ? $context["grid_image"] : (function () { throw new RuntimeError('Variable "grid_image" does not exist.'152$this->source); })()))) {
  403.                             // line 153
  404.                             echo "                        ";
  405.                             $context["grid_image"] = $this->extensions['App\Twig\RCSExtension']->get_entity("Media""old_id", (isset($context["grid_image"]) || array_key_exists("grid_image"$context) ? $context["grid_image"] : (function () { throw new RuntimeError('Variable "grid_image" does not exist.'153$this->source); })()));
  406.                             // line 154
  407.                             echo "                        <div class=\"col-md-3\">
  408.                             ";
  409.                             // line 155
  410.                             if ( !twig_test_empty((isset($context["grid_image"]) || array_key_exists("grid_image"$context) ? $context["grid_image"] : (function () { throw new RuntimeError('Variable "grid_image" does not exist.'155$this->source); })()))) {
  411.                                 // line 156
  412.                                 echo "                            <a href=\"";
  413.                                 echo twig_escape_filter($this->env, (isset($context["grid_link"]) || array_key_exists("grid_link"$context) ? $context["grid_link"] : (function () { throw new RuntimeError('Variable "grid_link" does not exist.'156$this->source); })()), "html"nulltrue);
  414.                                 echo "\" ><img 
  415.                                 class=\"mod-gridlist-image\"
  416.                                 src=\"";
  417.                                 // line 158
  418.                                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["grid_image"]) || array_key_exists("grid_image"$context) ? $context["grid_image"] : (function () { throw new RuntimeError('Variable "grid_image" does not exist.'158$this->source); })()), "getURL", [], "method"falsefalsefalse158), "html"nulltrue);
  419.                                 echo "\"
  420.                                 alt=\"";
  421.                                 // line 159
  422.                                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["grid_image"]) || array_key_exists("grid_image"$context) ? $context["grid_image"] : (function () { throw new RuntimeError('Variable "grid_image" does not exist.'159$this->source); })()), "getTitle", [], "method"falsefalsefalse159), "html"nulltrue);
  423.                                 echo "\"/></a>
  424.                             ";
  425.                             } else {
  426.                                 // line 161
  427.                                 echo "                                [default image]
  428.                             ";
  429.                             }
  430.                             // line 163
  431.                             echo "                        </div>
  432.                         <div class=\"col-md-9\">
  433.                     ";
  434.                         } else {
  435.                             // line 166
  436.                             echo "                        <div class=\"col-md-12\">
  437.                     ";
  438.                         }
  439.                         // line 168
  440.                         echo "                        <a href=\"";
  441.                         echo twig_escape_filter($this->env, (isset($context["grid_link"]) || array_key_exists("grid_link"$context) ? $context["grid_link"] : (function () { throw new RuntimeError('Variable "grid_link" does not exist.'168$this->source); })()), "html"nulltrue);
  442.                         echo "\" >";
  443.                         echo twig_escape_filter($this->env, (isset($context["grid_heading"]) || array_key_exists("grid_heading"$context) ? $context["grid_heading"] : (function () { throw new RuntimeError('Variable "grid_heading" does not exist.'168$this->source); })()), "html"nulltrue);
  444.                         echo "</a>
  445.                     </div>
  446.                 </div>
  447.             ";
  448.                     }
  449.                     // line 172
  450.                     echo "        ";
  451.                 }
  452.                 $_parent $context['_parent'];
  453.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['j'], $context['_parent'], $context['loop']);
  454.                 $context array_intersect_key($context$_parent) + $_parent;
  455.                 // line 173
  456.                 echo "        
  457.     ";
  458.             } elseif ((twig_get_attribute($this->env$this->source,             // line 174
  459. (isset($context["modules"]) || array_key_exists("modules"$context) ? $context["modules"] : (function () { throw new RuntimeError('Variable "modules" does not exist.'174$this->source); })()), $context["i"], [], "array"falsefalsefalse174) == "mtm_module_gridlist_posts")) {
  460.                 // line 175
  461.                 echo "        ";
  462.                 // line 176
  463.                 echo "        
  464.         ";
  465.                 // line 177
  466.                 $context["grid_cols"] = twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'177$this->source); })()), "getContentMetaValueByKey", [(("mtm_content_modules_" $context["i"]) . "_mtm_grid_archive_per_row")], "method"falsefalsefalse177);
  467.                 // line 178
  468.                 echo "        ";
  469.                 $context["grid_type"] = twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'178$this->source); })()), "getContentMetaValueByKey", [(("mtm_content_modules_" $context["i"]) . "_mtm_list_archive_select")], "method"falsefalsefalse178);
  470.                 // line 179
  471.                 echo "        
  472.         ";
  473.                 // line 180
  474.                 if (((isset($context["grid_type"]) || array_key_exists("grid_type"$context) ? $context["grid_type"] : (function () { throw new RuntimeError('Variable "grid_type" does not exist.'180$this->source); })()) == "Add Posts Manually")) {
  475.                     // line 181
  476.                     echo "            ";
  477.                     $context["grid_posts"] = twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'181$this->source); })()), "getContentMetaValueByKey", [(("mtm_content_modules_" $context["i"]) . "_mtm_list_archive_manual_posts")], "method"falsefalsefalse181);
  478.                     // line 182
  479.                     echo "            ";
  480.                     $context["grid_posts"] = $this->extensions['App\Twig\RCSExtension']->unserialize((isset($context["grid_posts"]) || array_key_exists("grid_posts"$context) ? $context["grid_posts"] : (function () { throw new RuntimeError('Variable "grid_posts" does not exist.'182$this->source); })()));
  481.                     // line 183
  482.                     echo "            
  483.             ";
  484.                     // line 184
  485.                     $context["gi"] = 0;
  486.                     // line 185
  487.                     echo "            <div class=\"row\">
  488.             ";
  489.                     // line 186
  490.                     $context['_parent'] = $context;
  491.                     $context['_seq'] = twig_ensure_traversable((isset($context["grid_posts"]) || array_key_exists("grid_posts"$context) ? $context["grid_posts"] : (function () { throw new RuntimeError('Variable "grid_posts" does not exist.'186$this->source); })()));
  492.                     foreach ($context['_seq'] as $context["_key"] => $context["post_id"]) {
  493.                         // line 187
  494.                         echo "                ";
  495.                         if (( !twig_test_empty((isset($context["gi"]) || array_key_exists("gi"$context) ? $context["gi"] : (function () { throw new RuntimeError('Variable "gi" does not exist.'187$this->source); })())) && (== (isset($context["gi"]) || array_key_exists("gi"$context) ? $context["gi"] : (function () { throw new RuntimeError('Variable "gi" does not exist.'187$this->source); })()) % (isset($context["grid_cols"]) || array_key_exists("grid_cols"$context) ? $context["grid_cols"] : (function () { throw new RuntimeError('Variable "grid_cols" does not exist.'187$this->source); })())))) {
  496.                             // line 188
  497.                             echo "                    </div>
  498.                     <div class=\"row\">
  499.                 ";
  500.                         }
  501.                         // line 191
  502.                         echo "                <div class=\"col-md-";
  503.                         echo twig_escape_filter($this->env, (12 / (isset($context["grid_cols"]) || array_key_exists("grid_cols"$context) ? $context["grid_cols"] : (function () { throw new RuntimeError('Variable "grid_cols" does not exist.'191$this->source); })())), "html"nulltrue);
  504.                         echo "\">
  505.                     ";
  506.                         // line 192
  507.                         $context["grid_content"] = $this->extensions['App\Twig\RCSExtension']->get_entity("Content""old_id"$context["post_id"]);
  508.                         // line 193
  509.                         echo "                    ";
  510.                         if ( !twig_test_empty((isset($context["grid_content"]) || array_key_exists("grid_content"$context) ? $context["grid_content"] : (function () { throw new RuntimeError('Variable "grid_content" does not exist.'193$this->source); })()))) {
  511.                             // line 194
  512.                             echo "                        <a href=\"";
  513.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["grid_content"]) || array_key_exists("grid_content"$context) ? $context["grid_content"] : (function () { throw new RuntimeError('Variable "grid_content" does not exist.'194$this->source); })()), "getURL", [], "method"falsefalsefalse194), "html"nulltrue);
  514.                             echo "\">
  515. \t\t\t\t\t\t";
  516.                             // line 195
  517.                             echo twig_get_attribute($this->env$this->source, (isset($context["grid_content"]) || array_key_exists("grid_content"$context) ? $context["grid_content"] : (function () { throw new RuntimeError('Variable "grid_content" does not exist.'195$this->source); })()), "getFeaturedImageTag", [""""], "method"falsefalsefalse195);
  518.                             echo "
  519. \t\t\t\t\t\t</a>
  520.                         
  521.                         <a href=\"";
  522.                             // line 198
  523.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["grid_content"]) || array_key_exists("grid_content"$context) ? $context["grid_content"] : (function () { throw new RuntimeError('Variable "grid_content" does not exist.'198$this->source); })()), "getURL", [], "method"falsefalsefalse198), "html"nulltrue);
  524.                             echo "\">";
  525.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["grid_content"]) || array_key_exists("grid_content"$context) ? $context["grid_content"] : (function () { throw new RuntimeError('Variable "grid_content" does not exist.'198$this->source); })()), "getTitle", [], "method"falsefalsefalse198), "html"nulltrue);
  526.                             echo " </a>
  527.                     ";
  528.                         }
  529.                         // line 200
  530.                         echo "                </div>
  531.                 ";
  532.                         // line 201
  533.                         $context["gi"] = ((isset($context["gi"]) || array_key_exists("gi"$context) ? $context["gi"] : (function () { throw new RuntimeError('Variable "gi" does not exist.'201$this->source); })()) + 1);
  534.                         // line 202
  535.                         echo "            ";
  536.                     }
  537.                     $_parent $context['_parent'];
  538.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['post_id'], $context['_parent'], $context['loop']);
  539.                     $context array_intersect_key($context$_parent) + $_parent;
  540.                     // line 203
  541.                     echo "            </div>
  542.         ";
  543.                 }
  544.                 // line 205
  545.                 echo "        
  546.     ";
  547.             } elseif ((twig_get_attribute($this->env$this->source,             // line 206
  548. (isset($context["modules"]) || array_key_exists("modules"$context) ? $context["modules"] : (function () { throw new RuntimeError('Variable "modules" does not exist.'206$this->source); })()), $context["i"], [], "array"falsefalsefalse206) == "mtm_module_logo_showcase")) {
  549.                 // line 207
  550.                 echo "        ";
  551.                 // line 208
  552.                 echo "        
  553.         ";
  554.                 // line 209
  555.                 $context["logo_count"] = twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'209$this->source); })()), "getContentMetaValueByKey", [(("mtm_content_modules_" $context["i"]) . "_mtm_logo_repeater")], "method"falsefalsefalse209);
  556.                 // line 210
  557.                 echo "        ";
  558.                 $context["trade_count"] = twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'210$this->source); })()), "getContentMetaValueByKey", ["rcs_trade_association_repeater"], "method"falsefalsefalse210);
  559.                 echo "  
  560.         
  561.         ";
  562.                 // line 212
  563.                 if ( !twig_test_empty((isset($context["logo_count"]) || array_key_exists("logo_count"$context) ? $context["logo_count"] : (function () { throw new RuntimeError('Variable "logo_count" does not exist.'212$this->source); })()))) {
  564.                     // line 213
  565.                     echo "            ";
  566.                     echo "<ul style=\"width: 100%; display: table; table-layout: fixed; border-collapse: collapse;\">
  567.             ";
  568.                     // line 214
  569.                     $context['_parent'] = $context;
  570.                     $context['_seq'] = twig_ensure_traversable(range(0, ((isset($context["logo_count"]) || array_key_exists("logo_count"$context) ? $context["logo_count"] : (function () { throw new RuntimeError('Variable "logo_count" does not exist.'214$this->source); })()) - 1)));
  571.                     foreach ($context['_seq'] as $context["_key"] => $context["j"]) {
  572.                         // line 215
  573.                         echo "            ";
  574.                         // line 216
  575.                         echo "            ";
  576.                         $context["logo_image"] = twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'216$this->source); })()), "getContentMetaValueByKey", [(((("mtm_content_modules_" $context["i"]) . "_mtm_logo_repeater_") . $context["j"]) . "_mtm_logo_image")], "method"falsefalsefalse216);
  577.                         // line 217
  578.                         echo "            ";
  579.                         $context["logo_link"] = twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'217$this->source); })()), "getContentMetaValueByKey", [(((("mtm_content_modules_" $context["i"]) . "_mtm_logo_repeater_") . $context["j"]) . "_mtm_logo_link")], "method"falsefalsefalse217);
  580.                         // line 218
  581.                         echo "            ";
  582.                         $context["logo_image"] = $this->extensions['App\Twig\RCSExtension']->get_entity("Media""old_id", (isset($context["logo_image"]) || array_key_exists("logo_image"$context) ? $context["logo_image"] : (function () { throw new RuntimeError('Variable "logo_image" does not exist.'218$this->source); })()));
  583.                         // line 219
  584.                         echo "            
  585.                 ";
  586.                         // line 220
  587.                         if ( !twig_test_empty((isset($context["logo_image"]) || array_key_exists("logo_image"$context) ? $context["logo_image"] : (function () { throw new RuntimeError('Variable "logo_image" does not exist.'220$this->source); })()))) {
  588.                             // line 221
  589.                             echo "                ";
  590.                             echo "<li style=\"display: table-cell; text-align: center; vertical-align: middle; padding: 1.7em 1em;\">
  591.                     ";
  592.                             // line 222
  593.                             if ( !twig_test_empty((isset($context["logo_link"]) || array_key_exists("logo_link"$context) ? $context["logo_link"] : (function () { throw new RuntimeError('Variable "logo_link" does not exist.'222$this->source); })()))) {
  594.                                 // line 223
  595.                                 echo "                        <a href=\"";
  596.                                 echo twig_escape_filter($this->env, (isset($context["logo_link"]) || array_key_exists("logo_link"$context) ? $context["logo_link"] : (function () { throw new RuntimeError('Variable "logo_link" does not exist.'223$this->source); })()), "html"nulltrue);
  597.                                 echo "\">
  598.                     ";
  599.                             }
  600.                             // line 225
  601.                             echo "                    <img
  602.                         src=\"";
  603.                             // line 226
  604.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["logo_image"]) || array_key_exists("logo_image"$context) ? $context["logo_image"] : (function () { throw new RuntimeError('Variable "logo_image" does not exist.'226$this->source); })()), "getURL", [], "method"falsefalsefalse226), "html"nulltrue);
  605.                             echo "\"
  606.                         title=\"";
  607.                             // line 227
  608.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["logo_image"]) || array_key_exists("logo_image"$context) ? $context["logo_image"] : (function () { throw new RuntimeError('Variable "logo_image" does not exist.'227$this->source); })()), "getTitle", [], "method"falsefalsefalse227), "html"nulltrue);
  609.                             echo "\"
  610. \t\t\t\t\t\tloading='lazy'
  611.                     />
  612.                     ";
  613.                             // line 230
  614.                             if ( !twig_test_empty((isset($context["logo_link"]) || array_key_exists("logo_link"$context) ? $context["logo_link"] : (function () { throw new RuntimeError('Variable "logo_link" does not exist.'230$this->source); })()))) {
  615.                                 // line 231
  616.                                 echo "                        </a>
  617.                     ";
  618.                             }
  619.                             // line 233
  620.                             echo "                ";
  621.                             echo "</li>
  622.                 ";
  623.                         }
  624.                         // line 235
  625.                         echo "            ";
  626.                     }
  627.                     $_parent $context['_parent'];
  628.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['j'], $context['_parent'], $context['loop']);
  629.                     $context array_intersect_key($context$_parent) + $_parent;
  630.                     // line 236
  631.                     echo "            ";
  632.                     echo "</ul>
  633.         ";
  634.                 }
  635.                 // line 238
  636.                 echo "        
  637.         ";
  638.                 // line 239
  639.                 if ( !twig_test_empty((isset($context["trade_count"]) || array_key_exists("trade_count"$context) ? $context["trade_count"] : (function () { throw new RuntimeError('Variable "trade_count" does not exist.'239$this->source); })()))) {
  640.                     // line 240
  641.                     echo "                
  642.             ";
  643.                     // line 241
  644.                     $context['_parent'] = $context;
  645.                     $context['_seq'] = twig_ensure_traversable(range(0, ((isset($context["trade_count"]) || array_key_exists("trade_count"$context) ? $context["trade_count"] : (function () { throw new RuntimeError('Variable "trade_count" does not exist.'241$this->source); })()) - 1)));
  646.                     foreach ($context['_seq'] as $context["_key"] => $context["j"]) {
  647.                         // line 242
  648.                         echo "                ";
  649.                         $context["trade_name"] = twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'242$this->source); })()), "getContentMetaValueByKey", [(("rcs_trade_association_repeater_" $context["j"]) . "_rcs_trade_association_name")], "method"falsefalsefalse242);
  650.                         // line 243
  651.                         echo "                ";
  652.                         $context["trade_website"] = twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'243$this->source); })()), "getContentMetaValueByKey", [(("rcs_trade_association_repeater_" $context["j"]) . "_rcs_trade_association_website")], "method"falsefalsefalse243);
  653.                         // line 244
  654.                         echo "                ";
  655.                         $context["trade_location"] = twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'244$this->source); })()), "getContentMetaValueByKey", [(("rcs_trade_association_repeater_" $context["j"]) . "_rcs_trade_association_location")], "method"falsefalsefalse244);
  656.                         // line 245
  657.                         echo "                ";
  658.                         $context["trade_phone"] = twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'245$this->source); })()), "getContentMetaValueByKey", [(("rcs_trade_association_repeater_" $context["j"]) . "_rcs_trade_association_phone_number")], "method"falsefalsefalse245);
  659.                         // line 246
  660.                         echo "                <div class=\"row my-3\">
  661.                     <div class=\"col-md-12\">
  662.                         <h4 class=\"my-0\">";
  663.                         // line 248
  664.                         echo twig_escape_filter($this->env, (isset($context["trade_name"]) || array_key_exists("trade_name"$context) ? $context["trade_name"] : (function () { throw new RuntimeError('Variable "trade_name" does not exist.'248$this->source); })()), "html"nulltrue);
  665.                         echo "</h4>
  666.                         <div class=\"trade-association--info\">
  667.     \t\t\t\t\t<p class=\"my-0\">";
  668.                         // line 250
  669.                         echo twig_escape_filter($this->env, (isset($context["trade_location"]) || array_key_exists("trade_location"$context) ? $context["trade_location"] : (function () { throw new RuntimeError('Variable "trade_location" does not exist.'250$this->source); })()), "html"nulltrue);
  670.                         echo " | ";
  671.                         echo twig_escape_filter($this->env, (isset($context["trade_phone"]) || array_key_exists("trade_phone"$context) ? $context["trade_phone"] : (function () { throw new RuntimeError('Variable "trade_phone" does not exist.'250$this->source); })()), "html"nulltrue);
  672.                         echo "</p>
  673.     \t\t\t\t\t<a  href=\"";
  674.                         // line 251
  675.                         echo twig_escape_filter($this->env, (isset($context["trade_website"]) || array_key_exists("trade_website"$context) ? $context["trade_website"] : (function () { throw new RuntimeError('Variable "trade_website" does not exist.'251$this->source); })()), "html"nulltrue);
  676.                         echo "\">Visit Website</a>
  677.     \t\t\t\t\t</div>
  678.                     </div>
  679.                 </div>
  680.             ";
  681.                     }
  682.                     $_parent $context['_parent'];
  683.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['j'], $context['_parent'], $context['loop']);
  684.                     $context array_intersect_key($context$_parent) + $_parent;
  685.                     // line 256
  686.                     echo "        
  687.         ";
  688.                 }
  689.                 // line 258
  690.                 echo "        
  691.     
  692.     ";
  693.             }
  694.         }
  695.         $_parent $context['_parent'];
  696.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  697.         $context array_intersect_key($context$_parent) + $_parent;
  698.         
  699.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  700.         
  701.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  702.     }
  703.     public function getTemplateName()
  704.     {
  705.         return "content/tmpl/mtm-module-loop.html.twig";
  706.     }
  707.     public function isTraitable()
  708.     {
  709.         return false;
  710.     }
  711.     public function getDebugInfo()
  712.     {
  713.         return array (  699 => 258,  695 => 256,  684 => 251,  678 => 250,  673 => 248,  669 => 246,  666 => 245,  663 => 244,  660 => 243,  657 => 242,  653 => 241,  650 => 240,  648 => 239,  645 => 238,  640 => 236,  634 => 235,  629 => 233,  625 => 231,  623 => 230,  617 => 227,  613 => 226,  610 => 225,  604 => 223,  602 => 222,  598 => 221,  596 => 220,  593 => 219,  590 => 218,  587 => 217,  584 => 216,  582 => 215,  578 => 214,  574 => 213,  572 => 212,  566 => 210,  564 => 209,  561 => 208,  559 => 207,  557 => 206,  554 => 205,  550 => 203,  544 => 202,  542 => 201,  539 => 200,  532 => 198,  526 => 195,  521 => 194,  518 => 193,  516 => 192,  511 => 191,  506 => 188,  503 => 187,  499 => 186,  496 => 185,  494 => 184,  491 => 183,  488 => 182,  485 => 181,  483 => 180,  480 => 179,  477 => 178,  475 => 177,  472 => 176,  470 => 175,  468 => 174,  465 => 173,  459 => 172,  449 => 168,  445 => 166,  440 => 163,  436 => 161,  431 => 159,  427 => 158,  421 => 156,  419 => 155,  416 => 154,  413 => 153,  411 => 152,  407 => 150,  398 => 143,  396 => 142,  388 => 136,  386 => 135,  383 => 134,  380 => 133,  377 => 132,  375 => 131,  372 => 130,  369 => 129,  366 => 128,  363 => 127,  360 => 126,  355 => 125,  352 => 124,  350 => 123,  348 => 122,  343 => 119,  337 => 117,  334 => 116,  329 => 114,  325 => 113,  321 => 111,  319 => 110,  315 => 109,  312 => 108,  306 => 106,  303 => 105,  298 => 103,  294 => 102,  290 => 100,  288 => 99,  284 => 98,  280 => 96,  277 => 95,  274 => 94,  272 => 93,  269 => 92,  266 => 91,  263 => 90,  261 => 89,  258 => 88,  255 => 87,  252 => 86,  249 => 85,  247 => 84,  244 => 83,  241 => 82,  239 => 81,  236 => 80,  231 => 77,  225 => 75,  222 => 74,  217 => 72,  213 => 71,  209 => 69,  207 => 68,  203 => 67,  200 => 66,  198 => 65,  195 => 64,  192 => 63,  189 => 62,  184 => 59,  181 => 58,  177 => 56,  175 => 55,  170 => 54,  166 => 52,  163 => 51,  160 => 50,  157 => 49,  149 => 44,  145 => 43,  136 => 37,  132 => 36,  128 => 34,  125 => 33,  122 => 32,  119 => 31,  117 => 30,  108 => 28,  105 => 27,  103 => 26,  100 => 25,  97 => 24,  94 => 23,  92 => 22,  89 => 21,  86 => 20,  83 => 19,  81 => 18,  78 => 17,  75 => 16,  72 => 15,  69 => 14,  66 => 12,  63 => 11,  60 => 10,  57 => 9,  55 => 8,  51 => 7,  48 => 6,  46 => 4,  45 => 3,  44 => 2,  43 => 1,);
  714.     }
  715.     public function getSourceContext()
  716.     {
  717.         return new Source("{% set form_attr = { 
  718.     thankyou: page.getContentMetaValueByKey(\"lp_thankyou\"),
  719.     btn_text: page.getContentMetaValueByKey(\"lp_button\"),
  720.     btn_color: page.getContentMetaValueByKey(\"rcs_call_to_action_color\")
  721. } %}
  722. {% for i in 0 .. (modules | length) - 1 %}
  723.     {# walk down modules and build blocks #}
  724.     {% set mod_bg = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_rcs_element_background_color\") %}
  725.     {% set mod_title = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_mtm_text_area_title\") %}
  726.     {% set mod_title_color = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_rcs_module_title_color\") %}
  727.     
  728.     {# set some defaults #}
  729.     {% if mod_bg is empty %}
  730.         {% set mod_bg = \"#fff\" %}
  731.     {% endif %}
  732.     
  733.     {% if mod_title_color is empty %}
  734.         {% set mod_title_color = \"#222\" %}
  735.     {% endif %}
  736.     
  737.     {% if modules[i] == \"mtm_module_hero_image\" %}
  738.         {% set mod_subhead = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_mtm_hero_subheading\") %}
  739.         {% set mod_image = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_mtm_hero_image\") %}
  740.         
  741.         {% if mod_image is not empty or mod_subhead is not empty %}
  742.             <div class=\"row\" style=\"min-height: 10px\">
  743.                 <div class=\"col-sm-12\" style=\"background: {{ mod_bg }}; {% if mod_image is not empty %} padding-bottom: 15px; {% endif %}\">
  744.             
  745.             {% set mod_sub = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_mtm_hero_subheading\") %}
  746.             {% if mod_image is not empty %}
  747.                 {% set mod_image = get_entity(\"Media\", \"old_id\", mod_image) %}
  748.                 {% if mod_image is not empty %}
  749.                     <img 
  750.                         class=\"mod-hero-image\"
  751.                         src=\"{{ mod_image.getURL() }}\"
  752.                         alt=\"{{ mod_image.getTitle() }}\"
  753.                         style=\"visibility: hidden; display: block;\"
  754. \t\t\t\t\t\tloading='lazy'
  755.                     />
  756.                     <img 
  757.                         class=\"mod-hero-image\"
  758.                         src=\"{{ mod_image.getURL() }}\"
  759.                         alt=\"{{ mod_image.getTitle() }}\"
  760.                         style=\"position:absolute; top: 0; left: 0; right: -15px; width: 100%;\"
  761. \t\t\t\t\t\tloading='lazy'
  762.                     />
  763.                 {% endif %}
  764.             {% endif %}
  765.             {% if mod_subhead is not empty %}
  766.                 {% if mod_image is not empty %}
  767.                     <div style=\"padding-top: 20px;\">
  768.                 {% endif %}
  769.                 {{ mod_subhead | wordpress | raw }}
  770.                 {% if mod_image is not empty %}
  771.                     </div>
  772.                 {% endif %}
  773.             {% endif %}
  774.                 </div>
  775.             </div>
  776.         {% endif %}
  777.     {% elseif modules[i] == \"mtm_module_single_content_area\" %}
  778.         {% set mod_text = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_mtm_module_text_area\") %}
  779.         
  780.         {% if mod_text is not empty %}
  781.         <div class=\"row\">
  782.             <div class=\"col-md-12 p-3\" style=\"background: {{ mod_bg }};\">
  783.                 {% if mod_title is not empty %}
  784.                     <h2 
  785.                         class=\"mod-title\"
  786.                         style=\"color: {{ mod_title_color }};\"
  787.                     >{{ mod_title }}</h2>
  788.                 {% endif %}
  789.                 {% if mod_text is not empty %}
  790.                     {{ mod_text | wordpress(form_attr) | raw }}
  791.                 {% endif %}
  792.             </div>
  793.         </div>
  794.         {% endif %}
  795.     
  796.     {% elseif modules[i] == \"mtm_module_dual_content_area\" %}
  797.         {% set mod_text = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_mtm_module_text_area\") %}
  798.         
  799.         {% set mod_text2 = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_mtm_module_text_area_2\") %}
  800.         {% set mod_bg2 = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_rcs_element_background_color_2\") %}
  801.         {% set mod_title2 = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_mtm_text_area_title_2\") %}
  802.         {% set mod_title_color2 = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_rcs_module_title_color_2\") %}
  803.         
  804.         {% if mod_bg2 is empty %}
  805.             {% set mod_bg2 = \"#fff\" %}
  806.         {% endif %}
  807.         
  808.         {% if mod_title_color2 is empty %}
  809.             {% set mod_title_color2 = \"#222\" %}
  810.         {% endif %}
  811.         
  812.         <div class=\"row\">
  813.             <div class=\"col-md-6 p-3\" style=\"background: {{ mod_bg }};\">
  814.                 {% if mod_title is not empty %}
  815.                     <h2 
  816.                         class=\"mod-title\"
  817.                         style=\"color: {{ mod_title_color }};\"
  818.                     >{{ mod_title }}</h2>
  819.                 {% endif %}
  820.                 {% if mod_text is not empty %}
  821.                     {{ mod_text | wordpress(form_attr) | raw }}
  822.                 {% endif %}
  823.             </div>
  824.             <div class=\"col-md-6 p-3\" style=\"background: {{ mod_bg2 }};\">
  825.                 {% if mod_title2 is not empty %}
  826.                     <h2 
  827.                         class=\"mod-title\"
  828.                         style=\"color: {{ mod_title_color }};\"
  829.                     >{{ mod_title2 }}</h2>
  830.                 {% endif %}
  831.                 {% if mod_text2 is not empty %}
  832.                     {{ mod_text2 | wordpress(form_attr) | raw }}
  833.                 {% endif %}
  834.             </div>
  835.         </div>
  836.     
  837.     {% elseif modules[i] == \"mtm_module_listgrid\" %}
  838.         {# list grid #}
  839.         {% set looping = true %}
  840.         {% for j in 0..5000 %}
  841.             {% if looping %}
  842.                 {% set grid_heading = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_mtm_add_list_item_#{j}_mtm_list_item_heading\") %}
  843.                 {% set grid_link = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_mtm_add_list_item_#{j}_mtm_list_item_link\") %}
  844.                 {% set grid_image = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_mtm_add_list_item_#{j}_mtm_list_item_image\") %}
  845.                 
  846.                 {% if grid_heading is empty %}
  847.                     {% set looping = false %}
  848.                 {% endif %}
  849.                 
  850.                 {% if j == 50  %}
  851.                 <div class=\"row\">
  852.                     <div class=\"col-md-12\">
  853.                     <h1 id=\"2017\" style=\"margin-bottom:unset\">2017</h1>
  854.                     <hr style=\"border-top: 6px solid #a6252a; margin-top: unset;\">
  855.                     </div>
  856.                 </div>
  857.                 {% elseif j == 102 %}
  858.                 <div class=\"row\">
  859.                 <div class=\"col-md-12\">
  860.                     <h1 id=\"2016\" style=\"margin-bottom:unset\">2016</h1>
  861.                     <hr style=\"border-top: 6px solid #a6252a; margin-top: unset;\" />
  862.                 </div>
  863.                 </div>
  864.                 {% endif %}
  865.                 
  866.                 <div class=\"row my-3\">
  867.                     {% if grid_image is not empty %}
  868.                         {% set grid_image = get_entity(\"Media\", \"old_id\", grid_image) %}
  869.                         <div class=\"col-md-3\">
  870.                             {% if grid_image is not empty %}
  871.                             <a href=\"{{ grid_link }}\" ><img 
  872.                                 class=\"mod-gridlist-image\"
  873.                                 src=\"{{ grid_image.getURL() }}\"
  874.                                 alt=\"{{ grid_image.getTitle() }}\"/></a>
  875.                             {% else %}
  876.                                 [default image]
  877.                             {% endif %}
  878.                         </div>
  879.                         <div class=\"col-md-9\">
  880.                     {% else %}
  881.                         <div class=\"col-md-12\">
  882.                     {% endif %}
  883.                         <a href=\"{{ grid_link }}\" >{{ grid_heading }}</a>
  884.                     </div>
  885.                 </div>
  886.             {% endif %}
  887.         {% endfor %}
  888.         
  889.     {% elseif modules[i] == \"mtm_module_gridlist_posts\" %}
  890.         {# eg. /meet-rcs-influencers #}
  891.         
  892.         {% set grid_cols = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_mtm_grid_archive_per_row\") %}
  893.         {% set grid_type = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_mtm_list_archive_select\") %}
  894.         
  895.         {% if grid_type == 'Add Posts Manually' %}
  896.             {% set grid_posts = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_mtm_list_archive_manual_posts\") %}
  897.             {% set grid_posts = unserialize(grid_posts) %}
  898.             
  899.             {% set gi = 0 %}
  900.             <div class=\"row\">
  901.             {% for post_id in grid_posts %}
  902.                 {% if gi is not empty and gi is divisible by(grid_cols) %}
  903.                     </div>
  904.                     <div class=\"row\">
  905.                 {% endif %}
  906.                 <div class=\"col-md-{{ 12 / grid_cols }}\">
  907.                     {% set grid_content = get_entity(\"Content\", \"old_id\", post_id) %}
  908.                     {% if grid_content is not empty %}
  909.                         <a href=\"{{ grid_content.getURL() }}\">
  910. \t\t\t\t\t\t{{ grid_content.getFeaturedImageTag(\"\",\"\")|raw }}
  911. \t\t\t\t\t\t</a>
  912.                         
  913.                         <a href=\"{{ grid_content.getURL() }}\">{{ grid_content.getTitle() }} </a>
  914.                     {% endif %}
  915.                 </div>
  916.                 {% set gi = gi + 1 %}
  917.             {% endfor %}
  918.             </div>
  919.         {% endif %}
  920.         
  921.     {% elseif modules[i] == \"mtm_module_logo_showcase\" %}
  922.         {# eg. /partners #}
  923.         
  924.         {% set logo_count = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_mtm_logo_repeater\") %}
  925.         {% set trade_count = page.getContentMetaValueByKey(\"rcs_trade_association_repeater\") %}  
  926.         
  927.         {% if logo_count is not empty %}
  928.             {#<div class=\"row\">#}<ul style=\"width: 100%; display: table; table-layout: fixed; border-collapse: collapse;\">
  929.             {% for j in 0 .. (logo_count - 1) %}
  930.             {# % set logo_image = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_mtm_logo_repeater_#{j}_mtm_logo_image\") % #}
  931.             {% set logo_image = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_mtm_logo_repeater_#{j}_mtm_logo_image\") %}
  932.             {% set logo_link = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_mtm_logo_repeater_#{j}_mtm_logo_link\") %}
  933.             {% set logo_image = get_entity(\"Media\", \"old_id\", logo_image) %}
  934.             
  935.                 {% if logo_image is not empty %}
  936.                 {#<div class=\"col-md-3\">#}<li style=\"display: table-cell; text-align: center; vertical-align: middle; padding: 1.7em 1em;\">
  937.                     {% if logo_link is not empty %}
  938.                         <a href=\"{{ logo_link }}\">
  939.                     {% endif %}
  940.                     <img
  941.                         src=\"{{ logo_image.getURL() }}\"
  942.                         title=\"{{ logo_image.getTitle() }}\"
  943. \t\t\t\t\t\tloading='lazy'
  944.                     />
  945.                     {% if logo_link is not empty %}
  946.                         </a>
  947.                     {% endif %}
  948.                 {#</div>#}</li>
  949.                 {% endif %}
  950.             {% endfor %}
  951.             {#</div>#}</ul>
  952.         {% endif %}
  953.         
  954.         {% if trade_count is not empty %}
  955.                 
  956.             {% for j in 0 .. (trade_count - 1) %}
  957.                 {% set trade_name = page.getContentMetaValueByKey(\"rcs_trade_association_repeater_#{j}_rcs_trade_association_name\") %}
  958.                 {% set trade_website = page.getContentMetaValueByKey(\"rcs_trade_association_repeater_#{j}_rcs_trade_association_website\") %}
  959.                 {% set trade_location = page.getContentMetaValueByKey(\"rcs_trade_association_repeater_#{j}_rcs_trade_association_location\") %}
  960.                 {% set trade_phone = page.getContentMetaValueByKey(\"rcs_trade_association_repeater_#{j}_rcs_trade_association_phone_number\") %}
  961.                 <div class=\"row my-3\">
  962.                     <div class=\"col-md-12\">
  963.                         <h4 class=\"my-0\">{{ trade_name }}</h4>
  964.                         <div class=\"trade-association--info\">
  965.     \t\t\t\t\t<p class=\"my-0\">{{ trade_location }} | {{ trade_phone }}</p>
  966.     \t\t\t\t\t<a  href=\"{{ trade_website }}\">Visit Website</a>
  967.     \t\t\t\t\t</div>
  968.                     </div>
  969.                 </div>
  970.             {% endfor %}
  971.         
  972.         {% endif %}
  973.         
  974.     
  975.     {% endif %}
  976. {% endfor %}""content/tmpl/mtm-module-loop.html.twig""/var/www/vhosts/rooferscoffeeshop.com/staging.rooferscoffeeshop.com/rcs-website/templates/content/tmpl/mtm-module-loop.html.twig");
  977.     }
  978. }