A free, self-hostable news aggregator…
Option to control which categories to unfold (#2888)
Alexandre Alapetite5ddae689535c
diff --git a/app/Controllers/configureController.php b/app/Controllers/configureController.phpindex 84ee6057f..09efef40c 100755--- a/app/Controllers/configureController.php+++ b/app/Controllers/configureController.php@@ -108,7 +108,7 @@ class FreshRSS_configure_Controller extends Minz_ActionController {FreshRSS_Context::$user_conf->show_fav_unread = Minz_Request::param('show_fav_unread', false);FreshRSS_Context::$user_conf->auto_load_more = Minz_Request::param('auto_load_more', false);FreshRSS_Context::$user_conf->display_posts = Minz_Request::param('display_posts', false);- FreshRSS_Context::$user_conf->display_categories = Minz_Request::param('display_categories', false);+ FreshRSS_Context::$user_conf->display_categories = Minz_Request::param('display_categories', 'active');FreshRSS_Context::$user_conf->hide_read_feeds = Minz_Request::param('hide_read_feeds', false);FreshRSS_Context::$user_conf->onread_jump_next = Minz_Request::param('onread_jump_next', false);FreshRSS_Context::$user_conf->lazyload = Minz_Request::param('lazyload', false);diff --git a/app/Models/ConfigurationSetter.php b/app/Models/ConfigurationSetter.phpindex 75bbe4c2f..0026ae5b2 100644--- a/app/Models/ConfigurationSetter.php+++ b/app/Models/ConfigurationSetter.php@@ -183,7 +183,10 @@ class FreshRSS_ConfigurationSetter {}private function _display_categories(&$data, $value) {- $data['display_categories'] = $this->handleBool($value);+ if (!in_array($value, [ 'active', 'all', 'none' ])) {+ $value = $value === true ? 'all' : 'active';+ }+ $data['display_categories'] = $value;}private function _display_posts(&$data, $value) {diff --git a/app/i18n/cz/conf.php b/app/i18n/cz/conf.phpindex e053184ae..8c0db62f2 100644--- a/app/i18n/cz/conf.php+++ b/app/i18n/cz/conf.php@@ -103,7 +103,7 @@ return array('auto_remove_article' => 'Po přečtení články schovat','confirm_enabled' => 'Vyžadovat potvrzení pro akci “označit vše jako přečtené”','display_articles_unfolded' => 'Ve výchozím stavu zobrazovat články otevřené',- 'display_categories_unfolded' => 'Ve výchozím stavu zobrazovat kategorie otevřené',+ 'display_categories_unfolded' => 'Categories to unfold', // TODO - Translation'hide_read_feeds' => 'Schovat kategorie a kanály s nulovým počtem nepřečtených článků (nefunguje s nastavením “Zobrazit všechny články”)','img_with_lazyload' => 'Použít "lazy load" mód pro načítaní obrázků','jump_next' => 'skočit na další nepřečtený (kanál nebo kategorii)',@@ -120,6 +120,9 @@ return array('adaptive' => 'Vyberte zobrazení','all_articles' => 'Zobrazit všechny články','unread' => 'Zobrazit jen nepřečtené',+ 'active_category' => 'Active category', // TODO - Translation+ 'all_categories' => 'All categories', // TODO - Translation+ 'no_category' => 'No category', // TODO - Translation'_' => 'Počet zobrazených článků',),'sides_close_article' => 'Clicking outside of article text area closes the article', // TODO - Translationdiff --git a/app/i18n/de/conf.php b/app/i18n/de/conf.phpindex 2b56aa876..c671731a2 100644--- a/app/i18n/de/conf.php+++ b/app/i18n/de/conf.php@@ -103,7 +103,7 @@ return array('auto_remove_article' => 'Artikel nach dem Lesen verstecken','confirm_enabled' => 'Bei der Aktion „Alle als gelesen markieren“ einen Bestätigungsdialog anzeigen','display_articles_unfolded' => 'Artikel standardmäßig ausgeklappt zeigen',- 'display_categories_unfolded' => 'Kategorien standardmäßig ausgeklappt zeigen',+ 'display_categories_unfolded' => 'Categories to unfold', // TODO - Translation'hide_read_feeds' => 'Kategorien & Feeds ohne ungelesene Artikel verstecken (funktioniert nicht mit der Einstellung „Alle Artikel zeigen“)','img_with_lazyload' => 'Verwende die "träges Laden"-Methode zum Laden von Bildern','jump_next' => 'springe zum nächsten ungelesenen Geschwisterelement (Feed oder Kategorie)',@@ -120,6 +120,9 @@ return array('adaptive' => 'Anzeige anpassen','all_articles' => 'Alle Artikel zeigen','unread' => 'Nur ungelesene zeigen',+ 'active_category' => 'Active category', // TODO - Translation+ 'all_categories' => 'All categories', // TODO - Translation+ 'no_category' => 'No category', // TODO - Translation'_' => 'Artikel zum Anzeigen',),'sides_close_article' => 'Klick außerhalb des Artikel-Textes schließt den Artikel',diff --git a/app/i18n/en/conf.php b/app/i18n/en/conf.phpindex a58685df3..6d82fdaa4 100644--- a/app/i18n/en/conf.php+++ b/app/i18n/en/conf.php@@ -103,7 +103,7 @@ return array('auto_remove_article' => 'Hide articles after reading','confirm_enabled' => 'Display a confirmation dialog on “mark all as read” actions','display_articles_unfolded' => 'Show articles unfolded by default',- 'display_categories_unfolded' => 'Show categories unfolded by default',+ 'display_categories_unfolded' => 'Categories to unfold','hide_read_feeds' => 'Hide categories & feeds with no unread articles (does not work with “Show all articles” configuration)','img_with_lazyload' => 'Use "lazy load" mode to load pictures','jump_next' => 'jump to next unread sibling (feed or category)',@@ -120,6 +120,9 @@ return array('adaptive' => 'Adjust showing','all_articles' => 'Show all articles','unread' => 'Show only unread',+ 'active_category' => 'Active category',+ 'all_categories' => 'All categories',+ 'no_category' => 'No category','_' => 'Articles to display',),'sides_close_article' => 'Clicking outside of article text area closes the article',diff --git a/app/i18n/es/conf.php b/app/i18n/es/conf.phpindex 3f71a437d..0927c6815 100755--- a/app/i18n/es/conf.php+++ b/app/i18n/es/conf.php@@ -103,7 +103,7 @@ return array('auto_remove_article' => 'Ocultar artículos tras la lectura','confirm_enabled' => 'Mostrar ventana de confirmación al usar la función “marcar todos como leídos”','display_articles_unfolded' => 'Mostrar los artículos expandidos por defecto',- 'display_categories_unfolded' => 'Mostrar categorías expandidas por defecto',+ 'display_categories_unfolded' => 'Categories to unfold', // TODO - Translation'hide_read_feeds' => 'Ocultar categorías & fuentes sin artículos no leídos (no funciona con la configuración "Mostrar todos los artículos")','img_with_lazyload' => 'Usar el modo de "carga perezosa" para las imágenes','jump_next' => 'saltar al siguiente archivo sin leer emparentado (fuente o categoría)',@@ -120,6 +120,9 @@ return array('adaptive' => 'Ajustar la visualización','all_articles' => 'Mostrar todos los artículos','unread' => 'Mostrar solo pendientes',+ 'active_category' => 'Active category', // TODO - Translation+ 'all_categories' => 'All categories', // TODO - Translation+ 'no_category' => 'No category', // TODO - Translation'_' => 'Artículos a mostrar',),'sides_close_article' => 'Pinchar fuera del área de texto del artículo lo cerrará',diff --git a/app/i18n/fr/conf.php b/app/i18n/fr/conf.phpindex 9f5191d32..0ef0c2e6e 100644--- a/app/i18n/fr/conf.php+++ b/app/i18n/fr/conf.php@@ -103,7 +103,7 @@ return array('auto_remove_article' => 'Cacher les articles après lecture','confirm_enabled' => 'Afficher une confirmation lors des actions “marquer tout comme lu”','display_articles_unfolded' => 'Afficher les articles dépliés par défaut',- 'display_categories_unfolded' => 'Afficher les catégories dépliées par défaut',+ 'display_categories_unfolded' => 'Catégories à déplier','hide_read_feeds' => 'Cacher les catégories & flux sans article non-lu (ne fonctionne pas avec la configuration “Afficher tous les articles”)','img_with_lazyload' => 'Utiliser le mode “chargement différé” pour les images','jump_next' => 'sauter au prochain voisin non lu (flux ou catégorie)',@@ -120,6 +120,9 @@ return array('adaptive' => 'Adapter l’affichage','all_articles' => 'Afficher tous les articles','unread' => 'Afficher les non lus',+ 'active_category' => 'La catégorie active',+ 'all_categories' => 'Toutes les catégories',+ 'no_category' => 'Aucune catégorie','_' => 'Articles à afficher',),'sides_close_article' => 'Cliquer hors de la zone de texte ferme l’article',diff --git a/app/i18n/he/conf.php b/app/i18n/he/conf.phpindex 62ce7f09b..178869d47 100644--- a/app/i18n/he/conf.php+++ b/app/i18n/he/conf.php@@ -103,7 +103,7 @@ return array('auto_remove_article' => 'Hide articles after reading', // TODO - Translation'confirm_enabled' => 'הצגת דו-שיח לאישור “סימון הכל כנקרא” ','display_articles_unfolded' => 'הצגת מאמרים בשלמותם כברירת מחדל',- 'display_categories_unfolded' => 'הצגת קטגוריות בשלמותן כברירת מחדל',+ 'display_categories_unfolded' => 'Categories to unfold', // TODO - Translation'hide_read_feeds' => 'הסתרת קטגוריות & הזנות ללא מאמרים שלא נקראו (לא עובד יחד עם “הצגת כל המאמרים”)','img_with_lazyload' => 'שימוש ב "טעינה עצלה" על מנת לטעון תמונות','jump_next' => 'קפיצה לפריט הבא שלא נקרא (הזנה או קטגוריה)',@@ -120,6 +120,9 @@ return array('adaptive' => 'תצוגה מתעדכנת','all_articles' => 'הצגת כל המאמרים','unread' => 'הצגת מאמרים שלא נקראו בלבד',+ 'active_category' => 'Active category', // TODO - Translation+ 'all_categories' => 'All categories', // TODO - Translation+ 'no_category' => 'No category', // TODO - Translation'_' => 'מאמרים להצגה',),'sides_close_article' => 'Clicking outside of article text area closes the article', // TODO - Translationdiff --git a/app/i18n/it/conf.php b/app/i18n/it/conf.phpindex b4b794855..afe9e1d48 100644--- a/app/i18n/it/conf.php+++ b/app/i18n/it/conf.php@@ -103,7 +103,7 @@ return array('auto_remove_article' => 'Nascondi articoli dopo la lettura','confirm_enabled' => 'Mostra una conferma per “segna tutto come letto”','display_articles_unfolded' => 'Mostra articoli aperti di predefinito',- 'display_categories_unfolded' => 'Mostra categorie aperte di predefinito',+ 'display_categories_unfolded' => 'Categories to unfold', // TODO - Translation'hide_read_feeds' => 'Nascondi categorie e feeds con articoli già letti (non funziona se “Mostra tutti gli articoli” è selezionato)','img_with_lazyload' => 'Usa la modalità "caricamento ritardato" per le immagini','jump_next' => 'Salta al successivo feed o categoria non letto',diff --git a/app/i18n/kr/conf.php b/app/i18n/kr/conf.phpindex ff081b694..97cd5fc74 100644--- a/app/i18n/kr/conf.php+++ b/app/i18n/kr/conf.php@@ -103,7 +103,7 @@ return array('auto_remove_article' => '글을 읽은 후 숨기기','confirm_enabled' => '“모두 읽음으로 표시” 실행시 확인 창 표시','display_articles_unfolded' => '글을 펼쳐진 상태로 보여주기',- 'display_categories_unfolded' => '카테고리를 펼친 상태로 보여주기',+ 'display_categories_unfolded' => 'Categories to unfold', // TODO - Translation'hide_read_feeds' => '읽지 않은 글이 없는 카테고리와 피드 감추기 (“모든 글 표시”가 설정된 경우 동작하지 않습니다)','img_with_lazyload' => '그림을 불러오는 데에 "lazy load" 모드 사용하기','jump_next' => '다음 읽지 않은 항목으로 이동 (피드 또는 카테고리)',@@ -120,6 +120,9 @@ return array('adaptive' => '읽지 않은 글이 없으면 모든 글 표시','all_articles' => '모든 글 표시','unread' => '읽지 않은 글만 표시',+ 'active_category' => 'Active category', // TODO - Translation+ 'all_categories' => 'All categories', // TODO - Translation+ 'no_category' => 'No category', // TODO - Translation'_' => '글 표시 방식',),'sides_close_article' => '글 영역 바깥을 클릭하면 글 접기',diff --git a/app/i18n/nl/conf.php b/app/i18n/nl/conf.phpindex 5b7e78429..e4c78d88b 100644--- a/app/i18n/nl/conf.php+++ b/app/i18n/nl/conf.php@@ -103,7 +103,7 @@ return array('auto_remove_article' => 'Verberg artikel na lezen','confirm_enabled' => 'Toon een bevestigings dialoog op “markeer alles als gelezen” acties','display_articles_unfolded' => 'Artikelen standaard uitklappen',- 'display_categories_unfolded' => 'Categorieën standaard uitklappen',+ 'display_categories_unfolded' => 'Categories to unfold', // TODO - Translation'hide_read_feeds' => 'Categorieën en feeds zonder ongelezen artikelen verbergen (werkt niet met “Toon alle artikelen” configuratie)','img_with_lazyload' => 'Gebruik "lazy load" methode om afbeeldingen te laden','jump_next' => 'Ga naar volgende ongelezen (feed of categorie)',@@ -120,6 +120,9 @@ return array('adaptive' => 'Pas weergave aan','all_articles' => 'Bekijk alle artikelen','unread' => 'Bekijk alleen ongelezen',+ 'active_category' => 'Active category', // TODO - Translation+ 'all_categories' => 'All categories', // TODO - Translation+ 'no_category' => 'No category', // TODO - Translation'_' => 'Artikelen om te tonen',),'sides_close_article' => 'Sluit het artikel door buiten de artikeltekst te klikken',diff --git a/app/i18n/oc/conf.php b/app/i18n/oc/conf.phpindex 509cf3621..2e3ef9422 100644--- a/app/i18n/oc/conf.php+++ b/app/i18n/oc/conf.php@@ -103,7 +103,7 @@ return array('auto_remove_article' => 'Rescondre los articles aprèp lectura','confirm_enabled' => 'Mostrar una confirmacion per las accions del tipe « o marcar tot coma legit »','display_articles_unfolded' => 'Mostrar los articles desplegats per defaut',- 'display_categories_unfolded' => 'Mostrar las categorias desplegadas per defaut',+ 'display_categories_unfolded' => 'Categories to unfold', // TODO - Translation'hide_read_feeds' => 'Rescondre las categorias & fluxes sens articles pas legits (fonciona pas amb la configuracion « Mostrar totes los articles »)','img_with_lazyload' => 'Utilizar lo mòde “cargament tardiu” pels imatges','jump_next' => 'sautar al vesin venent pas legit (flux o categoria)',@@ -120,6 +120,9 @@ return array('adaptive' => 'Adaptar l’afichatge','all_articles' => 'Mostrar totes los articles','unread' => 'Mostrar pas que los pas legits',+ 'active_category' => 'Active category', // TODO - Translation+ 'all_categories' => 'All categories', // TODO - Translation+ 'no_category' => 'No category', // TODO - Translation'_' => 'Articles de mostrar',),'sides_close_article' => 'Clicar fòra de la zòna de tèxte tampa l’article',diff --git a/app/i18n/pt-br/conf.php b/app/i18n/pt-br/conf.phpindex 571103294..d9b6ee3ad 100644--- a/app/i18n/pt-br/conf.php+++ b/app/i18n/pt-br/conf.php@@ -103,7 +103,7 @@ return array('auto_remove_article' => 'Esconder artigos depois de lidos','confirm_enabled' => 'Exibir uma caixa de diálogo de confirmação quando acionar "marcar todos como lido"','display_articles_unfolded' => 'Mostrar artigos abertos por padrão',- 'display_categories_unfolded' => 'Mostrar artigos abertos por padrão',+ 'display_categories_unfolded' => 'Categories to unfold', // TODO - Translation'hide_read_feeds' => 'Esconder categorias e feeds com nenhum artigo não lido (não funciona com a configuração "Mostrar todos os artigos”)','img_with_lazyload' => 'Utilizar o modo "lazy load" para carregar as imagens','jump_next' => 'Vá para o próximo irmão não lido (feed ou categoria)',@@ -120,6 +120,9 @@ return array('adaptive' => 'Ajustar visualização','all_articles' => 'Exibir todos os artigos','unread' => 'Exibir apenas não lido',+ 'active_category' => 'Active category', // TODO - Translation+ 'all_categories' => 'All categories', // TODO - Translation+ 'no_category' => 'No category', // TODO - Translation'_' => 'Artigos para exibir',),'sides_close_article' => 'Clicando fora da área do texto do artigo fecha o mesmo',diff --git a/app/i18n/ru/conf.php b/app/i18n/ru/conf.phpindex 414a486b2..e644b38c7 100644--- a/app/i18n/ru/conf.php+++ b/app/i18n/ru/conf.php@@ -103,7 +103,7 @@ return array('auto_remove_article' => 'Hide articles after reading', // TODO - Translation'confirm_enabled' => 'Display a confirmation dialog on “mark all as read” actions', // TODO - Translation'display_articles_unfolded' => 'Show articles unfolded by default', // TODO - Translation- 'display_categories_unfolded' => 'Show categories unfolded by default', // TODO - Translation+ 'display_categories_unfolded' => 'Categories to unfold', // TODO - Translation'hide_read_feeds' => 'Hide categories & feeds with no unread article (does not work with “Show all articles” configuration)','img_with_lazyload' => 'Use "lazy load" mode to load pictures', // TODO - Translation'jump_next' => 'jump to next unread sibling (feed or category)', // TODO - Translation@@ -120,6 +120,9 @@ return array('adaptive' => 'Adjust showing', // TODO - Translation'all_articles' => 'Show all articles', // TODO - Translation'unread' => 'Show only unread', // TODO - Translation+ 'active_category' => 'Active category', // TODO - Translation+ 'all_categories' => 'All categories', // TODO - Translation+ 'no_category' => 'No category', // TODO - Translation'_' => 'Articles to display', // TODO - Translation),'sides_close_article' => 'Clicking outside of article text area closes the article', // TODO - Translationdiff --git a/app/i18n/sk/conf.php b/app/i18n/sk/conf.phpindex 06716360a..398ee720d 100644--- a/app/i18n/sk/conf.php+++ b/app/i18n/sk/conf.php@@ -103,7 +103,7 @@ return array('auto_remove_article' => 'Skryť články po prečítaní','confirm_enabled' => 'Zobraziť potvrdzovací dialóg po kliknutí na “Označiť všetko ako prečítané”','display_articles_unfolded' => 'Zobraziť články otvorené',- 'display_categories_unfolded' => 'Zobraziť kategórie otvorené',+ 'display_categories_unfolded' => 'Categories to unfold', // TODO - Translation'hide_read_feeds' => 'Skryť kategórie a kanály s nulovým počtom neprečítaných článkov (nefunguje s nastaveným “Zobraziť všetky články”)','img_with_lazyload' => 'Pre načítanie obrázkov použiť "lazy load"','jump_next' => 'skočiť na ďalší neprečítaný (kanál ale kategóriu)',@@ -120,6 +120,9 @@ return array('adaptive' => 'Vyberte zobrazenie','all_articles' => 'Zobraziť všetky články','unread' => 'Zobraziť iba neprečítané',+ 'active_category' => 'Active category', // TODO - Translation+ 'all_categories' => 'All categories', // TODO - Translation+ 'no_category' => 'No category', // TODO - Translation'_' => 'Článkov na zobrazenie',),'sides_close_article' => 'Po kliknutí mimo textu článku sa článok zatvorí',diff --git a/app/i18n/tr/conf.php b/app/i18n/tr/conf.phpindex 6dfb3a261..0971285ec 100644--- a/app/i18n/tr/conf.php+++ b/app/i18n/tr/conf.php@@ -103,7 +103,7 @@ return array('auto_remove_article' => 'Okuduktan sonra makaleleri gizle','confirm_enabled' => '"Hepsini okundu say" eylemi için onay iste','display_articles_unfolded' => 'Show articles unfolded by default', // TODO - Translation- 'display_categories_unfolded' => 'Show categories unfolded by default', // TODO - Translation+ 'display_categories_unfolded' => 'Categories to unfold', // TODO - Translation'hide_read_feeds' => 'Okunmamış makalesi olmayan kategori veya akışı gizle ("Tüm makaleleri göster" komutunda çalışmaz)','img_with_lazyload' => 'Resimleri yüklemek için "tembel modu" kullan','jump_next' => 'Bir sonraki benzer okunmamışa geç (akış veya kategori)',@@ -120,6 +120,9 @@ return array('adaptive' => 'Ayarlanmış gösterim','all_articles' => 'Tüm makaleleri göster','unread' => 'Sadece okunmamış makaleleri göster',+ 'active_category' => 'Active category', // TODO - Translation+ 'all_categories' => 'All categories', // TODO - Translation+ 'no_category' => 'No category', // TODO - Translation'_' => 'Gösterilecek makaleler',),'sides_close_article' => 'Clicking outside of article text area closes the article', // TODO - Translationdiff --git a/app/i18n/zh-cn/conf.php b/app/i18n/zh-cn/conf.phpindex 1dcf9c6da..6fbf0a54c 100644--- a/app/i18n/zh-cn/conf.php+++ b/app/i18n/zh-cn/conf.php@@ -103,7 +103,7 @@ return array('auto_remove_article' => '阅读后隐藏文章','confirm_enabled' => '「全部标记为已读」时显示确认对话框','display_articles_unfolded' => '默认展开显示文章',- 'display_categories_unfolded' => '默认展开显示类别',+ 'display_categories_unfolded' => 'Categories to unfold', // TODO - Translation'hide_read_feeds' => '隐藏没有未读文章的分类或订阅源 (启用「显示所有文章」后不生效))','img_with_lazyload' => '延迟加载图片','jump_next' => '跳转到下一未读项(订阅源或分类)',@@ -120,6 +120,9 @@ return array('adaptive' => '智能显示','all_articles' => '显示所有','unread' => '只显示未读',+ 'active_category' => 'Active category', // TODO - Translation+ 'all_categories' => 'All categories', // TODO - Translation+ 'no_category' => 'No category', // TODO - Translation'_' => '文章显示',),'sides_close_article' => '点击文章区域外以关闭',diff --git a/app/layout/aside_feed.phtml b/app/layout/aside_feed.phtmlindex 4c01b4694..52531b252 100644--- a/app/layout/aside_feed.phtml+++ b/app/layout/aside_feed.phtml@@ -46,7 +46,7 @@<?php$t_active = FreshRSS_Context::isCurrentGet('T');- $t_show = $t_active || FreshRSS_Context::$user_conf->display_categories;+ $t_show = ($t_active && FreshRSS_Context::$user_conf->display_categories === 'active') || FreshRSS_Context::$user_conf->display_categories === 'all';?><li class="tree-folder category tags<?= $t_active ? ' active' : '' ?>"><div class="tree-folder-title">@@ -75,7 +75,7 @@$position = $cat->attributes('position');if (!empty($feeds)) {$c_active = FreshRSS_Context::isCurrentGet('c_' . $cat->id());- $c_show = $c_active || FreshRSS_Context::$user_conf->display_categories;+ $c_show = ($c_active && FreshRSS_Context::$user_conf->display_categories === 'active') || FreshRSS_Context::$user_conf->display_categories === 'all';?><li class="tree-folder category<?= $c_active ? ' active' : '' ?>"<?= null === $position ? '' : "data-position='$position'" ?> data-unread="<?= $cat->nbNotRead() ?>"><div class="tree-folder-title">diff --git a/app/views/configure/reading.phtml b/app/views/configure/reading.phtmlindex 5eb009a1d..cb74440a5 100644--- a/app/views/configure/reading.phtml+++ b/app/views/configure/reading.phtml@@ -48,11 +48,13 @@</div><div class="form-group">+ <label class="group-name" for="default_view"><?= _t('conf.reading.display_categories_unfolded') ?></label><div class="group-controls">- <label class="checkbox" for="show_fav_unread">- <input type="checkbox" name="show_fav_unread" id="show_fav_unread" value="1"<?= FreshRSS_Context::$user_conf->show_fav_unread ? ' checked="checked"' : '' ?> data-leave-validation="<?= FreshRSS_Context::$user_conf->show_fav_unread ?>"/>- <?= _t('conf.reading.always_show_favorites') ?>- </label>+ <select name="display_categories" id="display_categories" data-leave-validation="<?= FreshRSS_Context::$user_conf->display_categories ?>">+ <option value="active"<?= FreshRSS_Context::$user_conf->display_categories === 'active' ? ' selected="selected"' : '' ?>><?= _t('conf.reading.show.active_category') ?></option>+ <option value="all"<?= FreshRSS_Context::$user_conf->display_categories === 'all' ? ' selected="selected"' : '' ?>><?= _t('conf.reading.show.all_categories') ?></option>+ <option value="none"<?= FreshRSS_Context::$user_conf->display_categories === 'none' ? ' selected="selected"' : '' ?>><?= _t('conf.reading.show.no_category') ?></option>+ </select></div></div>@@ -67,19 +69,18 @@<div class="form-group"><div class="group-controls">- <label class="checkbox" for="display_posts">- <input type="checkbox" name="display_posts" id="display_posts" value="1"<?= FreshRSS_Context::$user_conf->display_posts ? ' checked="checked"' : '' ?> data-leave-validation="<?= FreshRSS_Context::$user_conf->display_posts ?>"/>- <?= _t('conf.reading.display_articles_unfolded') ?>- <noscript> — <strong><?= _t('gen.js.should_be_activated') ?></strong></noscript>+ <label class="checkbox" for="show_fav_unread">+ <input type="checkbox" name="show_fav_unread" id="show_fav_unread" value="1"<?= FreshRSS_Context::$user_conf->show_fav_unread ? ' checked="checked"' : '' ?> data-leave-validation="<?= FreshRSS_Context::$user_conf->show_fav_unread ?>"/>+ <?= _t('conf.reading.always_show_favorites') ?></label></div></div><div class="form-group"><div class="group-controls">- <label class="checkbox" for="display_categories">- <input type="checkbox" name="display_categories" id="display_categories" value="1"<?= FreshRSS_Context::$user_conf->display_categories ? ' checked="checked"' : '' ?> data-leave-validation="<?= FreshRSS_Context::$user_conf->display_categories ?>"/>- <?= _t('conf.reading.display_categories_unfolded') ?>+ <label class="checkbox" for="display_posts">+ <input type="checkbox" name="display_posts" id="display_posts" value="1"<?= FreshRSS_Context::$user_conf->display_posts ? ' checked="checked"' : '' ?> data-leave-validation="<?= FreshRSS_Context::$user_conf->display_posts ?>"/>+ <?= _t('conf.reading.display_articles_unfolded') ?><noscript> — <strong><?= _t('gen.js.should_be_activated') ?></strong></noscript></label></div>diff --git a/config-user.default.php b/config-user.default.phpindex c517740da..1f4e1ec82 100644--- a/config-user.default.php+++ b/config-user.default.php@@ -31,7 +31,7 @@ return array ('show_fav_unread' => false,'auto_load_more' => true,'display_posts' => false,- 'display_categories' => false,+ 'display_categories' => 'active', //{ active, all, none }'hide_read_feeds' => true,'onread_jump_next' => true,'lazyload' => true,