mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-03-26 02:02:09 -04:00
* Add option to hide sidebar by default (#8515) Closes https://github.com/FreshRSS/FreshRSS/issues/8515 Changes proposed in this pull request: - Add `sidebar_hidden_by_default` user preference (default: `false`) - Add a checkbox in the Display settings page to toggle this preference - Hide the sidebar on page load in `normal` and `reader` views when the preference is enabled and no session state exists - Add English translation key; mark all other languages as `TODO` for translators How to test the feature manually: 1. Go to Settings → Display, tick "Hide sidebar by default", save 2. Go back to the main view (normal or reader): the sidebar should be hidden on load 3. Toggle the sidebar manually — it should open/stay open for the rest of the session 4. Open a new tab: the sidebar should be hidden again 5. Go to Settings → Display, untick the option, save: the sidebar should now be visible on load as usual 6. Check that the sidebar is always visible on Settings pages regardless of the preference Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix: PR comment * Update app/i18n/pl/conf.php * i18n: fr * make fix-all --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: Inverle <inverle@proton.me> Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
This commit is contained in:
@@ -250,6 +250,7 @@ People are sorted by name so please keep this order.
|
||||
* [rdmitr](https://github.com/rdmitr): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:rdmitr)
|
||||
* [Rebecca Scott](https://github.com/becdetat): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:becdetat), [Web](https://becdetat.com)
|
||||
* [Rezad](https://github.com/rezad1393): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:rezad1393)
|
||||
* [rid3r45](https://github.com/rid3r45): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:rid3r45)
|
||||
* [Rob Loach](https://github.com/RobLoach): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:RobLoach), [Web](https://robloach.net/)
|
||||
* [Robert Kaussow](https://github.com/xoxys): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:xoxys), [Web](https://geeklabor.de/)
|
||||
* [robertdahlem](https://github.com/robertdahlem): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:robertdahlem)
|
||||
|
||||
@@ -234,11 +234,11 @@ Voir le [dépôt dédié à ces extensions](https://github.com/FreshRSS/Extensio
|
||||
| English (United States) (en-US) | ■■■■■■■■■■ 100% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fen-US+%2F%28TODO%7CDIRTY%29%24%2F) |
|
||||
| Español (es) | ■■■■■■■■■・ 98% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fes+%2F%28TODO%7CDIRTY%29%24%2F) |
|
||||
| فارسی (fa) | ■■■■■■■■■・ 91% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Ffa+%2F%28TODO%7CDIRTY%29%24%2F) |
|
||||
| Suomi (fi) | ■■■■■■■■■・ 94% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Ffi+%2F%28TODO%7CDIRTY%29%24%2F) |
|
||||
| Suomi (fi) | ■■■■■■■■■・ 93% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Ffi+%2F%28TODO%7CDIRTY%29%24%2F) |
|
||||
| Français (fr) | ■■■■■■■■■■ 100% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Ffr+%2F%28TODO%7CDIRTY%29%24%2F) |
|
||||
| עברית (he) | ■■■■・・・・・・ 41% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fhe+%2F%28TODO%7CDIRTY%29%24%2F) |
|
||||
| Magyar (hu) | ■■■■■■■■■・ 97% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fhu+%2F%28TODO%7CDIRTY%29%24%2F) |
|
||||
| Bahasa Indonesia (id) | ■■■■■■■■■・ 91% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fid+%2F%28TODO%7CDIRTY%29%24%2F) |
|
||||
| Bahasa Indonesia (id) | ■■■■■■■■■・ 90% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fid+%2F%28TODO%7CDIRTY%29%24%2F) |
|
||||
| Italiano (it) | ■■■■■■■■■・ 98% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fit+%2F%28TODO%7CDIRTY%29%24%2F) |
|
||||
| 日本語 (ja) | ■■■■■■■■・・ 89% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fja+%2F%28TODO%7CDIRTY%29%24%2F) |
|
||||
| 한국어 (ko) | ■■■■■■■■・・ 82% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fko+%2F%28TODO%7CDIRTY%29%24%2F) |
|
||||
|
||||
@@ -130,11 +130,11 @@ See the [repository dedicated to those extensions](https://github.com/FreshRSS/E
|
||||
| English (United States) (en-US) | ■■■■■■■■■■ 100% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fen-US+%2F%28TODO%7CDIRTY%29%24%2F) |
|
||||
| Español (es) | ■■■■■■■■■・ 98% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fes+%2F%28TODO%7CDIRTY%29%24%2F) |
|
||||
| فارسی (fa) | ■■■■■■■■■・ 91% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Ffa+%2F%28TODO%7CDIRTY%29%24%2F) |
|
||||
| Suomi (fi) | ■■■■■■■■■・ 94% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Ffi+%2F%28TODO%7CDIRTY%29%24%2F) |
|
||||
| Suomi (fi) | ■■■■■■■■■・ 93% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Ffi+%2F%28TODO%7CDIRTY%29%24%2F) |
|
||||
| Français (fr) | ■■■■■■■■■■ 100% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Ffr+%2F%28TODO%7CDIRTY%29%24%2F) |
|
||||
| עברית (he) | ■■■■・・・・・・ 41% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fhe+%2F%28TODO%7CDIRTY%29%24%2F) |
|
||||
| Magyar (hu) | ■■■■■■■■■・ 97% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fhu+%2F%28TODO%7CDIRTY%29%24%2F) |
|
||||
| Bahasa Indonesia (id) | ■■■■■■■■■・ 91% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fid+%2F%28TODO%7CDIRTY%29%24%2F) |
|
||||
| Bahasa Indonesia (id) | ■■■■■■■■■・ 90% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fid+%2F%28TODO%7CDIRTY%29%24%2F) |
|
||||
| Italiano (it) | ■■■■■■■■■・ 98% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fit+%2F%28TODO%7CDIRTY%29%24%2F) |
|
||||
| 日本語 (ja) | ■■■■■■■■・・ 89% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fja+%2F%28TODO%7CDIRTY%29%24%2F) |
|
||||
| 한국어 (ko) | ■■■■■■■■・・ 82% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fko+%2F%28TODO%7CDIRTY%29%24%2F) |
|
||||
|
||||
@@ -74,6 +74,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()->sidebar_hidden_by_default = Minz_Request::paramBoolean('sidebar_hidden_by_default');
|
||||
FreshRSS_Context::userConf()->html5_notif_timeout = max(0, Minz_Request::paramInt('html5_notif_timeout'));
|
||||
FreshRSS_Context::userConf()->html5_enable_notif = Minz_Request::paramBoolean('html5_enable_notif');
|
||||
FreshRSS_Context::userConf()->good_notification_timeout = max(0, Minz_Request::paramInt('good_notification_timeout'));
|
||||
|
||||
@@ -54,6 +54,7 @@ declare(strict_types=1);
|
||||
* @property bool $icons_as_emojis
|
||||
* @property int $simplify_over_n_feeds
|
||||
* @property bool $show_nav_buttons
|
||||
* @property bool $sidebar_hidden_by_default
|
||||
* @property 'big'|'small'|'none' $mark_read_button
|
||||
* @property 'ASC'|'DESC' $sort_order
|
||||
* @property 'id'|'c.name'|'date'|'f.name'|'length'|'link'|'rand'|'title' $sort
|
||||
|
||||
@@ -54,6 +54,7 @@ return array(
|
||||
'timeout' => 'Časový limit HTML5 oznámení',
|
||||
),
|
||||
'show_nav_buttons' => 'Zobrazit navigační tlačítka',
|
||||
'sidebar_hidden_by_default' => 'Hide sidebar by default', // TODO
|
||||
'theme' => array(
|
||||
'_' => 'Motiv',
|
||||
'deprecated' => array(
|
||||
|
||||
@@ -54,6 +54,7 @@ return array(
|
||||
'timeout' => 'Zeitüberschreitung für HTML5-Benachrichtigung',
|
||||
),
|
||||
'show_nav_buttons' => 'Zeige Navigations-Buttons',
|
||||
'sidebar_hidden_by_default' => 'Hide sidebar by default', // TODO
|
||||
'theme' => array(
|
||||
'_' => 'Layout',
|
||||
'deprecated' => array(
|
||||
|
||||
@@ -54,6 +54,7 @@ return array(
|
||||
'timeout' => 'HTML5 notification timeout', // TODO
|
||||
),
|
||||
'show_nav_buttons' => 'Show the navigation buttons', // TODO
|
||||
'sidebar_hidden_by_default' => 'Hide sidebar by default', // TODO
|
||||
'theme' => array(
|
||||
'_' => 'Theme', // TODO
|
||||
'deprecated' => array(
|
||||
|
||||
@@ -54,6 +54,7 @@ return array(
|
||||
'timeout' => 'HTML5 notification timeout', // IGNORE
|
||||
),
|
||||
'show_nav_buttons' => 'Show the navigation buttons', // IGNORE
|
||||
'sidebar_hidden_by_default' => 'Hide sidebar by default', // IGNORE
|
||||
'theme' => array(
|
||||
'_' => 'Theme', // IGNORE
|
||||
'deprecated' => array(
|
||||
|
||||
@@ -54,6 +54,7 @@ return array(
|
||||
'timeout' => 'HTML5 notification timeout',
|
||||
),
|
||||
'show_nav_buttons' => 'Show the navigation buttons',
|
||||
'sidebar_hidden_by_default' => 'Hide sidebar by default',
|
||||
'theme' => array(
|
||||
'_' => 'Theme',
|
||||
'deprecated' => array(
|
||||
|
||||
@@ -54,6 +54,7 @@ return array(
|
||||
'timeout' => 'Notificación de fin de espera HTML5',
|
||||
),
|
||||
'show_nav_buttons' => 'Mostrar los botones de navegación',
|
||||
'sidebar_hidden_by_default' => 'Hide sidebar by default', // TODO
|
||||
'theme' => array(
|
||||
'_' => 'Tema',
|
||||
'deprecated' => array(
|
||||
|
||||
@@ -54,6 +54,7 @@ return array(
|
||||
'timeout' => ' وقفه اعلان HTML5',
|
||||
),
|
||||
'show_nav_buttons' => ' دکمه های ناوبری را نشان دهید',
|
||||
'sidebar_hidden_by_default' => 'Hide sidebar by default', // TODO
|
||||
'theme' => array(
|
||||
'_' => ' موضوع',
|
||||
'deprecated' => array(
|
||||
|
||||
@@ -54,6 +54,7 @@ return array(
|
||||
'timeout' => 'Tauko HTML5-ilmoitusten välissä',
|
||||
),
|
||||
'show_nav_buttons' => 'Näytä siirtymispainikkeet',
|
||||
'sidebar_hidden_by_default' => 'Hide sidebar by default', // TODO
|
||||
'theme' => array(
|
||||
'_' => 'Teema',
|
||||
'deprecated' => array(
|
||||
|
||||
@@ -54,6 +54,7 @@ return array(
|
||||
'timeout' => 'Temps d’affichage de la notification HTML5',
|
||||
),
|
||||
'show_nav_buttons' => 'Afficher les boutons de navigation',
|
||||
'sidebar_hidden_by_default' => 'Masquer la barre latérale par défaut',
|
||||
'theme' => array(
|
||||
'_' => 'Thème',
|
||||
'deprecated' => array(
|
||||
|
||||
@@ -54,6 +54,7 @@ return array(
|
||||
'timeout' => 'HTML5 התראה פג תוקף',
|
||||
),
|
||||
'show_nav_buttons' => 'Show the navigation buttons', // TODO
|
||||
'sidebar_hidden_by_default' => 'Hide sidebar by default', // TODO
|
||||
'theme' => array(
|
||||
'_' => 'ערכת נושא',
|
||||
'deprecated' => array(
|
||||
|
||||
@@ -54,6 +54,7 @@ return array(
|
||||
'timeout' => 'HTML5 értesítés hossza',
|
||||
),
|
||||
'show_nav_buttons' => 'Navigációs gombok megjelenítése',
|
||||
'sidebar_hidden_by_default' => 'Hide sidebar by default', // TODO
|
||||
'theme' => array(
|
||||
'_' => 'Téma',
|
||||
'deprecated' => array(
|
||||
|
||||
@@ -54,6 +54,7 @@ return array(
|
||||
'timeout' => 'Batas waktu pemberitahuan HTML5',
|
||||
),
|
||||
'show_nav_buttons' => 'Tampilkan tombol navigasi',
|
||||
'sidebar_hidden_by_default' => 'Hide sidebar by default', // TODO
|
||||
'theme' => array(
|
||||
'_' => 'Tema',
|
||||
'deprecated' => array(
|
||||
|
||||
@@ -54,6 +54,7 @@ return array(
|
||||
'timeout' => 'Notifica timeout HTML5',
|
||||
),
|
||||
'show_nav_buttons' => 'Mostra i pulsanti di navigazione',
|
||||
'sidebar_hidden_by_default' => 'Hide sidebar by default', // TODO
|
||||
'theme' => array(
|
||||
'_' => 'Tema',
|
||||
'deprecated' => array(
|
||||
|
||||
@@ -54,6 +54,7 @@ return array(
|
||||
'timeout' => 'HTML5 の通知タイムアウト時間',
|
||||
),
|
||||
'show_nav_buttons' => 'ナビゲーションボタンを表示する',
|
||||
'sidebar_hidden_by_default' => 'Hide sidebar by default', // TODO
|
||||
'theme' => array(
|
||||
'_' => 'テーマ',
|
||||
'deprecated' => array(
|
||||
|
||||
@@ -54,6 +54,7 @@ return array(
|
||||
'timeout' => 'HTML5 알림 타임아웃',
|
||||
),
|
||||
'show_nav_buttons' => '내비게이션 버튼 보이기',
|
||||
'sidebar_hidden_by_default' => 'Hide sidebar by default', // TODO
|
||||
'theme' => array(
|
||||
'_' => '테마',
|
||||
'deprecated' => array(
|
||||
|
||||
@@ -54,6 +54,7 @@ return array(
|
||||
'timeout' => 'HTML5 paziņojuma laika ierobežojums',
|
||||
),
|
||||
'show_nav_buttons' => 'Rādīt navigācijas pogas',
|
||||
'sidebar_hidden_by_default' => 'Hide sidebar by default', // TODO
|
||||
'theme' => array(
|
||||
'_' => 'Tēma',
|
||||
'deprecated' => array(
|
||||
|
||||
@@ -54,6 +54,7 @@ return array(
|
||||
'timeout' => 'HTML5 notificatie stop',
|
||||
),
|
||||
'show_nav_buttons' => 'Toon navigatieknoppen',
|
||||
'sidebar_hidden_by_default' => 'Hide sidebar by default', // TODO
|
||||
'theme' => array(
|
||||
'_' => 'Thema',
|
||||
'deprecated' => array(
|
||||
|
||||
@@ -54,6 +54,7 @@ return array(
|
||||
'timeout' => 'Temps d’afichatge de las notificacions HTML5',
|
||||
),
|
||||
'show_nav_buttons' => 'Mostrar los botons de navigacion',
|
||||
'sidebar_hidden_by_default' => 'Hide sidebar by default', // TODO
|
||||
'theme' => array(
|
||||
'_' => 'Tèma',
|
||||
'deprecated' => array(
|
||||
|
||||
@@ -54,6 +54,7 @@ return array(
|
||||
'timeout' => 'Czas wyświetlania powiadomienia HTML5',
|
||||
),
|
||||
'show_nav_buttons' => 'Pokaż przyciski nawigacyjne',
|
||||
'sidebar_hidden_by_default' => 'Ukryj pasek boczny domyślnie',
|
||||
'theme' => array(
|
||||
'_' => 'Motyw',
|
||||
'deprecated' => array(
|
||||
|
||||
@@ -54,6 +54,7 @@ return array(
|
||||
'timeout' => 'Notificação em HTML5 de timeout',
|
||||
),
|
||||
'show_nav_buttons' => 'Mostrar botões de navegação',
|
||||
'sidebar_hidden_by_default' => 'Hide sidebar by default', // TODO
|
||||
'theme' => array(
|
||||
'_' => 'Tema',
|
||||
'deprecated' => array(
|
||||
|
||||
@@ -54,6 +54,7 @@ return array(
|
||||
'timeout' => 'Notificação em HTML5 de timeout',
|
||||
),
|
||||
'show_nav_buttons' => 'Mostrar botões de navegação',
|
||||
'sidebar_hidden_by_default' => 'Hide sidebar by default', // TODO
|
||||
'theme' => array(
|
||||
'_' => 'Tema',
|
||||
'deprecated' => array(
|
||||
|
||||
@@ -54,6 +54,7 @@ return array(
|
||||
'timeout' => 'Таймаут уведомлений HTML5',
|
||||
),
|
||||
'show_nav_buttons' => 'Показать кнопки навигации',
|
||||
'sidebar_hidden_by_default' => 'Hide sidebar by default', // TODO
|
||||
'theme' => array(
|
||||
'_' => 'Тема',
|
||||
'deprecated' => array(
|
||||
|
||||
@@ -54,6 +54,7 @@ return array(
|
||||
'timeout' => 'Limit HTML5 oznámenia',
|
||||
),
|
||||
'show_nav_buttons' => 'Zobraziť tlačidlá oznámenia',
|
||||
'sidebar_hidden_by_default' => 'Hide sidebar by default', // TODO
|
||||
'theme' => array(
|
||||
'_' => 'Vzhľad',
|
||||
'deprecated' => array(
|
||||
|
||||
@@ -54,6 +54,7 @@ return array(
|
||||
'timeout' => 'HTML5 bildirim zaman aşımı',
|
||||
),
|
||||
'show_nav_buttons' => 'Gezinme düğmelerini göster',
|
||||
'sidebar_hidden_by_default' => 'Hide sidebar by default', // TODO
|
||||
'theme' => array(
|
||||
'_' => 'Tema',
|
||||
'deprecated' => array(
|
||||
|
||||
@@ -54,6 +54,7 @@ return array(
|
||||
'timeout' => 'Тайм-аут сповіщення HTML5',
|
||||
),
|
||||
'show_nav_buttons' => 'Показати кнопки навігації',
|
||||
'sidebar_hidden_by_default' => 'Hide sidebar by default', // TODO
|
||||
'theme' => array(
|
||||
'_' => 'Тема',
|
||||
'deprecated' => array(
|
||||
|
||||
@@ -54,6 +54,7 @@ return array(
|
||||
'timeout' => 'HTML5 通知超时时间',
|
||||
),
|
||||
'show_nav_buttons' => '显示导航按钮',
|
||||
'sidebar_hidden_by_default' => 'Hide sidebar by default', // TODO
|
||||
'theme' => array(
|
||||
'_' => '主题',
|
||||
'deprecated' => array(
|
||||
|
||||
@@ -54,6 +54,7 @@ return array(
|
||||
'timeout' => 'HTML5 通知超時時間',
|
||||
),
|
||||
'show_nav_buttons' => '顯示導航按鈕',
|
||||
'sidebar_hidden_by_default' => 'Hide sidebar by default', // TODO
|
||||
'theme' => array(
|
||||
'_' => '主題',
|
||||
'deprecated' => array(
|
||||
|
||||
@@ -275,6 +275,16 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="group-controls">
|
||||
<label class="checkbox" for="sidebar_hidden_by_default">
|
||||
<input type="checkbox" name="sidebar_hidden_by_default" id="sidebar_hidden_by_default" value="1"<?=
|
||||
FreshRSS_Context::userConf()->sidebar_hidden_by_default ? ' checked="checked"' : '' ?> />
|
||||
<?= _t('conf.display.sidebar_hidden_by_default') ?>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group form-actions">
|
||||
<div class="group-controls">
|
||||
<button type="submit" class="btn btn-important"><?= _t('gen.action.submit') ?></button>
|
||||
|
||||
@@ -23,6 +23,7 @@ echo json_encode([
|
||||
'nb_parallel_refresh' => max(1, FreshRSS_Context::systemConf()->nb_parallel_refresh),
|
||||
'does_lazyload' => !!FreshRSS_Context::userConf()->lazyload ,
|
||||
'sides_close_article' => !!FreshRSS_Context::userConf()->sides_close_article,
|
||||
'sidebar_hidden_by_default' => !!FreshRSS_Context::userConf()->sidebar_hidden_by_default,
|
||||
'sticky_post' => !!FreshRSS_Context::isStickyPostEnabled(),
|
||||
'html5_enable_notif' => FreshRSS_Context::userConf()->html5_enable_notif,
|
||||
'html5_notif_timeout' => FreshRSS_Context::userConf()->html5_notif_timeout,
|
||||
|
||||
@@ -135,6 +135,7 @@ return array (
|
||||
'good_notification_timeout' => 3,
|
||||
'bad_notification_timeout' => 8,
|
||||
'show_nav_buttons' => true,
|
||||
'sidebar_hidden_by_default' => false,
|
||||
# List of enabled FreshRSS extensions.
|
||||
'extensions_enabled' => [],
|
||||
'retrieve_extension_list' => true,
|
||||
|
||||
@@ -105,6 +105,12 @@ By default, FreshRSS displays buttons to ease the article navigation when browsi
|
||||
|
||||
If you don’t use those buttons because you never browse on mobile or because you browse with gestures, you can disable them from the interface.
|
||||
|
||||
### Hide sidebar by default
|
||||
|
||||
By default, the sidebar is visible when opening FreshRSS. If you prefer to have more reading space on load, you can hide it by default.
|
||||
|
||||
When this option is enabled, the sidebar will be hidden at the start of each new session in the normal and reader views. You can still toggle it at any time using the sidebar button in the navigation bar.
|
||||
|
||||
## Reading
|
||||
|
||||
### Number of articles per page
|
||||
|
||||
@@ -971,6 +971,10 @@ function init_nav_menu() {
|
||||
if (context.current_view === 'normal') aside.classList.add('visible');
|
||||
sync(media);
|
||||
}
|
||||
if (state === null && context.sidebar_hidden_by_default && ['normal', 'reader'].includes(context.current_view)) {
|
||||
const active = toggle_aside.classList.contains('active');
|
||||
if (active) toggle_aside_click(false);
|
||||
}
|
||||
const close_aside = [
|
||||
document.querySelector('.aside a.toggle_aside'),
|
||||
document.querySelector('a.close-aside'), // background of aside (#close)
|
||||
|
||||
Reference in New Issue
Block a user