Changeset 26127


Ignore:
Timestamp:
Dec 23, 2013, 2:06:07 PM (7 years ago)
Author:
mistic100
Message:

(slider) update nivoslider, add thumbnails navigation option, force no img borders

Location:
extensions/ExtendedDescription
Files:
1 added
1 deleted
14 edited
1 moved

Legend:

Unmodified
Added
Removed
  • extensions/ExtendedDescription/language/bg_BG/help.html

    r21916 r26127  
    6868
    6969<ul>
    70   <li><b>[slider album=xx nb_images=10 random=no list=aa,bb,cc size=M speed=3 title=no effect=fade arrows=yes control=yes elastic=no]</b></li>
     70  <li><b>[slider album=xx nb_images=10 random=no list=aa,bb,cc size=M speed=3 title=no effect=fade arrows=yes control=yes elastic=no thumbs_size=80]</b></li>
    7171</ul>
    7272<p>Този таг позволява ползване на слайдшоу (NivoSlider). (вие трябва да зададете <code>album</code> или <code>list</code>):<br><br>
    7373- <code>album</code> (optional) албум със снимките<br>
    7474- <code>nb_images</code> (optional) max номер за показване на снимки в слайдшоуто<br>
    75 - <code>random</code> (optional) безразборно подбрани снимки от албума<br>
     75- <code>random</code> (optional) безразборно подбрани снимки от албума <i>{yes, no}</i><br>
    7676- <code>list</code> (optional) списък с номерата на снимките разделени със запетоя<br>
    7777- <code>size</code> (optional) размер на снимките, от <i>{SQ, TH, XXS, XS, S, M, L, XL, XXL}</i><br>
    7878- <code>speed</code> (optional) скорост на слайдване (в секунди)<br>
    79 - <code>title</code> (optional) Показване на името на снимките<br>
    80 - <code>effect</code> (optional) Ефект на сменяне (виж <a href="http://nivo.dev7studios.com/support/jquery-plugin-usage/">NivoSlider doc</a>)<br>
    81 - <code>arrows</code> (optional) показване на навигационни стрелки<br>
    82 - <code>control</code> (optional) показване на команди за упранление<br>
    83 - <code>elastic</code> (optional) адаптиране на слайдшоуто към размера на всяка снимка</p>
     79- <code>title</code> (optional) Показване на името на снимките <i>{yes, no}</i><br>
     80- <code>effect</code> (optional) Ефект на сменяне (виж <a href="http://docs.dev7studios.com/jquery-plugins/nivo-slider">NivoSlider doc</a>)<br>
     81- <code>arrows</code> (optional) показване на навигационни стрелки <i>{yes, no}</i><br>
     82- <code>control</code> (optional) показване на команди за упранление <i>{yes, no, thumb}</i><br>
     83- <code>elastic</code> (optional) адаптиране на слайдшоуто към размера на всяка снимка <i>{yes, no}</i><br>
     84- <code>thumbs_size</code> (optional) thumbnails size in pixel if <code>control=thumb</code><p>
    8485
    8586
  • extensions/ExtendedDescription/language/ca_ES/help.html

    r17189 r26127  
    7474
    7575<ul>
    76   <li><b>[slider album=xx nb_images=10 random=no list=aa,bb,cc size=M speed=3 title=no effect=fade arrows=yes control=yes elastic=no]</b></li>
     76  <li><b>[slider album=xx nb_images=10 random=no list=aa,bb,cc size=M speed=3 title=no effect=fade arrows=yes control=yes elastic=no thumbs_size=80]</b></li>
    7777</ul>
    7878<p>Aquesta etiqueta permet inserir una reproducció de diapositives (NivoSlider), amb (cal establir l'àlbum O llista):</p>
     
    8080- <code>album</code> (opcional: font de l'àlbum</br>
    8181- <code>nb_images</code> (opcioanl) màxim nombre d'imatges a visualitzar en la reproducció de diapositives de l'àlbum</br>
    82 - <code>random</code> (opcioanl): escull imatges aleatòriament en l'àlbum</br>
     82- <code>random</code> (opcioanl): escull imatges aleatòriament en l'àlbum <i>{yes, no}</i></br>
    8383- <code>list</code> (opcioanl): una llista de id d'imatges separades per comes</br>
    8484- <code>size</code> (opcional): mida de les imatges, entre {SQ, TH, XXS, S, M, L, XL, XXL}</br>
    8585- <code>speed</code> (opcional): la velocitat de reproducció de diapositives (en segons)</br>
    86 - <code>title</code> (opcional): mostra el títol de la imatge</br>
     86- <code>title</code> (opcional): mostra el títol de la imatge <i>{yes, no}</i></br>
    8787- <code>effect</code> (opcional): efecte de transició (veure NivoSlider doc)</br>
    88 - <code>arrows</code> (opcional): mostra fletxes de navegació</br>
    89 - <code>control</code> (opcioanl): mostra controls de navegació</br>
    90 - <code>elastic</code> (opcioanl): s'adapta la reproducció de diapositives a la mida de cada imatge</p>
     88- <code>arrows</code> (opcional): mostra fletxes de navegació <i>{yes, no}</i></br>
     89- <code>control</code> (opcioanl): mostra controls de navegació <i>{yes, no, thumb}</i></br>
     90- <code>elastic</code> (opcioanl): s'adapta la reproducció de diapositives a la mida de cada imatge <i>{yes, no}</i><br>
     91- <code>thumbs_size</code> (optional) thumbnails size in pixel if <code>control=thumb</code><p>
    9192
    9293
  • extensions/ExtendedDescription/language/cs_CZ/help.html

    r17124 r26127  
    7171
    7272<ul>
    73   <li><b>[slider album=xx nb_images=10 random=no list=aa,bb,cc size=M speed=3 title=no effect=fade arrows=yes control=yes elastic=no]</b></li>
     73  <li><b>[slider album=xx nb_images=10 random=no list=aa,bb,cc size=M speed=3 title=no effect=fade arrows=yes control=yes elastic=no thumbs_size=80]</b></li>
    7474</ul>
    7575<p>Tento element umožní vložit slideshow (NivoSlider), s parametry (musíte nastavit <code>album</code> NEBO <code>list</code>):<br><br>
    7676- <code>album</code> (nepovinný) zdrojové album<br>
    7777- <code>nb_images</code> (nepovinný) max. počet obrázků, které se mají zobrazit ve slideshow<br>
    78 - <code>random</code> (nepovinný) náhodný výběr obrázků z alba<br>
     78- <code>random</code> (nepovinný) náhodný výběr obrázků z alba <i>{yes, no}</i><br>
    7979- <code>list</code> (nepovinný) seznam id (identifikátorů) obrázků oddělený čárkami<br>
    8080- <code>size</code> (nepovinný) velikost obrázků, (<i>SQ, TH, XXS, S, M, L, XL, XXL</i>)<br>
    8181- <code>speed</code> (nepovinný) rychlost slideshow (v sekundách)<br>
    82 - <code>title</code> (nepovinný) zobrazovat název obrázku<br>
    83 - <code>effect</code> (nepovinný) přechodový efekt (viz <a href="http://nivo.dev7studios.com/support/jquery-plugin-usage/">NivoSlider dokument</a>)<br>
    84 - <code>arrows</code> (nepovinný) zobrazovat navigační šipky<br>
    85 - <code>control</code> (nepovinný) zobrazovat ovládání navigace<br>
    86 - <code>elastic</code> (nepovinný) přizpůsobit velikost slideshow velikosti jednotlivých obrázkůo</p>
     82- <code>title</code> (nepovinný) zobrazovat název obrázku <i>{yes, no}</i><br>
     83- <code>effect</code> (nepovinný) přechodový efekt (viz <a href="http://docs.dev7studios.com/jquery-plugins/nivo-slider">NivoSlider dokument</a>)<br>
     84- <code>arrows</code> (nepovinný) zobrazovat navigační šipky <i>{yes, no}</i><br>
     85- <code>control</code> (nepovinný) zobrazovat ovládání navigace <i>{yes, no, thumb}</i><br>
     86- <code>elastic</code> (nepovinný) přizpůsobit velikost slideshow velikosti jednotlivých obrázkůo <i>{yes, no}</i><br>
     87- <code>thumbs_size</code> (optional) thumbnails size in pixel if <code>control=thumb</code><p>
    8788
    8889<h3>Skrytí kategorie</h3>
  • extensions/ExtendedDescription/language/da_DK/help.html

    r18114 r26127  
    7575
    7676<ul>
    77   <li><b>[slider album=xx nb_images=10 random=no list=aa,bb,cc size=M speed=3 title=no effect=fade arrows=yes control=yes elastic=no]</b></li>
     77  <li><b>[slider album=xx nb_images=10 random=no list=aa,bb,cc size=M speed=3 title=no effect=fade arrows=yes control=yes elastic=no thumbs_size=80]</b></li>
    7878</ul>
    7979
     
    8181- <code>album</code> (valgfrit) album hvor fra der vælges billeder<br>
    8282- <code>nb_images</code> (valgfrit) maksimalt antal billeder der skal vises i slideshow'et<br>
    83 - <code>random</code> (valgfrit) vælg tilfældigt blandt billederne i albummet<br>
     83- <code>random</code> (valgfrit) vælg tilfældigt blandt billederne i albummet <i>{yes, no}</i><br>
    8484- <code>list</code> (valgfrit) liste over billed-id'er adskilt af kommaer<br>
    8585- <code>size</code> (valgfrit) størrelse på billeder, vælg mellem <i>{SQ, TH, XXS, S, M, L, XL, XXL}</i><br>
    8686- <code>speed</code> (valgfrit) slideshowhastighed (pr. sekunder)<br>
    87 - <code>title</code> (valgfrit) vis billedets titel<br>
    88 - <code>effect</code> (valgfrit) fortoningseffekt (se <a href="http://nivo.dev7studios.com/support/jquery-plugin-usage/">NivoSlider-dokumentationen</a>)<br>
    89 - <code>arrows</code> (valgfrit) vis navigeringspile<br>
    90 - <code>control</code> (valgfrit) vis navigeringskontroller<br>
    91 - <code>elastic</code> (valgfrit) tilpas slideshowstørrelsen til hvert billede</p>
     87- <code>title</code> (valgfrit) vis billedets titel <i>{yes, no}</i><br>
     88- <code>effect</code> (valgfrit) fortoningseffekt (se <a href="http://docs.dev7studios.com/jquery-plugins/nivo-slider">NivoSlider-dokumentationen</a>)<br>
     89- <code>arrows</code> (valgfrit) vis navigeringspile <i>{yes, no}</i><br>
     90- <code>control</code> (valgfrit) vis navigeringskontroller <i>{yes, no, thumb}</i><br>
     91- <code>elastic</code> (valgfrit) tilpas slideshowstørrelsen til hvert billede <i>{yes, no}</i><br>
     92- <code>thumbs_size</code> (optional) thumbnails size in pixel if <code>control=thumb</code><p>
    9293
    9394
  • extensions/ExtendedDescription/language/en_UK/help.html

    r17187 r26127  
    7171
    7272<ul>
    73   <li><b>[slider album=xx nb_images=10 random=no list=aa,bb,cc size=M speed=3 title=no effect=fade arrows=yes control=yes elastic=no]</b></li>
     73  <li><b>[slider album=xx nb_images=10 random=no list=aa,bb,cc size=M speed=3 title=no effect=fade arrows=yes control=yes elastic=no thumbs_size=80]</b></li>
    7474</ul>
    7575<p>This tag allows to insert a slideshow (NivoSlider). (you must set <code>album</code> OR <code>list</code>):<br><br>
    7676- <code>album</code> (optional) source album<br>
    7777- <code>nb_images</code> (optional) max number of photos to display in the slideshow<br>
    78 - <code>random</code> (optional) choose photos randomly in the album<br>
     78- <code>random</code> (optional) choose photos randomly in the album <i>{yes, no}</i><br>
    7979- <code>list</code> (optional) a list of photos ids separated by a comma<br>
    8080- <code>size</code> (optional) the size of the photos, from <i>{SQ, TH, XXS, XS, S, M, L, XL, XXL}</i><br>
    8181- <code>speed</code> (optional) the slideshow speed (in seconds)<br>
    82 - <code>title</code> (optional) display photo title<br>
    83 - <code>effect</code> (optional) transition effect (see <a href="http://nivo.dev7studios.com/support/jquery-plugin-usage/">NivoSlider doc</a>)<br>
    84 - <code>arrows</code> (optional) display navigation arrows<br>
    85 - <code>control</code> (optional) display navigation controls<br>
    86 - <code>elastic</code> (optional) adapt slideshow size to each photo</p>
     82- <code>title</code> (optional) display photo title <i>{yes, no}</i><br>
     83- <code>effect</code> (optional) transition effect (see <a href="http://docs.dev7studios.com/jquery-plugins/nivo-slider">NivoSlider doc</a>)<br>
     84- <code>arrows</code> (optional) display navigation arrows <i>{yes, no}</i><br>
     85- <code>control</code> (optional) display navigation controls <i>{yes, no, thumb}</i><br>
     86- <code>elastic</code> (optional) adapt slideshow size to each photo <i>{yes, no}</i><br>
     87- <code>thumbs_size</code> (optional) thumbnails size in pixel if <code>control=thumb</code><p>
    8788
    8889
  • extensions/ExtendedDescription/language/fr_FR/help.html

    r17102 r26127  
    7777
    7878<ul>
    79   <li><b>[slider album=xx nb_images=10 random=no list=aa,bb,cc size=M speed=3 title=no effect=fade arrows=yes control=yes elastic=no]</b></li>
     79  <li><b>[slider album=xx nb_images=10 random=no list=aa,bb,cc size=M speed=3 title=no effect=fade arrows=yes control=yes elastic=no thumbs_size=80]</b></li>
    8080</ul>
    8181<p>Permet d'insérer un diaporama (NivoSlider), avec (vous devez renseigner <code>album</code> OU <code>list</code>):<br><br>
    8282- <code>album</code> (facultatif) album source<br>
    8383- <code>nb_images</code> (facultatif) nombre maximal de photos dans le diaporama<br>
    84 - <code>random</code> (facultatif) choisir les photos aléatoirement dans l'album<br>
     84- <code>random</code> (facultatif) choisir les photos aléatoirement dans l'album <i>{yes, no}</i><br>
    8585- <code>list</code> (facultatif) une liste de photos séparées par une virgule<br>
    8686- <code>size</code> (facultatif) la taille des photos, parmi <i>{SQ, TH, XXS, S, M, L, XL, XXL}</i><br>
    8787- <code>speed</code> (facultatif) la vitesse du diaporama (en secondes)<br>
    8888- <code>title</code> (facultatif) afficher le nom de la photo<br>
    89 - <code>effect</code> (facultatif) effet de transition (voir <a href="http://nivo.dev7studios.com/support/jquery-plugin-usage/">la doc de NivoSlider</a>)<br>
    90 - <code>arrows</code> (facultatif) afficher les flèches de navigations<br>
    91 - <code>control</code> (facultatif) afficher la barre de navigation<br>
    92 - <code>elastic</code> (facultatif) adapter la taille du diaporama à chaque photo</p>
     89- <code>effect</code> (facultatif) effet de transition (voir <a href="http://docs.dev7studios.com/jquery-plugins/nivo-slider">la doc de NivoSlider</a>)<br>
     90- <code>arrows</code> (facultatif) afficher les flèches de navigations <i>{yes, no}</i><br>
     91- <code>control</code> (facultatif) afficher la barre de navigation <i>{yes, no, thumb}</i><br>
     92- <code>elastic</code> (facultatif) adapter la taille du diaporama à chaque photo <i>{yes, no}</i><br>
     93- <code>thumbs_size</code> (facultatif) taille des miniatures en pixel si <code>control=thumb</code><p>
    9394
    9495
  • extensions/ExtendedDescription/language/nn_NO/help.html

    r21940 r26127  
    7171
    7272<ul>
    73   <li><b>[slider album=xx nb_images=10 random=no list=aa,bb,cc size=M speed=3 title=no effect=fade arrows=yes control=yes elastic=no]</b></li>
     73  <li><b>[slider album=xx nb_images=10 random=no list=aa,bb,cc size=M speed=3 title=no effect=fade arrows=yes control=yes elastic=no thumbs_size=80]</b></li>
    7474</ul>
    7575<p>This tag allows to insert a slideshow (NivoSlider). (you must set <code>album</code> OR <code>list</code>):<br><br>
    7676- <code>album</code> (valfritt) source album<br>
    7777- <code>nb_images</code> (valfritt) max number of photos to display in the slideshow<br>
    78 - <code>random</code> (valfritt) choose photos randomly in the album<br>
     78- <code>random</code> (valfritt) choose photos randomly in the album <i>{yes, no}</i><br>
    7979- <code>list</code> (valfritt) a list of photos ids separated by a comma<br>
    8080- <code>size</code> (valfritt) the size of the photos, from <i>{SQ, TH, XXS, XS, S, M, L, XL, XXL}</i><br>
    8181- <code>speed</code> (valfritt) the slideshow speed (in seconds)<br>
    82 - <code>title</code> (valfritt) display photo title<br>
    83 - <code>effect</code> (valfritt) transition effect (see <a href="http://nivo.dev7studios.com/support/jquery-plugin-usage/">NivoSlider doc</a>)<br>
    84 - <code>arrows</code> (valfritt) display navigation arrows<br>
    85 - <code>control</code> (valfritt) display navigation controls<br>
    86 - <code>elastic</code> (valfritt) adapt slideshow size to each photo</p>
     82- <code>title</code> (valfritt) display photo title <i>{yes, no}</i><br>
     83- <code>effect</code> (valfritt) transition effect (see <a href="http://docs.dev7studios.com/jquery-plugins/nivo-slider">NivoSlider doc</a>)<br>
     84- <code>arrows</code> (valfritt) display navigation arrows <i>{yes, no}</i><br>
     85- <code>control</code> (valfritt) display navigation controls <i>{yes, no, thumb}</i><br>
     86- <code>elastic</code> (valfritt) adapt slideshow size to each photo <i>{yes, no}</i><br>
     87- <code>thumbs_size</code> (optional) thumbnails size in pixel if <code>control=thumb</code><p>
    8788
    8889
  • extensions/ExtendedDescription/language/pt_BR/help.html

    r20513 r26127  
    7676- <code>album</code> (opcional) album fonte<br>
    7777- <code>nb_images</code> (opcional) número máximo de fotos para exibir no slideshow<br>
    78 - <code>random</code> (opcional) escolher aleatoriamente fotos no álbum<br>
     78- <code>random</code> (opcional) escolher aleatoriamente fotos no álbum <i>{yes, no}</i><br>
    7979- <code>list</code> (opcional) uma lista de fotos ids separados por uma vírgula<br>
    8080- <code>size</code> (opcional) o tamanho das imagens, de <i>{SQ, TH, XXS, XS, S, M, L, XL, XXL}</i><br>
    8181- <code>speed</code> (opcional) a velocidade da apresentação (em segundos)<br>
    82 - <code>title</code> (opcional) exibir o título da foto<br>
    83 - <code>effect</code> (opcional) efeito de transição (ver <a href="http://nivo.dev7studios.com/support/jquery-plugin-usage/">NivoSlider doc</a>)<br>
    84 - <code>arrows</code> (opcional) exibir setas de navegação<br>
    85 - <code>control</code> (opcional) exibir controles de navegação<br>
    86 - <code>elastic</code> (opcional) adaptar tamanho do slideshow para cada foto</p>
     82- <code>title</code> (opcional) exibir o título da foto <i>{yes, no}</i><br>
     83- <code>effect</code> (opcional) efeito de transição (ver <a href="http://docs.dev7studios.com/jquery-plugins/nivo-slider">NivoSlider doc</a>)<br>
     84- <code>arrows</code> (opcional) exibir setas de navegação <i>{yes, no}</i><br>
     85- <code>control</code> (opcional) exibir controles de navegação <i>{yes, no, thumb}</i><br>
     86- <code>elastic</code> (opcional) adaptar tamanho do slideshow para cada foto <i>{yes, no}</i><br>
     87- <code>thumbs_size</code> (optional) thumbnails size in pixel if <code>control=thumb</code><p>
    8788
    8889
  • extensions/ExtendedDescription/language/pt_PT/help.html

    r17136 r26127  
    7171
    7272<ul>
    73   <li><b>[slider album=xx nb_images=10 random=no list=aa,bb,cc size=M speed=3 title=no effect=fade arrows=yes control=yes elastic=no]</b></li>
     73  <li><b>[slider album=xx nb_images=10 random=no list=aa,bb,cc size=M speed=3 title=no effect=fade arrows=yes control=yes elastic=no thumbs_size=80]</b></li>
    7474</ul>
    7575<p>Esta etiqueta permite inserir um slideshow (NivoSlider), com (você deve definir<code>album</code> OR <code>list</code>):<br><br>
    7676- <code>album</code> (opcional)fonte album<br>
    7777- <code>nb_images</code> (opcional)máximo numero de fotos para exibir no slideshow<br>
    78 - <code>random</code> (opcional) escolhe fotos aleatoriamente no álbum<br>
     78- <code>random</code> (opcional) escolhe fotos aleatoriamente no álbum <i>{yes, no}</i><br>
    7979- <code>list</code> (opcional) uma lista de fotos com ids separados por vírgula<br>
    8080- <code>size</code> (opcional) o tamanho das fotos, entre <i>{SQ, TH, XXS, S, M, L, XL, XXL}</i><br>
    8181- <code>speed</code> (opcional) Velocidade de transição<br>
    82 - <code>title</code> (opcional) mostra título da foto.<br>
    83 - <code>effect</code> (opcional) efeito de transição (opcional) (ver <a href="http://nivo.dev7studios.com/support/jquery-plugin-usage/">NivoSlider doc</a>)<br>
    84 - <code>arrows</code> (opcional) mostra setas de navegação<br>
    85 - <code>control</code> (opcional) exibe os controles de navegação<br>
    86 - <code>elastic</code> (opcional) adapta o tamanho do slideshow para cada foto</p>
     82- <code>title</code> (opcional) mostra título da foto <i>{yes, no}</i><br>
     83- <code>effect</code> (opcional) efeito de transição (opcional) (ver <a href="http://docs.dev7studios.com/jquery-plugins/nivo-slider">NivoSlider doc</a>)<br>
     84- <code>arrows</code> (opcional) mostra setas de navegação <i>{yes, no}</i><br>
     85- <code>control</code> (opcional) exibe os controles de navegação <i>{yes, no, thumb}</i><br>
     86- <code>elastic</code> (opcional) adapta o tamanho do slideshow para cada foto <i>{yes, no}</i><br>
     87- <code>thumbs_size</code> (optional) thumbnails size in pixel if <code>control=thumb</code><p>
    8788
    8889
  • extensions/ExtendedDescription/language/uk_UA/help.html

    r17125 r26127  
    7272
    7373<ul>
    74   <li><b>[slider album=xx nb_images=10 random=no list=aa,bb,cc size=M speed=3 title=no effect=fade arrows=yes control=yes elastic=no]</b></li>
     74  <li><b>[slider album=xx nb_images=10 random=no list=aa,bb,cc size=M speed=3 title=no effect=fade arrows=yes control=yes elastic=no thumbs_size=80]</b></li>
    7575</ul>
    7676<p>This tag allows to insert a slideshow (NivoSlider), with (you must set <code>album</code> OR <code>list</code>):<br><br>
    7777- <code>album</code> (optional) source album<br>
    7878- <code>nb_images</code> (optional) max number of photos to display in the slideshow<br>
    79 - <code>random</code> (optional) choose photos randomly in the album<br>
     79- <code>random</code> (optional) choose photos randomly in the album <i>{yes, no}</i><br>
    8080- <code>list</code> (optional) a list of photos ids separated by a comma<br>
    8181- <code>size</code> (optional) the size of the photos, among <i>{SQ, TH, XXS, S, M, L, XL, XXL}</i><br>
    8282- <code>speed</code> (optional) the slideshow speed (in seconds)<br>
    83 - <code>title</code> (optional) display photo title<br>
    84 - <code>effect</code> (optional) transition effect (see <a href="http://nivo.dev7studios.com/support/jquery-plugin-usage/">NivoSlider doc</a>)<br>
    85 - <code>arrows</code> (optional) display navigation arrows<br>
    86 - <code>control</code> (optional) display navigation controls<br>
    87 - <code>elastic</code> (optional) adapt slideshow size to each photo</p>
     83- <code>title</code> (optional) display photo title <i>{yes, no}</i><br>
     84- <code>effect</code> (optional) transition effect (see <a href="http://docs.dev7studios.com/jquery-plugins/nivo-slider">NivoSlider doc</a>)<br>
     85- <code>arrows</code> (optional) display navigation arrows <i>{yes, no}</i><br>
     86- <code>control</code> (optional) display navigation controls <i>{yes, no, thumv}</i><br>
     87- <code>elastic</code> (optional) adapt slideshow size to each photo <i>{yes, no}</i><br>
     88- <code>thumbs_size</code> (optional) thumbnails size in pixel if <code>control=thumb</code><p>
    8889
    8990
  • extensions/ExtendedDescription/main.inc.php

    r25203 r26127  
    153153  $replacements[] = ($param == 'subcatify_category_description') ? '' : 'extdesc_get_random_photo("$1")';
    154154 
    155   // Balises [slider album=xx nb_images=yy random=yes|no list=aa,bb,cc size=SQ|TH|XXS|XS|S|M|L|XL|XXL speed=z title=yes|no effect=... arrows=yes|no control=yes|no elastic=yes|no]
     155  // Balises [slider album=xx nb_images=yy random=yes|no list=aa,bb,cc size=SQ|TH|XXS|XS|S|M|L|XL|XXL speed=z title=yes|no effect=... arrows=yes|no control=yes|no|thumb elastic=yes|no thumbs_size=xx]
    156156  $patterns[] = '#\[slider ([^\]]+)\]#ie';
    157157  $replacements[] = ($param == 'subcatify_category_description') ? '' : 'get_slider("$1")';
     
    568568 * @string control:   display navigation bar            (default: yes)
    569569 * @string elastic:   adapt slider size to each picture (default: yes)
     570 * @int thumbs_size:  size of thumbnails if control=thumb (default: 80)
    570571 */
    571572function get_slider($param)
     
    583584    'effect' =>    array('[a-zA-Z]+', 'fade'),
    584585    'arrows' =>    array('yes|no', 'yes'),
    585     'control' =>   array('yes|no', 'yes'),
     586    'control' =>   array('yes|no|thumb', 'yes'),
    586587    'elastic' =>   array('yes|no', 'yes'),
     588    'thumbs_size' => array('\d+', 80),
    587589    );
    588590   
     
    592594  $deriv_type = get_deriv_type($params['size']);
    593595  $enabled = ImageStdParams::get_defined_type_map();
    594   if (empty($enabled[ $deriv_type ])) return 'size disabled';
     596  if (empty($enabled[ $deriv_type ]))
     597  {
     598    return '(nivoSlider) size disabled';
     599  }
    595600 
    596601  // parameters
    597   $params['arrows'] = $params['arrows']==='yes' ? 'true' : 'false';
    598   $params['control'] = $params['control']==='yes' ? 'true' : 'false';
    599   $params['elastic'] = $params['elastic']==='yes' ? true : false;
    600   $params['title'] = $params['title']==='yes' ? true : false;
    601   $params['random'] = $params['random']==='yes' ? true : false;
     602  if ($params['control'] === 'thumb')
     603  {
     604    $params['control'] = 'yes';
     605    $params['control_thumbs'] = true;
     606  }
     607  else
     608  {
     609    $params['control_thumbs'] = false;
     610  }
     611  $params['arrows'] = $params['arrows']==='yes';
     612  $params['control'] = $params['control']==='yes';
     613  $params['elastic'] = $params['elastic']==='yes';
     614  $params['title'] = $params['title']==='yes';
     615  $params['random'] = $params['random']==='yes';
     616 
     617  $tpl_vars = $params;
    602618 
    603619  // pictures from album...
     
    679695    $name = render_element_name($row);
    680696   
    681     $tpl_vars[] = array_merge($row, array(
     697    $tpl_vars['elements'][] = array(
     698      'ID' => $row['id'],
    682699      'TN_ALT' => htmlspecialchars(strip_tags($name)),
    683700      'NAME' => $name,
    684701      'URL' => $url,
    685702      'src_image' => new SrcImage($row),
    686       ));
    687   }
    688  
    689   list($img_size['w'], $img_size['h']) = $enabled[ $deriv_type ]->sizing->ideal_size;
     703      );
     704  }
     705 
     706  list($tpl_vars['img_size']['w'], $tpl_vars['img_size']['h']) =
     707    $enabled[ $deriv_type ]->sizing->ideal_size;
     708 
     709  $tpl_vars['id'] = crc32(uniqid($ids)); // need a unique id if we have multiple sliders
     710  $tpl_vars['derivative_params'] = ImageStdParams::get_by_type($deriv_type);
     711   
     712  if ($params['control_thumbs'])
     713  {
     714    $tpl_vars['derivative_params_thumb'] = ImageStdParams::get_custom(
     715      $params['thumbs_size'], $params['thumbs_size'], 1,
     716      $params['thumbs_size'], $params['thumbs_size']
     717      );
     718  }
    690719 
    691720  $template->assign(array(
    692721    'EXTENDED_DESC_PATH' => EXTENDED_DESC_PATH,
    693     'slider_id' => crc32(uniqid($params['list'])), // need a unique id if we have multiple sliders
    694     'slider_content' => $tpl_vars,
    695     'derivative_params' => ImageStdParams::get_by_type( $deriv_type ),
    696     'img_size' => $img_size,
    697     'pauseTime' => $params['speed']*1000,
    698     'controlNav' => $params['control'],
    699     'effect' => $params['effect'],
    700     'directionNav' => $params['arrows'],
    701     'elastic_size' => $params['elastic'],
    702     'show_title' => $params['title'],
     722    'SLIDER'=> $tpl_vars,
    703723    ));
    704724 
  • extensions/ExtendedDescription/template/nivoslider/default.css

    r25201 r26127  
    22Skin Name: Nivo Slider Default Theme
    33Skin URI: http://nivo.dev7studios.com
    4 Skin Type: flexible
    54Description: The default skin for the Nivo Slider.
    6 Version: 1.2
     5Version: 1.3
    76Author: Gilbert Pellegrom
    87Author URI: http://dev7studios.com
     8Supports Thumbs: true
    99*/
    1010
    1111.theme-default .nivoSlider {
    1212        position:relative;
    13         background:#000 url(loading.gif) no-repeat 50% 50%;
    14     -webkit-box-shadow: 0px 1px 5px 0px #000;
    15     -moz-box-shadow: 0px 1px 5px 0px #000;
    16     box-shadow: 0px 1px 5px 0px #000;
     13        background:#fff url(loading.gif) no-repeat 50% 50%;
     14    margin-bottom:10px;
     15    -webkit-box-shadow: 0px 1px 5px 0px #4a4a4a;
     16    -moz-box-shadow: 0px 1px 5px 0px #4a4a4a;
     17    box-shadow: 0px 1px 5px 0px #4a4a4a;
    1718}
    1819.theme-default .nivoSlider img {
     
    5152        text-indent:-9999px;
    5253        border:0;
     54        opacity: 0;
     55        -webkit-transition: all 200ms ease-in-out;
     56    -moz-transition: all 200ms ease-in-out;
     57    -o-transition: all 200ms ease-in-out;
     58    transition: all 200ms ease-in-out;
    5359}
     60.theme-default:hover .nivo-directionNav a { opacity: 1; }
    5461.theme-default a.nivo-nextNav {
    5562        background-position:-30px 0;
  • extensions/ExtendedDescription/template/nivoslider/nivo-slider.css

    r17349 r26127  
    11/*
    2  * jQuery Nivo Slider v3.0.1
     2 * jQuery Nivo Slider v3.2
    33 * http://nivo.dev7studios.com
    44 *
     
    99 
    1010/* The Nivo Slider styles */
    11 .slider-wrapper {
    12         margin:0 auto;
    13 }
    1411.nivoSlider {
    1512        position:relative;
     
    1714        height:auto;
    1815        overflow: hidden;
    19         margin: 0 auto;
    2016}
    2117.nivoSlider img {
     
    2319        top:0px;
    2420        left:0px;
     21        max-width: none;
    2522}
    2623.nivo-main-image {
    2724        display: block !important;
    2825        position: relative !important;
    29         //width: 100% !important;
    30         margin: 0 auto;
     26        width: 100% !important;
    3127}
    3228
     
    4339        z-index:6;
    4440        display:none;
     41        background:white;
     42        filter:alpha(opacity=0);
     43        opacity:0;
    4544}
    4645/* The slices and boxes in the Slider */
  • extensions/ExtendedDescription/template/slider.tpl

    r19282 r26127  
    1 {combine_script id='jquery.nivo.slider' path=$EXTENDED_DESC_PATH|cat:'template/nivoslider/jquery.nivo.slider.js' require='jquery' load='footer'}
    2 {combine_css path=$EXTENDED_DESC_PATH|cat:'template/nivoslider/nivo-slider.css'}
    3 {combine_css path=$EXTENDED_DESC_PATH|cat:'template/nivoslider/dark.css'}
     1{combine_script id='jquery.nivo.slider' path=$EXTENDED_DESC_PATH|cat:'template/nivoslider/jquery.nivo.slider.pack.js' require='jquery' load='footer'}
     2{combine_css id='nivoslider' path=$EXTENDED_DESC_PATH|cat:'template/nivoslider/nivo-slider.css'}
     3{combine_css id='nivoslider_theme' path=$EXTENDED_DESC_PATH|cat:'template/nivoslider/default.css'}
    44
    5 {footer_script require='jquery.nivo.slider'}
    6 $("#slider{$slider_id}").nivoSlider({ldelim}
    7   pauseTime: {$pauseTime},
    8   animSpeed: {$pauseTime}/6,
    9   effect: '{$effect}',
    10   directionNav: {$directionNav},
    11   controlNav: {$controlNav},
    12   beforeChange: function() {ldelim}
    13     if ($('#slider{$slider_id}').data('nivo:vars').currentImage.attr('src') == "")
    14     {ldelim}
    15       return false;
    16     }
    17     {if $elastic_size}
    18     $("#slider{$slider_id}").css({ldelim}
    19       height: 'auto',
    20     });
    21     {/if}
    22   }
    23 });
    24 {/footer_script}
     5{html_style}
     6#slider{$SLIDER.id} {ldelim} margin:0 auto; }
     7#slider{$SLIDER.id} .nivoSlider img {ldelim} border:none !important; }
     8#slider{$SLIDER.id} .nivo-controlNav.nivo-thumbs-enabled img {ldelim}
     9  width: {$SLIDER.thumbs_size}px; height: {$SLIDER.thumbs_size}px;
     10}
     11{/html_style}
    2512
    26 {if $elastic_size}
     13{if $SLIDER.elastic}
    2714{assign var=slider_full_height value=0}
    2815{else}
    29 {assign var=slider_full_height value=$img_size.h}
     16{assign var=slider_full_height value=$SLIDER.img_size.h}
    3017{/if}
    3118{assign var=slider_full_width value=0}
    3219
    33 <div class="slider-wrapper theme-default">
    34   <div id="slider{$slider_id}" class="nivoSlider">
    35   {foreach from=$slider_content item=thumbnail name=slider}{strip}
    36     {assign var=derivative value=$pwg->derivative($derivative_params, $thumbnail.src_image)}
     20<div id="slider{$SLIDER.id}" class="slider-wrapper theme-default">
     21  <div class="nivoSlider">
     22  {foreach from=$SLIDER.elements item=thumbnail name=slider}{strip}
     23    {assign var=derivative value=$pwg->derivative($SLIDER.derivative_params, $thumbnail.src_image)}
     24    {if $SLIDER.control_thumbs}{assign var=derivative_thumb value=$pwg->derivative_url($SLIDER.derivative_params_thumb, $thumbnail.src_image)}{/if}
    3725    {if !$derivative->is_cached()}
    38     {combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'}
    39     {combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'}
     26      {combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'}
     27      {combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'}
    4028    {/if}
    4129   
    42     <img {if $derivative->is_cached()}src="{$derivative->get_url()}"{else}src="" data-src="{$derivative->get_url()}"{/if} alt="{$thumbnail.TN_ALT}" {$derivative->get_size_htm()} {if $show_title}title="<a href='{$thumbnail.URL}'>{$thumbnail.NAME|replace:'"':"'"}</a>"{/if}>
     30    <img {if $derivative->is_cached()}src="{$derivative->get_url()}"{else}src="" data-src="{$derivative->get_url()}"{/if} alt="{$thumbnail.TN_ALT}" {$derivative->get_size_htm()} {if $show_title}title="<a href='{$thumbnail.URL}'>{$thumbnail.NAME|replace:'"':"'"}</a>"{/if} {if $SLIDER.control_thumbs}data-thumb="{$derivative_thumb}"{/if}>
    4331   
    4432    {assign var=derivative_size value=$derivative->get_size()}
    4533    {math assign=slider_full_width equation="max(x,y)" x=$slider_full_width y=$derivative_size[0]}
    46   {if $elastic_size}
    47     {math assign=slider_full_height equation="max(x,y)" x=$slider_full_height y=$derivative_size[1]}
    48   {else}
    49     {math assign=slider_full_height equation="min(x,y)" x=$slider_full_height y=$derivative_size[1]}
    50   {/if}
    51   {if $smarty.foreach.slider.first}
    52     {assign var=slider_init_width value=$derivative_size[0]}
    53     {assign var=slider_init_height value=$derivative_size[1]}
    54   {/if}
    55  
     34    {if $SLIDER.elastic}
     35      {math assign=slider_full_height equation="max(x,y)" x=$slider_full_height y=$derivative_size[1]}
     36    {else}
     37      {math assign=slider_full_height equation="min(x,y)" x=$slider_full_height y=$derivative_size[1]}
     38    {/if}
     39    {if $smarty.foreach.slider.first}
     40      {assign var=slider_init_width value=$derivative_size[0]}
     41      {assign var=slider_init_height value=$derivative_size[1]}
     42    {/if}
    5643  {/strip}
    5744  {/foreach}
     
    5946</div>
    6047
    61 {footer_script}
    62 $("#slider{$slider_id}").parent(".slider-wrapper").css({ldelim}
    63   height: {$slider_full_height}{if $controlNav=='true'}+40{/if},
    64   width: {$slider_full_width}
    65 });
    66 $("#slider{$slider_id}").css({ldelim}
    67   height: {if $elastic_size}{$slider_init_height}{else}{$slider_full_height}{/if},
    68   width: {$slider_init_width}
    69 });
     48{footer_script require='jquery.nivo.slider'}
     49(function($){
     50  var $slider = $("#slider{$SLIDER.id} .nivoSlider");
     51 
     52  $slider.nivoSlider({ldelim}
     53    pauseTime: {$SLIDER.speed}*1000,
     54    animSpeed: {$SLIDER.speed}*1000/6,
     55    effect: '{$SLIDER.effect}',
     56    directionNav: {intval($SLIDER.arrows)},
     57    controlNav: {intval($SLIDER.control)},
     58    controlNavThumbs: {intval($SLIDER.control_thumbs)},
     59    beforeChange: function() {ldelim}
     60      if ($slider.data('nivo:vars').currentImage.attr('src') == "") {ldelim}
     61        return false;
     62      }
     63      {if $SLIDER.elastic}
     64      $slider.css({ldelim} height: 'auto' });
     65      {/if}
     66    }
     67  });
     68
     69  $slider.parent().css({ldelim}
     70    height: {$slider_full_height}{if $SLIDER.control_thumbs}+20+{$SLIDER.thumbs_size}{else if $SLIDER.control}+40{/if},
     71    width: {$slider_full_width}
     72  });
     73  $slider.css({ldelim}
     74    height: {if $SLIDER.elastic}{$slider_init_height}{else}{$slider_full_height}{/if},
     75    width: {$slider_init_width}
     76  });
     77}(jQuery));
    7078{/footer_script}
Note: See TracChangeset for help on using the changeset viewer.