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

modifica metodo insertButton #158

Open
paolopret opened this issue Feb 11, 2022 · 0 comments
Open

modifica metodo insertButton #158

paolopret opened this issue Feb 11, 2022 · 0 comments
Assignees

Comments

@paolopret
Copy link

paolopret commented Feb 11, 2022

Suggerisco, per una maggiore flessibilità d'uso, la modifica del metodo insertSpidButton o la creazione di un nuovo metodo che restituisca il codice html del bottone SPID come stringa. Per non impattare troppo sul progetto basterebbe rinominare l'attuale insertButton in getButtonCode, modificare l'uscita con return $button anzichè echo $button, stessa cosa per il metodo insertSPIDButtonJS e insertSPIDButtonCSS (qui toglierei anche il caricamento di jquery in quanto spesso già caricato dal progetto che si sta utilizzando).
A questo punto basterebbe ricreare il metodo insertSpidButton con la echo del valore restituito da getButtonCode per mantenere retrocompatibilità.

@damikael damikael self-assigned this Feb 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants