From b46a23eab3c37a50b109406167493a3a2414ab25 Mon Sep 17 00:00:00 2001 From: Christian Wiwie Date: Sat, 14 Mar 2020 22:14:53 +0100 Subject: [PATCH] #8374: Adding missing settings template file; cleaning up addon code --- showmore_dyn/showmore_dyn.php | 9 --------- showmore_dyn/templates/settings.tpl | 12 ++++++++++++ 2 files changed, 12 insertions(+), 9 deletions(-) create mode 100644 showmore_dyn/templates/settings.tpl diff --git a/showmore_dyn/showmore_dyn.php b/showmore_dyn/showmore_dyn.php index b38231fac..cfc8e9377 100644 --- a/showmore_dyn/showmore_dyn.php +++ b/showmore_dyn/showmore_dyn.php @@ -48,15 +48,6 @@ function showmore_dyn_settings_post(){ if (isset($_POST['showmore_dyn-submit'])){ $limitHeight = $_POST['showmore_dyn_height']; DI::pConfig()->set(local_user(), 'showmore_dyn', 'limitHeight', $limitHeight); - -/* - $str=file_get_contents('addon/showmore_dyn/showmore_dyn.css'); - $str=preg_replace("/(max-height: )\d+(px;)/i", "max-height: " . $limitHeight . "px;" ,$str); - file_put_contents('addon/showmore_dyn/showmore_dyn.css', $str); - - $str=file_get_contents('addon/showmore_dyn/showmore_dyn.js'); - $str=preg_replace('/if \(\$item.height\(\) \< \d+\) \{/i', 'if ($item.height() < ' . $limitHeight . ') {' ,$str); - file_put_contents('addon/showmore_dyn/showmore_dyn2.js', $str);*/ } } diff --git a/showmore_dyn/templates/settings.tpl b/showmore_dyn/templates/settings.tpl new file mode 100644 index 000000000..2ef79c0aa --- /dev/null +++ b/showmore_dyn/templates/settings.tpl @@ -0,0 +1,12 @@ +
+

{{$title}}

+
+ + +
+ +
+ +
+
+