Changeset 41655 in spip-zone


Ignore:
Timestamp:
Oct 9, 2010, 1:47:05 PM (9 years ago)
Author:
arno@…
Message:

Compatibilité {ajax}{ajaxload} (autorise donc pagination Ajax).

Location:
_plugins_/inclure-ajaxload
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/inclure-ajaxload/inclure-ajaxload.php

    r41458 r41655  
    2727        $cle = md5(serialize($args));
    2828        $ajax = entites_html(encoder_contexte_ajax($args[1]));
     29       
    2930
    3031        $alt = entites_html(sinon($args[1]['ajaxloadalt'],$args[1]['fond']));
     
    3637        $url = "spip.php?action=ia_nojs&retour=".urlencode(parametre_url(self(),'no_js','oui'));
    3738
    38         return
    39                 "<div class='includeajax'><a href=\"$url\" rel=\"$ajax\">$searching</a></div>";
     39        if (isset($args[2]['ajax']) AND $args[2]['ajax']=='1')
     40                $class_ajax = " ajaxbloc env-$ajax";
     41
     42        $ret =
     43                "<div class='includeajax$class_ajax'><a href=\"$url\" rel=\"$ajax\">$searching</a></div>";
     44               
     45        return $ret;
    4046}
    4147
  • _plugins_/inclure-ajaxload/plugin.xml

    r41654 r41655  
    55        </auteur>
    66        <version>
    7         0.4
     7        0.5
    88        </version>
    99        <etat>
Note: See TracChangeset for help on using the changeset viewer.