ending remarks
This commit is contained in:
parent
14ff849e26
commit
e0342b6214
6 changed files with 39 additions and 20 deletions
|
@ -2226,12 +2226,23 @@ $(function () {
|
|||
html: true,
|
||||
});
|
||||
} else {
|
||||
PF.fn.growl.call(
|
||||
PF.fn._s(
|
||||
"This website is running latest %s version",
|
||||
CHEVERETO.edition
|
||||
)
|
||||
);
|
||||
PF.fn.modal.call({
|
||||
type: "html",
|
||||
template: $("[data-modal=eol]").html(),
|
||||
buttons: false,
|
||||
button_submit: "Upgrade now",
|
||||
ajax: {
|
||||
data: {action: 'upgrade'},
|
||||
deferred: {
|
||||
success: function(XHR) {
|
||||
window.location.href = XHR.responseJSON.redir.url;
|
||||
},
|
||||
error: function(XHR) {
|
||||
PF.fn.growl.call(XHR.responseJSON.error.message);
|
||||
}
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
6
app/lib/chevereto.min.js
vendored
6
app/lib/chevereto.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -73,7 +73,7 @@ $route = function ($handler) {
|
|||
);
|
||||
}
|
||||
$route_menu['upgrade'] = [
|
||||
'label' => '🚀 Upgrade',
|
||||
'label' => '<span class="btn-icon icon-star4 color-yellow"></span> <b>Upgrade</b>',
|
||||
'id' => 'upgrade'
|
||||
];
|
||||
$handler::setVar('documentationBaseUrl', 'https://v3-docs.chevereto.com/');
|
||||
|
@ -92,9 +92,6 @@ $route = function ($handler) {
|
|||
$doing = 'stats';
|
||||
}
|
||||
|
||||
// Old and new image size counter
|
||||
$image_size_count_qry = 'SELECT (SUM(image_size) + SUM(image_thumb_size) + SUM(image_medium_size)) as count';
|
||||
|
||||
switch ($doing) {
|
||||
|
||||
case 'stats':
|
||||
|
@ -123,8 +120,11 @@ $route = function ($handler) {
|
|||
|
||||
$system_values = [
|
||||
'chv_version' => [
|
||||
'label' => 'Chevereto (Free)',
|
||||
'content' => (version_compare($chv_version['files'], $chv_version['db'], '<=') ? $chv_version['files'] : $chv_version['files'] . ' ('.$chv_version['db'].' DB) <a href="'.G\get_base_url('install').'">'._s('install update').'</a>') . ' – <a data-action="check-for-updates">' . _s("check for updates") . '</a>',
|
||||
'label' => 'Chevereto-Free',
|
||||
'content' => (version_compare($chv_version['files'], $chv_version['db'], '<=')
|
||||
? $chv_version['files']
|
||||
: $chv_version['files'] . ' ('.$chv_version['db'].' DB) <a href="'.G\get_base_url('install').'">'._s('install update').'</a>')
|
||||
. ' – <span class="icon icon-flow-branch"></span><a href="https://releases.chevereto.com/3.X/3.16/3.16.2.html" target="_blank">3.16.2</a> fork <a class="btn btn-capsule outline red" data-action="check-for-updates"><span class="icon icon-bolt"></span>' . _s("check for updates") . '</a>',
|
||||
],
|
||||
'support' => [
|
||||
'label' => 'Support',
|
||||
|
|
|
@ -50,11 +50,19 @@ if (CHV\Login::isAdmin()) {
|
|||
});
|
||||
});
|
||||
</script>
|
||||
<div data-modal="eol" class="hidden">
|
||||
<span class="modal-box-title">That's all folks!</span>
|
||||
<p>We are deeply sorry to inform that we will stop maintaining Chevereto-Free on <b>2021-12-31</b> and we won't produce any more releases for it.</p>
|
||||
<p>We are very sad for doing this, but kindly note that we are just a small 2-person team from Chile and we can't afford to gift this edition any longer. We are now focused exclusively in our paid edition, <b>thanks for your support</b>.</p>
|
||||
<p>Many thanks for using our software! Hope you enjoyed the experience.</p>
|
||||
<div class="btn-container"><button class="btn blue" data-action="submit" type="submit"><span class="btn-icon icon-next3"></span> Upgrade now</button> <a class="btn orange outline" href="https://chevereto.com/pricing" target="_blank"><span class="btn-icon icon-key3"></span> Purchase license</a></div>
|
||||
</div>
|
||||
|
||||
<div data-modal="form-upgrade" class="hidden" data-is-xhr data-submit-fn="CHV.fn.submit_upgradeToPaid" data-ajax-deferred="CHV.fn.complete_upgradeToPaid">
|
||||
<div data-modal="form-upgrade" class="hidden">
|
||||
<span class="modal-box-title">Upgrade to paid edition</span>
|
||||
<p>Upgrading to paid Chevereto enables access to all <a href="https://chevereto.com/features" target="_blank">features</a>. Tech Support included.</p>
|
||||
<div class="btn-container text-align-center"><button class="btn btn-input green" data-action="submit" type="submit">Upgrade now</button></div>
|
||||
<p>Upgrading to paid Chevereto enables access to all features and latest updates. This process is automated, you only need to paste your license key.</p>
|
||||
<p>All data will remain, and you can also count on support assistance.</p>
|
||||
<div class="btn-container"><button class="btn blue" data-action="submit" type="submit"><span class="btn-icon icon-next3"></span> Upgrade now</button> <a class="btn orange outline" href="https://chevereto.com/pricing" target="_blank"><span class="btn-icon icon-key3"></span> Purchase license</a></div>
|
||||
</div>
|
||||
<?php
|
||||
} ?>
|
||||
|
|
|
@ -287,7 +287,7 @@ if (is_maintenance() || is_show_consent_screen() || in_array($templateUsed, ['re
|
|||
<li><a href="<?php echo G\get_base_url(sprintf('logout/?auth_token=%s', get_auth_token())); ?>"><?php _se('Sign out'); ?></a></li>
|
||||
<?php if (is_admin()) { ?>
|
||||
<div class="or-separator margin-0" style="height: 1px;"></div>
|
||||
<li><a data-action="upgrade">🚀 Upgrade</a></li>
|
||||
<li><a data-action="upgrade"><span class="btn-icon icon-star4 color-yellow"></span> <b>Upgrade</b></a></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
@ -16,7 +16,7 @@ function get_docs_link($key, $subject)
|
|||
}
|
||||
function free_version_warning($wrap=true)
|
||||
{
|
||||
$message = _s("This functionality is not part of Chevereto Free. %s to obtain this feature.", ['%s' => '🚀<a data-action="upgrade">' . _s('Upgrade') . '</a>']);
|
||||
$message = _s("This functionality is not part of Chevereto Free. %s to obtain this feature.", ['%s' => '<a data-action="upgrade"><span class="btn-icon icon-star4 color-yellow"></span> ' . _s('Upgrade') . '</a>']);
|
||||
echo($wrap ? ('<div class="input-below">' . $message . '</div>') : $message);
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Add table
Reference in a new issue