Skip to content

Instantly share code, notes, and snippets.

@willybahuaud
Created October 21, 2014 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save willybahuaud/13222381258f65e8bd8a to your computer and use it in GitHub Desktop.
Save willybahuaud/13222381258f65e8bd8a to your computer and use it in GitHub Desktop.
//Ligne 49 à 56
// Remplace...
$urlinscr = ( $idc = get_option( 'wem_page_inscr' ) ) ? esc_url( get_permalink( $idc ) ) : '';
$out[] = '<button class="willy-espace-membre-connexion w-button" data-target="wem-connexion" id="wem-connexion-button">' . __( 'Connexion', 'wem' ) . '</button> <span class="wem-pipe">|</span>';
$out[] = '<a class="willy-espace-membre-inscription w-button" href="' . $urlinscr . '">' . __( 'Inscription', 'wem' ) . '</a>';
$connectform = array();
$styleform = isset( $_GET['message'], $_GET['shake'] ) ? 'style="display:block;"' : 'style="display:none;"';
$connectform[] = '<div class="willy-espace-membre-connect-form" id="wem-connexion" ' . $styleform . '>';
//... par...
$randconn = rand(0,1000);
$urlinscr = ( $idc = get_option( 'wem_page_inscr' ) ) ? esc_url( get_permalink( $idc ) ) : '';
$out[] = '<button class="willy-espace-membre-connexion w-button" data-target="wem-connexion' . $randconn . '" id="wem-connexion-button">' . __( 'Connexion', 'wem' ) . '</button> <span class="wem-pipe">|</span>';
$out[] = '<a class="willy-espace-membre-inscription w-button" href="' . $urlinscr . '">' . __( 'Inscription', 'wem' ) . '</a>';
$connectform = array();
$styleform = isset( $_GET['message'], $_GET['shake'] ) ? 'style="display:block;"' : 'style="display:none;"';
$connectform[] = '<div class="willy-espace-membre-connect-form" id="wem-connexion' . $randconn . '" ' . $styleform . '>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment