<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* content/tmpl/mtm-module-loop.html.twig */
class __TwigTemplate_c20dab49ad64e38aae53627e633b6d2c extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "content/tmpl/mtm-module-loop.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "content/tmpl/mtm-module-loop.html.twig"));
// line 1
$context["form_attr"] = ["thankyou" => twig_get_attribute($this->env, $this->source, // line 2
(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", false, false, false, 2), "btn_text" => twig_get_attribute($this->env, $this->source, // line 3
(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", false, false, false, 3), "btn_color" => twig_get_attribute($this->env, $this->source, // line 4
(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", false, false, false, 4)];
// line 6
echo "
";
// line 7
$context['_parent'] = $context;
$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)));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 8
echo " ";
// line 9
echo " ";
$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", false, false, false, 9);
// line 10
echo " ";
$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", false, false, false, 10);
// line 11
echo " ";
$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", false, false, false, 11);
// line 12
echo "
";
// line 14
echo " ";
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); })()))) {
// line 15
echo " ";
$context["mod_bg"] = "#fff";
// line 16
echo " ";
}
// line 17
echo "
";
// line 18
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); })()))) {
// line 19
echo " ";
$context["mod_title_color"] = "#222";
// line 20
echo " ";
}
// line 21
echo "
";
// line 22
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", false, false, false, 22) == "mtm_module_hero_image")) {
// line 23
echo " ";
$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", false, false, false, 23);
// line 24
echo " ";
$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", false, false, false, 24);
// line 25
echo "
";
// line 26
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); })())))) {
// line 27
echo " <div class=\"row\" style=\"min-height: 10px\">
<div class=\"col-sm-12\" style=\"background: ";
// line 28
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", null, true);
echo "; ";
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); })()))) {
echo " padding-bottom: 15px; ";
}
echo "\">
";
// line 30
$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", false, false, false, 30);
// line 31
echo " ";
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); })()))) {
// line 32
echo " ";
$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); })()));
// line 33
echo " ";
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); })()))) {
// line 34
echo " <img
class=\"mod-hero-image\"
src=\"";
// line 36
echo twig_escape_filter($this->env, twig_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", false, false, false, 36), "html", null, true);
echo "\"
alt=\"";
// line 37
echo twig_escape_filter($this->env, twig_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", false, false, false, 37), "html", null, true);
echo "\"
style=\"visibility: hidden; display: block;\"
\t\t\t\t\t\tloading='lazy'
/>
<img
class=\"mod-hero-image\"
src=\"";
// line 43
echo twig_escape_filter($this->env, twig_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", false, false, false, 43), "html", null, true);
echo "\"
alt=\"";
// line 44
echo twig_escape_filter($this->env, twig_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", false, false, false, 44), "html", null, true);
echo "\"
style=\"position:absolute; top: 0; left: 0; right: -15px; width: 100%;\"
\t\t\t\t\t\tloading='lazy'
/>
";
}
// line 49
echo " ";
}
// line 50
echo " ";
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); })()))) {
// line 51
echo " ";
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); })()))) {
// line 52
echo " <div style=\"padding-top: 20px;\">
";
}
// line 54
echo " ";
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); })()));
echo "
";
// line 55
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); })()))) {
// line 56
echo " </div>
";
}
// line 58
echo " ";
}
// line 59
echo " </div>
</div>
";
}
// line 62
echo " ";
} 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", false, false, false, 62) == "mtm_module_single_content_area")) {
// line 63
echo " ";
$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", false, false, false, 63);
// line 64
echo "
";
// line 65
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); })()))) {
// line 66
echo " <div class=\"row\">
<div class=\"col-md-12 p-3\" style=\"background: ";
// line 67
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", null, true);
echo ";\">
";
// line 68
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); })()))) {
// line 69
echo " <h2
class=\"mod-title\"
style=\"color: ";
// line 71
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", null, true);
echo ";\"
>";
// line 72
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", null, true);
echo "</h2>
";
}
// line 74
echo " ";
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); })()))) {
// line 75
echo " ";
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); })()));
echo "
";
}
// line 77
echo " </div>
</div>
";
}
// line 80
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 81
(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", false, false, false, 81) == "mtm_module_dual_content_area")) {
// line 82
echo " ";
$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", false, false, false, 82);
// line 83
echo "
";
// line 84
$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", false, false, false, 84);
// line 85
echo " ";
$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", false, false, false, 85);
// line 86
echo " ";
$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", false, false, false, 86);
// line 87
echo " ";
$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", false, false, false, 87);
// line 88
echo "
";
// line 89
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); })()))) {
// line 90
echo " ";
$context["mod_bg2"] = "#fff";
// line 91
echo " ";
}
// line 92
echo "
";
// line 93
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); })()))) {
// line 94
echo " ";
$context["mod_title_color2"] = "#222";
// line 95
echo " ";
}
// line 96
echo "
<div class=\"row\">
<div class=\"col-md-6 p-3\" style=\"background: ";
// line 98
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", null, true);
echo ";\">
";
// line 99
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); })()))) {
// line 100
echo " <h2
class=\"mod-title\"
style=\"color: ";
// line 102
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", null, true);
echo ";\"
>";
// line 103
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", null, true);
echo "</h2>
";
}
// line 105
echo " ";
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); })()))) {
// line 106
echo " ";
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); })()));
echo "
";
}
// line 108
echo " </div>
<div class=\"col-md-6 p-3\" style=\"background: ";
// line 109
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", null, true);
echo ";\">
";
// line 110
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); })()))) {
// line 111
echo " <h2
class=\"mod-title\"
style=\"color: ";
// line 113
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", null, true);
echo ";\"
>";
// line 114
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", null, true);
echo "</h2>
";
}
// line 116
echo " ";
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); })()))) {
// line 117
echo " ";
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); })()));
echo "
";
}
// line 119
echo " </div>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 122
(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", false, false, false, 122) == "mtm_module_listgrid")) {
// line 123
echo " ";
// line 124
echo " ";
$context["looping"] = true;
// line 125
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(0, 5000));
foreach ($context['_seq'] as $context["_key"] => $context["j"]) {
// line 126
echo " ";
if ((isset($context["looping"]) || array_key_exists("looping", $context) ? $context["looping"] : (function () { throw new RuntimeError('Variable "looping" does not exist.', 126, $this->source); })())) {
// line 127
echo " ";
$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", false, false, false, 127);
// line 128
echo " ";
$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", false, false, false, 128);
// line 129
echo " ";
$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", false, false, false, 129);
// line 130
echo "
";
// line 131
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); })()))) {
// line 132
echo " ";
$context["looping"] = false;
// line 133
echo " ";
}
// line 134
echo "
";
// line 135
if (($context["j"] == 50)) {
// line 136
echo " <div class=\"row\">
<div class=\"col-md-12\">
<h1 id=\"2017\" style=\"margin-bottom:unset\">2017</h1>
<hr style=\"border-top: 6px solid #a6252a; margin-top: unset;\">
</div>
</div>
";
} elseif (( // line 142
$context["j"] == 102)) {
// line 143
echo " <div class=\"row\">
<div class=\"col-md-12\">
<h1 id=\"2016\" style=\"margin-bottom:unset\">2016</h1>
<hr style=\"border-top: 6px solid #a6252a; margin-top: unset;\" />
</div>
</div>
";
}
// line 150
echo "
<div class=\"row my-3\">
";
// line 152
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); })()))) {
// line 153
echo " ";
$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); })()));
// line 154
echo " <div class=\"col-md-3\">
";
// line 155
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); })()))) {
// line 156
echo " <a href=\"";
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", null, true);
echo "\" ><img
class=\"mod-gridlist-image\"
src=\"";
// line 158
echo twig_escape_filter($this->env, twig_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", false, false, false, 158), "html", null, true);
echo "\"
alt=\"";
// line 159
echo twig_escape_filter($this->env, twig_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", false, false, false, 159), "html", null, true);
echo "\"/></a>
";
} else {
// line 161
echo " [default image]
";
}
// line 163
echo " </div>
<div class=\"col-md-9\">
";
} else {
// line 166
echo " <div class=\"col-md-12\">
";
}
// line 168
echo " <a href=\"";
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", null, true);
echo "\" >";
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", null, true);
echo "</a>
</div>
</div>
";
}
// line 172
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['j'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 173
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 174
(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", false, false, false, 174) == "mtm_module_gridlist_posts")) {
// line 175
echo " ";
// line 176
echo "
";
// line 177
$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", false, false, false, 177);
// line 178
echo " ";
$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", false, false, false, 178);
// line 179
echo "
";
// line 180
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")) {
// line 181
echo " ";
$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", false, false, false, 181);
// line 182
echo " ";
$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); })()));
// line 183
echo "
";
// line 184
$context["gi"] = 0;
// line 185
echo " <div class=\"row\">
";
// line 186
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["post_id"]) {
// line 187
echo " ";
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); })())) && (0 == (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); })())))) {
// line 188
echo " </div>
<div class=\"row\">
";
}
// line 191
echo " <div class=\"col-md-";
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", null, true);
echo "\">
";
// line 192
$context["grid_content"] = $this->extensions['App\Twig\RCSExtension']->get_entity("Content", "old_id", $context["post_id"]);
// line 193
echo " ";
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); })()))) {
// line 194
echo " <a href=\"";
echo twig_escape_filter($this->env, 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.', 194, $this->source); })()), "getURL", [], "method", false, false, false, 194), "html", null, true);
echo "\">
\t\t\t\t\t\t";
// line 195
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", false, false, false, 195);
echo "
\t\t\t\t\t\t</a>
<a href=\"";
// line 198
echo twig_escape_filter($this->env, 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.', 198, $this->source); })()), "getURL", [], "method", false, false, false, 198), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, 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.', 198, $this->source); })()), "getTitle", [], "method", false, false, false, 198), "html", null, true);
echo " </a>
";
}
// line 200
echo " </div>
";
// line 201
$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);
// line 202
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['post_id'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 203
echo " </div>
";
}
// line 205
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 206
(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", false, false, false, 206) == "mtm_module_logo_showcase")) {
// line 207
echo " ";
// line 208
echo "
";
// line 209
$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", false, false, false, 209);
// line 210
echo " ";
$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", false, false, false, 210);
echo "
";
// line 212
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); })()))) {
// line 213
echo " ";
echo "<ul style=\"width: 100%; display: table; table-layout: fixed; border-collapse: collapse;\">
";
// line 214
$context['_parent'] = $context;
$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)));
foreach ($context['_seq'] as $context["_key"] => $context["j"]) {
// line 215
echo " ";
// line 216
echo " ";
$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", false, false, false, 216);
// line 217
echo " ";
$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", false, false, false, 217);
// line 218
echo " ";
$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); })()));
// line 219
echo "
";
// line 220
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); })()))) {
// line 221
echo " ";
echo "<li style=\"display: table-cell; text-align: center; vertical-align: middle; padding: 1.7em 1em;\">
";
// line 222
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); })()))) {
// line 223
echo " <a href=\"";
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", null, true);
echo "\">
";
}
// line 225
echo " <img
src=\"";
// line 226
echo twig_escape_filter($this->env, twig_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", false, false, false, 226), "html", null, true);
echo "\"
title=\"";
// line 227
echo twig_escape_filter($this->env, twig_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", false, false, false, 227), "html", null, true);
echo "\"
\t\t\t\t\t\tloading='lazy'
/>
";
// line 230
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); })()))) {
// line 231
echo " </a>
";
}
// line 233
echo " ";
echo "</li>
";
}
// line 235
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['j'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 236
echo " ";
echo "</ul>
";
}
// line 238
echo "
";
// line 239
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); })()))) {
// line 240
echo "
";
// line 241
$context['_parent'] = $context;
$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)));
foreach ($context['_seq'] as $context["_key"] => $context["j"]) {
// line 242
echo " ";
$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", false, false, false, 242);
// line 243
echo " ";
$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", false, false, false, 243);
// line 244
echo " ";
$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", false, false, false, 244);
// line 245
echo " ";
$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", false, false, false, 245);
// line 246
echo " <div class=\"row my-3\">
<div class=\"col-md-12\">
<h4 class=\"my-0\">";
// line 248
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", null, true);
echo "</h4>
<div class=\"trade-association--info\">
\t\t\t\t\t<p class=\"my-0\">";
// line 250
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", null, true);
echo " | ";
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", null, true);
echo "</p>
\t\t\t\t\t<a href=\"";
// line 251
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", null, true);
echo "\">Visit Website</a>
\t\t\t\t\t</div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['j'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 256
echo "
";
}
// line 258
echo "
";
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "content/tmpl/mtm-module-loop.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% set form_attr = {
thankyou: page.getContentMetaValueByKey(\"lp_thankyou\"),
btn_text: page.getContentMetaValueByKey(\"lp_button\"),
btn_color: page.getContentMetaValueByKey(\"rcs_call_to_action_color\")
} %}
{% for i in 0 .. (modules | length) - 1 %}
{# walk down modules and build blocks #}
{% set mod_bg = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_rcs_element_background_color\") %}
{% set mod_title = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_mtm_text_area_title\") %}
{% set mod_title_color = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_rcs_module_title_color\") %}
{# set some defaults #}
{% if mod_bg is empty %}
{% set mod_bg = \"#fff\" %}
{% endif %}
{% if mod_title_color is empty %}
{% set mod_title_color = \"#222\" %}
{% endif %}
{% if modules[i] == \"mtm_module_hero_image\" %}
{% set mod_subhead = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_mtm_hero_subheading\") %}
{% set mod_image = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_mtm_hero_image\") %}
{% if mod_image is not empty or mod_subhead is not empty %}
<div class=\"row\" style=\"min-height: 10px\">
<div class=\"col-sm-12\" style=\"background: {{ mod_bg }}; {% if mod_image is not empty %} padding-bottom: 15px; {% endif %}\">
{% set mod_sub = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_mtm_hero_subheading\") %}
{% if mod_image is not empty %}
{% set mod_image = get_entity(\"Media\", \"old_id\", mod_image) %}
{% if mod_image is not empty %}
<img
class=\"mod-hero-image\"
src=\"{{ mod_image.getURL() }}\"
alt=\"{{ mod_image.getTitle() }}\"
style=\"visibility: hidden; display: block;\"
\t\t\t\t\t\tloading='lazy'
/>
<img
class=\"mod-hero-image\"
src=\"{{ mod_image.getURL() }}\"
alt=\"{{ mod_image.getTitle() }}\"
style=\"position:absolute; top: 0; left: 0; right: -15px; width: 100%;\"
\t\t\t\t\t\tloading='lazy'
/>
{% endif %}
{% endif %}
{% if mod_subhead is not empty %}
{% if mod_image is not empty %}
<div style=\"padding-top: 20px;\">
{% endif %}
{{ mod_subhead | wordpress | raw }}
{% if mod_image is not empty %}
</div>
{% endif %}
{% endif %}
</div>
</div>
{% endif %}
{% elseif modules[i] == \"mtm_module_single_content_area\" %}
{% set mod_text = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_mtm_module_text_area\") %}
{% if mod_text is not empty %}
<div class=\"row\">
<div class=\"col-md-12 p-3\" style=\"background: {{ mod_bg }};\">
{% if mod_title is not empty %}
<h2
class=\"mod-title\"
style=\"color: {{ mod_title_color }};\"
>{{ mod_title }}</h2>
{% endif %}
{% if mod_text is not empty %}
{{ mod_text | wordpress(form_attr) | raw }}
{% endif %}
</div>
</div>
{% endif %}
{% elseif modules[i] == \"mtm_module_dual_content_area\" %}
{% set mod_text = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_mtm_module_text_area\") %}
{% set mod_text2 = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_mtm_module_text_area_2\") %}
{% set mod_bg2 = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_rcs_element_background_color_2\") %}
{% set mod_title2 = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_mtm_text_area_title_2\") %}
{% set mod_title_color2 = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_rcs_module_title_color_2\") %}
{% if mod_bg2 is empty %}
{% set mod_bg2 = \"#fff\" %}
{% endif %}
{% if mod_title_color2 is empty %}
{% set mod_title_color2 = \"#222\" %}
{% endif %}
<div class=\"row\">
<div class=\"col-md-6 p-3\" style=\"background: {{ mod_bg }};\">
{% if mod_title is not empty %}
<h2
class=\"mod-title\"
style=\"color: {{ mod_title_color }};\"
>{{ mod_title }}</h2>
{% endif %}
{% if mod_text is not empty %}
{{ mod_text | wordpress(form_attr) | raw }}
{% endif %}
</div>
<div class=\"col-md-6 p-3\" style=\"background: {{ mod_bg2 }};\">
{% if mod_title2 is not empty %}
<h2
class=\"mod-title\"
style=\"color: {{ mod_title_color }};\"
>{{ mod_title2 }}</h2>
{% endif %}
{% if mod_text2 is not empty %}
{{ mod_text2 | wordpress(form_attr) | raw }}
{% endif %}
</div>
</div>
{% elseif modules[i] == \"mtm_module_listgrid\" %}
{# list grid #}
{% set looping = true %}
{% for j in 0..5000 %}
{% if looping %}
{% set grid_heading = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_mtm_add_list_item_#{j}_mtm_list_item_heading\") %}
{% set grid_link = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_mtm_add_list_item_#{j}_mtm_list_item_link\") %}
{% set grid_image = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_mtm_add_list_item_#{j}_mtm_list_item_image\") %}
{% if grid_heading is empty %}
{% set looping = false %}
{% endif %}
{% if j == 50 %}
<div class=\"row\">
<div class=\"col-md-12\">
<h1 id=\"2017\" style=\"margin-bottom:unset\">2017</h1>
<hr style=\"border-top: 6px solid #a6252a; margin-top: unset;\">
</div>
</div>
{% elseif j == 102 %}
<div class=\"row\">
<div class=\"col-md-12\">
<h1 id=\"2016\" style=\"margin-bottom:unset\">2016</h1>
<hr style=\"border-top: 6px solid #a6252a; margin-top: unset;\" />
</div>
</div>
{% endif %}
<div class=\"row my-3\">
{% if grid_image is not empty %}
{% set grid_image = get_entity(\"Media\", \"old_id\", grid_image) %}
<div class=\"col-md-3\">
{% if grid_image is not empty %}
<a href=\"{{ grid_link }}\" ><img
class=\"mod-gridlist-image\"
src=\"{{ grid_image.getURL() }}\"
alt=\"{{ grid_image.getTitle() }}\"/></a>
{% else %}
[default image]
{% endif %}
</div>
<div class=\"col-md-9\">
{% else %}
<div class=\"col-md-12\">
{% endif %}
<a href=\"{{ grid_link }}\" >{{ grid_heading }}</a>
</div>
</div>
{% endif %}
{% endfor %}
{% elseif modules[i] == \"mtm_module_gridlist_posts\" %}
{# eg. /meet-rcs-influencers #}
{% set grid_cols = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_mtm_grid_archive_per_row\") %}
{% set grid_type = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_mtm_list_archive_select\") %}
{% if grid_type == 'Add Posts Manually' %}
{% set grid_posts = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_mtm_list_archive_manual_posts\") %}
{% set grid_posts = unserialize(grid_posts) %}
{% set gi = 0 %}
<div class=\"row\">
{% for post_id in grid_posts %}
{% if gi is not empty and gi is divisible by(grid_cols) %}
</div>
<div class=\"row\">
{% endif %}
<div class=\"col-md-{{ 12 / grid_cols }}\">
{% set grid_content = get_entity(\"Content\", \"old_id\", post_id) %}
{% if grid_content is not empty %}
<a href=\"{{ grid_content.getURL() }}\">
\t\t\t\t\t\t{{ grid_content.getFeaturedImageTag(\"\",\"\")|raw }}
\t\t\t\t\t\t</a>
<a href=\"{{ grid_content.getURL() }}\">{{ grid_content.getTitle() }} </a>
{% endif %}
</div>
{% set gi = gi + 1 %}
{% endfor %}
</div>
{% endif %}
{% elseif modules[i] == \"mtm_module_logo_showcase\" %}
{# eg. /partners #}
{% set logo_count = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_mtm_logo_repeater\") %}
{% set trade_count = page.getContentMetaValueByKey(\"rcs_trade_association_repeater\") %}
{% if logo_count is not empty %}
{#<div class=\"row\">#}<ul style=\"width: 100%; display: table; table-layout: fixed; border-collapse: collapse;\">
{% for j in 0 .. (logo_count - 1) %}
{# % set logo_image = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_mtm_logo_repeater_#{j}_mtm_logo_image\") % #}
{% set logo_image = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_mtm_logo_repeater_#{j}_mtm_logo_image\") %}
{% set logo_link = page.getContentMetaValueByKey(\"mtm_content_modules_#{i}_mtm_logo_repeater_#{j}_mtm_logo_link\") %}
{% set logo_image = get_entity(\"Media\", \"old_id\", logo_image) %}
{% if logo_image is not empty %}
{#<div class=\"col-md-3\">#}<li style=\"display: table-cell; text-align: center; vertical-align: middle; padding: 1.7em 1em;\">
{% if logo_link is not empty %}
<a href=\"{{ logo_link }}\">
{% endif %}
<img
src=\"{{ logo_image.getURL() }}\"
title=\"{{ logo_image.getTitle() }}\"
\t\t\t\t\t\tloading='lazy'
/>
{% if logo_link is not empty %}
</a>
{% endif %}
{#</div>#}</li>
{% endif %}
{% endfor %}
{#</div>#}</ul>
{% endif %}
{% if trade_count is not empty %}
{% for j in 0 .. (trade_count - 1) %}
{% set trade_name = page.getContentMetaValueByKey(\"rcs_trade_association_repeater_#{j}_rcs_trade_association_name\") %}
{% set trade_website = page.getContentMetaValueByKey(\"rcs_trade_association_repeater_#{j}_rcs_trade_association_website\") %}
{% set trade_location = page.getContentMetaValueByKey(\"rcs_trade_association_repeater_#{j}_rcs_trade_association_location\") %}
{% set trade_phone = page.getContentMetaValueByKey(\"rcs_trade_association_repeater_#{j}_rcs_trade_association_phone_number\") %}
<div class=\"row my-3\">
<div class=\"col-md-12\">
<h4 class=\"my-0\">{{ trade_name }}</h4>
<div class=\"trade-association--info\">
\t\t\t\t\t<p class=\"my-0\">{{ trade_location }} | {{ trade_phone }}</p>
\t\t\t\t\t<a href=\"{{ trade_website }}\">Visit Website</a>
\t\t\t\t\t</div>
</div>
</div>
{% endfor %}
{% endif %}
{% endif %}
{% 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");
}
}