Changeset 35159 in spip-zone


Ignore:
Timestamp:
Feb 14, 2010, 1:19:27 AM (11 years ago)
Author:
brunobergot@…
Message:

une page de config pour choisir le style du formulaire public + la css est insérée par insert_head plutôt que depuis le formulaire

Location:
_plugins_/mesfavoris
Files:
4 added
4 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/mesfavoris/formulaires/favori.html

    r34869 r35159  
    1 <style type="text/css">[(#INCLURE{fond=mesfavoris.css}|compacte)]</style>
    21<div class="formulaire_favori ajax">
    32[(#ENV**{editable}|oui)
  • _plugins_/mesfavoris/lang/mesfavoris_fr.php

    r34312 r35159  
    2323                'mes_favoris' => 'Mes favoris',
    2424
     25                'label_style_formulaire16' => 'Petit (16px)',
     26                'label_style_formulaire24' => 'Moyen (16px)',
     27                'label_style_formulaire32' => 'Grand (32px)',
     28                'legend_formulaire_public' => 'Formulaire public',
     29                'legend_style_formulaire' => 'Style du formulaire',
    2530                'login_first' => 'Désolé l\'action requiert d\être enregistré, authentifiez-vous d\'abord'
    2631        );
  • _plugins_/mesfavoris/mesfavoris.css.html

    r34867 r35159  
     1#CACHE{7*24*3600}
     2#HTTP_HEADER{Content-Type: text/css; charset=utf-8}
     3#HTTP_HEADER{Vary: Accept-Encoding}
     4
    15[(#REM)
    26
     
    913.formulaire_favori form button {cursor: pointer;border:0;background-color:transparent;text-align:right;padding:2px 0;}
    1014
    11 /* Icone favoris 16px
     15[(#CONFIG{mesfavoris/style_formulaire,32}|=={16}|oui)
     16/* Icone favoris 16px */
    1217.formulaire_favori form button.ajouter_favori img {visibility: hidden;}
    13 .formulaire_favori form button.ajouter_favori {background: url(#CHEMIN{images/favoris-grey-add-16.png}) no-repeat center right;}
    14 .formulaire_favori form button.ajouter_favori:hover {background-image: url(#CHEMIN{images/favoris-add-16.png});}
     18.formulaire_favori form button.ajouter_favori {background: url([(#CHEMIN{images/favoris-grey-add-16.png})]) no-repeat center right;}
     19.formulaire_favori form button.ajouter_favori:hover {background-image: url([(#CHEMIN{images/favoris-add-16.png})]);}
    1520
    1621.formulaire_favori form button.retirer_favori img {visibility: hidden;}
    1722.formulaire_favori form button.retirer_favori span {visibility:hidden;}
    18 .formulaire_favori form button.retirer_favori {background: url(#CHEMIN{images/favoris-16.png}) no-repeat center right;}
    19 .formulaire_favori form button.retirer_favori:hover {background-image: url(#CHEMIN{images/favoris-grey-remove-16.png});}
     23.formulaire_favori form button.retirer_favori {background: url([(#CHEMIN{images/favoris-16.png})]) no-repeat center right;}
     24.formulaire_favori form button.retirer_favori:hover {background-image: url([(#CHEMIN{images/favoris-grey-remove-16.png})]);}
    2025.formulaire_favori form button.retirer_favori:hover span {visibility:visible;}
    21 */
    22 
     26]
     27[(#CONFIG{mesfavoris/style_formulaire,32}|=={32}|oui)
    2328/* Icone favoris 32px */
    2429.formulaire_favori form button span {display:block;padding-bottom:5px;width:50px;}
    2530.formulaire_favori form button.ajouter_favori img {visibility: hidden;width:32px;height:32px}
    2631.formulaire_favori form button.ajouter_favori span {visibility:hidden;}
    27 .formulaire_favori form button.ajouter_favori {background: url(#CHEMIN{images/favoris-grey-add-32.png}) no-repeat center right;}
    28 .formulaire_favori form button.ajouter_favori:hover {background-image: url(#CHEMIN{images/favoris-add-32.png});}
     32.formulaire_favori form button.ajouter_favori {background: url([(#CHEMIN{images/favoris-grey-add-32.png})]) no-repeat center right;}
     33.formulaire_favori form button.ajouter_favori:hover {background-image: url([(#CHEMIN{images/favoris-add-32.png})]);}
    2934.formulaire_favori form button.ajouter_favori:hover span {visibility:visible;}
    3035
    3136.formulaire_favori form button.retirer_favori img {visibility: hidden;width:32px;height:32px}
    3237.formulaire_favori form button.retirer_favori span {visibility:hidden;}
    33 .formulaire_favori form button.retirer_favori {background: url(#CHEMIN{images/favoris-32.png}) no-repeat center right;}
    34 .formulaire_favori form button.retirer_favori:hover {background-image: url(#CHEMIN{images/favoris-grey-remove-32.png});}
     38.formulaire_favori form button.retirer_favori {background: url([(#CHEMIN{images/favoris-32.png})]) no-repeat center right;}
     39.formulaire_favori form button.retirer_favori:hover {background-image: url([(#CHEMIN{images/favoris-grey-remove-32.png})]);}
    3540.formulaire_favori form button.retirer_favori:hover span {visibility:visible;}
    36 
    37 
     41]
     42[(#CONFIG{mesfavoris/style_formulaire,32}|=={24}|oui)
    3843/* Icone Bookmark 24px */
    39 /*
    4044.formulaire_favori form button span {display:block;padding-bottom:0px;width:50px;}
    4145.formulaire_favori form button.ajouter_favori img {visibility: hidden;width:24px;height:24px}
    4246.formulaire_favori form button.ajouter_favori span {visibility:hidden;}
    43 .formulaire_favori form button.ajouter_favori {background: url(#CHEMIN{images/bookmark-grey-add-24.png}) no-repeat bottom right;}
    44 .formulaire_favori form button.ajouter_favori:hover {background-image: url(#CHEMIN{images/bookmark-add-24.png});}
     47.formulaire_favori form button.ajouter_favori {background: url([(#CHEMIN{images/bookmark-grey-add-24.png})]) no-repeat bottom right;}
     48.formulaire_favori form button.ajouter_favori:hover {background-image: url([(#CHEMIN{images/bookmark-add-24.png})]);}
    4549.formulaire_favori form button.ajouter_favori:hover span {visibility:visible;}
    4650
    4751.formulaire_favori form button.retirer_favori img {visibility: hidden;width:24px;height:24px}
    4852.formulaire_favori form button.retirer_favori span {visibility:hidden;}
    49 .formulaire_favori form button.retirer_favori {background: url(#CHEMIN{images/bookmark-24.png}) no-repeat bottom right;}
    50 .formulaire_favori form button.retirer_favori:hover {background-image: url(#CHEMIN{images/bookmark-grey-remove-24.png});}
     53.formulaire_favori form button.retirer_favori {background: url([(#CHEMIN{images/bookmark-24.png})]) no-repeat bottom right;}
     54.formulaire_favori form button.retirer_favori:hover {background-image: url([(#CHEMIN{images/bookmark-grey-remove-24.png})]);}
    5155.formulaire_favori form button.retirer_favori:hover span {visibility:visible;}
    52 */
     56]
  • _plugins_/mesfavoris/plugin.xml

    r34510 r35159  
    1414                <inclure>base/mesfavoris.php</inclure>
    1515        </pipeline>
    16 
    1716        <pipeline>
    1817                <nom>declarer_tables_interfaces</nom>
    1918                <inclure>base/mesfavoris.php</inclure>
    2019        </pipeline>
     20        <pipeline>
     21                <nom>insert_head</nom>
     22                <inclure>mesfavoris_pipelines.php</inclure>
     23        </pipeline>
    2124        <categorie>navigation</categorie>
    2225</plugin>
Note: See TracChangeset for help on using the changeset viewer.