From b481bfaca8b9819a041da19cf76ddf12004b93ee Mon Sep 17 00:00:00 2001 From: Charl Joseph Mert Date: Thu, 21 Jan 2010 14:11:55 +0200 Subject: [PATCH] Brand server without requiring access to FS PT: 1243391 --- plugins/ktcore/KTWidgets.php | 2 ++ templates/ktcore/forms/widgets/image.smarty | 30 +++++++++++++++++++++++++++++- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/plugins/ktcore/KTWidgets.php b/plugins/ktcore/KTWidgets.php index 99890d7..d351f73 100755 --- a/plugins/ktcore/KTWidgets.php +++ b/plugins/ktcore/KTWidgets.php @@ -1113,6 +1113,8 @@ class KTCoreImageWidget extends KTWidget { $this->aOptions['height'] = KTUtil::arrayGet($aOptions, 'height', ''); $this->aOptions['has_width'] = ($this->aOptions['height'] !== null); $this->aOptions['has_height'] = ($this->aOptions['height'] !== null); + $this->aOptions['div_border'] = KTUtil::arrayGet($aOptions, 'div_border', ''); + $this->aOptions['has_div_border'] = ($this->aOptions['div_border'] !== null); } diff --git a/templates/ktcore/forms/widgets/image.smarty b/templates/ktcore/forms/widgets/image.smarty index df3b354..cc35204 100755 --- a/templates/ktcore/forms/widgets/image.smarty +++ b/templates/ktcore/forms/widgets/image.smarty @@ -1 +1,29 @@ - {$name} +{if $options.has_div_border} + +
+ +
+{/if} + + {$name} + +{if $options.has_div_border} +
+
+
+{/if} + -- libgit2 0.21.4