Changeset 48045 in spip-zone
- Timestamp:
- May 23, 2011, 7:06:31 PM (10 years ago)
- Location:
- _plugins_/tablesorter
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/tablesorter/plugin.xml
r42310 r48045 5 5 Portage sous SPIP par cym, b_b, Eric Lupinacci et BoOz. 6 6 </auteur> 7 <version>1.0 beta</version> 8 <etat>test</etat> 7 <version>1.1</version> 8 <etat>stable</etat> 9 <icon>images/tablesorter-32.png</icon> 9 10 <description> 10 Le plugin jQuery original permet de trier les tableaux portant la class CSS "tablesorter" en cliquant simplement sur l'entête d'une colonne.<br /> 11 <br /> 12 Actuellement, la version SPIP nécessite d'ajouter la class "tablesorter" aux tableaux des squelettes; par la suite, ajoutera automatiquement la class "tablesorter" à tous les tableaux ayant déjà la class table.spip.<br /> 13 <br /> 14 Voir en ligne toutes les options de tris, sur le site de <a href="http://tablesorter.com/docs/">http://tablesorter.com</a>.<br /> 15 <br /> 16 Pour info : ce portage sous SPIP a failli s'appeler <strong>Triceratops</strong>. 11 Le plugin jQuery original permet de trier les tableaux portant la class CSS "tablesorter" en cliquant simplement sur l'entête d'une colonne (le tableau HTML doit donc posséder les tags thead et tbody).<br />Voir en ligne toutes les options de tri, sur le site de <a href="http://tablesorter.com/">http://tablesorter.com</a>. 17 12 </description> 18 13 <prefix>tablesorter</prefix> 14 <pipeline> 15 <nom>insert_head_css</nom> 16 <inclure>tablesorter_pipelines.php</inclure> 17 </pipeline> 19 18 <pipeline> 20 19 <nom>insert_head</nom> -
_plugins_/tablesorter/styles/tablesorter.css
r29838 r48045 30 30 background-image: none; 31 31 cursor: auto; 32 /*33 background-color: #da0000;34 */35 32 } 36 33 37 34 table.tablesorter tbody td { 38 35 padding: 4px; 39 /*40 background-color: #fff;41 */42 36 vertical-align: top; 43 }44 table.tablesorter tbody tr.odd td {45 /*46 background-color:#f0f0f6;47 */48 37 } 49 38 … … 52 41 background-repeat: no-repeat; 53 42 background-position: center right; 54 /*55 background-color: #666;56 color: #fff;57 */58 43 } 59 44 table.tablesorter thead tr .headerSortUp { -
_plugins_/tablesorter/tablesorter_pipelines.php
r29610 r48045 1 1 <?php 2 function tablesorter_insert_head_css($flux){ 3 static $done = false; 4 if (!$done) { 5 $done = true; 6 $flux .= '<link rel="stylesheet" href="'.url_absolue(find_in_path('styles/tablesorter.css')).'" type="text/css" />'; 7 } 8 9 return $flux; 10 } 11 2 12 3 13 function tablesorter_insert_head($flux){ 4 14 // Insertion des librairies js 5 15 $flux .='<script src="'.url_absolue(find_in_path('scripts/jquery.tablesorter.js')).'" type="text/javascript"></script>'; 6 // Inclusion des styles du plugin7 $flux .='<link rel="stylesheet" href="'.url_absolue(find_in_path('styles/tablesorter.css')).'" type="text/css" />';8 16 // Init de tablesorter 9 17 $flux .=' … … 15 23 })(jQuery); 16 24 /* ]]> */</script>'; 25 26 $flux .= tablesorter_insert_head_css(''); // compat pour les vieux spip 17 27 return $flux; 18 28 }
Note: See TracChangeset
for help on using the changeset viewer.