![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mautic.corals.io/var/tmp/twig/42/ |
<?php use Twig\Environment; use Twig\Error\LoaderError; use Twig\Error\RuntimeError; use Twig\Extension\CoreExtension; 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; use Twig\TemplateWrapper; /* @MauticCore/Helper/builder.html.twig */ class __TwigTemplate_a59782ceb8d7fcefa5602f22b201f13b extends Template { private Source $source; /** * @var array<string, Template> */ private array $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 = []): iterable { $macros = $this->macros; // line 12 yield "<div class=\"hide builder "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 12, $this->source); })()), "html", null, true); yield "-builder "; if ((isset($context["isCodeMode"]) || array_key_exists("isCodeMode", $context) ? $context["isCodeMode"] : (function () { throw new RuntimeError('Variable "isCodeMode" does not exist.', 12, $this->source); })())) { yield "code-mode"; } yield "\"> <script type=\"text/html\" data-builder-assets> "; // line 14 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["builderAssets"]) || array_key_exists("builderAssets", $context) ? $context["builderAssets"] : (function () { throw new RuntimeError('Variable "builderAssets" does not exist.', 14, $this->source); })()), "html", null, true); yield " </script> <div class=\"builder-content\"> <input type=\"hidden\" id=\"builder_url\" value=\""; // line 17 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath((("mautic_" . (isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 17, $this->source); })())) . "_action"), ["objectAction" => "builder", "objectId" => (isset($context["objectId"]) || array_key_exists("objectId", $context) ? $context["objectId"] : (function () { throw new RuntimeError('Variable "objectId" does not exist.', 17, $this->source); })())]), "html", null, true); yield "\" /> </div> <div class=\"builder-panel\"> <div class=\"builder-panel-top\"> "; // line 21 yield Twig\Extension\CoreExtension::include($this->env, $context, "@MauticCore/Helper/builder_buttons.html.twig", ["onclick" => (("Mautic.closeBuilder('" . (isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 21, $this->source); })())) . "');")], false); yield " <div class=\"code-mode-toolbar "; // line 23 if ( !(isset($context["isCodeMode"]) || array_key_exists("isCodeMode", $context) ? $context["isCodeMode"] : (function () { throw new RuntimeError('Variable "isCodeMode" does not exist.', 23, $this->source); })())) { yield "hide"; } yield "\"> <button class=\"btn btn-default btn-nospin\" onclick=\"Mautic.openMediaManager()\" data-toggle=\"tooltip\" data-placement=\"bottom\" title=\""; // line 24 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("mautic.core.media.manager.desc"), "html", null, true); yield "\"> <i class=\"fa fa-photo\"></i> "; // line 26 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("mautic.core.media.manager"), "html", null, true); yield " </button> <button class=\"btn btn-default btn-nospin\" onclick=\"Mautic.formatCode()\" data-toggle=\"tooltip\" data-placement=\"bottom\" title=\""; // line 28 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("mautic.core.format.code.desc"), "html", null, true); yield "\"> <i class=\"fa fa-indent\"></i> "; // line 30 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("mautic.core.format.code"), "html", null, true); yield " </button> </div> </div> "; // line 35 if ((isset($context["previewUrl"]) || array_key_exists("previewUrl", $context) ? $context["previewUrl"] : (function () { throw new RuntimeError('Variable "previewUrl" does not exist.', 35, $this->source); })())) { // line 36 yield " <div class=\"panel panel-default\" id=\"preview\"> <div class=\"panel-heading\"> <h4 class=\"panel-title\">"; // line 38 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("mautic.email.urlvariant"), "html", null, true); yield "</h4> </div> <div class=\"panel-body\"> <div id=\"public-preview-container\" class=\"col-md-12\"> <div class=\"input-group\"> <input onclick=\"this.setSelectionRange(0, this.value.length);\" type=\"text\" class=\"form-control\" readonly value=\""; // line 43 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["previewUrl"]) || array_key_exists("previewUrl", $context) ? $context["previewUrl"] : (function () { throw new RuntimeError('Variable "previewUrl" does not exist.', 43, $this->source); })()), "html", null, true); yield "\"/> <span class=\"input-group-btn\"> <button class=\"btn btn-default btn-nospin\" onclick=\"window.open('"; // line 45 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["previewUrl"]) || array_key_exists("previewUrl", $context) ? $context["previewUrl"] : (function () { throw new RuntimeError('Variable "previewUrl" does not exist.', 45, $this->source); })()), "html", null, true); yield "', '_blank');\"> <i class=\"ri-external-link-line\"></i> </button> </span> </div> </div> </div> </div> "; } // line 54 yield " <div class=\"code-editor "; // line 55 if ( !(isset($context["isCodeMode"]) || array_key_exists("isCodeMode", $context) ? $context["isCodeMode"] : (function () { throw new RuntimeError('Variable "isCodeMode" does not exist.', 55, $this->source); })())) { yield "hide"; } yield "\"> <div id=\"customHtmlContainer\"></div> <i class=\"text-muted\">"; // line 57 yield $this->env->getRuntime('Exercise\HTMLPurifierBundle\Twig\HTMLPurifierRuntime')->purify($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("mautic.core.code.mode.token.dropdown.hint")); yield "</i> </div> <div class=\"builder-toolbar "; // line 59 if ((isset($context["isCodeMode"]) || array_key_exists("isCodeMode", $context) ? $context["isCodeMode"] : (function () { throw new RuntimeError('Variable "isCodeMode" does not exist.', 59, $this->source); })())) { yield "hide"; } yield "\"> <div class=\"panel panel-default\"> <div class=\"panel-heading\"> <h4 class=\"panel-title\">"; // line 62 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("mautic.core.slot.types"), "html", null, true); yield "</h4> </div> <div class=\"panel-body\"> "; // line 65 if ((array_key_exists("slots", $context) && is_iterable((isset($context["slots"]) || array_key_exists("slots", $context) ? $context["slots"] : (function () { throw new RuntimeError('Variable "slots" does not exist.', 65, $this->source); })())))) { // line 66 yield " <div id=\"slot-type-container\" class=\"col-md-12\"> "; // line 67 $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable((isset($context["slots"]) || array_key_exists("slots", $context) ? $context["slots"] : (function () { throw new RuntimeError('Variable "slots" does not exist.', 67, $this->source); })())); foreach ($context['_seq'] as $context["slotKey"] => $context["slot"]) { // line 68 yield " <div class=\"slot-type-handle btn btn-default btn-lg btn-nospin\" data-slot-type=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["slotKey"], "html", null, true); yield "\"> <i class=\"fa fa-"; // line 69 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["slot"], "icon", [], "any", false, false, false, 69), "html", null, true); yield "\" aria-hidden=\"true\"></i> <br> <span class=\"slot-caption\">"; // line 71 yield CoreExtension::getAttribute($this->env, $this->source, $context["slot"], "header", [], "any", false, false, false, 71); yield "</span> <!-- slot template: \""; // line 72 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["slot"], "content", [], "any", false, false, false, 72), "html", null, true); yield "\" --> <script type=\"text/html\">"; // line 74 yield Twig\Extension\CoreExtension::include($this->env, $context, CoreExtension::getAttribute($this->env, $this->source, $context["slot"], "content", [], "any", false, false, false, 74), ((CoreExtension::getAttribute($this->env, $this->source, $context["slot"], "params", [], "any", true, true, false, 74)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["slot"], "params", [], "any", false, false, false, 74), [])) : ([])), false); // line 75 yield "</script> </div> "; } $_parent = $context['_parent']; unset($context['_seq'], $context['slotKey'], $context['slot'], $context['_parent']); $context = array_intersect_key($context, $_parent) + $_parent; // line 78 yield " <div class=\"clearfix\"></div> </div> "; } // line 81 yield " <p class=\"text-muted pt-md text-center\"><i>"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("mautic.core.drag.info"), "html", null, true); yield "</i></p> </div> </div> <div class=\"panel panel-default\"> <div class=\"panel-heading\"> <h4 class=\"panel-title\">"; // line 87 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("mautic.core.section.types"), "html", null, true); yield "</h4> </div> <div class=\"panel-body\"> "; // line 90 if ((array_key_exists("sections", $context) && is_iterable((isset($context["sections"]) || array_key_exists("sections", $context) ? $context["sections"] : (function () { throw new RuntimeError('Variable "sections" does not exist.', 90, $this->source); })())))) { // line 91 yield " <div id=\"section-type-container\" class=\"col-md-12\"> "; // line 92 $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable((isset($context["sections"]) || array_key_exists("sections", $context) ? $context["sections"] : (function () { throw new RuntimeError('Variable "sections" does not exist.', 92, $this->source); })())); foreach ($context['_seq'] as $context["sectionKey"] => $context["section"]) { // line 93 yield " <div class=\"section-type-handle btn btn-default btn-lg btn-nospin\" data-section-type=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["sectionKey"], "html", null, true); yield "\"> <i class=\"fa fa-"; // line 94 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["section"], "icon", [], "any", false, false, false, 94), "html", null, true); yield "\" aria-hidden=\"true\"></i> <br> <span class=\"slot-caption\">"; // line 96 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["section"], "header", [], "any", false, false, false, 96), "html", null, true); yield "</span> <!-- section template: \""; // line 97 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["section"], "content", [], "any", false, false, false, 97), "html", null, true); yield "\" --> <script type=\"text/html\">"; // line 99 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::include($this->env, $context, CoreExtension::getAttribute($this->env, $this->source, $context["section"], "content", [], "any", false, false, false, 99), array(), false)); // line 100 yield "</script> </div> "; } $_parent = $context['_parent']; unset($context['_seq'], $context['sectionKey'], $context['section'], $context['_parent']); $context = array_intersect_key($context, $_parent) + $_parent; // line 103 yield " <div class=\"clearfix\"></div> </div> "; } // line 106 yield " <p class=\"text-muted pt-md text-center\"><i>"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("mautic.core.drag.info"), "html", null, true); yield "</i></p> </div> </div> <div class=\"panel panel-default\" id=\"customize-slot-panel\"> <div class=\"panel-heading\"> <h4 class=\"panel-title\">"; // line 112 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("mautic.core.customize.slot"), "html", null, true); yield "</h4> </div> <div class=\"panel-body\" id=\"customize-form-container\"> <div id=\"slot-form-container\" class=\"col-md-12\"> <p class=\"text-muted pt-md text-center\"> <i>"; // line 117 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("mautic.core.slot.customize.info"), "html", null, true); yield "</i> </p> </div> "; // line 120 if ((array_key_exists("slots", $context) && is_iterable((isset($context["slots"]) || array_key_exists("slots", $context) ? $context["slots"] : (function () { throw new RuntimeError('Variable "slots" does not exist.', 120, $this->source); })())))) { // line 121 yield " "; $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable((isset($context["slots"]) || array_key_exists("slots", $context) ? $context["slots"] : (function () { throw new RuntimeError('Variable "slots" does not exist.', 121, $this->source); })())); foreach ($context['_seq'] as $context["slotKey"] => $context["slot"]) { // line 122 yield " <script type=\"text/html\" data-slot-type-form=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["slotKey"], "html", null, true); yield "\"> "; // line 123 yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(CoreExtension::getAttribute($this->env, $this->source, $context["slot"], "form", [], "any", false, false, false, 123), 'form'); yield " </script> "; } $_parent = $context['_parent']; unset($context['_seq'], $context['slotKey'], $context['slot'], $context['_parent']); $context = array_intersect_key($context, $_parent) + $_parent; // line 126 yield " "; } // line 127 yield " </div> </div> <div class=\"panel panel-default\" id=\"section\"> <div class=\"panel-heading\"> <h4 class=\"panel-title\">"; // line 131 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("mautic.core.customize.section"), "html", null, true); yield "</h4> </div> <div class=\"panel-body\" id=\"customize-form-container\"> <div id=\"section-form-container\" class=\"col-md-12\"> <p class=\"text-muted pt-md text-center\"> <i>"; // line 136 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("mautic.core.section.customize.info"), "html", null, true); yield "</i> </p> </div> <script type=\"text/html\" data-section-form> "; // line 140 yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["sectionForm"]) || array_key_exists("sectionForm", $context) ? $context["sectionForm"] : (function () { throw new RuntimeError('Variable "sectionForm" does not exist.', 140, $this->source); })()), 'form'); yield " </script> </div> </div> </div> </div> </div> "; yield from []; } /** * @codeCoverageIgnore */ public function getTemplateName(): string { return "@MauticCore/Helper/builder.html.twig"; } /** * @codeCoverageIgnore */ public function isTraitable(): bool { return false; } /** * @codeCoverageIgnore */ public function getDebugInfo(): array { return array ( 328 => 140, 321 => 136, 313 => 131, 307 => 127, 304 => 126, 295 => 123, 290 => 122, 285 => 121, 283 => 120, 277 => 117, 269 => 112, 259 => 106, 254 => 103, 246 => 100, 244 => 99, 240 => 97, 236 => 96, 231 => 94, 226 => 93, 222 => 92, 219 => 91, 217 => 90, 211 => 87, 201 => 81, 196 => 78, 188 => 75, 186 => 74, 182 => 72, 178 => 71, 173 => 69, 168 => 68, 164 => 67, 161 => 66, 159 => 65, 153 => 62, 145 => 59, 140 => 57, 133 => 55, 130 => 54, 118 => 45, 113 => 43, 105 => 38, 101 => 36, 99 => 35, 91 => 30, 86 => 28, 81 => 26, 76 => 24, 70 => 23, 65 => 21, 58 => 17, 52 => 14, 42 => 12,); } public function getSourceContext(): Source { return new Source("", "@MauticCore/Helper/builder.html.twig", "/home/corals/mautic.corals.io/app/bundles/CoreBundle/Resources/views/Helper/builder.html.twig"); } }