Changeset 108101 in spip-zone


Ignore:
Timestamp:
Dec 18, 2017, 11:28:43 AM (18 months ago)
Author:
labergerie@…
Message:

rel dans les suites de slider

Location:
_plugins_/swiper/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/swiper/trunk/modeles/swiper.html

    r107287 r108101  
     1[(#SET{rand,#VAL{1}|rand{400000}})]
    12<B_SWIPER>
    23<div class="swiper-container[ swiper_(#ID_SWIPER)]">
    34  <div class="swiper-wrapper">
    45    <BOUCLE_SWIPER(DOCUMENTS) {id_swiper} {par rang_lien, num titre, titre} {si #ENV{id_swiper}} {extension==jpg|png|gif}>
    5       <INCLURE{fond=inclure/inc-swiper-figure, id_document} />
     6      <INCLURE{fond=inclure/inc-swiper-figure, id_document,rel=#GET{rand}} />
    67    </BOUCLE_SWIPER>
    78  </div>
     
    1415  <div class="swiper-wrapper">
    1516    <BOUCLE_SWIPER_ARTICLE(DOCUMENTS) {id_article} {par rang_lien, num titre, titre} {si #ENV{multiple}|non} {si #ENV{id_swiper}|non} {extension==jpg|png|gif}>
    16       <INCLURE{fond=inclure/inc-swiper-figure, id_document} />
     17      <INCLURE{fond=inclure/inc-swiper-figure, id_document,rel=#GET{rand}} />
    1718    </BOUCLE_SWIPER_ARTICLE>
    1819  </div>
     
    2627  <div class="swiper-wrapper">
    2728    <BOUCLE_SWIPER_AU_CHOIX(DOCUMENTS){id_document IN #GET{multiple}}{extension==jpg|png|gif}>
    28       <INCLURE{fond=inclure/inc-swiper-figure, id_document} />
     29      <INCLURE{fond=inclure/inc-swiper-figure, id_document,rel=#GET{rand}} />
    2930    </BOUCLE_SWIPER_AU_CHOIX>
    3031  </div>
  • _plugins_/swiper/trunk/paquet.xml

    r107287 r108101  
    22        prefix="swiper"
    33        categorie="multimedia"
    4         version="1.0.1"
     4        version="1.0.2"
    55        etat="test"
    66        compatibilite="[3.2.0;3.2.*]"
  • _plugins_/swiper/trunk/swiper_pipelines.php

    r107174 r108101  
    1818        $c = lire_config('swiper');
    1919        $flux = '<script type="text/javascript">';
    20         $flux .= '      var swiper_options = ' . $c["swiper_options"];
     20        $flux .= '      var swiper_options = '.$c["swiper_options"];
    2121        $flux .= '      , mySwipers;';
    2222        $flux .= '      $(document).ready(function(){ ';
    2323        $flux .= '    var target = swiper_options.containerModifierClass || ".swiper-container";';
    24         $flux .= '              if (target.length) mySwipers = new Swiper(target, swiper_options);';
     24        $flux .= '              target = $(target);';
     25        $flux .= '              if (target.length) {mySwipers = new Swiper($(target)[0], swiper_options);}';
    2526        $flux .= '      })';
    2627        $flux .= '</script>';
  • _plugins_/swiper/trunk/swiper_spip.css

    r107287 r108101  
    66  background-size: cover;
    77  background-position: center;
     8  margin: 0;
    89}
    910
Note: See TracChangeset for help on using the changeset viewer.