This file contains 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
$(function () { | |
$(".formulaire_nom_formulaire form").submit(function () { | |
$(this).find("input[type=submit]").attr("disabled", "disabled"); | |
}); | |
}); |
This file contains 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 | |
/** | |
* Fonction de nettoyage des squelettes qui supprimer les ligne vides | |
* On passe par #FILTRE | |
* | |
* @param mixed $contenu | |
* @access public | |
* @return mixed | |
*/ | |
function filtre_supprimer_ligne_vide_dist($contenu) { |
This file contains 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
<div class="formulaire_spip formulaire_inscription ajax" id="formulaire_inscription"> | |
[<p class="reponse_formulaire reponse_formulaire_ok">(#ENV*{message_ok})</p>] | |
[<p class="reponse_formulaire reponse_formulaire_erreur">(#ENV*{message_erreur})</p>] | |
[(#ENV{editable}) | |
<form method="post" action="#ENV{action}"> | |
#ACTION_FORMULAIRE{#ENV{action}} | |
<fieldset> | |
#INCLURE{fond=formulaires/inc-inscription-explication,env} | |
<legend><:form_forum_identifiants:></legend> | |
<p class='explication'><:form_forum_indiquer_nom_email:></p> |
This file contains 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 | |
class vertige_mailchimp extends WP_Widget { | |
/** | |
* Sets up the widgets name etc | |
*/ | |
public function __construct() { | |
parent::__construct( | |
'vertige_mailchimp', // Base ID |
This file contains 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 | |
// Modifier proportionellement les font-size du css | |
$filename = "path/to/style.css"; | |
$css = file_get_contents($filename); | |
$css = preg_replace('/font-size\s*\:\s*([0-9]+)\s*px/ie', '"font-size: " . round($1+($1*0.20)) . "px"', $css); // +20% | |
file_put_contents($filename, $css); |
This file contains 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 | |
// nom_fonction peut être traiter, saisies, vérifier, charger, etc... | |
// Pas besoin de formulaire_truc_saisies, juste saisies | |
$charger = charger_fonction('nom_fonction', 'formulaires/nom_formulaire'); |
This file contains 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
/* | |
Reponses | |
*/ | |
.reponse_formulaire { | |
margin-bottom: /*@margin-bottom*/1.5em/*/@*/; | |
padding: /*@demi-margin-bottom*/0.75em/*/@*/; | |
border: 2px solid #ddd; | |
} | |
.reponse_formulaire_ok { | |
background: #e6efc2; |
This file contains 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
<ul[ id="(#ENV{id})"][ class="(#ENV{class,nav-main})"] role="menu"> | |
[(#REM) Définir la class à utiliser pour EXPOSE ] | |
[(#SET{expose_class, #ENV{expose_class, on}})] | |
[(#SET{dropdown_class, #ENV{dropdown_class, dropdown}})] | |
[(#REM) Accueil du site ] | |
<li[ (#SI_PAGE{sommaire}|oui)class="#GET{expose_class}"]> | |
<a href="#URL_SITE_SPIP/" role="menuitem" [title="(#NOM_SITE_SPIP|attribut_html)"]> | |
<:zcore:accueil:> | |
</a> |
This file contains 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 | |
$time_start = microtime(true); | |
// Truc à mesuré | |
$time_end = microtime(true); | |
$time = $time_end - $time_start; | |
echo "$time s<br />"; |
This file contains 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
setxkbmap -option terminate:ctrl_alt_bksp |