This commit is contained in:
emmymayo
2025-02-05 23:15:46 +01:00
commit 7269c99357
16995 changed files with 3389680 additions and 0 deletions
@@ -0,0 +1,95 @@
<?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;
/* newsletter/templates/blocks/coupon/block.hbs */
class __TwigTemplate_57bfdd4fb362dd94264b1d68ab1e6f4bdf9b65226909b1d15784e661ea7f7234 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 1
yield "<div class=\"mailpoet_tools\"></div>
<div class=\"mailpoet_content\" data-automation-id=\"coupon_block\">
<div class=\"mailpoet_editor_coupon\" style=\"{{#ifCond model.styles.block.textAlign '==' 'left'}}margin: 0 auto 0 0; {{/ifCond}}{{#ifCond model.styles.block.textAlign '==' 'center'}}margin: auto; {{/ifCond}}{{#ifCond model.styles.block.textAlign '==' 'right'}}margin: 0 0 0 auto; {{/ifCond}}line-height: {{ model.styles.block.lineHeight }}; width: {{ model.styles.block.width }}; background-color: {{ model.styles.block.backgroundColor }}; color: {{ model.styles.block.fontColor }}; font-family: {{fontWithFallback model.styles.block.fontFamily }}; font-size: {{ model.styles.block.fontSize }}; font-weight: {{ model.styles.block.fontWeight }}; border: {{ model.styles.block.borderWidth }} {{ model.styles.block.borderStyle }} {{ model.styles.block.borderColor }}; border-radius: {{ model.styles.block.borderRadius }};\">{{ model.code }}</div>
<div class=\"mailpoet_editor_coupon_overlay\" style=\"{{#ifCond model.source '==' 'allCoupons'}}visibility: hidden;{{/ifCond}}\">
";
// line 5
yield $this->extensions['MailPoet\Twig\I18n']->translate("The coupon code will be auto-generated when this campaign is activated.");
yield "
{{#ifCond model.isStandardEmail '==' true}}
";
// line 7
yield $this->extensions['MailPoet\Twig\I18n']->translate("All subscribers of this campaign will receive the same coupon code.");
yield "
{{else}}
";
// line 9
yield $this->extensions['MailPoet\Twig\I18n']->translate("Each subscriber of this campaign will receive a new coupon code.");
yield "
{{/ifCond}}
</div>
</div>
<div class=\"mailpoet_block_highlight\"></div>
";
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "newsletter/templates/blocks/coupon/block.hbs";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 54 => 9, 49 => 7, 44 => 5, 38 => 1,);
}
public function getSourceContext()
{
return new Source("", "newsletter/templates/blocks/coupon/block.hbs", "/home/circleci/mailpoet/mailpoet/views/newsletter/templates/blocks/coupon/block.hbs");
}
}
@@ -0,0 +1,153 @@
<?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;
/* newsletter/templates/components/heading.hbs */
class __TwigTemplate_09c5e4020e8979b31e252e5ac1bc9836a0273b471026683178b9a266d7ab5372 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 1
yield "{{#if isWoocommerceTransactional}}
<h1>";
// line 2
yield $this->extensions['MailPoet\Twig\I18n']->translateWithContext("Edit template for WooCommerce emails", "Name of user interface used to customize email template used for eCommerce related emails (for example order confirmation email)");
yield "</h1>
<p class=\"mailpoet_heading_wc_template_description\">";
// line 3
yield MailPoet\Util\Helpers::replaceLinkTags($this->extensions['MailPoet\Twig\I18n']->translate("This email template will be used for all your WooCommerce emails. Meaning that any content added to this template will be visible in all WooCommerce emails. If you want to change email-specific content including titles, [link]visit WooCommerce settings[/link]."), "?page=wc-settings&tab=email", ["target" => "_blank"]);
yield "</p>
<div class=\"mailpoet_form_field mailpoet_heading_form_field\">
<label for=\"mailpoet_heading_email_type\">";
// line 5
yield $this->extensions['MailPoet\Twig\I18n']->translateWithContext("Load dummy data for email:", "Label of a dropdown used to switch between email type: order processing, order completed, ...");
yield "</label>
<select id=\"mailpoet_heading_email_type\">
<option value=\"new_account\">";
// line 7
yield $this->extensions['MailPoet\Twig\I18n']->translate("New account", "woocommerce");
yield "</option>
<option value=\"processing_order\">";
// line 8
yield $this->extensions['MailPoet\Twig\I18n']->translate("Processing order", "woocommerce");
yield "</option>
<option value=\"completed_order\" selected=\"selected\">";
// line 9
yield $this->extensions['MailPoet\Twig\I18n']->translate("Completed order", "woocommerce");
yield "</option>
<option value=\"customer_note\">";
// line 10
yield $this->extensions['MailPoet\Twig\I18n']->translate("Customer note", "woocommerce");
yield "</option>
</select>
</div>
{{else if isAutomationEmail}}
{{else if isConfirmationEmailTemplate}}
<h3>";
// line 16
yield $this->extensions['MailPoet\Twig\I18n']->translateWithContext("Edit template for Confirmation emails", "Name of user interface used to customize email template used for confirmation emails");
yield "</h3>
<div class=\"mailpoet_form_field mailpoet_heading_form_field\">
<input
type=\"text\"
class=\"mailpoet_input mailpoet_input_title\"
data-automation-id=\"newsletter_title\"
value=\"{{ model.subject }}\"
placeholder=\"";
// line 23
yield $this->extensions['MailPoet\Twig\I18n']->translate("Click here to change the subject!");
yield "\"
/>
<span id=\"tooltip-designer-subject-line\" class=\"tooltip-help-designer-subject-line\"></span>
</div>
{{else}}
<div class=\"mailpoet_form_field mailpoet_heading_form_field\">
<input
type=\"text\"
class=\"mailpoet_input mailpoet_input_title\"
data-automation-id=\"newsletter_title\"
value=\"{{ model.subject }}\"
placeholder=\"";
// line 34
yield $this->extensions['MailPoet\Twig\I18n']->translate("Click here to change the subject!");
yield "\"
/>
<span id=\"tooltip-designer-subject-line\" class=\"tooltip-help-designer-subject-line\"></span>
</div>
<div class=\"mailpoet_form_field mailpoet_heading_form_field\">
<input type=\"text\"
class=\"mailpoet_input mailpoet_input_preheader\"
value=\"{{ model.preheader }}\"
placeholder=\"";
// line 42
yield $this->extensions['MailPoet\Twig\I18n']->translate("Preview text (usually displayed underneath the subject line in the inbox)");
yield "\"
maxlength=\"250\"
/>
<span id=\"tooltip-designer-preheader\" class=\"tooltip-help-designer-preheader\"></span>
</div>
{{/if}}
";
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "newsletter/templates/components/heading.hbs";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 111 => 42, 100 => 34, 86 => 23, 76 => 16, 67 => 10, 63 => 9, 59 => 8, 55 => 7, 50 => 5, 45 => 3, 41 => 2, 38 => 1,);
}
public function getSourceContext()
{
return new Source("", "newsletter/templates/components/heading.hbs", "/home/circleci/mailpoet/mailpoet/views/newsletter/templates/components/heading.hbs");
}
}
@@ -0,0 +1 @@
<?php