From 14ebf55d56472c5abc3f14806b9830efe8e20f7b Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 31 Dec 2020 09:13:42 -0500 Subject: [PATCH] [showmore_dyn] Normalize addon use setting display with accordion behavior --- showmore_dyn/showmore_dyn.php | 2 +- showmore_dyn/templates/settings.tpl | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/showmore_dyn/showmore_dyn.php b/showmore_dyn/showmore_dyn.php index ccb96bc6..da384faa 100644 --- a/showmore_dyn/showmore_dyn.php +++ b/showmore_dyn/showmore_dyn.php @@ -57,7 +57,7 @@ function showmore_dyn_settings(App &$a, &$o) $t = Renderer::getMarkupTemplate('settings.tpl', 'addon/showmore_dyn/'); $o .= Renderer::replaceMacros($t, [ '$submit' => DI::l10n()->t('Save Settings'), - '$title' => 'Showmore Dynamic', + '$header' => 'Show More Dynamic', '$limitHeight' => ['limitHeight', DI::l10n()->t('Limit Height'), $limitHeight, 'The maximal pixel height of posts, 0 to disable', '', '', 'number'], ]); diff --git a/showmore_dyn/templates/settings.tpl b/showmore_dyn/templates/settings.tpl index 5e8bc3f1..ac37e937 100644 --- a/showmore_dyn/templates/settings.tpl +++ b/showmore_dyn/templates/settings.tpl @@ -1,5 +1,10 @@ -
-

{{$title}}

+ +

{{$header}}

+
+