oont-contents/plugins/mailpoet/generated/twig/f8/f81228294abb4d565e0deea863de36712b0926420bf8d1edf6e72504f68d1567.php
2025-02-08 15:10:23 +01:00

107 lines
2.7 KiB
PHP

<?php
if (!defined('ABSPATH')) exit;
use MailPoetVendor\Twig\Environment;
use MailPoetVendor\Twig\Error\LoaderError;
use MailPoetVendor\Twig\Error\RuntimeError;
use MailPoetVendor\Twig\Extension\CoreExtension;
use MailPoetVendor\Twig\Extension\SandboxExtension;
use MailPoetVendor\Twig\Markup;
use MailPoetVendor\Twig\Sandbox\SecurityError;
use MailPoetVendor\Twig\Sandbox\SecurityNotAllowedTagError;
use MailPoetVendor\Twig\Sandbox\SecurityNotAllowedFilterError;
use MailPoetVendor\Twig\Sandbox\SecurityNotAllowedFunctionError;
use MailPoetVendor\Twig\Source;
use MailPoetVendor\Twig\Template;
/* form/template_selection.html */
class __TwigTemplate_72cb81adca1fcada3d740fa851dd9cdc07463639615e596a1f2d37bd9b4fa4aa extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "layout.html";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$this->parent = $this->loadTemplate("layout.html", "form/template_selection.html", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
}
// line 3
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
// line 4
yield "<div class=\"block-editor\">
<div id=\"mailpoet_form_edit_templates\">
</div>
</div>
<script>
";
// line 11
yield " var mailpoet_templates = ";
yield json_encode(($context["templates"] ?? null));
yield ";
var mailpoet_form_edit_url =
\"";
// line 13
yield admin_url("admin.php?page=mailpoet-form-editor&template_id=");
yield "\";
";
// line 15
yield "</script>
<style id=\"mailpoet-form-editor-form-styles\"></style>
";
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "form/template_selection.html";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 69 => 15, 65 => 13, 59 => 11, 51 => 4, 47 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("", "form/template_selection.html", "/home/circleci/mailpoet/mailpoet/views/form/template_selection.html");
}
}