Website : rimsha.abasa.com
backdoor
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
mautic
/
var
/
tmp
/
twig
/
32
/
Filename :
322c6434e50cad4be57f38ca5cfc8b0a.php
back
Copy
<?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/Theme/list.html.twig */ class __TwigTemplate_5935060bd6badab0907a4b5fbac4e54b 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->blocks = [ 'mainContent' => [$this, 'block_mainContent'], ]; } protected function doGetParent(array $context): bool|string|Template|TemplateWrapper { // line 1 return "@MauticCore/Theme/index.html.twig"; } protected function doDisplay(array $context, array $blocks = []): iterable { $macros = $this->macros; $this->parent = $this->loadTemplate("@MauticCore/Theme/index.html.twig", "@MauticCore/Theme/list.html.twig", 1); yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks)); } // line 3 /** * @return iterable<null|scalar|\Stringable> */ public function block_mainContent(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 4 yield " "; // line 5 if (Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["items"]) || array_key_exists("items", $context) ? $context["items"] : (function () { throw new RuntimeError('Variable "items" does not exist.', 5, $this->source); })()))) { // line 6 yield " <div class=\"table-responsive\"> <table class=\"table table-hover theme-list\" id=\"themeTable\"> <thead> <tr> "; // line 10 yield Twig\Extension\CoreExtension::include($this->env, $context, "@MauticCore/Helper/tableheader.html.twig", ["checkall" => "true", "target" => "#themeTable"]); // line 13 yield " "; // line 15 yield Twig\Extension\CoreExtension::include($this->env, $context, "@MauticCore/Helper/tableheader.html.twig", ["text" => "mautic.core.title"]); // line 17 yield " "; // line 19 yield Twig\Extension\CoreExtension::include($this->env, $context, "@MauticCore/Helper/tableheader.html.twig", ["text" => "mautic.core.author"]); // line 21 yield " "; // line 23 yield Twig\Extension\CoreExtension::include($this->env, $context, "@MauticCore/Helper/tableheader.html.twig", ["text" => "mautic.core.features"]); // line 25 yield " </tr> </thead> <tbody> "; // line 30 $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable((isset($context["items"]) || array_key_exists("items", $context) ? $context["items"] : (function () { throw new RuntimeError('Variable "items" does not exist.', 30, $this->source); })())); $context['loop'] = [ 'parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true, ]; if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) { $length = count($context['_seq']); $context['loop']['revindex0'] = $length - 1; $context['loop']['revindex'] = $length; $context['loop']['length'] = $length; $context['loop']['last'] = 1 === $length; } foreach ($context['_seq'] as $context["k"] => $context["item"]) { // line 31 yield " "; $context["thumbnailUrl"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((("themes/" . $context["k"]) . "/thumbnail.png")); // line 32 yield " "; $context["hasThumbnail"] = $this->env->getTest('file')->getCallable()((CoreExtension::getAttribute($this->env, $this->source, $context["item"], "dir", [], "array", false, false, false, 32) . "/thumbnail.png")); // line 33 yield " "; $context["visibilityButton"] = []; // line 34 yield " "; $context["visibilityCss"] = ""; // line 35 yield " "; $context["customButtons"] = []; // line 36 yield " "; // line 37 if (CoreExtension::getAttribute($this->env, $this->source, $context["item"], "visibility", [], "any", true, true, false, 37)) { // line 38 yield " "; $context["btnText"] = "mautic.core.theme.hide"; // line 39 yield " "; $context["iconClass"] = "ri-eye-off-line"; // line 40 yield " "; $context["message"] = "mautic.core.theme.form.confirm.hide"; // line 41 yield " "; $context["confirmBtnClass"] = ""; // line 42 yield " "; // line 43 if (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "visibility", [], "any", false, true, false, 43), "hidden", [], "any", true, true, false, 43)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "visibility", [], "any", false, false, false, 43), "hidden", [], "any", false, false, false, 43), false)) : (false))) { // line 44 yield " "; $context["btnText"] = "mautic.core.theme.unhide"; // line 45 yield " "; $context["iconClass"] = "ri-eye-line"; // line 46 yield " "; $context["message"] = "mautic.core.theme.form.confirm.unhide"; // line 47 yield " "; $context["confirmBtnClass"] = "btn btn-success"; // line 48 yield " "; $context["visibilityCss"] = "disabled-row"; // line 49 yield " "; } // line 50 yield " "; // line 51 $context["visibilityButton"] = ["attr" => ["data-toggle" => "confirmation", "href" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("mautic_themes_action", ["objectAction" => "visibility", "objectId" => // line 54 $context["k"]]), "data-message" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans( // line 55 (isset($context["message"]) || array_key_exists("message", $context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.', 55, $this->source); })()), ["%theme%" => (((CoreExtension::getAttribute($this->env, $this->source, $context["item"], "name", [], "any", false, false, false, 55) . " (") . $context["k"]) . ")")]), "data-confirm-text" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans( // line 56 (isset($context["btnText"]) || array_key_exists("btnText", $context) ? $context["btnText"] : (function () { throw new RuntimeError('Variable "btnText" does not exist.', 56, $this->source); })())), "data-confirm-callback" => "executeAction", "data-cancel-text" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("mautic.core.form.cancel"), "data-confirm-btn-class" => // line 59 (isset($context["confirmBtnClass"]) || array_key_exists("confirmBtnClass", $context) ? $context["confirmBtnClass"] : (function () { throw new RuntimeError('Variable "confirmBtnClass" does not exist.', 59, $this->source); })())], "btnText" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans( // line 61 (isset($context["btnText"]) || array_key_exists("btnText", $context) ? $context["btnText"] : (function () { throw new RuntimeError('Variable "btnText" does not exist.', 61, $this->source); })())), "iconClass" => // line 62 (isset($context["iconClass"]) || array_key_exists("iconClass", $context) ? $context["iconClass"] : (function () { throw new RuntimeError('Variable "iconClass" does not exist.', 62, $this->source); })()), "priority" => -1]; // line 65 yield " "; } // line 66 yield " <tr> <td> "; // line 69 $context["item"] = Twig\Extension\CoreExtension::merge($context["item"], ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["item"], "key", [], "any", false, false, false, 69)]); // line 70 yield " "; $context["previewButtonSettings"] = ["attr" => ["data-toggle" => "modal", "data-target" => ("#theme-" . // line 73 $context["k"])], "btnText" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("mautic.asset.asset.preview"), "iconClass" => "ri-image-line"]; // line 78 yield " "; $context["customButtons"] = (((isset($context["hasThumbnail"]) || array_key_exists("hasThumbnail", $context) ? $context["hasThumbnail"] : (function () { throw new RuntimeError('Variable "hasThumbnail" does not exist.', 78, $this->source); })())) ? (Twig\Extension\CoreExtension::merge( // line 79 (isset($context["customButtons"]) || array_key_exists("customButtons", $context) ? $context["customButtons"] : (function () { throw new RuntimeError('Variable "customButtons" does not exist.', 79, $this->source); })()), [(isset($context["previewButtonSettings"]) || array_key_exists("previewButtonSettings", $context) ? $context["previewButtonSettings"] : (function () { throw new RuntimeError('Variable "previewButtonSettings" does not exist.', 79, $this->source); })())])) : ( // line 80 (isset($context["customButtons"]) || array_key_exists("customButtons", $context) ? $context["customButtons"] : (function () { throw new RuntimeError('Variable "customButtons" does not exist.', 80, $this->source); })()))); // line 82 yield " "; $context["deleteButton"] = ["delete" => CoreExtension::getAttribute($this->env, $this->source, // line 83 (isset($context["permissions"]) || array_key_exists("permissions", $context) ? $context["permissions"] : (function () { throw new RuntimeError('Variable "permissions" does not exist.', 83, $this->source); })()), "core:themes:delete", [], "array", false, false, false, 83)]; // line 85 yield " "; $context["templateButtons"] = ((!CoreExtension::inFilter($context["k"], (isset($context["defaultThemes"]) || array_key_exists("defaultThemes", $context) ? $context["defaultThemes"] : (function () { throw new RuntimeError('Variable "defaultThemes" does not exist.', 85, $this->source); })()))) ? ((isset($context["deleteButton"]) || array_key_exists("deleteButton", $context) ? $context["deleteButton"] : (function () { throw new RuntimeError('Variable "deleteButton" does not exist.', 85, $this->source); })())) : ([])); // line 86 yield " "; $context["downloadButton"] = ["attr" => ["href" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("mautic_themes_action", ["objectAction" => "download", "objectId" => // line 90 $context["k"]]), "data-toggle" => "0"], "btnText" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("mautic.core.download"), "iconClass" => "ri-download-line"]; // line 97 yield " "; $context["customButtons"] = Twig\Extension\CoreExtension::merge((isset($context["customButtons"]) || array_key_exists("customButtons", $context) ? $context["customButtons"] : (function () { throw new RuntimeError('Variable "customButtons" does not exist.', 97, $this->source); })()), [(isset($context["downloadButton"]) || array_key_exists("downloadButton", $context) ? $context["downloadButton"] : (function () { throw new RuntimeError('Variable "downloadButton" does not exist.', 97, $this->source); })())]); // line 98 yield " "; if ( !Twig\Extension\CoreExtension::testEmpty((isset($context["visibilityButton"]) || array_key_exists("visibilityButton", $context) ? $context["visibilityButton"] : (function () { throw new RuntimeError('Variable "visibilityButton" does not exist.', 98, $this->source); })()))) { // line 99 yield " "; $context["customButtons"] = Twig\Extension\CoreExtension::merge((isset($context["customButtons"]) || array_key_exists("customButtons", $context) ? $context["customButtons"] : (function () { throw new RuntimeError('Variable "customButtons" does not exist.', 99, $this->source); })()), [(isset($context["visibilityButton"]) || array_key_exists("visibilityButton", $context) ? $context["visibilityButton"] : (function () { throw new RuntimeError('Variable "visibilityButton" does not exist.', 99, $this->source); })())]); // line 100 yield " "; } // line 101 yield " "; // line 102 yield Twig\Extension\CoreExtension::include($this->env, $context, "@MauticCore/Helper/list_actions.html.twig", ["item" => // line 104 $context["item"], "templateButtons" => // line 105 (isset($context["templateButtons"]) || array_key_exists("templateButtons", $context) ? $context["templateButtons"] : (function () { throw new RuntimeError('Variable "templateButtons" does not exist.', 105, $this->source); })()), "routeBase" => "themes", "langVar" => "core.theme", "customButtons" => // line 108 (isset($context["customButtons"]) || array_key_exists("customButtons", $context) ? $context["customButtons"] : (function () { throw new RuntimeError('Variable "customButtons" does not exist.', 108, $this->source); })())]); // line 110 yield " "; // line 112 if ((isset($context["hasThumbnail"]) || array_key_exists("hasThumbnail", $context) ? $context["hasThumbnail"] : (function () { throw new RuntimeError('Variable "hasThumbnail" does not exist.', 112, $this->source); })())) { // line 113 yield " <!-- Modal --> <div class=\"modal fade\" id=\"theme-"; // line 114 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["k"], "html", null, true); yield "\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["k"], "html", null, true); yield "\"> <div class=\"modal-dialog\" role=\"document\"> <div class=\"modal-content\"> <div class=\"modal-header\"> <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"> <span aria-hidden=\"true\">×</span></button> <h4 class=\"modal-title\" id=\""; // line 120 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["k"], "html", null, true); yield "\">"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "name", [], "array", false, false, false, 120)); yield "</h4> </div> <div class=\"modal-body\"> <div style=\"background-image: url("; // line 123 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["thumbnailUrl"]) || array_key_exists("thumbnailUrl", $context) ? $context["thumbnailUrl"] : (function () { throw new RuntimeError('Variable "thumbnailUrl" does not exist.', 123, $this->source); })()), "html", null, true); yield ");background-repeat:no-repeat;background-size:contain; background-position:center; width: 100%; height: 600px\"></div> </div> </div> </div> </div> "; } // line 129 yield " </td> <td class=\""; // line 130 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["visibilityCss"]) || array_key_exists("visibilityCss", $context) ? $context["visibilityCss"] : (function () { throw new RuntimeError('Variable "visibilityCss" does not exist.', 130, $this->source); })()), "html", null, true); yield "\"> <div> "; // line 132 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "name", [], "array", false, false, false, 132)); yield " ("; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "key", [], "array", false, false, false, 132)); yield ") </div> </td> <td class=\""; // line 135 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["visibilityCss"]) || array_key_exists("visibilityCss", $context) ? $context["visibilityCss"] : (function () { throw new RuntimeError('Variable "visibilityCss" does not exist.', 135, $this->source); })()), "html", null, true); yield "\"> <div> "; // line 137 if (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "config", [], "array", false, true, false, 137), "authorUrl", [], "array", true, true, false, 137) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "config", [], "array", false, false, false, 137), "authorUrl", [], "array", false, false, false, 137))) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "config", [], "array", false, true, false, 137), "author", [], "array", true, true, false, 137))) { // line 138 yield " <a href=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Mautic\CoreBundle\Helper\InputHelper::url(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "config", [], "array", false, false, false, 138), "authorUrl", [], "array", false, false, false, 138)), "html", null, true); yield "\" target=\"_blank\"> "; // line 139 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "config", [], "array", false, false, false, 139), "author", [], "array", false, false, false, 139)); yield " </a> "; } elseif ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 141 $context["item"], "config", [], "array", false, true, false, 141), "author", [], "array", true, true, false, 141) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "config", [], "array", false, false, false, 141), "author", [], "array", false, false, false, 141)))) { // line 142 yield " "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "config", [], "array", false, false, false, 142), "author", [], "array", false, false, false, 142)); yield " "; } // line 144 yield " </div> </td> <td class=\"visible-md visible-lg "; // line 146 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["visibilityCss"]) || array_key_exists("visibilityCss", $context) ? $context["visibilityCss"] : (function () { throw new RuntimeError('Variable "visibilityCss" does not exist.', 146, $this->source); })()), "html", null, true); yield "\"> <div class=\"d-flex ai-center gap-xs\"> "; // line 148 $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "config", [], "array", false, false, false, 148), "builder", [], "array", false, false, false, 148)); foreach ($context['_seq'] as $context["_key"] => $context["builder"]) { // line 149 yield " <span style=\"white-space: nowrap;\"> <span class=\"label label-primary\">"; // line 150 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["builder"], "html", null, true); yield "</span> </span> "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_key'], $context['builder'], $context['_parent']); $context = array_intersect_key($context, $_parent) + $_parent; // line 153 yield " "; if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "config", [], "array", false, true, false, 153), "features", [], "array", true, true, false, 153) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "config", [], "array", false, false, false, 153), "features", [], "array", false, false, false, 153)))) { // line 154 yield " "; $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "config", [], "array", false, false, false, 154), "features", [], "array", false, false, false, 154)); foreach ($context['_seq'] as $context["_key"] => $context["feature"]) { // line 155 yield " <span class=\"label label-gray\"> "; // line 157 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(("mautic.core.theme.feature." . $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["feature"]))), "html", null, true); yield " </span> "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_key'], $context['feature'], $context['_parent']); $context = array_intersect_key($context, $_parent) + $_parent; // line 161 yield " "; } // line 162 yield " </div> </td> </tr> "; ++$context['loop']['index0']; ++$context['loop']['index']; $context['loop']['first'] = false; if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) { --$context['loop']['revindex0']; --$context['loop']['revindex']; $context['loop']['last'] = 0 === $context['loop']['revindex0']; } } $_parent = $context['_parent']; unset($context['_seq'], $context['k'], $context['item'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 166 yield " </tbody> </table> </div> "; } else { // line 170 yield " "; yield Twig\Extension\CoreExtension::include($this->env, $context, "@MauticCore/Helper/noresults.html.twig", ["tip" => "mautic.theme.noresults.tip"]); // line 173 yield " "; } yield from []; } /** * @codeCoverageIgnore */ public function getTemplateName(): string { return "@MauticCore/Theme/list.html.twig"; } /** * @codeCoverageIgnore */ public function isTraitable(): bool { return false; } /** * @codeCoverageIgnore */ public function getDebugInfo(): array { return array ( 383 => 173, 380 => 170, 374 => 166, 357 => 162, 354 => 161, 344 => 157, 340 => 155, 335 => 154, 332 => 153, 323 => 150, 320 => 149, 316 => 148, 311 => 146, 307 => 144, 301 => 142, 299 => 141, 294 => 139, 289 => 138, 287 => 137, 282 => 135, 274 => 132, 269 => 130, 266 => 129, 257 => 123, 249 => 120, 238 => 114, 235 => 113, 233 => 112, 229 => 110, 227 => 108, 226 => 105, 225 => 104, 224 => 102, 221 => 101, 218 => 100, 215 => 99, 212 => 98, 209 => 97, 207 => 90, 205 => 86, 202 => 85, 200 => 83, 198 => 82, 196 => 80, 195 => 79, 193 => 78, 191 => 73, 189 => 70, 187 => 69, 182 => 66, 179 => 65, 177 => 62, 176 => 61, 175 => 59, 174 => 56, 173 => 55, 172 => 54, 171 => 51, 168 => 50, 165 => 49, 162 => 48, 159 => 47, 156 => 46, 153 => 45, 150 => 44, 148 => 43, 145 => 42, 142 => 41, 139 => 40, 136 => 39, 133 => 38, 131 => 37, 128 => 36, 125 => 35, 122 => 34, 119 => 33, 116 => 32, 113 => 31, 96 => 30, 89 => 25, 87 => 23, 83 => 21, 81 => 19, 77 => 17, 75 => 15, 71 => 13, 69 => 10, 63 => 6, 61 => 5, 58 => 4, 51 => 3, 40 => 1,); } public function getSourceContext(): Source { return new Source("", "@MauticCore/Theme/list.html.twig", "/var/www/mautic/app/bundles/CoreBundle/Resources/views/Theme/list.html.twig"); } }