init
This commit is contained in:
+139
@@ -0,0 +1,139 @@
|
||||
<?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;
|
||||
|
||||
/* upgrade/upgrade_button.html */
|
||||
class __TwigTemplate_b67c32b7be3df4a420334077f7e14c432f62c4aab97a732513f3dcffc5dfc251 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
|
||||
if (($context["has_valid_api_key"] ?? null)) {
|
||||
// line 2
|
||||
yield " ";
|
||||
if ((($context["tier"] ?? null) === ($context["current_mailpoet_plan_tier"] ?? null))) {
|
||||
// line 3
|
||||
yield " <button class=\"components-button\" disabled>
|
||||
<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"17\" height=\"16\" viewBox=\"0 0 17 16\" fill=\"none\">
|
||||
<path d=\"M11.885 5.02048L7.38449 11.0731L4.77484 9.13272\" stroke=\"#949494\" stroke-width=\"1.5\"/>
|
||||
</svg>
|
||||
";
|
||||
// line 7
|
||||
yield $this->extensions['MailPoet\Twig\I18n']->translateEscHTML("Your current plan");
|
||||
yield "
|
||||
</button>
|
||||
";
|
||||
} else {
|
||||
// line 10
|
||||
yield " ";
|
||||
if ((($context["tier"] ?? null) < ($context["current_mailpoet_plan_tier"] ?? null))) {
|
||||
// line 11
|
||||
yield " <div class=\"mailpoet-tiers-page-price-divider\">
|
||||
<hr>
|
||||
</div>
|
||||
";
|
||||
} else {
|
||||
// line 15
|
||||
yield " <a
|
||||
target=\"_blank\"
|
||||
href=\"";
|
||||
// line 17
|
||||
yield $this->env->getRuntime('MailPoetVendor\Twig\Runtime\EscaperRuntime')->escape((("https://account.mailpoet.com/orders/upgrade/" . ($context["plugin_partial_key"] ?? null)) . "?2024=1&utm_source=plugin&utm_medium=premium&utm_campaign=upgrade&ref=plugin-upgrade-page"), "html", null, true);
|
||||
yield "\"
|
||||
class=\"components-button ";
|
||||
// line 18
|
||||
yield $this->env->getRuntime('MailPoetVendor\Twig\Runtime\EscaperRuntime')->escape(($context["button_class"] ?? null), "html", null, true);
|
||||
yield " mailpoet-premium-shop-link\"
|
||||
>
|
||||
";
|
||||
// line 20
|
||||
yield $this->env->getRuntime('MailPoetVendor\Twig\Runtime\EscaperRuntime')->escape(($context["label"] ?? null), "html", null, true);
|
||||
yield "
|
||||
</a>
|
||||
";
|
||||
}
|
||||
// line 23
|
||||
yield " ";
|
||||
}
|
||||
} else {
|
||||
// line 25
|
||||
yield " <a
|
||||
target=\"_blank\"
|
||||
href=\"";
|
||||
// line 27
|
||||
yield $this->env->getRuntime('MailPoetVendor\Twig\Runtime\EscaperRuntime')->escape((((((("https://account.mailpoet.com/?s=" . ($context["subscriber_count"] ?? null)) . "&email=") . ($context["current_wp_user_email"] ?? null)) . "&g=") . ($context["group"] ?? null)) . "&2024=1&billing=monthly&utm_source=plugin&utm_medium=premium&utm_campaign=purchase&ref=plugin-upgrade-page"), "html", null, true);
|
||||
yield "\"
|
||||
class=\"components-button ";
|
||||
// line 28
|
||||
yield $this->env->getRuntime('MailPoetVendor\Twig\Runtime\EscaperRuntime')->escape(($context["button_class"] ?? null), "html", null, true);
|
||||
yield " mailpoet-premium-shop-link\"
|
||||
>
|
||||
";
|
||||
// line 30
|
||||
yield $this->env->getRuntime('MailPoetVendor\Twig\Runtime\EscaperRuntime')->escape(($context["label"] ?? null), "html", null, true);
|
||||
yield "
|
||||
</a>
|
||||
";
|
||||
}
|
||||
return; yield '';
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "upgrade/upgrade_button.html";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 100 => 30, 95 => 28, 91 => 27, 87 => 25, 83 => 23, 77 => 20, 72 => 18, 68 => 17, 64 => 15, 58 => 11, 55 => 10, 49 => 7, 43 => 3, 40 => 2, 38 => 1,);
|
||||
}
|
||||
|
||||
public function getSourceContext()
|
||||
{
|
||||
return new Source("", "upgrade/upgrade_button.html", "/home/circleci/mailpoet/mailpoet/views/upgrade/upgrade_button.html");
|
||||
}
|
||||
}
|
||||
+91
@@ -0,0 +1,91 @@
|
||||
<?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/templatesLegacy/settings/segment_selection_item.hbs */
|
||||
class __TwigTemplate_3c8166e1146014d6c6e6c40c753a6f92cb33e9423fe4045de5eee5d7079da003 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 "{{#each segments}}
|
||||
<li data-segment=\"{{ id }}\">
|
||||
<label>
|
||||
<input class=\"mailpoet_segment_id\" type=\"hidden\" value=\"{{ id }}\" />
|
||||
<input class=\"mailpoet_is_checked\" type=\"checkbox\" value=\"1\"
|
||||
{{#ifCond is_checked '>' 0}}checked=\"checked\"{{/ifCond}} />
|
||||
<input class=\"mailpoet_segment_name\" type=\"hidden\" value=\"{{ name }}\" />
|
||||
{{ name }}
|
||||
</label>
|
||||
<a class=\"remove\" href=\"javascript:;\">";
|
||||
// line 10
|
||||
yield $this->extensions['MailPoet\Twig\I18n']->translate("Remove");
|
||||
yield "</a>
|
||||
<a class=\"handle\" href=\"javascript:;\">";
|
||||
// line 11
|
||||
yield $this->extensions['MailPoet\Twig\I18n']->translate("Move");
|
||||
yield "</a>
|
||||
</li>
|
||||
{{/each}}";
|
||||
return; yield '';
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "form/templatesLegacy/settings/segment_selection_item.hbs";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 53 => 11, 49 => 10, 38 => 1,);
|
||||
}
|
||||
|
||||
public function getSourceContext()
|
||||
{
|
||||
return new Source("", "form/templatesLegacy/settings/segment_selection_item.hbs", "/home/circleci/mailpoet/mailpoet/views/form/templatesLegacy/settings/segment_selection_item.hbs");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<?php
|
||||
Reference in New Issue
Block a user