Skip to content

Commit

Permalink
Merge pull request #231 from madbob/improved_graphics
Browse files Browse the repository at this point in the history
dimensione configurabile per pulsante CIE
  • Loading branch information
damikael authored Sep 21, 2024
2 parents 698fda6 + 6226996 commit 97f99be
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions setup/sdk/spid-php.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -532,18 +532,16 @@
return $button_li;
}

public function insertCIEButton($size='default') {
echo "
<div class=\"cie-button\" style=\"width: 280px;\">
<a class=\"cie-button\" role=\"button\"
href=\"?idp=CIE TEST\" >
<span class=\"cie-button-icon\">
<img aria-hidden=\"true\" src=\"/{{SERVICENAME}}/cie-graphics/SVG/entra_con_cie.svg\" alt=\"Entra con CIE\" />
</span>
<span class=\"sr-only\" style=\"display:none\">Entra con CIE</span>
</a>
</div>
";
public function insertCIEButton($size = 'L') {
$size = strtolower($size);
if ($size == 'default') {
$size = 'l';
}

echo "<a href=\"?idp=CIE TEST\" class=\"italia-it-button italia-it-button-size-$size button-cie\" aria-haspopup=\"true\" aria-expanded=\"false\">
<img src=\"/{{SERVICENAME}}/cie-graphics/SVG/entra_con_cie.svg\" alt=\"Entra con CIE\" />
<span class=\"sr-only\" style=\"display:none\">Entra con CIE</span>
</a>";
}
}

Expand Down

0 comments on commit 97f99be

Please sign in to comment.