Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 30 additions & 19 deletions view/adminhtml/templates/updateinfo.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,37 @@
?>

<?php if ($block->needToUpdate() && \Magefan\Community\Model\UrlChecker::showUrl($block->getUrl())) { ?>
<style>
.message-notice.new-style:before {content: '';display: block;width: 22px;height: 22px;top: 12px;margin: 0;background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMiIgaGVpZ2h0PSIyMiIgdmlld0JveD0iMCAwIDIyIDIyIiBmaWxsPSJub25lIj4NCiAgICA8cGF0aCBkPSJNMTEgMEM0LjkyMDMxIDAgMCA0LjkxOTc1IDAgMTFDMCAxNy4wNzk2IDQuOTE5NzUgMjIgMTEgMjJDMTcuMDc5NyAyMiAyMiAxNy4wODAyIDIyIDExQzIyIDQuOTIwMzkgMTcuMDgwMiAwIDExIDBaTTEyLjEyOTYgMTUuMzY2NUMxMi4xMjk2IDE1LjcxNDEgMTEuNjIyOCAxNi4wNjE1IDExLjAwMDIgMTYuMDYxNUMxMC4zNDg2IDE2LjA2MTUgOS44ODUzNSAxNS43MTQxIDkuODg1MzUgMTUuMzY2NVY5Ljg0OTlDOS44ODUzNSA5LjQ0NDQ5IDEwLjM0ODcgOS4xNjkzMiAxMS4wMDAyIDkuMTY5MzJDMTEuNjIyOCA5LjE2OTMyIDEyLjEyOTYgOS40NDQ0OSAxMi4xMjk2IDkuODQ5OVYxNS4zNjY1Wk0xMS4wMDAzIDcuODM3MzNDMTAuMzM0MiA3LjgzNzMzIDkuODEyOTkgNy4zNDUwNCA5LjgxMjk5IDYuNzk0NzhDOS44MTI5OSA2LjI0NDU2IDEwLjMzNDIgNS43NjY3NSAxMS4wMDAzIDUuNzY2NzVDMTEuNjUxOCA1Ljc2Njc1IDEyLjE3MzEgNi4yNDQ1NiAxMi4xNzMxIDYuNzk0NzhDMTIuMTczMSA3LjM0NTA0IDExLjY1MTggNy44MzczMyAxMS4wMDAzIDcuODM3MzNaIiBmaWxsPSIjRkZCRjAwIi8+DQo8L3N2Zz4=");
}
</style>
<div class="messages">
<div class="message message-notice notice">
<div data-ui-id="messages-message-error">
<?php
$url1 = 'https://magefan.com/blog/update-magefan-blog-extension';
$url2 = 'https://magefan.com/magento2-blog-extension';
$url3 = 'https://magefan.com/contact';
?>
<?= /*@noEscape*/ __(
'Your Blog Extension is out of date. <a href="%1" target="_blank">Use this guide</a> to update it to <strong>version %2</strong>
via composer or download the new version archive from the
<a href="%3" target="_blank">Magefan Store</a>.
Please <a href="%4" target="_blank">contact</a>
the Magefan team if you have any questions or need help with an update.',
$url1,
$block->escapeHtml($block->getLatestVersion()),
$url2,
$url3
);
?>
<div class="message message-notice notice new-style" style="margin: 20px 3rem;padding: 12px 16px 12px 50px;background: #FFFBBB;overflow: hidden;">
<div data-ui-id="messages-message-error clear">
<div class="actions">
<div class="action-wrapper" style="display: flex;justify-content: flex-end;float: right;">
<button id="upgrade" class="_action upgrade-extension" title="Upgrade Extension" style="font-size: 14px;line-height: 20px;font-weight: 600;background: #FFCD36;color: #344054;border: none;padding: 8px 16px;float: right;"><span>Upgrade Extension</span></button>
<button id="remind" class="_action remind-later" title="Remind Later" style="font-size: 14px;line-height: 20px;font-weight: 600;background: transparent;color: #344054;border: none;padding: 8px 16px;float: right;margin-left: 1.3rem;"><span>Remind Later</span></button>
</div>
</div>
<div class="messages-message-content">
<p style="color: #292929;font-size: 14px;line-height: 18px;font-weight: 500;margin-bottom: 6px;">
<?php
$url1 = 'https://magefan.com/blog/update-magefan-blog-extension';
$url2 = 'https://magefan.com/magento2-blog-extension';
$url3 = 'https://magefan.com/contact';
?>
<?= /*@noEscape*/ __(
'<strong>Your Blog Extension is outdated.</strong> The latest version, %2, is now available, offering improved features and performance.',
$url1,
$block->escapeHtml($block->getLatestVersion()),
$url2,
$url3
);
?>
</p>
<p style="color: #484848;font-size: 12px;line-height: 15px;margin: 0;"><?= /*@noEscape*/ __('Have questions? Magefan support team is here to help!') ?></p>
</div>
</div>
</div>
</div>
Expand Down