[SPIP Zone] [Spip-zone-commit] r29474 - in /_plugins_/tablesorter: inc-head.php plugin.xml scripts/jquery-1.2.6.js styles/tablesorter.css tablesorter_pipelines.php

Pourquoi le fichier de pipeline tu ne l’appelles pas tablesorter_pipelines.php. Ca me parait plus homogene et quand tu en rajoutes un ca évite de le mettre dans inc-head si c’est un bouton ou un affiche_gauche non?

Eric

2009/6/29 <brunobergot@gmail.com>

Author: brunobergot@gmail.com
Date: Mon Jun 29 17:10:22 2009
New Revision: 29474

Log:
du ménage :

  • pas besoin de jquery 1.2.6 sur la zone
  • on renomme le fichier de pipeline et on le corrige
  • corrections de syntaxe et de chemins dans les styles (il en reste un à la racine, ça doublonne non ?)
  • il faudrait peut être renommer scripts en javascript pour faire comme tout le monde

Added:
plugins/tablesorter/tablesorter_pipelines.php (contents, props changed)

  • copied, changed from r29427, plugins/tablesorter/inc-head.php
    Removed:
    plugins/tablesorter/inc-head.php
    plugins/tablesorter/scripts/jquery-1.2.6.js
    Modified:
    plugins/tablesorter/plugin.xml
    plugins/tablesorter/styles/tablesorter.css

Removed: plugins/tablesorter/inc-head.php

plugins/tablesorter/inc-head.php (original)
+++ plugins/tablesorter/inc-head.php (removed)
@@ -1,16 +0,0 @@
-

-

-

-

