+ if(!local_user()) {
+ return;
+ }
+
+ $limitHeight = DI::pConfig()->get(local_user(), 'showmore_dyn', 'limitHeight', 250);
+ DI::pConfig()->set(local_user(), 'showmore_dyn', 'limitHeight', $limitHeight);
+
+ $t = Renderer::getMarkupTemplate('settings.tpl', 'addon/showmore_dyn/');
+ $html = Renderer::replaceMacros($t, [
+ '$limitHeight' => ['limitHeight', DI::l10n()->t('Limit Height'), $limitHeight, DI::l10n()->t('The maximal pixel height of posts before the Show More link is added, 0 to disable'), '', '', 'number'],
+ ]);
+
+ $data = [
+ 'addon' => 'showmore_dyn',
+ 'title' => DI::l10n()->t('Show More Dynamic'),
+ 'html' => $html,
+ ];