mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-24 16:25:00 -04:00
config option
This commit is contained in:
@@ -66,6 +66,7 @@ class FreshRSS_configure_Controller extends FreshRSS_ActionController {
|
||||
FreshRSS_Context::userConf()->bottomline_date = Minz_Request::paramBoolean('bottomline_date');
|
||||
FreshRSS_Context::userConf()->bottomline_link = Minz_Request::paramBoolean('bottomline_link');
|
||||
FreshRSS_Context::userConf()->show_nav_buttons = Minz_Request::paramBoolean('show_nav_buttons');
|
||||
FreshRSS_Context::userConf()->stickyButtons = Minz_Request::paramBoolean('stickyButtons');
|
||||
FreshRSS_Context::userConf()->html5_notif_timeout = Minz_Request::paramInt('html5_notif_timeout');
|
||||
FreshRSS_Context::userConf()->save();
|
||||
|
||||
|
||||
@@ -49,6 +49,7 @@ declare(strict_types=1);
|
||||
* @property bool $icons_as_emojis
|
||||
* @property int $simplify_over_n_feeds
|
||||
* @property bool $show_nav_buttons
|
||||
* @property bool $stickyButtons
|
||||
* @property 'ASC'|'DESC' $sort_order
|
||||
* @property array<string,array<string>> $sharing
|
||||
* @property array<string,string> $shortcuts
|
||||
|
||||
@@ -9,7 +9,10 @@
|
||||
$class = 'rtl ';
|
||||
}
|
||||
if (FreshRSS_Context::userConf()->darkMode !== 'no') {
|
||||
$class .= 'darkMode_' . FreshRSS_Context::userConf()->darkMode;
|
||||
$class .= 'darkMode_' . FreshRSS_Context::userConf()->darkMode.' ';
|
||||
}
|
||||
if (FreshRSS_Context::userConf()->stickyButtons) {
|
||||
$class .= 'stickyButtons';
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
|
||||
@@ -270,6 +270,18 @@
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="group-name" for="stickyButtons"><?= _t('conf.display.stickyButtons.label') ?></label>
|
||||
<div class="group-controls">
|
||||
<label class="checkbox" for="stickyButtons">
|
||||
<input type="checkbox" name="stickyButtons" id="stickyButtons" value="1"<?=
|
||||
FreshRSS_Context::userConf()->stickyButtons ? ' checked="checked"' : '' ?>
|
||||
data-leave-validation="<?= FreshRSS_Context::userConf()->stickyButtons ?>" />
|
||||
<?= _t('conf.display.stickyButtons.checkbox') ?>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group form-actions">
|
||||
<div class="group-controls">
|
||||
|
||||
@@ -430,7 +430,7 @@ td.numeric {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.form-group.form-actions {
|
||||
.stickyButtons .form-group.form-actions {
|
||||
position: sticky;
|
||||
bottom: 0;
|
||||
backdrop-filter: blur(2px);
|
||||
|
||||
Reference in New Issue
Block a user