removed invasive upgrade remarks

This commit is contained in:
Rodolfo Berrios 2021-12-04 09:23:41 -03:00
parent e120fec868
commit 1f1a395382
No known key found for this signature in database
GPG Key ID: 3918A8F6B56606B3
2 changed files with 0 additions and 48 deletions

View File

@ -219,12 +219,9 @@ $route = function ($handler) {
'flood-protection' => _s('Flood protection'),
'theme' => _s('Theme'),
'homepage' => _s('Homepage'),
'banners' => _s('Banners'),
'system' => _s('System'),
'routing' => _s('Routing'),
'external-storage' => _s('External storage'),
'email' => _s('Email'),
'social-networks' => _s('Social networks'),
'external-services' => _s('External services'),
'ip-bans' => _s('IP bans'),
'api' => 'API',

View File

@ -14,11 +14,6 @@ function get_docs_link($key, $subject)
{
return '<a href="' . get_documentationBaseUrl() . $key . '" target="_blank">' . $subject . '</a>';
}
function free_version_warning($wrap=true)
{
$message = _s("This functionality is not part of Chevereto Free. %s to obtain this feature.", ['%s' => '<a href="https://github.com/rodber/chevereto-free/blob/master/UPGRADING.md"><span class="btn-icon icon-star4 color-yellow margin-right-5"></span>' . _s('Upgrade') . '</a>']);
echo($wrap ? ('<div class="input-below">' . $message . '</div>') : $message);
}
?>
<div class="content-width">
@ -391,26 +386,6 @@ function free_version_warning($wrap=true)
<div class="input-below"><?php _se('Enables to browse images randomly.'); ?></div>
</div>
<div class="input-label">
<label for="enable_likes"><?php _se('Likes'); ?></label>
<div class="c5 phablet-c1"><select type="text" class="text-input" disabled>
<?php
echo CHV\Render\get_select_options_html([1 => _s('Enabled'), 0 => _s('Disabled')], CHV\Settings::get('enable_likes')); ?>
</select></div>
<?php free_version_warning(); ?>
<?php personal_mode_warning(); ?>
</div>
<div class="input-label">
<label for="enable_followers"><?php _se('Followers'); ?></label>
<div class="c5 phablet-c1"><select type="text" class="text-input" disabled>
<?php
echo CHV\Render\get_select_options_html([1 => _s('Enabled'), 0 => _s('Disabled')], CHV\Settings::get('enable_followers')); ?>
</select></div>
<?php free_version_warning(); ?>
<?php personal_mode_warning(); ?>
</div>
<hr class="line-separator">
<div class="input-label">
@ -1414,14 +1389,6 @@ function free_version_warning($wrap=true)
</select></div>
<div class="input-below"><?php _se('Enable this if you want to apply a blur effect on the NSFW images in listings.'); ?></div>
</div>
<div class="input-label">
<label><?php _se('Show banners in not safe content'); ?></label>
<div class="c5 phablet-c1"><select type="text" class="text-input" disabled>
<?php
echo CHV\Render\get_select_options_html([1 => _s('Enabled'), 0 => _s('Disabled')], CHV\Settings::get('show_banners_in_nsfw')); ?>
</select></div>
<?php free_version_warning(); ?>
</div>
<div class="input-label">
<label for="show_nsfw_in_random_mode"><?php _se('Show not safe content in random mode'); ?></label>
@ -1883,10 +1850,6 @@ function free_version_warning($wrap=true)
<?php
} ?>
<?php if (get_settings()['key'] == 'banners') {
free_version_warning();
} ?>
<?php if (get_settings()['key'] == 'system') {
?>
<p><?php echo read_the_docs_settings('system', _s('system')); ?></p>
@ -1997,10 +1960,6 @@ function free_version_warning($wrap=true)
</div>
<?php
} ?>
<?php if (get_settings()['key'] == 'external-storage') {
free_version_warning();
} ?>
<?php if (get_settings()['key'] == 'email') {
?>
<p><?php echo read_the_docs_settings('email', _s('email')); ?></p>
@ -2133,10 +2092,6 @@ function free_version_warning($wrap=true)
<?php
} ?>
<?php if (get_settings()['key'] == 'social-networks') {
free_version_warning();
} ?>
<?php if (get_settings()['key'] == 'external-services') {
?>
<p><?php echo read_the_docs_settings('external-services', _s('external services')); ?></p>