This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Discover the OAuth metadata advertised by an Okta Agent Gateway. | |
| # Prints the authorization server, authorization/token endpoints, supported | |
| # scopes, and resource value to use when configuring Dust Static OAuth. | |
| # Requires curl and jq. | |
| # Usage: bash discover-gateway-oauth.sh <gateway-url> | |
| # or: GATEWAY_URL=<gateway-url> bash discover-gateway-oauth.sh | |
| set -euo pipefail |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Aggiunta campi per la richiesta fattura | |
| add_filter( 'woocommerce_checkout_fields' , 'custom_additional_fields' ); | |
| function custom_additional_fields( $fields ) { | |
| // Richiesta fattura | |
| $fields['billing']['fattura'] = array( | |
| 'label' => __('Richiedo la fattura', 'woocommerce'), | |
| 'type' => 'checkbox', | |
| 'placeholder' => _x('Fattura', 'placeholder', 'woocommerce'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| //creo il campo codice fiscale | |
| add_filter( 'woocommerce_checkout_fields' , 'codice_fiscale' ); | |
| function codice_fiscale( $fields ) { | |
| $fields['billing']['codice_fiscale'] = array( | |
| 'label' => __('Codice Fiscale', 'woocommerce'), | |
| 'placeholder' => _x('Codice Fiscale', 'placeholder', 'woocommerce'), | |
| 'required' => true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jQuery(function ($) { // init jQuery for WordPress | |
| var videoClass = '.jwplayer'; // video css class | |
| var debug = false; | |
| if (typeof jwplayer === 'function') checkVideoComplete(); // avvio la funziona solo se JWPlayer è caricato | |
| function checkVideoComplete() { | |
| var warningText='Devi guardare tutto il video prima di segnare la lezione come completa'; // testo da mettere a dx del bottone | |
| var warningClass='button-disable-text'; | |
| var alertText='Sembra che non hai guardato tutto il video... Per favore completa la visione del video prima di continuare.'; |