From 5282e5d737601aa018c63b29c2d65334b0ff81f8 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Thu, 12 Aug 2021 13:10:55 -0400 Subject: [PATCH] Fix issue processwire/processwire-issues#1220 --- .../Inputfield/InputfieldButton.module | 24 +++++++++++++------ 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/wire/modules/Inputfield/InputfieldButton.module b/wire/modules/Inputfield/InputfieldButton.module index f6451a1f..1afa744f 100644 --- a/wire/modules/Inputfield/InputfieldButton.module +++ b/wire/modules/Inputfield/InputfieldButton.module @@ -6,6 +6,7 @@ * @property string $href URL to link to * @property string $aclass Optional class name(s) for element (if href is used). * @property string $target Link target + * @property bool $linkInner Place link inside ', $text, 2); + $out = "$button>$text"; + } else { + $out = "$out"; } - + $this->attr('href', $href); // restore return $out; }