From c23702eaa5d61aa83b47023d118ebb905d39ccd6 Mon Sep 17 00:00:00 2001 From: maTh Date: Sat, 16 Oct 2021 12:44:02 +0200 Subject: Fix #3835: theme switcher broken when theme is not available (#3874) * FIx the function: add an error slide * i18n for the error message * fix the message * i18n: nl * phpcbf * Typographic quotation marks +fr +en-US * Unicode instead of entities * Whitespace Co-authored-by: Alexandre Alapetite --- app/views/configure/display.phtml | 60 +++++++++++++++++++++++++-------------- 1 file changed, 39 insertions(+), 21 deletions(-) (limited to 'app/views/configure/display.phtml') diff --git a/app/views/configure/display.phtml b/app/views/configure/display.phtml index efc15fdd1..1ce4be5cd 100644 --- a/app/views/configure/display.phtml +++ b/app/views/configure/display.phtml @@ -26,21 +26,26 @@
    - themes); $i = 1; ?> + themes); $i = 1; $themeAvailable = false; ?> themes as $theme) { ?> - theme === $theme['id'] ? 'checked="checked"' : '' ?> value="" - data-leave-validation="theme === $theme['id']) ? 1 : 0 ?>"/> + theme === $theme['id']) { + $checked = 'checked="checked"'; + $themeAvailable = true; + } else { + $checked = ''; + } ?> + value="" + data-leave-validation="theme === $theme['id']) ? 1 : 0 ?>" />
  • - +
    @@ -51,6 +56,19 @@
  • + + +
  • +
    +
    + +
    +
    theme)?>
    +
    +
  • +
@@ -119,45 +137,45 @@ topline_read ? ' checked="checked"' : '' ?> - data-leave-validation="topline_read ?>"/> + data-leave-validation="topline_read ?>" /> topline_favorite ? ' checked="checked"' : '' ?> - data-leave-validation="topline_favorite ?>"/> + data-leave-validation="topline_favorite ?>" /> topline_summary ? 'checked="checked"' : '' ?> - data-leave-validation="topline_summary ?>"/> + data-leave-validation="topline_summary ?>" /> topline_display_authors ? ' checked="checked"' : '' ?> - data-leave-validation="topline_display_authors ?>"/> + data-leave-validation="topline_display_authors ?>" /> topline_date ? ' checked="checked"' : '' ?> - data-leave-validation="topline_date ?>"/> + data-leave-validation="topline_date ?>" /> topline_link ? ' checked="checked"' : '' ?> - data-leave-validation="topline_link ?>"/> + data-leave-validation="topline_link ?>" /> bottomline_read ? ' checked="checked"' : '' ?> - data-leave-validation="bottomline_read ?>"/> + data-leave-validation="bottomline_read ?>" /> bottomline_favorite ? ' checked="checked"' : '' ?> - data-leave-validation="bottomline_favorite ?>"/> + data-leave-validation="bottomline_favorite ?>" /> bottomline_tags ? ' checked="checked"' : '' ?> - data-leave-validation="bottomline_tags ?>"/> + data-leave-validation="bottomline_tags ?>" /> bottomline_sharing ? ' checked="checked"' : '' ?> - data-leave-validation="bottomline_sharing ?>"/> + data-leave-validation="bottomline_sharing ?>" /> bottomline_date ? ' checked="checked"' : '' ?> - data-leave-validation="bottomline_date ?>"/> + data-leave-validation="bottomline_date ?>" /> bottomline_link ? ' checked="checked"' : '' ?> - data-leave-validation="bottomline_link ?>"/> + data-leave-validation="bottomline_link ?>" /> @@ -169,7 +187,7 @@
+ data-leave-validation="html5_notif_timeout ?>" />
@@ -178,7 +196,7 @@ -- cgit v1.2.3