Replace the stopped sending notice
[MAILPOET-2643]
This commit is contained in:
@@ -97,6 +97,7 @@
|
|||||||
// This rules unify width across all style setting sidebars
|
// This rules unify width across all style setting sidebars
|
||||||
.components-circular-option-picker {
|
.components-circular-option-picker {
|
||||||
width: 245px;
|
width: 245px;
|
||||||
|
|
||||||
@include breakpoint-max-width(782px) {
|
@include breakpoint-max-width(782px) {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
@@ -554,10 +554,8 @@ class Menu {
|
|||||||
|
|
||||||
public function checkMailPoetAPIKey(ServicesChecker $checker = null) {
|
public function checkMailPoetAPIKey(ServicesChecker $checker = null) {
|
||||||
if (self::isOnMailPoetAdminPage()) {
|
if (self::isOnMailPoetAdminPage()) {
|
||||||
$showNotices = isset($_REQUEST['page'])
|
|
||||||
&& stripos($_REQUEST['page'], self::MAIN_PAGE_SLUG) === false;
|
|
||||||
$checker = $checker ?: $this->servicesChecker;
|
$checker = $checker ?: $this->servicesChecker;
|
||||||
$this->mpApiKeyValid = $checker->isMailPoetAPIKeyValid($showNotices);
|
$this->mpApiKeyValid = $checker->isMailPoetAPIKeyValid();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -33,12 +33,15 @@ class ServicesChecker {
|
|||||||
|| $mssKey['state'] == Bridge::KEY_INVALID
|
|| $mssKey['state'] == Bridge::KEY_INVALID
|
||||||
) {
|
) {
|
||||||
if ($displayErrorNotice) {
|
if ($displayErrorNotice) {
|
||||||
$error = Helpers::replaceLinkTags(
|
$error = '<h3>' . __('All sending is currently paused!', 'mailpoet') . '</h3>';
|
||||||
WPFunctions::get()->__('All sending is currently paused! Your key to send with MailPoet is invalid. [link]Visit MailPoet.com to purchase a key[/link]', 'mailpoet'),
|
$error .= '<p>' . __('Your key to send with MailPoet is invalid.', 'mailpoet') . '</p>';
|
||||||
'https://account.mailpoet.com?s=' . Subscriber::getTotalSubscribers(),
|
$error .= '<p><a '
|
||||||
['target' => '_blank']
|
. ' href="https://account.mailpoet.com?s=' . (Subscriber::getTotalSubscribers() + 1) . '"'
|
||||||
);
|
. ' class="button button-secondary" '
|
||||||
WPNotice::displayError($error);
|
. ' target="_blank"'
|
||||||
|
. '>' . __('Visit MailPoet.com to purchase a key', 'mailpoet') . '</a></p>';
|
||||||
|
|
||||||
|
WPNotice::displayError($error, '', '', false, false);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
} elseif ($mssKey['state'] == Bridge::KEY_EXPIRING
|
} elseif ($mssKey['state'] == Bridge::KEY_EXPIRING
|
||||||
|
Reference in New Issue
Block a user