133 lines
17 KiB
PHP
133 lines
17 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\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/import.html */
|
||
|
class __TwigTemplate_71b036b7f22592892987288406b287adc5134f8454b897deb37074c64d784d1a 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 2
|
||
|
return "layout.html";
|
||
|
}
|
||
|
|
||
|
protected function doDisplay(array $context, array $blocks = [])
|
||
|
{
|
||
|
$macros = $this->macros;
|
||
|
// line 1
|
||
|
$context["csvDescription"] = $this->extensions['MailPoet\Twig\I18n']->translate("This file needs to be formatted in a CSV style (comma-separated-values). Look at some [link]examples on our support site[/link].");
|
||
|
// line 2
|
||
|
$this->parent = $this->loadTemplate("layout.html", "subscribers/importExport/import.html", 2);
|
||
|
$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_import\" class=\"wrap\">
|
||
|
<h1 class=\"mailpoet-h1 mailpoet-title\">
|
||
|
<span>";
|
||
|
// line 6
|
||
|
echo $this->extensions['MailPoet\Twig\I18n']->translate("Import");
|
||
|
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>
|
||
|
<!-- STEP subscriber data manipulation -->
|
||
|
";
|
||
|
// line 10
|
||
|
$this->loadTemplate("subscribers/importExport/import/step_data_manipulation.html", "subscribers/importExport/import.html", 10)->display($context);
|
||
|
// line 11
|
||
|
echo " <div id=\"import_container\" class=\"mailpoet-tab-content\"></div>
|
||
|
</div>
|
||
|
|
||
|
<script type=\"text/javascript\">
|
||
|
var
|
||
|
maxPostSize = '";
|
||
|
// line 16
|
||
|
echo \MailPoetVendor\twig_escape_filter($this->env, ($context["maxPostSize"] ?? null), "html", null, true);
|
||
|
echo "',
|
||
|
roleBasedEmails = JSON.parse(\"";
|
||
|
// line 17
|
||
|
echo \MailPoetVendor\twig_escape_filter($this->env, \MailPoetVendor\twig_escape_filter($this->env, ($context["role_based_emails"] ?? null), "js"), "html", null, true);
|
||
|
echo "\"),
|
||
|
maxPostSizeBytes = '";
|
||
|
// line 18
|
||
|
echo \MailPoetVendor\twig_escape_filter($this->env, ($context["maxPostSizeBytes"] ?? null), "html", null, true);
|
||
|
echo "',
|
||
|
importData = {},
|
||
|
mailpoetColumnsSelect2 = JSON.parse(\"";
|
||
|
// line 20
|
||
|
echo \MailPoetVendor\twig_escape_filter($this->env, \MailPoetVendor\twig_escape_filter($this->env, ($context["subscriberFieldsSelect2"] ?? null), "js"), "html", null, true);
|
||
|
echo "\"),
|
||
|
mailpoetColumns = JSON.parse(\"";
|
||
|
// line 21
|
||
|
echo \MailPoetVendor\twig_escape_filter($this->env, \MailPoetVendor\twig_escape_filter($this->env, ($context["subscriberFields"] ?? null), "js"), "html", null, true);
|
||
|
echo "\"),
|
||
|
mailpoetSegments = JSON.parse(\"";
|
||
|
// line 22
|
||
|
echo \MailPoetVendor\twig_escape_filter($this->env, \MailPoetVendor\twig_escape_filter($this->env, ($context["segments"] ?? null), "js"), "html", null, true);
|
||
|
echo "\");
|
||
|
</script>
|
||
|
|
||
|
";
|
||
|
// line 25
|
||
|
echo $this->extensions['MailPoet\Twig\I18n']->localize(["noMailChimpLists" => $this->extensions['MailPoet\Twig\I18n']->translate("No active lists found"), "serverError" => $this->extensions['MailPoet\Twig\I18n']->translate("Server error:"), "select" => $this->extensions['MailPoet\Twig\I18n']->translate("Select", "Form input type"), "wrongFileFormat" => $this->extensions['MailPoet\Twig\I18n']->translate("Only comma-separated (CSV) file formats are supported."), "maxPostSizeNotice" => \MailPoetVendor\twig_replace_filter($this->extensions['MailPoet\Twig\I18n']->translate("Your CSV is over %s and is too big to process. Please split the file into two or more sections."), ["%s" => // line 30
|
||
|
($context["maxPostSize"] ?? null)]), "dataProcessingError" => $this->extensions['MailPoet\Twig\I18n']->translate("Your data could not be processed. Please make sure it is in the correct format."), "noValidRecords" => $this->extensions['MailPoet\Twig\I18n']->translate("No valid records were found. This file needs to be formatted in a CSV style (comma-separated). Look at some [link]examples on our support site.[/link]"), "importNoticeSkipped" => $this->extensions['MailPoet\Twig\I18n']->translate("%1\$s records had issues and were skipped."), "importNoticeInvalid" => $this->extensions['MailPoet\Twig\I18n']->translate("%1\$s emails are not valid: %2\$s"), "importNoticeRoleBased" => $this->extensions['MailPoet\Twig\I18n']->translateWithContext("%1\$s [link]role-based addresses[/link] are not permitted: %2\$s", "Error message when importing addresses like postmaster@domain.com"), "importNoticeDuplicate" => $this->extensions['MailPoet\Twig\I18n']->translate("%1\$s emails appear more than once in your file: %2\$s"), "hideDetails" => $this->extensions['MailPoet\Twig\I18n']->translate("Hide details"), "showDetails" => $this->extensions['MailPoet\Twig\I18n']->translate("Show more details"), "segmentSelectionRequired" => $this->extensions['MailPoet\Twig\I18n']->translate("Please select at least one list"), "addNewList" => $this->extensions['MailPoet\Twig\I18n']->translate("Add new list"), "addNewField" => $this->extensions['MailPoet\Twig\I18n']->translate("Add new field"), "addNewColumuserColumnsn" => $this->extensions['MailPoet\Twig\I18n']->translate("Add new list"), "userColumns" => $this->extensions['MailPoet\Twig\I18n']->translate("User fields"), "selectedValueAlreadyMatched" => $this->extensions['MailPoet\Twig\I18n']->translate("The selected value is already matched to another field."), "confirmCorrespondingColumn" => $this->extensions['MailPoet\Twig\I18n']->translate("Confirm that this field corresponds to the selected field."), "columnContainInvalidElement" => $this->extensions['MailPoet\Twig\I18n']->translate("One of the fields contains an invalid email. Please fix it before continuing."), "january" => $this->extensions['MailPoet\Twig\I18n']->translate("January"), "february" => $this->extensions['MailPoet\Twig\I18n']->translate("February"), "march" => $this->extensions['MailPoet\Twig\I18n']->translate("March"), "april" => $this->extensions['MailPoet\Twig\I18n']->translate("April"), "may" => $this->extensions['MailPoet\Twig\I18n']->translate("May"), "june" => $this->extensions['MailPoet\Twig\I18n']->translate("June"), "july" => $this->extensions['MailPoet\Twig\I18n']->translate("July"), "august" => $this->extensions['MailPoet\Twig\I18n']->translate("August"), "september" => $this->extensions['MailPoet\Twig\I18n']->translate("September"), "october" => $this->extensions['MailPoet\Twig\I18n']->translate("October"), "november" => $this->extensions['MailPoet\Twig\I18n']->translate("November"), "december" => $this->extensions['MailPoet\Twig\I18n']->translate("December"), "noDateFieldMatch" => $this->extensions['MailPoet\Twig\I18n']->translate("Do not match as a 'date field' if most of the rows for that field return the same error."), "emptyFirstRowDate" => $this->extensions['MailPoet\Twig\I18n']->translate("First row date cannot be empty."), "verifyDateMatch" => $this->extensions['MailPoet\Twig\I18n']->translate("Verify that the date in blue matches the original date."), "pm" => $this->extensions['MailPoet\Twig\I18n']->translate("PM"), "am" => $this->extensions['MailPoet\Twig\I18n']->translate("AM"), "dateMatchError" => $this->extensions['MailPoet\Twig\I18n']->translate("Error matching date"), "columnContainsInvalidDate" => $this->extensions['MailPoet\Twig\I18n']->translate("One of the fields contains an invalid date. Please fix before continuing."), "listCreateError" => $this->extensions['MailPoet\Twig\I18n']->translate("Error adding a new list:"), "columnContainsInvalidElement" => $this->extensions['MailPoet\Twig\I18n']->translate("One of the fields contains an invalid email. Please fix before continuing."), "customFieldCreateEr
|
||
|
// line 130
|
||
|
echo "
|
||
|
";
|
||
|
}
|
||
|
|
||
|
public function getTemplateName()
|
||
|
{
|
||
|
return "subscribers/importExport/import.html";
|
||
|
}
|
||
|
|
||
|
public function isTraitable()
|
||
|
{
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
public function getDebugInfo()
|
||
|
{
|
||
|
return array ( 106 => 130, 104 => 30, 103 => 25, 97 => 22, 93 => 21, 89 => 20, 84 => 18, 80 => 17, 76 => 16, 69 => 11, 67 => 10, 61 => 7, 57 => 6, 53 => 4, 49 => 3, 44 => 2, 42 => 1, 35 => 2,);
|
||
|
}
|
||
|
|
||
|
public function getSourceContext()
|
||
|
{
|
||
|
return new Source("", "subscribers/importExport/import.html", "/home/circleci/mailpoet/mailpoet/views/subscribers/importExport/import.html");
|
||
|
}
|
||
|
}
|