$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'],
]);
-<div class="settings-block">
- <h3 class="settings-heading">{{$title}}</h3>
+<span id="settings_showmore_dyn_inflated" class="settings-block fakelink" style="display: block;" onclick="openClose('settings_showmore_dyn_expanded'); openClose('settings_showmore_dyn_inflated');">
+ <h3>{{$header}}</h3>
+</span>
+<div id="settings_showmore_dyn_expanded" class="settings-block" style="display: none;">
+ <span class="fakelink" onclick="openClose('settings_showmore_dyn_expanded'); openClose('settings_showmore_dyn_inflated');">
+ <h3>{{$header}}</h3>
+ </span>
{{include file="field_input.tpl" field=$limitHeight}}
<div class="settings-submit-wrapper">