<?php if (!defined('ABSPATH')) exit; use MailPoetVendor\Twig\Environment; use MailPoetVendor\Twig\Error\LoaderError; use MailPoetVendor\Twig\Error\RuntimeError; 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; /* subscribers/importExport/export.html */ class __TwigTemplate_d397b2a974f636a1e1c9b326eb2ccfd5695d20d9e10469f6f7ff8efdcee0d044 extends Template { private $source; private $macros = []; public function __construct(Environment $env) { parent::__construct($env); $this->source = $this->getSourceContext(); $this->blocks = [ 'content' => [$this, 'block_content'], 'translations' => [$this, 'block_translations'], ]; } 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", "subscribers/importExport/export.html", 1); $this->parent->display($context, array_merge($this->blocks, $blocks)); } // line 3 public function block_content($context, array $blocks = []) { $macros = $this->macros; // line 4 echo "<div id=\"mailpoet_subscribers_export\" class=\"wrap\"> <h1 class=\"mailpoet-h1 mailpoet-title\"> <span>"; // line 6 echo $this->extensions['MailPoet\Twig\I18n']->translate("Export"); echo "</span> <a class=\"mailpoet-button button button-secondary button-small\" href=\"?page=mailpoet-subscribers#/\">"; // line 7 echo $this->extensions['MailPoet\Twig\I18n']->translate("Back to Subscribers"); echo "</a> </h1> "; // line 9 if (\MailPoetVendor\twig_test_empty(($context["segments"] ?? null))) { // line 10 echo " <div class=\"error\"> <p>"; // line 11 echo $this->extensions['MailPoet\Twig\I18n']->translate("Yikes! Couldn't find any subscribers"); echo "</p> </div> "; } // line 14 echo " <div id=\"mailpoet-export\" class=\"mailpoet-tab-content\"> <!-- Template data --> </div> </div> <script id=\"mailpoet_subscribers_export_template\" type=\"text/x-handlebars-template\"> <div id=\"export_result_notice\" class=\"updated mailpoet_hidden\"> <!-- Result message --> </div> <div class=\"mailpoet-settings-grid\"> "; // line 23 if ( !\MailPoetVendor\twig_test_empty(($context["segments"] ?? null))) { // line 24 echo " <div class=\"mailpoet-settings-label\"> <label for=\"export_lists\"> "; // line 26 echo $this->extensions['MailPoet\Twig\I18n']->translate("Pick one or multiple lists"); echo " </label> </div> <div class=\"mailpoet-settings-inputs\"> <div class=\"mailpoet-form-select mailpoet-form-input\"> <select id=\"export_lists\" data-placeholder=\""; // line 31 echo $this->extensions['MailPoet\Twig\I18n']->translateWithContext("Select", "Verb"); echo "\" multiple=\"multiple\"></select> </div> </div> "; } // line 35 echo " <div class=\"mailpoet-settings-label\"> <label for=\"export_columns\"> "; // line 38 echo $this->extensions['MailPoet\Twig\I18n']->translate("List of fields to export"); echo " <p class=\"description\"> "; // line 40 echo MailPoet\Util\Helpers::replaceLinkTags($this->extensions['MailPoet\Twig\I18n']->translate("[link]Read about the Global status.[/link]"), "https://kb.mailpoet.com/article/245-what-is-global-status", ["target" => "_blank", "data-beacon-article" => "5a9548782c7d3a75495122f9"]); // line 43 echo " </p> </label> </div> <div class=\"mailpoet-settings-inputs\"> <div class=\"mailpoet-form-select mailpoet-form-input\"> <select id=\"export_columns\" data-placeholder=\""; // line 49 echo $this->extensions['MailPoet\Twig\I18n']->translateWithContext("Select", "Verb"); echo "\" multiple=\"multiple\"></select> </div> </div> <div class=\"mailpoet-settings-label\"> "; // line 54 echo $this->extensions['MailPoet\Twig\I18n']->translate("Format"); echo " </div> <div class=\"mailpoet-settings-inputs\"> <div class=\"mailpoet-settings-inputs-row\"> <label class=\"mailpoet-form-radio\"> <input type=\"radio\" name=\"option_format\" id=\"export-format-csv\" value=\"csv\" checked> <span class=\"mailpoet-form-radio-control\"></span> </label> <label for=\"export-format-csv\">"; // line 62 echo $this->extensions['MailPoet\Twig\I18n']->translate("CSV file"); echo "</label> </div> <div class=\"mailpoet-settings-inputs-row"; // line 64 if ( !($context["zipExtensionLoaded"] ?? null)) { echo " mailpoet-disabled"; } echo "\"> <label class=\"mailpoet-form-radio\"> <input type=\"radio\" name=\"option_format\" id=\"export-format-xlsx\" value=\"xlsx\""; // line 66 if ( !($context["zipExtensionLoaded"] ?? null)) { echo " disabled"; } echo "> <span class=\"mailpoet-form-radio-control\"></span> </label> <label for=\"export-format-xlsx\">"; // line 69 echo $this->extensions['MailPoet\Twig\I18n']->translate("Excel file"); echo "</label> </div> "; // line 71 if ( !($context["zipExtensionLoaded"] ?? null)) { // line 72 echo " <div class=\"inline notice notice-warning\"> <p>"; // line 73 echo $this->extensions['MailPoet\Twig\I18n']->translate(MailPoet\Util\Helpers::replaceLinkTags("ZIP extension is required to create Excel files. Please refer to the [link]official PHP ZIP installation guide[/link] or contact your hosting provider’s technical support for instructions on how to install and load the ZIP extension.", "http://php.net/manual/en/zip.installation.php")); echo "</p> </div> "; } // line 76 echo " </div> <div class=\"mailpoet-settings-save\"> <a href=\"javascript:;\" class=\"mailpoet-button mailpoet-disabled button-primary\" id=\"mailpoet-export-button\"> "; // line 80 echo $this->extensions['MailPoet\Twig\I18n']->translate("Export"); echo " </a> </div> </div> </script> <script type=\"text/javascript\"> var segments = "; // line 88 echo ($context["segments"] ?? null); echo ", subscriberFieldsSelect2 = "; // line 90 echo ($context["subscriberFieldsSelect2"] ?? null); echo ", exportData = { segments: segments.length || null }; </script> "; } // line 97 public function block_translations($context, array $blocks = []) { $macros = $this->macros; // line 98 echo $this->extensions['MailPoet\Twig\I18n']->localize(["serverError" => $this->extensions['MailPoet\Twig\I18n']->translate("Server error:"), "exportMessage" => $this->extensions['MailPoet\Twig\I18n']->translate("%1\$s subscribers were exported. Get the exported file [link]here[/link].")]); // line 101 echo " "; } public function getTemplateName() { return "subscribers/importExport/export.html"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 220 => 101, 218 => 98, 214 => 97, 204 => 90, 199 => 88, 188 => 80, 182 => 76, 176 => 73, 173 => 72, 171 => 71, 166 => 69, 158 => 66, 151 => 64, 146 => 62, 135 => 54, 127 => 49, 119 => 43, 117 => 40, 112 => 38, 107 => 35, 100 => 31, 92 => 26, 88 => 24, 86 => 23, 75 => 14, 69 => 11, 66 => 10, 64 => 9, 59 => 7, 55 => 6, 51 => 4, 47 => 3, 36 => 1,); } public function getSourceContext() { return new Source("", "subscribers/importExport/export.html", "/home/circleci/mailpoet/mailpoet/views/subscribers/importExport/export.html"); } }