oont-contents/plugins/mailpoet/generated/twig/5d/5d0a911176e50085fa0f645dafa33f6bb54942f4cc0c7d027b1f8e108f984df4.php
2025-02-10 13:57:45 +01:00

494 lines
30 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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;
/* layout.html */
class __TwigTemplate_8581a8ede6c645c86df82d14a0f9727da4ff92aa0bb85d1970f9d5219782671e extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'templates' => [$this, 'block_templates'],
'container' => [$this, 'block_container'],
'title' => [$this, 'block_title'],
'content' => [$this, 'block_content'],
'after_translations' => [$this, 'block_after_translations'],
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 1
yield "<!-- pre connect to 3d party to speed up page loading -->
<link rel=\"preconnect\" href=\"https://widget.docsbot.ai/\">
<link rel=\"dns-prefetch\" href=\"https://widget.docsbot.ai/\">
<link rel=\"preconnect\" href=\"http://cdn.mxpnl.com\">
<link rel=\"dns-prefetch\" href=\"http://cdn.mxpnl.com\">
<!-- system notices -->
<div id=\"mailpoet_notice_system\" class=\"mailpoet_notice\" style=\"display:none;\"></div>
<!-- handlebars templates -->
";
// line 11
yield from $this->unwrap()->yieldBlock('templates', $context, $blocks);
// line 12
yield "
<!-- main container -->
";
// line 14
yield from $this->unwrap()->yieldBlock('container', $context, $blocks);
// line 35
yield "
<script type=\"text/javascript\">
var mailpoet_wp_locale = \"";
// line 37
yield $this->extensions['MailPoet\Twig\I18n']->getLocale();
yield "\";
var mailpoet_datetime_format = \"";
// line 38
yield $this->env->getRuntime('MailPoetVendor\Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('MailPoetVendor\Twig\Runtime\EscaperRuntime')->escape($this->extensions['MailPoet\Twig\Functions']->getWPDateTimeFormat(), "js"), "html", null, true);
yield "\";
var mailpoet_date_format = \"";
// line 39
yield $this->env->getRuntime('MailPoetVendor\Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('MailPoetVendor\Twig\Runtime\EscaperRuntime')->escape($this->extensions['MailPoet\Twig\Functions']->getWPDateFormat(), "js"), "html", null, true);
yield "\";
var mailpoet_time_format = \"";
// line 40
yield $this->env->getRuntime('MailPoetVendor\Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('MailPoetVendor\Twig\Runtime\EscaperRuntime')->escape($this->extensions['MailPoet\Twig\Functions']->getWPTimeFormat(), "js"), "html", null, true);
yield "\";
var mailpoet_date_offset = ";
// line 41
yield json_encode(get_option("gmt_offset"));
yield ";
var mailpoet_version = \"";
// line 42
yield $this->extensions['MailPoet\Twig\Functions']->getMailPoetVersion();
yield "\";
var mailpoet_locale = \"";
// line 43
yield $this->extensions['MailPoet\Twig\Functions']->getTwoLettersLocale();
yield "\";
var mailpoet_wp_week_starts_on = \"";
// line 44
yield $this->extensions['MailPoet\Twig\Functions']->getWPStartOfWeek();
yield "\";
var mailpoet_urls = ";
// line 45
yield json_encode(($context["urls"] ?? null));
yield ";
var mailpoet_premium_version = ";
// line 46
yield json_encode($this->extensions['MailPoet\Twig\Functions']->getMailPoetPremiumVersion());
yield ";
var mailpoet_main_page_slug = ";
// line 47
yield json_encode(($context["main_page"] ?? null));
yield ";
var mailpoet_3rd_party_libs_enabled = ";
// line 48
yield $this->env->getRuntime('MailPoetVendor\Twig\Runtime\EscaperRuntime')->escape(json_encode($this->extensions['MailPoet\Twig\Functions']->libs3rdPartyEnabled()), "html", null, true);
yield ";
var mailpoet_analytics_enabled = ";
// line 49
yield $this->env->getRuntime('MailPoetVendor\Twig\Runtime\EscaperRuntime')->escape(json_encode($this->extensions['MailPoet\Twig\Analytics']->isEnabled()), "html", null, true);
yield ";
var mailpoet_analytics_public_id = ";
// line 50
yield json_encode($this->extensions['MailPoet\Twig\Analytics']->getPublicId());
yield ";
var mailpoet_analytics_new_public_id = ";
// line 51
yield $this->env->getRuntime('MailPoetVendor\Twig\Runtime\EscaperRuntime')->escape(json_encode($this->extensions['MailPoet\Twig\Analytics']->isPublicIdNew()), "html", null, true);
yield ";
var mailpoet_free_domains = ";
// line 52
yield json_encode($this->extensions['MailPoet\Twig\Functions']->getFreeDomains());
yield ";
var mailpoet_woocommerce_active = ";
// line 53
yield json_encode($this->extensions['MailPoet\Twig\Functions']->isWoocommerceActive());
yield ";
var mailpoet_woocommerce_subscriptions_active = ";
// line 54
yield json_encode(($context["is_woocommerce_subscriptions_active"] ?? null));
yield ";
var mailpoet_woocommerce_store_config = ";
// line 55
yield json_encode(($context["woocommerce_store_config"] ?? null));
yield ";
// RFC 5322 standard; http://emailregex.com/ combined with https://google.github.io/closure-library/api/goog.format.EmailAddress.html#isValid
var mailpoet_email_regex = /(?=^[+a-zA-Z0-9_.!#\$%&'*\\/=?^`{|}~-]+@([a-zA-Z0-9-]+\\.)+[a-zA-Z0-9]{2,63}\$)(?=^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,})))/;
var mailpoet_feature_flags = ";
// line 58
yield json_encode(($context["feature_flags"] ?? null));
yield ";
var mailpoet_referral_id = ";
// line 59
yield json_encode(($context["referral_id"] ?? null));
yield ";
var mailpoet_wp_segment_state = ";
// line 60
yield json_encode(($context["wp_segment_state"] ?? null));
yield ";
var mailpoet_mta_method = '";
// line 61
yield $this->env->getRuntime('MailPoetVendor\Twig\Runtime\EscaperRuntime')->escape(($context["mta_method"] ?? null), "html", null, true);
yield "';
var mailpoet_tracking_config = ";
// line 62
yield json_encode(($context["tracking_config"] ?? null));
yield ";
var mailpoet_is_new_user = ";
// line 63
yield json_encode((($context["is_new_user"] ?? null) == true));
yield ";
var mailpoet_installed_days_ago = ";
// line 64
yield json_encode(($context["installed_days_ago"] ?? null));
yield ";
var mailpoet_send_transactional_emails = ";
// line 65
yield json_encode(($context["send_transactional_emails"] ?? null));
yield ";
var mailpoet_transactional_emails_opt_in_notice_dismissed = ";
// line 66
yield json_encode(($context["transactional_emails_opt_in_notice_dismissed"] ?? null));
yield ";
var mailpoet_deactivate_subscriber_after_inactive_days = ";
// line 67
yield json_encode(($context["deactivate_subscriber_after_inactive_days"] ?? null));
yield ";
var mailpoet_woocommerce_version = ";
// line 68
yield json_encode($this->extensions['MailPoet\Twig\Functions']->getWooCommerceVersion());
yield ";
var mailpoet_track_wizard_loaded_via_woocommerce = ";
// line 69
yield json_encode(($context["track_wizard_loaded_via_woocommerce"] ?? null));
yield ";
var mailpoet_track_wizard_loaded_via_woocommerce_marketing_dashboard = ";
// line 70
yield json_encode(($context["track_wizard_loaded_via_woocommerce_marketing_dashboard"] ?? null));
yield ";
var mailpoet_mail_function_enabled = '";
// line 71
yield $this->env->getRuntime('MailPoetVendor\Twig\Runtime\EscaperRuntime')->escape(($context["mail_function_enabled"] ?? null), "html", null, true);
yield "';
var mailpoet_admin_plugins_url = '";
// line 72
yield $this->env->getRuntime('MailPoetVendor\Twig\Runtime\EscaperRuntime')->escape(($context["admin_plugins_url"] ?? null), "html", null, true);
yield "';
var mailpoet_is_dotcom = ";
// line 73
yield json_encode($this->extensions['MailPoet\Twig\Functions']->isDotcom());
yield ";
var mailpoet_cron_trigger_method = ";
// line 74
yield json_encode(($context["cron_trigger_method"] ?? null));
yield ";
var mailpoet_site_name = '";
// line 76
yield $this->env->getRuntime('MailPoetVendor\Twig\Runtime\EscaperRuntime')->escape(($context["site_name"] ?? null), "html", null, true);
yield "';
var mailpoet_site_url = \"";
// line 77
yield $this->env->getRuntime('MailPoetVendor\Twig\Runtime\EscaperRuntime')->escape(($context["site_url"] ?? null), "html", null, true);
yield "\";
var mailpoet_site_address = '";
// line 78
yield $this->env->getRuntime('MailPoetVendor\Twig\Runtime\EscaperRuntime')->escape(($context["site_address"] ?? null), "html", null, true);
yield "';
// Premium status
var mailpoet_current_wp_user_email = '";
// line 81
yield $this->env->getRuntime('MailPoetVendor\Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('MailPoetVendor\Twig\Runtime\EscaperRuntime')->escape(($context["current_wp_user_email"] ?? null), "js"), "html", null, true);
yield "';
var mailpoet_premium_link = ";
// line 82
yield json_encode(($context["link_premium"] ?? null));
yield ";
var mailpoet_premium_plugin_installed = ";
// line 83
yield json_encode(($context["premium_plugin_installed"] ?? null));
yield ";
var mailpoet_premium_active = ";
// line 84
yield json_encode(($context["premium_plugin_active"] ?? null));
yield ";
var mailpoet_premium_plugin_download_url = ";
// line 85
yield json_encode(($context["premium_plugin_download_url"] ?? null));
yield ";
var mailpoet_premium_plugin_activation_url = ";
// line 86
yield json_encode(($context["premium_plugin_activation_url"] ?? null));
yield ";
var mailpoet_has_valid_api_key = ";
// line 87
yield json_encode(($context["has_valid_api_key"] ?? null));
yield ";
var mailpoet_has_valid_premium_key = ";
// line 88
yield json_encode(($context["has_valid_premium_key"] ?? null));
yield ";
var mailpoet_has_premium_support = ";
// line 89
yield json_encode(($context["has_premium_support"] ?? null));
yield ";
var has_mss_key_specified = ";
// line 90
yield json_encode(($context["has_mss_key_specified"] ?? null));
yield ";
var mailpoet_mss_key_invalid = ";
// line 91
yield json_encode(($context["mss_key_invalid"] ?? null));
yield ";
var mailpoet_mss_key_valid = ";
// line 92
yield json_encode(($context["mss_key_valid"] ?? null));
yield ";
var mailpoet_mss_key_pending_approval = '";
// line 93
yield $this->env->getRuntime('MailPoetVendor\Twig\Runtime\EscaperRuntime')->escape(($context["mss_key_pending_approval"] ?? null), "html", null, true);
yield "';
var mailpoet_mss_active = ";
// line 94
yield json_encode(($context["mss_active"] ?? null));
yield ";
var mailpoet_plugin_partial_key = '";
// line 95
yield $this->env->getRuntime('MailPoetVendor\Twig\Runtime\EscaperRuntime')->escape(($context["plugin_partial_key"] ?? null), "html", null, true);
yield "';
var mailpoet_subscribers_count = ";
// line 96
yield $this->env->getRuntime('MailPoetVendor\Twig\Runtime\EscaperRuntime')->escape(($context["subscriber_count"] ?? null), "html", null, true);
yield ";
var mailpoet_subscribers_counts_cache_created_at = ";
// line 97
yield json_encode(($context["subscribers_counts_cache_created_at"] ?? null));
yield ";
var mailpoet_subscribers_limit = ";
// line 98
((($context["subscribers_limit"] ?? null)) ? (yield $this->env->getRuntime('MailPoetVendor\Twig\Runtime\EscaperRuntime')->escape(($context["subscribers_limit"] ?? null), "html", null, true)) : (yield "false"));
yield ";
var mailpoet_subscribers_limit_reached = ";
// line 99
yield json_encode(($context["subscribers_limit_reached"] ?? null));
yield ";
var mailpoet_email_volume_limit = ";
// line 100
yield json_encode(($context["email_volume_limit"] ?? null));
yield ";
var mailpoet_email_volume_limit_reached = ";
// line 101
yield json_encode(($context["email_volume_limit_reached"] ?? null));
yield ";
var mailpoet_capabilities = ";
// line 102
yield json_encode(($context["capabilities"] ?? null));
yield ";
var mailpoet_tier = ";
// line 103
yield json_encode(($context["tier"] ?? null));
yield ";
var mailpoet_cdn_url = ";
// line 104
yield json_encode($this->extensions['MailPoet\Twig\Assets']->generateCdnUrl(""));
yield ";
var mailpoet_tags = ";
// line 105
yield json_encode(($context["tags"] ?? null));
yield ";
";
// line 107
if ( !($context["premium_plugin_active"] ?? null)) {
// line 108
yield " var mailpoet_free_premium_subscribers_limit = ";
yield $this->env->getRuntime('MailPoetVendor\Twig\Runtime\EscaperRuntime')->escape(($context["free_premium_subscribers_limit"] ?? null), "html", null, true);
yield ";
";
}
// line 110
yield "</script>
";
// line 112
yield $this->extensions['MailPoet\Twig\I18n']->localize(["topBarLogoTitle" => $this->extensions['MailPoet\Twig\I18n']->translate("Back to section root"), "topBarUpdates" => $this->extensions['MailPoet\Twig\I18n']->translate("Updates"), "whatsNew" => $this->extensions['MailPoet\Twig\I18n']->translate("Whats new"), "updateMailPoetNotice" => $this->extensions['MailPoet\Twig\I18n']->translate("[link]Update MailPoet[/link] to see the latest changes"), "ajaxFailedErrorMessage" => $this->extensions['MailPoet\Twig\I18n']->translate("An error has happened while performing a request, the server has responded with response code %d"), "ajaxTimeoutErrorMessage" => $this->extensions['MailPoet\Twig\I18n']->translate("An error has happened while performing a request, the server request has timed out after %d seconds"), "senderEmailAddressWarning1" => $this->extensions['MailPoet\Twig\I18n']->translateWithContext("You might not reach the inbox of your subscribers if you use this email address.", "In the last step, before sending a newsletter. URL: ?page=mailpoet-newsletters#/send/2"), "senderEmailAddressWarning3" => $this->extensions['MailPoet\Twig\I18n']->translateWithContext("Read more."), "mailerSendingNotResumedUnauthorized" => $this->extensions['MailPoet\Twig\I18n']->translate("Failed to resume sending because the email address is unauthorized. Please authorize it and try again."), "dismissNotice" => $this->extensions['MailPoet\Twig\I18n']->translate("Dismiss this notice."), "confirmEdit" => $this->extensions['MailPoet\Twig\I18n']->translate("Sending is in progress. Do you want to pause sending and edit the newsletter?"), "confirmAutomaticNewsletterEdit" => $this->extensions['MailPoet\Twig\I18n']->translate("To edit this email, it needs to be deactivated. You can activate it again after you make the changes."), "subscribersLimitNoticeTitle" => $this->extensions['MailPoet\Twig\I18n']->translate("Action required: Upgrade your plan for more than [subscribersLimit] subscribers!"), "subscribersLimitNoticeTitleUnknownLimit" => $this->extensions['MailPoet\Twig\I18n']->translate("Action required: Upgrade your plan!"), "subscribersLimitReached" => $this->extensions['MailPoet\Twig\I18n']->translate("Congratulations on reaching over [subscribersLimit] subscribers!"), "subscribersLimitReachedUnknownLimit" => $this->extensions['MailPoet\Twig\I18n']->translate("Congratulations, you now have more subscribers than your plans limit!"), "freeVersionLimit" => $this->extensions['MailPoet\Twig\I18n']->translate("Our free version is limited to [subscribersLimit] subscribers."), "yourPlanLimit" => $this->extensions['MailPoet\Twig\I18n']->translate("Your plan is limited to [subscribersLimit] subscribers."), "youNeedToUpgrade" => $this->extensions['MailPoet\Twig\I18n']->translate("To continue using MailPoet without interruption, its time to upgrade your plan."), "actToSeamlessService" => $this->extensions['MailPoet\Twig\I18n']->translate("Act now to ensure seamless service to your growing audience."), "checkHowToManageSubscribers" => $this->extensions['MailPoet\Twig\I18n']->translate("Alternatively, [link]check how to manage your subscribers[/link] to keep your numbers below your plans limit."), "upgradeNow" => $this->extensions['MailPoet\Twig\I18n']->translate("Upgrade Now"), "refreshMySubscribers" => $this->extensions['MailPoet\Twig\I18n']->translate("Refresh subscriber limit"), "emailVolumeLimitNoticeTitle" => $this->extensions['MailPoet\Twig\I18n']->translate("Congratulations, you sent more than [emailVolumeLimit] emails this month!"), "emailVolumeLimitNoticeTitleUnknownLimit" => $this->extensions['MailPoet\Twig\I18n']->translate("Congratulations, you sent a lot of emails this month!"), "youReachedEmailVolumeLimit" => $this->extensions['MailPoet\Twig\I18n']->translate("You have sent more emails this month than your MailPoet plan includes ([emailVolumeLimit]), and sending has been temporarily paused."), "youReachedEmailVolumeLimitUnknownLimit" => $this->extensions['MailPoet\Twig\I18n']->translate("You have sent more emails this month than your MailPoet plan includes, and sending has been temporarily paused."), "toContinueUpgradeYourPlanOrWaitUntil" => $this->extensions['MailPoet\Twig\I18n']->translate("To continue sending with MailPoet Sending Service please [link]upgrade your plan[/link], or wait until sending is automatically resumed on <b>[date]</b>."), "refreshMyEmailVolumeLimit" => $this->extensions['MailPoet\Twig\I18n']->translate("Refresh monthly email limit"), "manageSenderDomainHeaderSubtitle" => $this->extensions['MailPoet\Twig\I18n']->translate("To help your audience and MailPoet authenticate you as the domain owner, please add the following DNS records to your domains DNS and click “Verify the DNS records”. Please note that it may take up to 24 hours for DNS changes to propagate after you make the change. [link]Read the guide[/link].", "mailpoet"), "sent" => $this->extensions['MailPoet\Twig\I18n']->translate("Sent"), "notSentYet" => $this->extensions['MailPoet\Twig\I18n']->translate("Not sent yet!"), "renderingProblem" => $this->extensions['MailPoet\Twig\I18n']->translate("There was a problem with rendering!", "mailpoet"), "allSendingPausedHeader" => $this->extensions['MailPoet\Twig\I18n']->translate("All sending is currently paused!"), "allSendingPausedBody" => $this->extensions['MailPoet\Twig\I18n']->translate("Your [link]API key[/link] to send with MailPoet is invalid."), "allSendingPausedPremiumValidBody" => $this->extensions['MailPoet\Twig\I18n']->translate("You are not allowed to use the MailPoet sending service with your current API key. Kindly upgrate to a [link]MailPoet sending plan[/link] or switch your [link]sending method[/link]."), "allSendingPausedLink" => $this->extensions['MailPoet\Twig\I18n']->translate("Purchase a key"), "allSendingPausedPremiumValidLink" => $this->extensions['MailPoet\Twig\I18n']->translate("Upgrade the plan"), "cronPingErrorHeader" => $this->extensions['MailPoet\Twig\I18n']->translate("There is an issue with the MailPoet task scheduler"), "systemStatusConnectionSuccessful" => $this->extensions['MailPoet\Twig\I18n']->translate("Connection successful."), "systemStatusConnectionUnsuccessful" => $this->extensions['MailPoet\Twig\I18n']->translate("Connection unsuccessful."), "systemStatusCronConnectionUnsuccessfulInfo" => $this->extensions['MailPoet\Twig\I18n']->translate("Please consult our [link]knowledge base article[/link] for troubleshooting tips."), "systemStatusIntroCron" => $this->extensions['MailPoet\Twig\I18n']->translate("For the plugin to work, it must be able to establish connection with the task scheduler."), "bridgePingErrorHeader" => $this->extensions['MailPoet\Twig\I18n']->translate("There is an issue with the connection to the MailPoet Sending Service"), "systemStatusMSSConnectionCanNotConnect" => $this->extensions['MailPoet\Twig\I18n']->translate("Currently, your installation can not reach the sending service. If you want to use our service please consult our [link]knowledge base article[/link] for troubleshooting tips."), "transactionalEmailNoticeTitle" => $this->extensions['MailPoet\Twig\I18n']->translate("Good news! MailPoet can now send your websites emails too"), "transactionalEmailNoticeBody" => $this->extensions['MailPoet\Twig\I18n']->translate("All of your WordPress and WooCommerce emails are sent with your hosting company, unless you have an SMTP plugin. Would you like such emails to be delivered with MailPoets active sending method for better deliverability?"), "transactionalEmailNoticeBodyReadMore" => $this->extensions['MailPoet\Twig\I18n']->translateWithContext("Read more.", "This is a link that leads to more information about transactional emails"), "transactionalEmailNoticeCTA" => $this->extensions['MailPoet\Twig\I18n']->translateWithContext("Enable", "Button, after clicking it we will enable transactional emails"), "mailerSendErrorNotice" => $this->extensions['MailPoet\Twig\I18n']->translate("Sending has been paused due to a technical issue with %1\$s"), "mailerSendErrorCheckConfiguration" => $this->extensions['MailPoet\Twig\I18n']->translate("Please check your sending method configuration, you may need to consult with your hosting company."), "mailerSendErrorUseSendingService" => $this->extensions['MailPoet\Twig\I18n']->translate("The easy alternative is to <b>send emails with MailPoet Sending Service</b> instead, like thousands of other users do."), "mailerSendErrorSignUpForSendingService" => $this->extensions['MailPoet\Twig\I18n']->translate("Sign up for free in minutes"), "mailerConnectionErrorNotice" => $this->extensions['MailPoet\Twig\I18n']->translate("Sending is paused because the following connection issue prevents MailPoet from delivering emails"), "mailerErrorCode" => $this->extensions['MailPoet\Twig\I18n']->translate("Error code: %1\$s"), "mailerCheckSettingsNotice" => $this->extensions['MailPoet\Twig\I18n']->translate("Check your [link]sending method settings[/link]."), "mailerResumeSendingButton" => $this->extensions['MailPoet\Twig\I18n']->translate("Resume sending"), "mailerResumeSendingAfterUpgradeButton" => $this->extensions['MailPoet\Twig\I18n']->translate("I have upgraded my subscription, resume sending"), "topBarLogoTitle" => $this->extensions['MailPoet\Twig\I18n']->translate("Back to section root"), "close" => $this->extensions['MailPoet\Twig\I18n']->translate("Close"), "today" => $this->extensions['MailPoet\Twig\I18n']->translate("Today")]);
// line 184
yield "
";
// line 186
yield from $this->unwrap()->yieldBlock('after_translations', $context, $blocks);
// line 187
yield "
";
// line 188
if ($this->extensions['MailPoet\Twig\Analytics']->isEnabled()) {
// line 189
yield " ";
yield from $this->loadTemplate("analytics.html", "layout.html", 189)->unwrap()->yield($context);
}
// line 191
yield "
";
// line 192
if ((($context["display_docsbot_widget"] ?? null) && !$this->extensions['MailPoet\Twig\Functions']->isDotcomEcommercePlan())) {
// line 193
yield " <script type=\"text/javascript\">window.DocsBotAI=window.DocsBotAI||{},DocsBotAI.init=function(c){return new Promise(function(e,o){var t=document.createElement(\"script\");t.type=\"text/javascript\",t.async=!0,t.src=\"https://widget.docsbot.ai/chat.js\";var n=document.getElementsByTagName(\"script\")[0];n.parentNode.insertBefore(t,n),t.addEventListener(\"load\",function(){window.DocsBotAI.mount({id:c.id,supportCallback:c.supportCallback,identify:c.identify,options:c.options});var t;t=function(n){return new Promise(function(e){if(document.querySelector(n))return e(document.querySelector(n));var o=new MutationObserver(function(t){document.querySelector(n)&&(e(document.querySelector(n)),o.disconnect())});o.observe(document.body,{childList:!0,subtree:!0})})},t&&t(\"#docsbotai-root\").then(e).catch(o)}),t.addEventListener(\"error\",function(t){o(t.message)})})};</script>
<script type=\"text/javascript\">
DocsBotAI.init({
id: \"TqTdebbGjJeUjrmBIFjh/kzFE5FBebBJiSJ2Tm0nR\",
// We want to redirect users to the proper page depending on their plan
supportCallback: function (event, history) {
";
// line 199
if (($context["has_premium_support"] ?? null)) {
// line 200
yield " const mailpoet_redirect_support_link = 'https://www.mailpoet.com/support/premium/';
";
} else {
// line 202
yield " const mailpoet_redirect_support_link = 'https://wordpress.org/support/plugin/mailpoet/';
";
}
// line 204
yield " event.preventDefault(); // Prevent default behavior opening the url.
window.open(mailpoet_redirect_support_link, '_blank');
},
}).then(() => {
// stopping propagation to avoid conflicts with other keydown events form WP.com
function writingFixer (e) {
e.stopPropagation();
}
document.getElementById('docsbotai-root').addEventListener(\"keydown\", writingFixer);
})
</script>
";
}
// line 216
yield "
<div id=\"mailpoet-modal\"></div>
";
return; yield '';
}
// line 11
public function block_templates($context, array $blocks = [])
{
$macros = $this->macros;
return; yield '';
}
// line 14
public function block_container($context, array $blocks = [])
{
$macros = $this->macros;
// line 15
yield "<div class=\"wrap\">
<div class=\"wp-header-end\"></div>
<!-- notices -->
<div id=\"mailpoet_notice_error\" class=\"mailpoet_notice\" style=\"display:none;\"></div>
<div id=\"mailpoet_notice_success\" class=\"mailpoet_notice\" style=\"display:none;\"></div>
<!-- React notices -->
<div id=\"mailpoet_notices\"></div>
<!-- Set FROM address modal React root -->
<div id=\"mailpoet_set_from_address_modal\"></div>
<!-- Set Authorize sender email React root -->
<div id=\"mailpoet_authorize_sender_email_modal\"></div>
<!-- title block -->
";
// line 30
yield from $this->unwrap()->yieldBlock('title', $context, $blocks);
// line 31
yield " <!-- content block -->
";
// line 32
yield from $this->unwrap()->yieldBlock('content', $context, $blocks);
// line 33
yield "</div>
";
return; yield '';
}
// line 30
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
return; yield '';
}
// line 32
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
return; yield '';
}
// line 186
public function block_after_translations($context, array $blocks = [])
{
$macros = $this->macros;
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "layout.html";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 457 => 186, 450 => 32, 443 => 30, 437 => 33, 435 => 32, 432 => 31, 430 => 30, 413 => 15, 409 => 14, 402 => 11, 395 => 216, 381 => 204, 377 => 202, 373 => 200, 371 => 199, 363 => 193, 361 => 192, 358 => 191, 354 => 189, 352 => 188, 349 => 187, 347 => 186, 343 => 184, 341 => 112, 337 => 110, 331 => 108, 329 => 107, 324 => 105, 320 => 104, 316 => 103, 312 => 102, 308 => 101, 304 => 100, 300 => 99, 296 => 98, 292 => 97, 288 => 96, 284 => 95, 280 => 94, 276 => 93, 272 => 92, 268 => 91, 264 => 90, 260 => 89, 256 => 88, 252 => 87, 248 => 86, 244 => 85, 240 => 84, 236 => 83, 232 => 82, 228 => 81, 222 => 78, 218 => 77, 214 => 76, 209 => 74, 205 => 73, 201 => 72, 197 => 71, 193 => 70, 189 => 69, 185 => 68, 181 => 67, 177 => 66, 173 => 65, 169 => 64, 165 => 63, 161 => 62, 157 => 61, 153 => 60, 149 => 59, 145 => 58, 139 => 55, 135 => 54, 131 => 53, 127 => 52, 123 => 51, 119 => 50, 115 => 49, 111 => 48, 107 => 47, 103 => 46, 99 => 45, 95 => 44, 91 => 43, 87 => 42, 83 => 41, 79 => 40, 75 => 39, 71 => 38, 67 => 37, 63 => 35, 61 => 14, 57 => 12, 55 => 11, 43 => 1,);
}
public function getSourceContext()
{
return new Source("", "layout.html", "/home/circleci/mailpoet/mailpoet/views/layout.html");
}
}