From 14e209c05f283422c92cd16fc6ed7c470f646270 Mon Sep 17 00:00:00 2001 From: "real3t@gmail.com" <> Date: Thu, 5 Jul 2018 14:45:30 +0000 Subject: [PATCH] Plus besoin d'utiliser le pipeline header_prive (merci tcharlss) --- .gitattributes | 2 +- ...e_prive.css => style_prive_plugin_soyezcreateurs.html} | 4 ++++ soyezcreateurs_options.php | 8 -------- 3 files changed, 5 insertions(+), 9 deletions(-) rename prive/{css/soyezcreateurs_espace_prive.css => style_prive_plugin_soyezcreateurs.html} (50%) diff --git a/.gitattributes b/.gitattributes index b948691f..aede9707 100644 --- a/.gitattributes +++ b/.gitattributes @@ -721,7 +721,6 @@ polices/Fontin_Sans_B_45b.ttf -text polices/Fontin_Sans_R_45b.ttf -text polices/police_vignettes_portail.ttf -text /popup_musique.html -text -prive/css/soyezcreateurs_espace_prive.css -text prive/exec/sc_aide.html -text prive/exec/sc_bannieres.html -text prive/exec/sc_vide.html -text @@ -732,6 +731,7 @@ prive/squelettes/inclure/configurer_soyezcreateurs_google.html -text prive/squelettes/inclure/configurer_soyezcreateurs_layout.html -text prive/squelettes/navigation/configurer_soyezcreateurs.html -text prive/squelettes/top/configurer_soyezcreateurs.html -text +prive/style_prive_plugin_soyezcreateurs.html -text prive/themes/spip/images/soyezcreateurs-16.png -text prive/themes/spip/images/soyezcreateurs_help-16.png -text prive/themes/spip/images/soyezcreateurs_help-48.png -text diff --git a/prive/css/soyezcreateurs_espace_prive.css b/prive/style_prive_plugin_soyezcreateurs.html similarity index 50% rename from prive/css/soyezcreateurs_espace_prive.css rename to prive/style_prive_plugin_soyezcreateurs.html index 2c0644bf..19f1ef54 100644 --- a/prive/css/soyezcreateurs_espace_prive.css +++ b/prive/style_prive_plugin_soyezcreateurs.html @@ -1,3 +1,7 @@ +#CACHE{3600*100,cache-client} +#HTTP_HEADER{Content-Type: text/css; charset=utf-8} +#HTTP_HEADER{Vary: Accept-Encoding} + .formulaire_spip .editer.associer_mot > label { display: block; float: none; diff --git a/soyezcreateurs_options.php b/soyezcreateurs_options.php index 3cbcd43d..0edc650b 100644 --- a/soyezcreateurs_options.php +++ b/soyezcreateurs_options.php @@ -174,11 +174,3 @@ if (!defined('_DIR_PLUGIN_CRITERE_MOTS')) { return true; } } - -$GLOBALS['spip_pipeline']['header_prive'] .= "|header_prive_soyezcreateurs"; - -function header_prive_soyezcreateurs($flux) { - $flux .= '<link rel="stylesheet" type="text/css" href="'.find_in_path('prive/css/soyezcreateurs_espace_prive.css').'" media="all" />'; - #$flux .= '<script type="text/javascript" src="'.find_in_path('soyezcreateurs_espace_prive.js').'"></script>'; - return $flux; -} \ No newline at end of file -- GitLab