Changeset 54258 in spip-zone
- Timestamp:
- Nov 9, 2011, 2:03:59 PM (9 years ago)
- Location:
- _plugins_/boutonstexte/trunk
- Files:
-
- 4 added
- 2 deleted
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/boutonstexte/trunk/boutonstexte.css
r54257 r54258 1 [ (#REM) Feuille de style de la version texte2 Nous utilisons un squelette afin de traiter l'orientation du texte3 ]4 #CACHE{3600*100,cache-client}5 #HTTP_HEADER{Content-Type: text/css; charset=iso-8859-15}6 #HTTP_HEADER{Vary: Accept-Encoding}7 8 1 /* boutonstexte.css */ 9 2 .boutonstexte { … … 24 17 } 25 18 .boutonstexte button.textonly { 26 background : url(#CHEMIN{images/textonly.png})no-repeat;19 background-repeat: no-repeat; 27 20 height: 17px; 28 21 width: 17px; 29 22 } 30 23 .boutonstexte button.textsizedown { 31 background: url(#CHEMIN{images/fontsizedown.png})no-repeat;24 background-repeat: no-repeat; 32 25 height: 17px; 33 26 width: 17px; 34 27 } 35 28 .boutonstexte button.textsizeup { 36 background: url(#CHEMIN{images/fontsizeup.png})no-repeat;29 background-repeat: no-repeat; 37 30 height: 17px; 38 31 width: 17px; … … 41 34 42 35 div.onlytext { 43 text-align: [(#LANG_DIR|choixsiegal{ltr,left,right})];36 text-align: left; 44 37 margin:0 auto!important; 45 38 border:0 !important; … … 60 53 background-color:white; 61 54 } 55 56 @media print { 57 58 /* boutonstexte.css */ 59 .boutonstexte { 60 display:none; 61 } 62 63 div.onlytext { 64 width:auto!important; 65 } 66 67 } -
_plugins_/boutonstexte/trunk/boutonstexte_pipelines.php
r53406 r54258 1 1 <?php 2 2 if (!defined("_ECRIRE_INC_VERSION")) return; 3 3 4 // insert le css et le js externes pour boutonstexte dans le <head> du document (#INSERT_HEAD) 4 5 function boutonstexte_insert_head_css($flux) 5 6 { 6 static $done = false; 7 if (!$done) { 8 $metacfg = array( 9 'cssFile' => 'boutonstexte', 10 ); 11 meta_boutonstexte($metacfg); 12 $cssFile = $metacfg['cssFile']; 13 $done = true; 14 $flux .= '<link rel="stylesheet" href="spip.php?page='.$cssFile.'.css" type="text/css" media="all" /><link rel="stylesheet" href="spip.php?page='.$cssFile.'-print.css" type="text/css" media="print" />'; 15 } 7 $metacfg = array( 8 'cssFile' => 'boutonstexte', 9 ); 10 meta_boutonstexte($metacfg); 11 $cssFile = find_in_path($metacfg['cssFile'].".css"); 12 13 $dir = $GLOBALS['lang_dir']=="ltr"?"left":"right"; 14 $imgto = find_in_path("images/textonly.png"); 15 $imgtsd = find_in_path("images/fontsizedown.png"); 16 $imgtsu = find_in_path("images/fontsizeup.png"); 17 $flux .= 18 '<link rel="stylesheet" href="'.$cssFile.'" type="text/css" media="all" />' 19 . "<style type='text/css'> 20 .boutonstexte button.textonly {background-image:url($imgto);} 21 .boutonstexte button.textsizedown {background-image:url($imgtsd);} 22 .boutonstexte button.textsizeup {background-image:url($imgtsu);} 23 div.onlytext {text-align:$dir;} 24 </style>" 25 ; 26 27 16 28 return $flux; 17 29 } … … 20 32 { 21 33 $metacfg = array( 22 'selector' => '#conten u.texte',34 'selector' => '#content .texte', 23 35 'jsFile' => 'boutonstexte.js', 24 36 'imgPath' => 'images/fontsizeup.png', … … 39 51 $txtSizeDown = txt_boutonstexte($metacfg['txtSizeDown']); 40 52 41 $flux = boutonstexte_insert_head_css($flux);42 53 $flux .= <<<EOH 43 54 <script src="{$jsFile}" type="text/javascript"></script>
Note: See TracChangeset
for help on using the changeset viewer.