From 6f2873a0b8dcbc4801929bea5146ea2c4878eda5 Mon Sep 17 00:00:00 2001 From: Roberto Guido Date: Tue, 14 Nov 2023 15:42:42 +0100 Subject: [PATCH 1/2] feat: configurable size for CIE button --- setup/sdk/spid-php.tpl | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/setup/sdk/spid-php.tpl b/setup/sdk/spid-php.tpl index d8da90c..eebeacb 100644 --- a/setup/sdk/spid-php.tpl +++ b/setup/sdk/spid-php.tpl @@ -532,18 +532,16 @@ return $button_li; } - public function insertCIEButton($size='default') { - echo " -
- - - \"Entra - - Entra con CIE - -
- "; + public function insertCIEButton($size = 'L') { + $size = strtolower($size); + if ($size == 'default') { + $size = 'l'; + } + + echo " + \"Entra + Entra con CIE + "; } } From 6226996443803dc83d8887981ff1015605a819c9 Mon Sep 17 00:00:00 2001 From: Roberto Guido Date: Wed, 15 Nov 2023 12:53:05 +0100 Subject: [PATCH 2/2] fix: parametric path for cie button image --- setup/sdk/spid-php.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/sdk/spid-php.tpl b/setup/sdk/spid-php.tpl index eebeacb..dfda421 100644 --- a/setup/sdk/spid-php.tpl +++ b/setup/sdk/spid-php.tpl @@ -539,7 +539,7 @@ } echo " - \"Entra + \"Entra Entra con CIE "; }