From ad22dff83049dda76d55b6809ad3ddad0ccd3724 Mon Sep 17 00:00:00 2001 From: Cerdic <cedric@yterium.com> Date: Thu, 18 Sep 2008 10:34:05 +0000 Subject: [PATCH] les plugins peuvent definir chacun leur feuille de style dynamique pour l'espace prive dans prive/style_prive_plugin_xxx.html elles sont toutes ajoutees a style_prive lors de son calcul +quelques styles de base pour les plugins qui squeletisent elur interface privee --- .gitattributes | 2 ++ prive/style_prive.html | 4 +++ prive/style_prive_plugins.html | 40 +++++++++++++++++++++++++ prive/style_prive_plugins_fonctions.php | 10 +++++++ 4 files changed, 56 insertions(+) create mode 100644 prive/style_prive_plugins.html create mode 100644 prive/style_prive_plugins_fonctions.php diff --git a/.gitattributes b/.gitattributes index b5d9adc4fe..c2afb17d5a 100644 --- a/.gitattributes +++ b/.gitattributes @@ -791,6 +791,8 @@ prive/style_prive_defaut.css -text prive/style_prive_fonctions.php -text prive/style_prive_formulaires.html -text prive/style_prive_ie.html -text +prive/style_prive_plugins.html -text +prive/style_prive_plugins_fonctions.php -text prive/style_vieilles_def.html -text prive/transmettre/forum_article.html -text prive/transmettre/signatures_article.html -text diff --git a/prive/style_prive.html b/prive/style_prive.html index 9fca3e55c6..24eac6e62b 100644 --- a/prive/style_prive.html +++ b/prive/style_prive.html @@ -778,3 +778,7 @@ body.sites .no_onglets #contenu #wysiwyg div.contenu_nom_site {display: none;} /******** Formulaires **************/ [(#INCLURE{fond=style_prive_formulaires}{couleur_claire}{couleur_foncee}{lang}{ltr})] /******** Formulaires fin **************/ + +/*** Plugins ***/ +[(#INCLURE{fond=style_prive_plugins}{couleur_claire}{couleur_foncee}{lang}{ltr})] +/**** Plugins fin ***/ \ No newline at end of file diff --git a/prive/style_prive_plugins.html b/prive/style_prive_plugins.html new file mode 100644 index 0000000000..8991231269 --- /dev/null +++ b/prive/style_prive_plugins.html @@ -0,0 +1,40 @@ +#CACHE{0} +[(#REM) + + Ce squelette definit les styles de l'espace prive + + Note: l'entete "Vary:" sert a repousser l'entete par + defaut "Vary: Cookie,Accept-Encoding", qui est (un peu) + genant en cas de "rotation du cookie de session" apres + un changement d'IP (effet de clignotement). + + ATTENTION: il faut absolument le charset sinon Firefox croit que + c'est du text/html ! +] +#CACHE{3600*100,cache-client} +#HTTP_HEADER{Content-Type: text/css; charset=iso-8859-15} +#HTTP_HEADER{Vary: Accept-Encoding} + +#SET{claire,##ENV{couleur_claire,edf3fe}} +#SET{foncee,##ENV{couleur_foncee,3874b0}} +#SET{left,#ENV{ltr}|choixsiegal{left,left,right}} +#SET{right,#ENV{ltr}|choixsiegal{left,right,left}} + + +h2.titrem { display: block; padding-top: 6px; padding-bottom: 4px; background-repeat: no-repeat;padding-[(#GET{left})]:16px;background-color: #GET{claire};font-size:14px;} + + +/* listes */ +.liste_items {list-style:none;margin:1em 0;padding:0;border-top:1px solid #ddd;clear:both;} +.liste_items li.item {border-bottom:1px solid #ddd;padding:0.4em 0; font-size: 10px;} +.liste_items li.item:hover {background-color:[#(#GET{claire}|couleur_eclaircir|couleur_eclaircir)];} +.liste_items li.court:hover {background-color:#eee;} +.liste_items li.item.on {background-color:[#(#GET{claire}|couleur_eclaircir|couleur_eclaircir)];font-weight:normal;} +.liste_items li.item.on:hover {background-color:[#(#GET{claire}|couleur_eclaircir)];} + +.pagination {background:#eee;border-top:1px solid #ddd;border-bottom:1px solid #ddd; margin: 0;padding:2px 0; font-size: 0.9em; font-weight: bold; text-align: right; white-space: nowrap; } +.pagination .on { background:#ccc;padding:2px 3px;color:#fff; } + +.clicable {cursor:hand;cursor:pointer;} + +[(#INCLURE{fond=#VAL{prive/}|tous_les_fonds{/style_prive_plugin_}}{couleur_claire}{couleur_foncee}{lang}{ltr})] \ No newline at end of file diff --git a/prive/style_prive_plugins_fonctions.php b/prive/style_prive_plugins_fonctions.php new file mode 100644 index 0000000000..d29e287c7e --- /dev/null +++ b/prive/style_prive_plugins_fonctions.php @@ -0,0 +1,10 @@ +<?php + +function tous_les_fonds($dir,$pattern){ + $liste = find_all_in_path($dir,$pattern); + foreach($liste as $k=>$v) + $liste[$k] = $dir . basename($v,'.html'); + return $liste; +} + +?> \ No newline at end of file -- GitLab