Files
php_assessment_2/wp-content/plugins/mailpoet/generated/twig/61/61cf158378e5dca7c505f8e841e719e4eb4d65fb9468456782e056b1905177f8.php
T

202 lines
28 KiB
PHP
Raw Normal View History

2025-02-05 23:15:46 +01:00
<?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/editor.html */
class __TwigTemplate_7b59605c39916c71a648c889aa253010605f62b41e4c92a7c75e0e0e6a5fc0fe extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'container' => [$this, 'block_container'],
];
}
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/editor.html", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
}
// line 3
public function block_container($context, array $blocks = [])
{
$macros = $this->macros;
// line 4
yield "
<div class=\"block-editor\">
<div id=\"mailpoet_form_edit\" class=\"block-editor__container\">
</div>
</div>
<script>
";
// line 12
yield " var mailpoet_form_data = ";
yield json_encode(($context["form"] ?? null));
yield ";
var mailpoet_form_exports = ";
// line 13
yield json_encode(($context["form_exports"] ?? null));
yield ";
var mailpoet_form_segments = ";
// line 14
yield json_encode(($context["segments"] ?? null));
yield ";
var mailpoet_custom_fields = ";
// line 15
yield json_encode(($context["custom_fields"] ?? null));
yield ";
var mailpoet_date_types = ";
// line 16
yield json_encode(($context["date_types"] ?? null));
yield ";
var mailpoet_date_formats = ";
// line 17
yield json_encode(($context["date_formats"] ?? null));
yield ";
var mailpoet_month_names = ";
// line 18
yield json_encode(($context["month_names"] ?? null));
yield ";
var mailpoet_form_preview_page = ";
// line 19
yield json_encode(($context["preview_page_url"] ?? null));
yield ";
var mailpoet_custom_fonts = ";
// line 20
yield json_encode(($context["custom_fonts"] ?? null));
yield ";
var mailpoet_translations = ";
// line 21
yield json_encode(($context["translations"] ?? null));
yield ";
var mailpoet_all_wp_posts = ";
// line 22
yield json_encode(($context["posts"] ?? null));
yield ";
var mailpoet_all_wp_pages = ";
// line 23
yield json_encode(($context["pages"] ?? null));
yield ";
var mailpoet_all_wp_categories = ";
// line 24
yield json_encode(($context["categories"] ?? null));
yield ";
var mailpoet_all_wp_tags = ";
// line 25
yield json_encode(($context["tags"] ?? null));
yield ";
var mailpoet_woocommerce_products = ";
// line 26
yield json_encode(($context["products"] ?? null));
yield ";
var mailpoet_woocommerce_categories = ";
// line 27
yield json_encode(($context["product_categories"] ?? null));
yield ";
var mailpoet_woocommerce_tags = ";
// line 28
yield json_encode(($context["product_tags"] ?? null));
yield ";
var mailpoet_close_icons_url = '";
// line 29
yield $this->extensions['MailPoet\Twig\Assets']->generateImageUrl("form_close_icon");
yield "';
var mailpoet_tutorial_seen = '";
// line 30
yield $this->env->getRuntime('MailPoetVendor\Twig\Runtime\EscaperRuntime')->escape(($context["editor_tutorial_seen"] ?? null), "js", null, true);
yield "';
var mailpoet_tutorial_url = '";
// line 31
yield $this->extensions['MailPoet\Twig\Assets']->generateCdnUrl("form-editor/tutorial.mp4");
yield "';
var mailpoet_is_administrator = ";
// line 32
yield ((($context["is_administrator"] ?? null)) ? ("true") : ("false"));
yield ";
var mailpoet_form_edit_url = \"";
// line 33
yield admin_url("admin.php?page=mailpoet-form-editor&id=");
yield "\";
var mailpoet_theme_support_widgets = ";
// line 34
yield ((($context["theme_support_widgets"] ?? null)) ? ("true") : ("false"));
yield ";
var mailpoet_theme_support_fse = ";
// line 35
yield ((($context["theme_support_fse"] ?? null)) ? ("true") : ("false"));
yield ";
";
// line 37
yield "</script>
<style id=\"mailpoet-form-editor-form-styles\"></style>
";
// line 41
yield $this->extensions['MailPoet\Twig\I18n']->localize(["displayForm" => $this->extensions['MailPoet\Twig\I18n']->translate("Display the form"), "enable" => $this->extensions['MailPoet\Twig\I18n']->translate("Enable"), "addFormName" => $this->extensions['MailPoet\Twig\I18n']->translateWithContext("Add form name", "A placeholder for form name input"), "back" => $this->extensions['MailPoet\Twig\I18n']->translate("Back"), "form" => $this->extensions['MailPoet\Twig\I18n']->translate("Form"), "formSettings" => $this->extensions['MailPoet\Twig\I18n']->translateWithContext("Settings", "A settings section heading"), "formSettingsStyles" => $this->extensions['MailPoet\Twig\I18n']->translate("Styles"), "formSettingsColor" => $this->extensions['MailPoet\Twig\I18n']->translate("Color"), "formSettingsStylesBackground" => $this->extensions['MailPoet\Twig\I18n']->translate("Background"), "formSettingsStylesBackgroundImage" => $this->extensions['MailPoet\Twig\I18n']->translate("Background Image"), "formSettingsStylesSelectImage" => $this->extensions['MailPoet\Twig\I18n']->translate("Select Image…"), "formSettingsStylesFontSize" => $this->extensions['MailPoet\Twig\I18n']->translate("Font Size"), "formSettingsStylesFont" => $this->extensions['MailPoet\Twig\I18n']->translate("Font"), "formSettingsStylesFontColorInherit" => $this->extensions['MailPoet\Twig\I18n']->translate("Inherit from theme"), "formSettingsInheritStyleFromTheme" => $this->extensions['MailPoet\Twig\I18n']->translate("Inherit style from theme"), "formSettingsDisplayFullWidth" => $this->extensions['MailPoet\Twig\I18n']->translateWithContext("Display Fullwidth", "A label for checkbox in form style settings"), "formSettingsBold" => $this->extensions['MailPoet\Twig\I18n']->translateWithContext("Bold", "A label for checkbox in form style settings"), "formSettingsBorderSize" => $this->extensions['MailPoet\Twig\I18n']->translateWithContext("Border Size", "A label for checkbox in form style settings"), "formSettingsBorderRadius" => $this->extensions['MailPoet\Twig\I18n']->translateWithContext("Border Radius", "A label for checkbox in form style settings"), "formSettingsInputPadding" => $this->extensions['MailPoet\Twig\I18n']->translateWithContext("Input Padding", "A label for form style settings"), "formSettingsFormPadding" => $this->extensions['MailPoet\Twig\I18n']->translateWithContext("Form Padding", "A label for form style settings"), "formSettingsAlignment" => $this->extensions['MailPoet\Twig\I18n']->translateWithContext("Alignment", "A label for form style settings"), "formSettingsAlignmentLeft" => $this->extensions['MailPoet\Twig\I18n']->translateWithContext("left", "An alignment value for form editor"), "formSettingsAlignmentCenter" => $this->extensions['MailPoet\Twig\I18n']->translateWithContext("center", "An alignment value for form editor"), "formSettingsAlignmentRight" => $this->extensions['MailPoet\Twig\I18n']->translateWithContext("right", "An alignment value for form editor"), "formSettingsBorder" => $this->extensions['MailPoet\Twig\I18n']->translateWithContext("Border", "A label for checkbox in form style settings"), "formSettingsApplyToAll" => $this->extensions['MailPoet\Twig\I18n']->translate("Apply styles to all inputs"), "formSettingsWidth" => $this->extensions['MailPoet\Twig\I18n']->translateWithContext("Form width", "A label for form width settings"), "customFieldSettings" => $this->extensions['MailPoet\Twig\I18n']->translateWithContext("Custom field settings", "A settings section heading"), "customFieldsFormSettings" => $this->extensions['MailPoet\Twig\I18n']->translateWithContext("Form settings", "A settings section heading"), "formPlacement" => $this->extensions['MailPoet\Twig\I18n']->translateWithContext("Form Placement", "A settings section heading"), "formPlacementLabel" => $this->extensions['MailPoet\Twig\I18n']->translateWithContext("Form placement", "A label for a select box"), "customCss" => $this->extensions['MailPoet\Twig\I18n']->translateWithContext("Custom CSS", "A settings section heading"), "formSaved" => $this->extensions['MailPoe
// line 214
yield "
";
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "form/editor.html";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 165 => 214, 163 => 41, 157 => 37, 153 => 35, 149 => 34, 145 => 33, 141 => 32, 137 => 31, 133 => 30, 129 => 29, 125 => 28, 121 => 27, 117 => 26, 113 => 25, 109 => 24, 105 => 23, 101 => 22, 97 => 21, 93 => 20, 89 => 19, 85 => 18, 81 => 17, 77 => 16, 73 => 15, 69 => 14, 65 => 13, 60 => 12, 51 => 4, 47 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("", "form/editor.html", "/home/circleci/mailpoet/mailpoet/views/form/editor.html");
}
}