-

  • -

    Modified: plugins/tablesorter/plugin.xml

    plugins/tablesorter/plugin.xml (original)
    +++ plugins/tablesorter/plugin.xml Mon Jun 29 17:10:22 2009
    @@ -7,15 +7,11 @@
    dev

    Pour l’instant, permet de trier les tableaux portant la class CSS « tablesorter » en cliquant simplement sur l’entête d’une colonne; par la suite, ajoutera une class « tablesorter » automatiquement à tous les tableaux ayant déjà la class table.spip.

    Voir en ligne toutes les options de tris, sur le site de tablesorter.

    tablesorter

    insert_head - inc-head.php + tablesorter_pipelines.php -

    Removed: plugins/tablesorter/scripts/jquery-1.2.6.js

    plugins/tablesorter/scripts/jquery-1.2.6.js (original)
    +++ plugins/tablesorter/scripts/jquery-1.2.6.js (removed)
    @@ -1,3551 +0,0 @@
    -(function(){
    -/*

      • jQuery 1.2.6 - New Wave Javascript
      • Dual licensed under the MIT (MIT-LICENSE.txt)
      • and GPL (GPL-LICENSE.txt) licenses.
      • $Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008) $
      • $Rev: 5685 $
    • */

    -// Map over jQuery in case of overwrite
    -var _jQuery = window.jQuery,
    -// Map over the $ in case of overwrite

    • _$ = window.$;

    -var jQuery = window.jQuery = window.$ = function( selector, context ) {

    • // The jQuery object is actually just the init constructor ‹ enhanced ›
    • return new jQuery.fn.init( selector, context );
      -};

    -// A simple way to check for HTML strings or ID strings
    -// (both of which we optimize for)
    -var quickExpr = /[1](<(.|\s)+>)[^>]$|^#(\w+)$/,

    -// Is it a simple selector

    • isSimple = /^.[^:#[.]*$/,

    -// Will speed up references to undefined, and allows munging its name.

    • undefined;

    -jQuery.fn = jQuery.prototype = {

    • init: function( selector, context ) {
    • // Make sure that a selection was provided
    • selector = selector || document;
    • // Handle $(DOMElement)
    • if ( selector.nodeType ) {
    • this[0] = selector;
    • this.length = 1;
    • return this;
    • }
    • // Handle HTML strings
    • if ( typeof selector == « string » ) {
    • // Are we dealing with HTML string or an ID?
    • var match = quickExpr.exec( selector );
    • // Verify a match, and that no context was specified for #id
    • if ( match && (match[1] || !context) ) {
    • // HANDLE: $(html) → $(array)
    • if ( match[1] )
    • selector = jQuery.clean( [ match[1] ], context );
    • // HANDLE: $(« #id »)
    • else {
    • var elem = document.getElementById( match[3] );
    • // Make sure an element was located
    • if ( elem ){
    • // Handle the case where IE and Opera return items
    • // by name instead of ID
    • if ( elem.id != match[3] )
    • return jQuery().find( selector );
    • // Otherwise, we inject the element directly into the jQuery object
    • return jQuery( elem );
    • }
    • selector = ;
    • }
    • // HANDLE: $(expr, [context])
    • // (which is just equivalent to: $(content).find(expr)
    • } else
    • return jQuery( context ).find( selector );
    • // HANDLE: $(function)
    • // Shortcut for document ready
    • } else if ( jQuery.isFunction( selector ) )
    • return jQuery( document ) jQuery.fn.ready ? « ready » : « load » ;
    • return this.setArray(jQuery.makeArray(selector));
    • },
    • // The current version of jQuery being used
    • jquery: « 1.2.6 »,
    • // The number of elements contained in the matched element set
    • size: function() {
    • return this.length;
    • },
    • // The number of elements contained in the matched element set
    • length: 0,
    • // Get the Nth element in the matched element set OR
    • // Get the whole matched element set as a clean array
    • get: function( num ) {
    • return num == undefined ?
    • // Return a ‹ clean › array
    • jQuery.makeArray( this ) :
    • // Return just the object
    • this[ num ];
    • },
    • // Take an array of elements and push it onto the stack
    • // (returning the new matched element set)
    • pushStack: function( elems ) {
    • // Build a new jQuery matched element set
    • var ret = jQuery( elems );
    • // Add the old object onto the stack (as a reference)
    • ret.prevObject = this;
    • // Return the newly-formed element set
    • return ret;
    • },
    • // Force the current matched set of elements to become
    • // the specified array of elements (destroying the stack in the process)
    • // You should use pushStack() in order to do this, but maintain the stack
    • setArray: function( elems ) {
    • // Resetting the length to 0, then using the native Array push
    • // is a super-fast way to populate an object with array-like properties
    • this.length = 0;
    • Array.prototype.push.apply( this, elems );
    • return this;
    • },
    • // Execute a callback for every element in the matched set.
    • // (You can seed the arguments with an array of args, but this is
    • // only used internally.)
    • each: function( callback, args ) {
    • return jQuery.each( this, callback, args );
    • },
    • // Determine the position of an element within
    • // the matched set of elements
    • index: function( elem ) {
    • var ret = -1;
    • // Locate the position of the desired element
    • return jQuery.inArray(
    • // If it receives a jQuery object, the first element is used
    • elem && elem.jquery ? elem[0] : elem
    • , this );
    • },
    • attr: function( name, value, type ) {
    • var options = name;
    • // Look for the case where we’re accessing a style value
    • if ( name.constructor == String )
    • if ( value === undefined )
    • return this[0] && jQuery[ type || « attr » ]( this[0], name );
    • else {
    • options = {};
    • options[ name ] = value;
    • }
    • // Check to see if we’re setting style values
    • return this.each(function(i){
    • // Set all the styles
    • for ( name in options )
    • jQuery.attr(
    • type ?
    • this.style :
    • this,
    • name, jQuery.prop( this, options[ name ], type, i, name )
    • );
    • });
    • },
    • css: function( key, value ) {
    • // ignore negative width and height values
    • if ( (key == ‹ width › || key == ‹ height ›) && parseFloat(value) < 0 )
    • value = undefined;
    • return this.attr( key, value, « curCSS » );
    • },
    • text: function( text ) {
    • if ( typeof text != « object » && text != null )
    • return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );
    • var ret = «  »;
    • jQuery.each( text || this, function(){
    • jQuery.each( this.childNodes, function(){
    • if ( this.nodeType != 8 )
    • ret += this.nodeType != 1 ?
    • this.nodeValue :
    • jQuery.fn.text( [ this ] );
    • });
    • });
    • return ret;
    • },
    • wrapAll: function( html ) {
    • if ( this[0] )
    • // The elements to wrap the target around
    • jQuery( html, this[0].ownerDocument )
    • .clone()
    • .insertBefore( this[0] )
    • .map(function(){
    • var elem = this;
    • while ( elem.firstChild )
    • elem = elem.firstChild;
    • return elem;
    • })
    • .append(this);
    • return this;
    • },
    • wrapInner: function( html ) {
    • return this.each(function(){
    • jQuery( this ).contents().wrapAll( html );
    • });
    • },
    • wrap: function( html ) {
    • return this.each(function(){
    • jQuery( this ).wrapAll( html );
    • });
    • },
    • append: function() {
    • return this.domManip(arguments, true, false, function(elem){
    • if (this.nodeType == 1)
    • this.appendChild( elem );
    • });
    • },
    • prepend: function() {
    • return this.domManip(arguments, true, true, function(elem){
    • if (this.nodeType == 1)
    • this.insertBefore( elem, this.firstChild );
    • });
    • },
    • before: function() {
    • return this.domManip(arguments, false, false, function(elem){
    • this.parentNode.insertBefore( elem, this );
    • });
    • },
    • after: function() {
    • return this.domManip(arguments, false, true, function(elem){
    • this.parentNode.insertBefore( elem, this.nextSibling );
    • });
    • },
    • end: function() {

    [… 3389 lines stripped …]


    Spip-zone-commit@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-zone-commit


    1. ^< ↩︎

    Heu tonton tu l'as vu celui là ? ^^

    http://trac.rezo.net/trac/spip-zone/browser/_plugins_/tablesorter/tablesorter_pipelines.php

    Bises ++

    2009/6/29 Eric <eric@smellup.net>:

    Pourquoi le fichier de pipeline tu ne l'appelles pas
    tablesorter_pipelines.php. Ca me parait plus homogene et quand tu en
    rajoutes un ca évite de le mettre dans inc-head si c'est un bouton ou un
    affiche_gauche non?

    Eric

    2009/6/29 <brunobergot@gmail.com>

    Author: brunobergot@gmail.com
    Date: Mon Jun 29 17:10:22 2009
    New Revision: 29474

    Log:
    du ménage :
    - pas besoin de jquery 1.2.6 sur la zone
    - on renomme le fichier de pipeline et on le corrige
    - corrections de syntaxe et de chemins dans les styles (il en reste un à
    la racine, ça doublonne non ?)
    - il faudrait peut être renommer scripts en javascript pour faire comme
    tout le monde

    Added:
    _plugins_/tablesorter/tablesorter_pipelines.php (contents, props
    changed)
    - copied, changed from r29427, _plugins_/tablesorter/inc-head.php
    Removed:
    _plugins_/tablesorter/inc-head.php
    _plugins_/tablesorter/scripts/jquery-1.2.6.js
    Modified:
    _plugins_/tablesorter/plugin.xml
    _plugins_/tablesorter/styles/tablesorter.css

    Removed: _plugins_/tablesorter/inc-head.php

    ==============================================================================
    --- _plugins_/tablesorter/inc-head.php (original)
    +++ _plugins_/tablesorter/inc-head.php (removed)
    @@ -1,16 +0,0 @@
    -<!-- insertion dans le head par le plugin tablesorter pour SPIP -->
    -
    -<link type="text/css" rel="stylesheet"
    href="./plugins/auto/tablesorter/styles/tablesorter.css" media="projection,
    screen, tv" />
    -
    -<script type="text/javascript"
    src="./plugins/auto/tablesorter/scripts/jquery-1.2.6.js" ></script>
    -
    -<script type="text/javascript"
    src="./plugins/auto/tablesorter/scripts/jquery.tablesorter.js" ></script>
    -
    -<script type="text/javascript">
    - $(document).ready(function() {
    - $("table")
    - .tablesorter({widthFixed: true});
    - });
    -</script>
    -
    -<!-- fin de l'insertion par le plugin tablesorter pour SPIP -->

    Modified: _plugins_/tablesorter/plugin.xml

    ==============================================================================
    --- _plugins_/tablesorter/plugin.xml (original)
    +++ _plugins_/tablesorter/plugin.xml Mon Jun 29 17:10:22 2009
    @@ -7,15 +7,11 @@
    <etat>dev</etat>
    <description>
    Pour l'instant, permet de trier les tableaux portant la class CSS
    "tablesorter" en cliquant simplement sur l'ent&ecirc;te d'une colonne; par
    la suite, ajoutera une class "tablesorter" automatiquement &agrave; tous les
    tableaux ayant d&eacute;j&agrave; la class table.spip.
    -
    Voir en ligne toutes les options de tris, sur le site de
    tablesorter.
    </description>
    -
    <prefix>tablesorter</prefix>
    -
    <pipeline>
    <nom>insert_head</nom>
    - <inclure>inc-head.php</inclure>
    + <inclure>tablesorter_pipelines.php</inclure>
    </pipeline>
    -
    </plugin>

    Removed: _plugins_/tablesorter/scripts/jquery-1.2.6.js

    ==============================================================================
    --- _plugins_/tablesorter/scripts/jquery-1.2.6.js (original)
    +++ _plugins_/tablesorter/scripts/jquery-1.2.6.js (removed)
    @@ -1,3551 +0,0 @@
    -(function(){
    -/*
    - * jQuery 1.2.6 - New Wave Javascript
    - *
    - * Copyright (c) 2008 John Resig (jquery.com)
    - * Dual licensed under the MIT (MIT-LICENSE.txt)
    - * and GPL (GPL-LICENSE.txt) licenses.
    - *
    - * $Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008) $
    - * $Rev: 5685 $
    - */
    -
    -// Map over jQuery in case of overwrite
    -var _jQuery = window.jQuery,
    -// Map over the $ in case of overwrite
    - _$ = window.$;
    -
    -var jQuery = window.jQuery = window.$ = function( selector, context ) {
    - // The jQuery object is actually just the init constructor
    'enhanced'
    - return new jQuery.fn.init( selector, context );
    -};
    -
    -// A simple way to check for HTML strings or ID strings
    -// (both of which we optimize for)
    -var quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,
    -
    -// Is it a simple selector
    - isSimple = /^.[^:#\[\.]*$/,
    -
    -// Will speed up references to undefined, and allows munging its name.
    - undefined;
    -
    -jQuery.fn = jQuery.prototype = {
    - init: function( selector, context ) {
    - // Make sure that a selection was provided
    - selector = selector || document;
    -
    - // Handle $(DOMElement)
    - if ( selector.nodeType ) {
    - this[0] = selector;
    - this.length = 1;
    - return this;
    - }
    - // Handle HTML strings
    - if ( typeof selector == "string" ) {
    - // Are we dealing with HTML string or an ID?
    - var match = quickExpr.exec( selector );
    -
    - // Verify a match, and that no context was
    specified for #id
    - if ( match && (match[1] || !context) ) {
    -
    - // HANDLE: $(html) -> $(array)
    - if ( match[1] )
    - selector = jQuery.clean( [
    match[1] ], context );
    -
    - // HANDLE: $("#id")
    - else {
    - var elem =
    document.getElementById( match[3] );
    -
    - // Make sure an element was
    located
    - if ( elem ){
    - // Handle the case where
    IE and Opera return items
    - // by name instead of ID
    - if ( elem.id != match[3] )
    - return
    jQuery().find( selector );
    -
    - // Otherwise, we inject
    the element directly into the jQuery object
    - return jQuery( elem );
    - }
    - selector = ;
    - }
    -
    - // HANDLE: $(expr, [context])
    - // (which is just equivalent to:
    $(content).find(expr)
    - } else
    - return jQuery( context ).find( selector );
    -
    - // HANDLE: $(function)
    - // Shortcut for document ready
    - } else if ( jQuery.isFunction( selector ) )
    - return jQuery( document )[ jQuery.fn.ready ?
    "ready" : "load" ]( selector );
    -
    - return this.setArray(jQuery.makeArray(selector));
    - },
    -
    - // The current version of jQuery being used
    - jquery: "1.2.6",
    -
    - // The number of elements contained in the matched element set
    - size: function() {
    - return this.length;
    - },
    -
    - // The number of elements contained in the matched element set
    - length: 0,
    -
    - // Get the Nth element in the matched element set OR
    - // Get the whole matched element set as a clean array
    - get: function( num ) {
    - return num == undefined ?
    -
    - // Return a 'clean' array
    - jQuery.makeArray( this ) :
    -
    - // Return just the object
    - this[ num ];
    - },
    -
    - // Take an array of elements and push it onto the stack
    - // (returning the new matched element set)
    - pushStack: function( elems ) {
    - // Build a new jQuery matched element set
    - var ret = jQuery( elems );
    -
    - // Add the old object onto the stack (as a reference)
    - ret.prevObject = this;
    -
    - // Return the newly-formed element set
    - return ret;
    - },
    -
    - // Force the current matched set of elements to become
    - // the specified array of elements (destroying the stack in the
    process)
    - // You should use pushStack() in order to do this, but maintain
    the stack
    - setArray: function( elems ) {
    - // Resetting the length to 0, then using the native Array
    push
    - // is a super-fast way to populate an object with
    array-like properties
    - this.length = 0;
    - Array.prototype.push.apply( this, elems );
    -
    - return this;
    - },
    -
    - // Execute a callback for every element in the matched set.
    - // (You can seed the arguments with an array of args, but this is
    - // only used internally.)
    - each: function( callback, args ) {
    - return jQuery.each( this, callback, args );
    - },
    -
    - // Determine the position of an element within
    - // the matched set of elements
    - index: function( elem ) {
    - var ret = -1;
    -
    - // Locate the position of the desired element
    - return jQuery.inArray(
    - // If it receives a jQuery object, the first
    element is used
    - elem && elem.jquery ? elem[0] : elem
    - , this );
    - },
    -
    - attr: function( name, value, type ) {
    - var options = name;
    -
    - // Look for the case where we're accessing a style value
    - if ( name.constructor == String )
    - if ( value === undefined )
    - return this[0] && jQuery[ type || "attr"
    ]( this[0], name );
    -
    - else {
    - options = {};
    - options[ name ] = value;
    - }
    -
    - // Check to see if we're setting style values
    - return this.each(function(i){
    - // Set all the styles
    - for ( name in options )
    - jQuery.attr(
    - type ?
    - this.style :
    - this,
    - name, jQuery.prop( this, options[
    name ], type, i, name )
    - );
    - });
    - },
    -
    - css: function( key, value ) {
    - // ignore negative width and height values
    - if ( (key == 'width' || key == 'height') &&
    parseFloat(value) < 0 )
    - value = undefined;
    - return this.attr( key, value, "curCSS" );
    - },
    -
    - text: function( text ) {
    - if ( typeof text != "object" && text != null )
    - return this.empty().append( (this[0] &&
    this[0].ownerDocument || document).createTextNode( text ) );
    -
    - var ret = "";
    -
    - jQuery.each( text || this, function(){
    - jQuery.each( this.childNodes, function(){
    - if ( this.nodeType != 8 )
    - ret += this.nodeType != 1 ?
    - this.nodeValue :
    - jQuery.fn.text( [ this ]
    );
    - });
    - });
    -
    - return ret;
    - },
    -
    - wrapAll: function( html ) {
    - if ( this[0] )
    - // The elements to wrap the target around
    - jQuery( html, this[0].ownerDocument )
    - .clone()
    - .insertBefore( this[0] )
    - .map(function(){
    - var elem = this;
    -
    - while ( elem.firstChild )
    - elem = elem.firstChild;
    -
    - return elem;
    - })
    - .append(this);
    -
    - return this;
    - },
    -
    - wrapInner: function( html ) {
    - return this.each(function(){
    - jQuery( this ).contents().wrapAll( html );
    - });
    - },
    -
    - wrap: function( html ) {
    - return this.each(function(){
    - jQuery( this ).wrapAll( html );
    - });
    - },
    -
    - append: function() {
    - return this.domManip(arguments, true, false,
    function(elem){
    - if (this.nodeType == 1)
    - this.appendChild( elem );
    - });
    - },
    -
    - prepend: function() {
    - return this.domManip(arguments, true, true,
    function(elem){
    - if (this.nodeType == 1)
    - this.insertBefore( elem, this.firstChild
    );
    - });
    - },
    -
    - before: function() {
    - return this.domManip(arguments, false, false,
    function(elem){
    - this.parentNode.insertBefore( elem, this );
    - });
    - },
    -
    - after: function() {
    - return this.domManip(arguments, false, true,
    function(elem){
    - this.parentNode.insertBefore( elem,
    this.nextSibling );
    - });
    - },
    -
    - end: function() {

    [... 3389 lines stripped ...]
    _______________________________________________
    Spip-zone-commit@rezo.net -
    http://listes.rezo.net/mailman/listinfo/spip-zone-commit

    _______________________________________________
    spip-zone@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-zone