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
[(#REM) Récupérer le tableau des champs ] | |
[(#SET{les_champs,#CONFIG{champs_extras_spip_mailsubscribers}|unserialize})] | |
[(#REM) Générer les Saisies ] | |
[(#GENERER_SAISIES{#GET{les_champs}})] |
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
.flex-video { | |
position: relative; | |
padding-top: 1.5625rem; | |
padding-bottom: 67.5%; | |
height: 0; | |
margin-bottom: 1rem; | |
overflow: hidden; } | |
.flex-video.widescreen { | |
padding-bottom: 56.55%; } | |
.flex-video.vimeo { |
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
/* | |
Make the Facebook Like box responsive (fluid width) | |
https://developers.facebook.com/docs/reference/plugins/like-box/ | |
*/ | |
/* | |
This element holds injected scripts inside iframes that in | |
some cases may stretch layouts. So, we're just hiding it. | |
*/ | |
#fb-root { |
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 | |
var_dump(get_defined_functions()); | |
?> |
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
<B_agenda> | |
#ANCRE_PAGINATION | |
<BOUCLE_agenda(EVENEMENTS){age<=0}{par date}{pagination}> | |
<div class="bloc_agenda"> | |
<h3><a href="#URL_ARTICLE" [title="(#TITRE|attribut_html)"]>#TITRE</a></h3> | |
[<p class="meta">(#DATE_DEBUT|affdate_debut_fin{#DATE_FIN, [(#HORAIRE*)]})</p>] | |
#DESCRIPTIF | |
</div> |
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 () { | |
if (Modernizr.inputtypes.date) { | |
$(".formulaire_spip input[type='date']").prop("type", "text"); | |
} | |
}); |
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 qui va normaliser n'importe quel format de date au format sql DATETIME | |
* | |
* @param mixed $date | |
* @access public | |
* @return mixed | |
*/ | |
function filtre_normaliser_date_sql_dist($date) { |
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 | |
/** | |
* Ajouter un logo à un objet SPIP | |
* On peu passer directement un file Path ou un $_FILE[input_name] à $fichier | |
* | |
* @param mixed $objet | |
* @param mixed $id_objet | |
* @param mixed $fichier | |
* @access public |
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 qui écrit dans les log de SPIP les erreurs d'encodage/décodage JSON | |
* | |
* @param string $filename Nom du fichier de log SPIP à utiliser | |
* @access public | |
*/ | |
function spip_log_erreur_json($filename='json_erreur') { | |
// Gestion des erreur JSON |
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 | |
function saisie_implode_array($saisies, $blacklist = array()) { | |
foreach($saisies as $index => $saisie){ | |
// Si on trouve une clée datas il faut implode | |
if ( | |
array_key_exists ('datas', $saisie['options']) // est-ce qu'il y a des data ? | |
and is_array(_request($saisie['options']['nom'])) // Il faut que ce soit un tableau | |
and !in_array($index, $blacklist) // Si c'est dans la blacklist on touche pas | |
) { | |
set_request($saisie['options']['nom'], implode(',', _request($saisie['options']['nom']))); |
OlderNewer