Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dimensione configurabile per pulsante CIE #231

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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