From 903151280ceac9939d4e0e4ed2ac82b951979132 Mon Sep 17 00:00:00 2001 From: opi Date: Sun, 20 Jul 2014 13:52:54 +0200 Subject: [PATCH] [enh] Add gallery plugin. --- sources/lib/plugins/gallery/README | 25 + sources/lib/plugins/gallery/conf/default.php | 15 + sources/lib/plugins/gallery/conf/metadata.php | 16 + sources/lib/plugins/gallery/images/blank.gif | Bin 0 -> 110 bytes sources/lib/plugins/gallery/images/close.gif | Bin 0 -> 99 bytes sources/lib/plugins/gallery/images/expand.gif | Bin 0 -> 209 bytes .../lib/plugins/gallery/images/loading.gif | Bin 0 -> 2230 bytes sources/lib/plugins/gallery/images/next.gif | Bin 0 -> 93 bytes .../lib/plugins/gallery/images/overlay.png | Bin 0 -> 406 bytes .../lib/plugins/gallery/images/overlayie.png | Bin 0 -> 389 bytes sources/lib/plugins/gallery/images/prev.gif | Bin 0 -> 94 bytes sources/lib/plugins/gallery/images/shrink.gif | Bin 0 -> 207 bytes .../lib/plugins/gallery/jquery.prettyPhoto.js | 916 ++++++++++++++++++ sources/lib/plugins/gallery/lang/ca/lang.php | 9 + .../lib/plugins/gallery/lang/ca/settings.php | 18 + .../lib/plugins/gallery/lang/cs/settings.php | 12 + sources/lib/plugins/gallery/lang/da/lang.php | 9 + .../lib/plugins/gallery/lang/da/settings.php | 18 + sources/lib/plugins/gallery/lang/de/lang.php | 9 + .../lib/plugins/gallery/lang/de/settings.php | 18 + sources/lib/plugins/gallery/lang/en/lang.php | 4 + .../lib/plugins/gallery/lang/en/settings.php | 22 + sources/lib/plugins/gallery/lang/eo/lang.php | 9 + .../lib/plugins/gallery/lang/eo/settings.php | 18 + sources/lib/plugins/gallery/lang/es/lang.php | 8 + .../lib/plugins/gallery/lang/es/settings.php | 17 + sources/lib/plugins/gallery/lang/fr/lang.php | 10 + .../lib/plugins/gallery/lang/fr/settings.php | 20 + .../lib/plugins/gallery/lang/it/settings.php | 18 + .../lib/plugins/gallery/lang/ja/settings.php | 18 + sources/lib/plugins/gallery/lang/ko/lang.php | 8 + .../lib/plugins/gallery/lang/ko/settings.php | 21 + sources/lib/plugins/gallery/lang/nl/lang.php | 9 + .../lib/plugins/gallery/lang/nl/settings.php | 18 + .../lib/plugins/gallery/lang/pt-br/lang.php | 9 + .../plugins/gallery/lang/pt-br/settings.php | 18 + sources/lib/plugins/gallery/lang/ru/lang.php | 9 + .../lib/plugins/gallery/lang/ru/settings.php | 18 + sources/lib/plugins/gallery/lang/sk/lang.php | 9 + .../lib/plugins/gallery/lang/sk/settings.php | 18 + sources/lib/plugins/gallery/lang/tr/lang.php | 10 + .../lib/plugins/gallery/lang/tr/settings.php | 19 + .../lib/plugins/gallery/lang/zh-tw/lang.php | 9 + .../plugins/gallery/lang/zh-tw/settings.php | 18 + sources/lib/plugins/gallery/lang/zh/lang.php | 9 + .../lib/plugins/gallery/lang/zh/settings.php | 18 + sources/lib/plugins/gallery/plugin.info.txt | 7 + .../prettyPhoto/dark_rounded/btnNext.png | Bin 0 -> 1411 bytes .../prettyPhoto/dark_rounded/btnPrevious.png | Bin 0 -> 1442 bytes .../dark_rounded/contentPattern.png | Bin 0 -> 130 bytes .../dark_rounded/default_thumbnail.gif | Bin 0 -> 227 bytes .../prettyPhoto/dark_rounded/loader.gif | Bin 0 -> 2545 bytes .../prettyPhoto/dark_rounded/sprite.png | Bin 0 -> 4076 bytes .../prettyPhoto/dark_square/btnNext.png | Bin 0 -> 1411 bytes .../prettyPhoto/dark_square/btnPrevious.png | Bin 0 -> 1442 bytes .../dark_square/contentPattern.png | Bin 0 -> 121 bytes .../dark_square/default_thumbnail.gif | Bin 0 -> 227 bytes .../prettyPhoto/dark_square/loader.gif | Bin 0 -> 2545 bytes .../prettyPhoto/dark_square/sprite.png | Bin 0 -> 3507 bytes .../prettyPhoto/default/default_thumb.png | Bin 0 -> 1537 bytes .../gallery/prettyPhoto/default/loader.gif | Bin 0 -> 6331 bytes .../gallery/prettyPhoto/default/sprite.png | Bin 0 -> 6682 bytes .../prettyPhoto/default/sprite_next.png | Bin 0 -> 1358 bytes .../prettyPhoto/default/sprite_prev.png | Bin 0 -> 1376 bytes .../gallery/prettyPhoto/default/sprite_x.png | Bin 0 -> 1097 bytes .../gallery/prettyPhoto/default/sprite_y.png | Bin 0 -> 1162 bytes .../gallery/prettyPhoto/facebook/btnNext.png | Bin 0 -> 845 bytes .../prettyPhoto/facebook/btnPrevious.png | Bin 0 -> 828 bytes .../facebook/contentPatternBottom.png | Bin 0 -> 142 bytes .../facebook/contentPatternLeft.png | Bin 0 -> 137 bytes .../facebook/contentPatternRight.png | Bin 0 -> 136 bytes .../facebook/contentPatternTop.png | Bin 0 -> 142 bytes .../facebook/default_thumbnail.gif | Bin 0 -> 227 bytes .../gallery/prettyPhoto/facebook/loader.gif | Bin 0 -> 2545 bytes .../gallery/prettyPhoto/facebook/sprite.png | Bin 0 -> 4227 bytes .../prettyPhoto/light_rounded/btnNext.png | Bin 0 -> 1411 bytes .../prettyPhoto/light_rounded/btnPrevious.png | Bin 0 -> 1442 bytes .../light_rounded/default_thumbnail.gif | Bin 0 -> 227 bytes .../prettyPhoto/light_rounded/loader.gif | Bin 0 -> 2545 bytes .../prettyPhoto/light_rounded/sprite.png | Bin 0 -> 4099 bytes .../prettyPhoto/light_square/btnNext.png | Bin 0 -> 1411 bytes .../prettyPhoto/light_square/btnPrevious.png | Bin 0 -> 1442 bytes .../light_square/default_thumbnail.gif | Bin 0 -> 227 bytes .../prettyPhoto/light_square/loader.gif | Bin 0 -> 2545 bytes .../prettyPhoto/light_square/sprite.png | Bin 0 -> 3507 bytes sources/lib/plugins/gallery/screen.css | 60 ++ sources/lib/plugins/gallery/script.js | 60 ++ sources/lib/plugins/gallery/style.css | 525 ++++++++++ sources/lib/plugins/gallery/syntax.php | 663 +++++++++++++ 89 files changed, 2744 insertions(+) create mode 100644 sources/lib/plugins/gallery/README create mode 100644 sources/lib/plugins/gallery/conf/default.php create mode 100644 sources/lib/plugins/gallery/conf/metadata.php create mode 100644 sources/lib/plugins/gallery/images/blank.gif create mode 100644 sources/lib/plugins/gallery/images/close.gif create mode 100644 sources/lib/plugins/gallery/images/expand.gif create mode 100644 sources/lib/plugins/gallery/images/loading.gif create mode 100644 sources/lib/plugins/gallery/images/next.gif create mode 100644 sources/lib/plugins/gallery/images/overlay.png create mode 100644 sources/lib/plugins/gallery/images/overlayie.png create mode 100644 sources/lib/plugins/gallery/images/prev.gif create mode 100644 sources/lib/plugins/gallery/images/shrink.gif create mode 100644 sources/lib/plugins/gallery/jquery.prettyPhoto.js create mode 100644 sources/lib/plugins/gallery/lang/ca/lang.php create mode 100644 sources/lib/plugins/gallery/lang/ca/settings.php create mode 100644 sources/lib/plugins/gallery/lang/cs/settings.php create mode 100644 sources/lib/plugins/gallery/lang/da/lang.php create mode 100644 sources/lib/plugins/gallery/lang/da/settings.php create mode 100644 sources/lib/plugins/gallery/lang/de/lang.php create mode 100644 sources/lib/plugins/gallery/lang/de/settings.php create mode 100644 sources/lib/plugins/gallery/lang/en/lang.php create mode 100644 sources/lib/plugins/gallery/lang/en/settings.php create mode 100644 sources/lib/plugins/gallery/lang/eo/lang.php create mode 100644 sources/lib/plugins/gallery/lang/eo/settings.php create mode 100644 sources/lib/plugins/gallery/lang/es/lang.php create mode 100644 sources/lib/plugins/gallery/lang/es/settings.php create mode 100644 sources/lib/plugins/gallery/lang/fr/lang.php create mode 100644 sources/lib/plugins/gallery/lang/fr/settings.php create mode 100644 sources/lib/plugins/gallery/lang/it/settings.php create mode 100644 sources/lib/plugins/gallery/lang/ja/settings.php create mode 100644 sources/lib/plugins/gallery/lang/ko/lang.php create mode 100644 sources/lib/plugins/gallery/lang/ko/settings.php create mode 100644 sources/lib/plugins/gallery/lang/nl/lang.php create mode 100644 sources/lib/plugins/gallery/lang/nl/settings.php create mode 100644 sources/lib/plugins/gallery/lang/pt-br/lang.php create mode 100644 sources/lib/plugins/gallery/lang/pt-br/settings.php create mode 100644 sources/lib/plugins/gallery/lang/ru/lang.php create mode 100644 sources/lib/plugins/gallery/lang/ru/settings.php create mode 100644 sources/lib/plugins/gallery/lang/sk/lang.php create mode 100644 sources/lib/plugins/gallery/lang/sk/settings.php create mode 100644 sources/lib/plugins/gallery/lang/tr/lang.php create mode 100644 sources/lib/plugins/gallery/lang/tr/settings.php create mode 100644 sources/lib/plugins/gallery/lang/zh-tw/lang.php create mode 100644 sources/lib/plugins/gallery/lang/zh-tw/settings.php create mode 100644 sources/lib/plugins/gallery/lang/zh/lang.php create mode 100644 sources/lib/plugins/gallery/lang/zh/settings.php create mode 100644 sources/lib/plugins/gallery/plugin.info.txt create mode 100755 sources/lib/plugins/gallery/prettyPhoto/dark_rounded/btnNext.png create mode 100755 sources/lib/plugins/gallery/prettyPhoto/dark_rounded/btnPrevious.png create mode 100755 sources/lib/plugins/gallery/prettyPhoto/dark_rounded/contentPattern.png create mode 100755 sources/lib/plugins/gallery/prettyPhoto/dark_rounded/default_thumbnail.gif create mode 100755 sources/lib/plugins/gallery/prettyPhoto/dark_rounded/loader.gif create mode 100755 sources/lib/plugins/gallery/prettyPhoto/dark_rounded/sprite.png create mode 100755 sources/lib/plugins/gallery/prettyPhoto/dark_square/btnNext.png create mode 100755 sources/lib/plugins/gallery/prettyPhoto/dark_square/btnPrevious.png create mode 100755 sources/lib/plugins/gallery/prettyPhoto/dark_square/contentPattern.png create mode 100755 sources/lib/plugins/gallery/prettyPhoto/dark_square/default_thumbnail.gif create mode 100755 sources/lib/plugins/gallery/prettyPhoto/dark_square/loader.gif create mode 100755 sources/lib/plugins/gallery/prettyPhoto/dark_square/sprite.png create mode 100644 sources/lib/plugins/gallery/prettyPhoto/default/default_thumb.png create mode 100644 sources/lib/plugins/gallery/prettyPhoto/default/loader.gif create mode 100644 sources/lib/plugins/gallery/prettyPhoto/default/sprite.png create mode 100644 sources/lib/plugins/gallery/prettyPhoto/default/sprite_next.png create mode 100644 sources/lib/plugins/gallery/prettyPhoto/default/sprite_prev.png create mode 100644 sources/lib/plugins/gallery/prettyPhoto/default/sprite_x.png create mode 100644 sources/lib/plugins/gallery/prettyPhoto/default/sprite_y.png create mode 100755 sources/lib/plugins/gallery/prettyPhoto/facebook/btnNext.png create mode 100755 sources/lib/plugins/gallery/prettyPhoto/facebook/btnPrevious.png create mode 100755 sources/lib/plugins/gallery/prettyPhoto/facebook/contentPatternBottom.png create mode 100755 sources/lib/plugins/gallery/prettyPhoto/facebook/contentPatternLeft.png create mode 100755 sources/lib/plugins/gallery/prettyPhoto/facebook/contentPatternRight.png create mode 100755 sources/lib/plugins/gallery/prettyPhoto/facebook/contentPatternTop.png create mode 100755 sources/lib/plugins/gallery/prettyPhoto/facebook/default_thumbnail.gif create mode 100755 sources/lib/plugins/gallery/prettyPhoto/facebook/loader.gif create mode 100755 sources/lib/plugins/gallery/prettyPhoto/facebook/sprite.png create mode 100755 sources/lib/plugins/gallery/prettyPhoto/light_rounded/btnNext.png create mode 100755 sources/lib/plugins/gallery/prettyPhoto/light_rounded/btnPrevious.png create mode 100755 sources/lib/plugins/gallery/prettyPhoto/light_rounded/default_thumbnail.gif create mode 100755 sources/lib/plugins/gallery/prettyPhoto/light_rounded/loader.gif create mode 100755 sources/lib/plugins/gallery/prettyPhoto/light_rounded/sprite.png create mode 100755 sources/lib/plugins/gallery/prettyPhoto/light_square/btnNext.png create mode 100755 sources/lib/plugins/gallery/prettyPhoto/light_square/btnPrevious.png create mode 100755 sources/lib/plugins/gallery/prettyPhoto/light_square/default_thumbnail.gif create mode 100755 sources/lib/plugins/gallery/prettyPhoto/light_square/loader.gif create mode 100755 sources/lib/plugins/gallery/prettyPhoto/light_square/sprite.png create mode 100644 sources/lib/plugins/gallery/screen.css create mode 100644 sources/lib/plugins/gallery/script.js create mode 100644 sources/lib/plugins/gallery/style.css create mode 100644 sources/lib/plugins/gallery/syntax.php diff --git a/sources/lib/plugins/gallery/README b/sources/lib/plugins/gallery/README new file mode 100644 index 0000000..f003735 --- /dev/null +++ b/sources/lib/plugins/gallery/README @@ -0,0 +1,25 @@ +gallery Plugin for DokuWiki + +All documentation for this plugin can be found at +http://www.dokuwiki.org/plugin:gallery + +If you install this plugin manually, make sure it is installed in +lib/plugins/gallery/ - if the folder is called different it +will not work! + +Please refer to http://www.dokuwiki.org/plugins for additional info +on how to install plugins in DokuWiki. + +---- +Copyright (C) Andreas Gohr + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; version 2 of the License + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +See the COPYING file in your DokuWiki folder for details diff --git a/sources/lib/plugins/gallery/conf/default.php b/sources/lib/plugins/gallery/conf/default.php new file mode 100644 index 0000000..f4b511e --- /dev/null +++ b/sources/lib/plugins/gallery/conf/default.php @@ -0,0 +1,15 @@ + + */ + +$conf['thumbnail_width'] = 120; +$conf['thumbnail_height'] = 120; +$conf['image_width'] = 800; +$conf['image_height'] = 600; +$conf['cols'] = 5; + +$conf['sort'] = 'file'; +$conf['options'] = 'cache'; diff --git a/sources/lib/plugins/gallery/conf/metadata.php b/sources/lib/plugins/gallery/conf/metadata.php new file mode 100644 index 0000000..fd25663 --- /dev/null +++ b/sources/lib/plugins/gallery/conf/metadata.php @@ -0,0 +1,16 @@ + + */ + +$meta['thumbnail_width'] = array('numeric'); +$meta['thumbnail_height'] = array('numeric'); +$meta['image_width'] = array('numeric'); +$meta['image_height'] = array('numeric'); +$meta['cols'] = array('numeric'); + +$meta['sort'] = array('multichoice', '_choices' => array('file','mod','date','title')); +$meta['options'] = array('multicheckbox', '_choices' => array('cache','crop','direct','lightbox','random','reverse','showname','showtitle')); + diff --git a/sources/lib/plugins/gallery/images/blank.gif b/sources/lib/plugins/gallery/images/blank.gif new file mode 100644 index 0000000000000000000000000000000000000000..93636392ea80885534a898f2d0f9c446a1b8b8f4 GIT binary patch literal 110 zcmZ?wbhEHbbYO5`XkcLY4+e@qSy)9F7#MVb7%1+*z`*3%(!cWbTmHp!w%qF8d~eTh z{4XU<-)taz;a0_}o}+XxTj4ssq3~n)^=`FT zQd6_NqOL}8$uO2gCT*6}t!BSVug0gqRn_Q}nD%a;F>$&5j?dTY@|jhN#|A}&wg#4V zIQP<(h*-9#f;C97MMss=l$B%zICY3{B#B80H)D3<6~rU@_qoF|!WFBU$5aB+7ZKT5 LNCjgDQvd)v!q;7m literal 0 HcmV?d00001 diff --git a/sources/lib/plugins/gallery/images/loading.gif b/sources/lib/plugins/gallery/images/loading.gif new file mode 100644 index 0000000000000000000000000000000000000000..83d4d3fd914382e7e945ef38decb6b135fd3734e GIT binary patch literal 2230 zcmZ|Qdr(t%76ii@Zip!J2!9M92y!L7#O&C@#5LDXWQD^nwy(z z-yEyeYBHI!va-_B(&FOcVq#)cDpg2G$OHfc1_lDZaeODZDTTgDCb!o~OF}~sMzLVoYXduVb5GwaB9Tbo1Yd+Xu z2{$MN*vVTb_I%pr&N&dRHOM}IA9ZG5-`Ys8Dl4R?-u=TOdh;#$@Ki|)ONIcs= z`o-9nKfI=u8oR8nY3YmdC+ElTDSo+b9+D%QLP1!_lJ)wg6%MNxd-=~E>`E7TZMXhx zpJh#7E>Q=`S1x%R2!vG{8=dv< zFMN53`d?@mfB_zWz!jR_E-7g$6lyd0P4~+pHRO!|)kuvx;%|3?-}7~sPxs-D4v(3| zk+A!HtqNy&f4!`T8xnNb482cVZ&V|2VIq3@$&cst8X2`X_%9_Ny`IoRENo34B4q>l zQaOWU&ITYcS_oC_fLS^?b_c7_uXr1)-m$ZWIjUzqn&tcds42h{7s@n=+U=ulEg`~b zzb)31K!)P4<_4PQ@xf=ek_fA*<*Z3)r3;;=j?k@*s-C$TSqfvacM2pzTW#~b+`mJm zQR--wtko~FA1tayHs<9aYz$+E7*&M_4q8gf%1~B`1!l2wEl|x;rrx#&0U990UWOp6 zZ6IQ3IAQz+OyH^)fM!p^v;u7%+2klQCC?rhRNVizz2ni>N?YIPG%ru=uCpW4CmsOt z2CPOyFVlEV^QG20vmWGzW_&XaYKBz8=<*(Y&o!Eg?7BYwoQ+D+MG-iU&*$NKqiJ!G z*^*ZQY^@Z5Fj7(hA%`o(;Ky+dj$`6qr91e+j9!e1{kx-`WlrCf@TmNG74k{%{fF&?!dAL8>QB_w}u z6^-(#6AaFGRIzfIw|H*SZN|bPJ4AmNO2tpuKTqBp;z%ZeO zWm*+&QYxd>ecVqpKBuJWbLf)ko_!tJ*DrZ{5=D;B@~%F7()~_zru?M~mza^yu#NAl zah#z@>3SKD#}L$JEuYUIR8_`d5k^^3DqTIC@v9<(OJr2k%R-3bwGJeJyux)lVs8g- z@nX#wj=ScStWO1g?<=JGJnlW+6zPT)_+5LF9f6uu2IbDa`_J}Xr+o!@>Z;z9$7-6N(U`$)Uo3e(5mu>Yv*<;r3Xy!n1m$=EOkT7F_TQUrAa}BG>52$-1V@=8ot?lzVRm5=Lmg7MCL{q=W zT_@gCVC>Zhu!E6J<-tJmshJSmVV+7AdE=l#xm6ECVFE89uRkg^#ENZ+%js9Hu4Xtp zMbMJn(g#0L`GB}|qW)G!c&6fM9G z(T5pUl<4Sulw)95p{%tFIrjAinpF|PY3>xkUBT^@RkfQOx~qeKxaJ(XKGPRi_%Cm( B>jMA) literal 0 HcmV?d00001 diff --git a/sources/lib/plugins/gallery/images/next.gif b/sources/lib/plugins/gallery/images/next.gif new file mode 100644 index 0000000000000000000000000000000000000000..6fca51c69d2b2db8597557b0c421e7c6d2d43efe GIT binary patch literal 93 zcmZ?wbhEHb6krfwIK;>xD=Yi%-Mceq&irR!IC$`2T3T9UWF$~T@h1zT2m?EV4g(N? v)G{zDRjj)BFY(|_iMh`&*?3-@oY*j-f-z&(q~4RemKba*$-Q63#9$2oUPmO) literal 0 HcmV?d00001 diff --git a/sources/lib/plugins/gallery/images/overlay.png b/sources/lib/plugins/gallery/images/overlay.png new file mode 100644 index 0000000000000000000000000000000000000000..72b76bb42216121f69ba583d67aca5dc8eebd4bd GIT binary patch literal 406 zcmeAS@N?(olHy`uVBq!ia0vp^4Is?H1|$#LC7uRSEX7WqAsj$Z!;#Vf4nJ za0`Jjzmvv4F FO#q+HS{MKT literal 0 HcmV?d00001 diff --git a/sources/lib/plugins/gallery/images/overlayie.png b/sources/lib/plugins/gallery/images/overlayie.png new file mode 100644 index 0000000000000000000000000000000000000000..43c0747e2554c5c6b1424c10aaf4cbfbe0760363 GIT binary patch literal 389 zcmeAS@N?(olHy`uVBq!ia0vp^4Is?H3?#oinD`S&%?a=caRt(hjEqc7Ow7#8EG#Un ztgLKoZ0zjp92^{+oSa--T-@B;JUl$Syu5sTeEj_U0s;bpf`URqLc+qrA|fK9qM~AA zV&dZB5)u-Ul9EzVQqt1WGBPr3JMB}ii%1~O3KR0Dk>_fs;X*gYU=9h z8X6j!nwnZ#TH4y$IyySKy1IILdiwhM1_lO(hK5E)M#jd*H+CJb1i7yy$S;_|;n|He z5GTpo-G!lpRn`N@;VkfoEM{Qf76xHPhFNnYfP(BLp1!W^*I494fQnW-oC69adAc}; zRNQ)dfsvPif#>jos$KQ@;zmu(ua2c2XkcV!2(poDRT-^N!aA)2jO9^@(pPgg&e IbxsLQ0D7@Wi2wiq literal 0 HcmV?d00001 diff --git a/sources/lib/plugins/gallery/images/prev.gif b/sources/lib/plugins/gallery/images/prev.gif new file mode 100644 index 0000000000000000000000000000000000000000..6901f617edba5aa075530ca51fd358483d07b86d GIT binary patch literal 94 zcmZ?wbhEHb6krfwIK;>xD=Yi%-Mceq&irR!IC$`2T3T9UWF$~T@h1zT2m?EV4g(N? v)G{zDOYD;QzTT7dc~6*J@h1zb2m=#?4u}JiXJA^;Qorc5E{Ed`6NdKb zYcAiIkvj27Y?ox4hUdI6t$pXe=NYXD6!#8)arnngt39&EQ#h3RjayD%KUG9n8LQB1(4Y^Dn#p_MPv(=Vi%P{rKv)@-R1xj%jQjX%d@{ z-k71_A#!4KTfk@5?;Bh~r&I_nVRcPDVw#>D^61lIjo>AX+k?28q%K~b!Sv%`x^)l( GgEau9oLG?n literal 0 HcmV?d00001 diff --git a/sources/lib/plugins/gallery/jquery.prettyPhoto.js b/sources/lib/plugins/gallery/jquery.prettyPhoto.js new file mode 100644 index 0000000..d3f1765 --- /dev/null +++ b/sources/lib/plugins/gallery/jquery.prettyPhoto.js @@ -0,0 +1,916 @@ +/* ------------------------------------------------------------------------ + Class: prettyPhoto + Use: Lightbox clone for jQuery + Author: Stephane Caron (http://www.no-margin-for-errors.com) + Version: 3.1.4 +------------------------------------------------------------------------- */ +(function($) { + $.prettyPhoto = {version: '3.1.4'}; + + $.fn.prettyPhoto = function(pp_settings) { + pp_settings = jQuery.extend({ + hook: 'rel', /* the attribute tag to use for prettyPhoto hooks. default: 'rel'. For HTML5, use "data-rel" or similar. */ + animation_speed: 'fast', /* fast/slow/normal */ + ajaxcallback: function() {}, + slideshow: 5000, /* false OR interval time in ms */ + autoplay_slideshow: false, /* true/false */ + opacity: 0.80, /* Value between 0 and 1 */ + show_title: true, /* true/false */ + allow_resize: true, /* Resize the photos bigger than viewport. true/false */ + allow_expand: true, /* Allow the user to expand a resized image. true/false */ + default_width: 500, + default_height: 344, + description_src : 'title', /* which attribute contains the description to be used */ + counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */ + theme: 'pp_default', /* light_rounded / dark_rounded / light_square / dark_square / facebook */ + horizontal_padding: 20, /* The padding on each side of the picture */ + hideflash: false, /* Hides all the flash object on a page, set to TRUE if flash appears over prettyPhoto */ + wmode: 'opaque', /* Set the flash wmode attribute */ + autoplay: true, /* Automatically start videos: True/False */ + modal: false, /* If set to true, only the close button will close the window */ + deeplinking: true, /* Allow prettyPhoto to update the url to enable deeplinking. */ + overlay_gallery: true, /* If set to true, a gallery will overlay the fullscreen image on mouse over */ + overlay_gallery_max: 30, /* Maximum number of pictures in the overlay gallery */ + keyboard_shortcuts: true, /* Set to false if you open forms inside prettyPhoto */ + changepicturecallback: function(){}, /* Called everytime an item is shown/changed */ + callback: function(){}, /* Called when prettyPhoto is closed */ + ie6_fallback: true, + markup: '
\ +
 
\ +
\ +
\ +
\ +
\ +
\ +
\ +
\ +
\ +
\ +
\ +
\ + Expand \ +
\ + next \ + previous \ +
\ +
\ +
\ +
\ + Previous \ +

0/0

\ + Next \ +
\ +

\ +
{pp_social}
\ + Close \ +
\ +
\ +
\ +
\ +
\ +
\ +
\ +
\ +
\ +
\ +
\ +
\ +
', + gallery_markup: '', + image_markup: '', + flash_markup: '', + quicktime_markup: '', + iframe_markup: '', + inline_markup: '
{content}
', + custom_markup: '', + social_tools: false /* html or false to disable, suggested markup: */ + }, pp_settings); + + // Global variables accessible only by prettyPhoto + var matchedObjects = this, percentBased = false, pp_dimensions, pp_open, + + // prettyPhoto container specific + pp_contentHeight, pp_contentWidth, pp_containerHeight, pp_containerWidth, + + // Window size + windowHeight = $(window).height(), windowWidth = $(window).width(), + + // Global elements + pp_slideshow, + + doresize = true, scroll_pos = _get_scroll(); + + // Window/Keyboard events + $(window).unbind('resize.prettyphoto').bind('resize.prettyphoto',function(){ _center_overlay(); _resize_overlay(); }); + + if(pp_settings.keyboard_shortcuts) { + $(document).unbind('keydown.prettyphoto').bind('keydown.prettyphoto',function(e){ + if(typeof $pp_pic_holder != 'undefined'){ + if($pp_pic_holder.is(':visible')){ + switch(e.keyCode){ + case 37: + $.prettyPhoto.changePage('previous'); + e.preventDefault(); + break; + case 39: + $.prettyPhoto.changePage('next'); + e.preventDefault(); + break; + case 27: + if(!settings.modal) + $.prettyPhoto.close(); + e.preventDefault(); + break; + } + // return false; + } + } + }); + } + + /** + * Initialize prettyPhoto. + */ + $.prettyPhoto.initialize = function() { + + settings = pp_settings; + + if(settings.theme == 'pp_default') settings.horizontal_padding = 16; + if(settings.ie6_fallback && $.browser.msie && parseInt($.browser.version, 10) == 6) settings.theme = "light_square"; // Fallback to a supported theme for IE6 + + // Find out if the picture is part of a set + theRel = $(this).attr(settings.hook); + galleryRegExp = /\[(?:.*)\]/; + isSet = (galleryRegExp.exec(theRel)) ? true : false; + + // Put the SRCs, TITLEs, ALTs into an array. + pp_images = (isSet) ? jQuery.map(matchedObjects, function(n, i){ if($(n).attr(settings.hook).indexOf(theRel) != -1) return $(n).attr('href'); }) : $.makeArray($(this).attr('href')); + pp_titles = (isSet) ? jQuery.map(matchedObjects, function(n, i){ if($(n).attr(settings.hook).indexOf(theRel) != -1) return ($(n).find('img').attr('alt')) ? $(n).find('img').attr('alt') : ""; }) : $.makeArray($(this).find('img').attr('alt')); + pp_descriptions = (isSet) ? jQuery.map(matchedObjects, function(n, i){ if($(n).attr(settings.hook).indexOf(theRel) != -1) return ($(n).find('img').attr(settings.description_src)) ? $(n).find('img').attr(settings.description_src) : ""; }) : $.makeArray($(this).find('img').attr(settings.description_src)); + + if(pp_images.length > settings.overlay_gallery_max) settings.overlay_gallery = false; + + set_position = jQuery.inArray($(this).attr('href'), pp_images); // Define where in the array the clicked item is positionned + rel_index = (isSet) ? set_position : $("a["+settings.hook+"^='"+theRel+"']").index($(this)); + + _build_overlay(this); // Build the overlay {this} being the caller + + if(settings.allow_resize) + $(window).bind('scroll.prettyphoto',function(){ _center_overlay(); }); + + + $.prettyPhoto.open(); + + return false; + }; + + + /** + * Opens the prettyPhoto modal box. + * @param image {String,Array} Full path to the image to be open, can also be an array containing full images paths. + * @param title {String,Array} The title to be displayed with the picture, can also be an array containing all the titles. + * @param description {String,Array} The description to be displayed with the picture, can also be an array containing all the descriptions. + */ + $.prettyPhoto.open = function(event) { + if(typeof settings == "undefined"){ // Means it's an API call, need to manually get the settings and set the variables + settings = pp_settings; + if($.browser.msie && $.browser.version == 6) settings.theme = "light_square"; // Fallback to a supported theme for IE6 + pp_images = $.makeArray(arguments[0]); + pp_titles = (arguments[1]) ? $.makeArray(arguments[1]) : $.makeArray(""); + pp_descriptions = (arguments[2]) ? $.makeArray(arguments[2]) : $.makeArray(""); + isSet = (pp_images.length > 1) ? true : false; + set_position = (arguments[3])? arguments[3]: 0; + _build_overlay(event.target); // Build the overlay {this} being the caller + } + + if($.browser.msie && $.browser.version == 6) $('select').css('visibility','hidden'); // To fix the bug with IE select boxes + + if(settings.hideflash) $('object,embed,iframe[src*=youtube],iframe[src*=vimeo]').css('visibility','hidden'); // Hide the flash + + _checkPosition($(pp_images).size()); // Hide the next/previous links if on first or last images. + + $('.pp_loaderIcon').show(); + + if(settings.deeplinking) + setHashtag(); + + // Rebuild Facebook Like Button with updated href + if(settings.social_tools){ + facebook_like_link = settings.social_tools.replace(/{location_href}/g, encodeURIComponent(location.href)); + $pp_pic_holder.find('.pp_social').html(facebook_like_link); + } + + // Fade the content in + if($ppt.is(':hidden')) $ppt.css('opacity',0).show(); + $pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity); + + // Display the current position + $pp_pic_holder.find('.currentTextHolder').text((set_position+1) + settings.counter_separator_label + $(pp_images).size()); + + // Set the description + if(typeof pp_descriptions[set_position] != 'undefined' && pp_descriptions[set_position] != ""){ + $pp_pic_holder.find('.pp_description').show().html(unescape(pp_descriptions[set_position])); + }else{ + $pp_pic_holder.find('.pp_description').hide(); + } + + // Get the dimensions + movie_width = ( parseFloat(getParam('width',pp_images[set_position])) ) ? getParam('width',pp_images[set_position]) : settings.default_width.toString(); + movie_height = ( parseFloat(getParam('height',pp_images[set_position])) ) ? getParam('height',pp_images[set_position]) : settings.default_height.toString(); + + // If the size is % based, calculate according to window dimensions + percentBased=false; + if(movie_height.indexOf('%') != -1) { movie_height = parseFloat(($(window).height() * parseFloat(movie_height) / 100) - 150); percentBased = true; } + if(movie_width.indexOf('%') != -1) { movie_width = parseFloat(($(window).width() * parseFloat(movie_width) / 100) - 150); percentBased = true; } + + // Fade the holder + $pp_pic_holder.fadeIn(function(){ + // Set the title + (settings.show_title && pp_titles[set_position] != "" && typeof pp_titles[set_position] != "undefined") ? $ppt.html(unescape(pp_titles[set_position])) : $ppt.html(' '); + + imgPreloader = ""; + skipInjection = false; + + // Inject the proper content + switch(_getFileType(pp_images[set_position])){ + case 'image': + imgPreloader = new Image(); + + // Preload the neighbour images + nextImage = new Image(); + if(isSet && set_position < $(pp_images).size() -1) nextImage.src = pp_images[set_position + 1]; + prevImage = new Image(); + if(isSet && pp_images[set_position - 1]) prevImage.src = pp_images[set_position - 1]; + + $pp_pic_holder.find('#pp_full_res')[0].innerHTML = settings.image_markup.replace(/\{path\}/g,pp_images[set_position]); + + imgPreloader.onload = function(){ + // Fit item to viewport + pp_dimensions = _fitToViewport(imgPreloader.width,imgPreloader.height); + + _showContent(); + }; + + imgPreloader.onerror = function(){ + alert('Image cannot be loaded. Make sure the path is correct and image exist.'); + $.prettyPhoto.close(); + }; + + imgPreloader.src = pp_images[set_position]; + break; + + case 'youtube': + pp_dimensions = _fitToViewport(movie_width,movie_height); // Fit item to viewport + + // Regular youtube link + movie_id = getParam('v',pp_images[set_position]); + + // youtu.be link + if(movie_id == ""){ + movie_id = pp_images[set_position].split('youtu.be/'); + movie_id = movie_id[1]; + if(movie_id.indexOf('?') > 0) + movie_id = movie_id.substr(0,movie_id.indexOf('?')); // Strip anything after the ? + + if(movie_id.indexOf('&') > 0) + movie_id = movie_id.substr(0,movie_id.indexOf('&')); // Strip anything after the & + } + + movie = 'http://www.youtube.com/embed/'+movie_id; + (getParam('rel',pp_images[set_position])) ? movie+="?rel="+getParam('rel',pp_images[set_position]) : movie+="?rel=1"; + + if(settings.autoplay) movie += "&autoplay=1"; + + toInject = settings.iframe_markup.replace(/\{width\}/g,pp_dimensions['width']).replace(/\{height\}/g,pp_dimensions['height']).replace(/\{wmode\}/g,settings.wmode).replace(/\{path\}/g,movie); + break; + + case 'vimeo': + pp_dimensions = _fitToViewport(movie_width,movie_height); // Fit item to viewport + + movie_id = pp_images[set_position]; + var regExp = /http:\/\/(www\.)?vimeo.com\/(\d+)/; + var match = movie_id.match(regExp); + + movie = 'http://player.vimeo.com/video/'+ match[2] +'?title=0&byline=0&portrait=0'; + if(settings.autoplay) movie += "&autoplay=1;"; + + vimeo_width = pp_dimensions['width'] + '/embed/?moog_width='+ pp_dimensions['width']; + + toInject = settings.iframe_markup.replace(/\{width\}/g,vimeo_width).replace(/\{height\}/g,pp_dimensions['height']).replace(/\{path\}/g,movie); + break; + + case 'quicktime': + pp_dimensions = _fitToViewport(movie_width,movie_height); // Fit item to viewport + pp_dimensions['height']+=15; pp_dimensions['contentHeight']+=15; pp_dimensions['containerHeight']+=15; // Add space for the control bar + + toInject = settings.quicktime_markup.replace(/\{width\}/g,pp_dimensions['width']).replace(/\{height\}/g,pp_dimensions['height']).replace(/\{wmode\}/g,settings.wmode).replace(/\{path\}/g,pp_images[set_position]).replace(/\{autoplay\}/g,settings.autoplay); + break; + + case 'flash': + pp_dimensions = _fitToViewport(movie_width,movie_height); // Fit item to viewport + + flash_vars = pp_images[set_position]; + flash_vars = flash_vars.substring(pp_images[set_position].indexOf('flashvars') + 10,pp_images[set_position].length); + + filename = pp_images[set_position]; + filename = filename.substring(0,filename.indexOf('?')); + + toInject = settings.flash_markup.replace(/\{width\}/g,pp_dimensions['width']).replace(/\{height\}/g,pp_dimensions['height']).replace(/\{wmode\}/g,settings.wmode).replace(/\{path\}/g,filename+'?'+flash_vars); + break; + + case 'iframe': + pp_dimensions = _fitToViewport(movie_width,movie_height); // Fit item to viewport + + frame_url = pp_images[set_position]; + frame_url = frame_url.substr(0,frame_url.indexOf('iframe')-1); + + toInject = settings.iframe_markup.replace(/\{width\}/g,pp_dimensions['width']).replace(/\{height\}/g,pp_dimensions['height']).replace(/\{path\}/g,frame_url); + break; + + case 'ajax': + doresize = false; // Make sure the dimensions are not resized. + pp_dimensions = _fitToViewport(movie_width,movie_height); + doresize = true; // Reset the dimensions + + skipInjection = true; + $.get(pp_images[set_position],function(responseHTML){ + toInject = settings.inline_markup.replace(/\{content\}/g,responseHTML); + $pp_pic_holder.find('#pp_full_res')[0].innerHTML = toInject; + _showContent(); + }); + + break; + + case 'custom': + pp_dimensions = _fitToViewport(movie_width,movie_height); // Fit item to viewport + + toInject = settings.custom_markup; + break; + + case 'inline': + // to get the item height clone it, apply default width, wrap it in the prettyPhoto containers , then delete + myClone = $(pp_images[set_position]).clone().append('
').css({'width':settings.default_width}).wrapInner('
').appendTo($('body')).show(); + doresize = false; // Make sure the dimensions are not resized. + pp_dimensions = _fitToViewport($(myClone).width(),$(myClone).height()); + doresize = true; // Reset the dimensions + $(myClone).remove(); + toInject = settings.inline_markup.replace(/\{content\}/g,$(pp_images[set_position]).html()); + break; + } + + if(!imgPreloader && !skipInjection){ + $pp_pic_holder.find('#pp_full_res')[0].innerHTML = toInject; + + // Show content + _showContent(); + } + }); + + return false; + }; + + + /** + * Change page in the prettyPhoto modal box + * @param direction {String} Direction of the paging, previous or next. + */ + $.prettyPhoto.changePage = function(direction){ + currentGalleryPage = 0; + + if(direction == 'previous') { + set_position--; + if (set_position < 0) set_position = $(pp_images).size()-1; + }else if(direction == 'next'){ + set_position++; + if(set_position > $(pp_images).size()-1) set_position = 0; + }else{ + set_position=direction; + } + + rel_index = set_position; + + if(!doresize) doresize = true; // Allow the resizing of the images + if(settings.allow_expand) { + $('.pp_contract').removeClass('pp_contract').addClass('pp_expand'); + } + + _hideContent(function(){ $.prettyPhoto.open(); }); + }; + + + /** + * Change gallery page in the prettyPhoto modal box + * @param direction {String} Direction of the paging, previous or next. + */ + $.prettyPhoto.changeGalleryPage = function(direction){ + if(direction=='next'){ + currentGalleryPage ++; + + if(currentGalleryPage > totalPage) currentGalleryPage = 0; + }else if(direction=='previous'){ + currentGalleryPage --; + + if(currentGalleryPage < 0) currentGalleryPage = totalPage; + }else{ + currentGalleryPage = direction; + } + + slide_speed = (direction == 'next' || direction == 'previous') ? settings.animation_speed : 0; + + slide_to = currentGalleryPage * (itemsPerPage * itemWidth); + + $pp_gallery.find('ul').animate({left:-slide_to},slide_speed); + }; + + + /** + * Start the slideshow... + */ + $.prettyPhoto.startSlideshow = function(){ + if(typeof pp_slideshow == 'undefined'){ + $pp_pic_holder.find('.pp_play').unbind('click').removeClass('pp_play').addClass('pp_pause').click(function(){ + $.prettyPhoto.stopSlideshow(); + return false; + }); + pp_slideshow = setInterval($.prettyPhoto.startSlideshow,settings.slideshow); + }else{ + $.prettyPhoto.changePage('next'); + } + }; + + + /** + * Stop the slideshow... + */ + $.prettyPhoto.stopSlideshow = function(){ + $pp_pic_holder.find('.pp_pause').unbind('click').removeClass('pp_pause').addClass('pp_play').click(function(){ + $.prettyPhoto.startSlideshow(); + return false; + }); + clearInterval(pp_slideshow); + pp_slideshow=undefined; + }; + + + /** + * Closes prettyPhoto. + */ + $.prettyPhoto.close = function(){ + if($pp_overlay.is(":animated")) return; + + $.prettyPhoto.stopSlideshow(); + + $pp_pic_holder.stop().find('object,embed').css('visibility','hidden'); + + $('div.pp_pic_holder,div.ppt,.pp_fade').fadeOut(settings.animation_speed,function(){ $(this).remove(); }); + + $pp_overlay.fadeOut(settings.animation_speed, function(){ + if($.browser.msie && $.browser.version == 6) $('select').css('visibility','visible'); // To fix the bug with IE select boxes + + if(settings.hideflash) $('object,embed,iframe[src*=youtube],iframe[src*=vimeo]').css('visibility','visible'); // Show the flash + + $(this).remove(); // No more need for the prettyPhoto markup + + $(window).unbind('scroll.prettyphoto'); + + clearHashtag(); + + settings.callback(); + + doresize = true; + + pp_open = false; + + delete settings; + }); + }; + + /** + * Set the proper sizes on the containers and animate the content in. + */ + function _showContent(){ + $('.pp_loaderIcon').hide(); + + // Calculate the opened top position of the pic holder + projectedTop = scroll_pos['scrollTop'] + ((windowHeight/2) - (pp_dimensions['containerHeight']/2)); + if(projectedTop < 0) projectedTop = 0; + + $ppt.fadeTo(settings.animation_speed,1); + + // Resize the content holder + $pp_pic_holder.find('.pp_content') + .animate({ + height:pp_dimensions['contentHeight'], + width:pp_dimensions['contentWidth'] + },settings.animation_speed); + + // Resize picture the holder + $pp_pic_holder.animate({ + 'top': projectedTop, + 'left': ((windowWidth/2) - (pp_dimensions['containerWidth']/2) < 0) ? 0 : (windowWidth/2) - (pp_dimensions['containerWidth']/2), + width:pp_dimensions['containerWidth'] + },settings.animation_speed,function(){ + $pp_pic_holder.find('.pp_hoverContainer,#fullResImage').height(pp_dimensions['height']).width(pp_dimensions['width']); + + $pp_pic_holder.find('.pp_fade').fadeIn(settings.animation_speed); // Fade the new content + + // Show the nav + if(isSet && _getFileType(pp_images[set_position])=="image") { $pp_pic_holder.find('.pp_hoverContainer').show(); }else{ $pp_pic_holder.find('.pp_hoverContainer').hide(); } + + if(settings.allow_expand) { + if(pp_dimensions['resized']){ // Fade the resizing link if the image is resized + $('a.pp_expand,a.pp_contract').show(); + }else{ + $('a.pp_expand').hide(); + } + } + + if(settings.autoplay_slideshow && !pp_slideshow && !pp_open) $.prettyPhoto.startSlideshow(); + + settings.changepicturecallback(); // Callback! + + pp_open = true; + }); + + _insert_gallery(); + pp_settings.ajaxcallback(); + } + + /** + * Hide the content...DUH! + */ + function _hideContent(callback){ + // Fade out the current picture + $pp_pic_holder.find('#pp_full_res object,#pp_full_res embed').css('visibility','hidden'); + $pp_pic_holder.find('.pp_fade').fadeOut(settings.animation_speed,function(){ + $('.pp_loaderIcon').show(); + + callback(); + }); + } + + /** + * Check the item position in the gallery array, hide or show the navigation links + * @param setCount {integer} The total number of items in the set + */ + function _checkPosition(setCount){ + (setCount > 1) ? $('.pp_nav').show() : $('.pp_nav').hide(); // Hide the bottom nav if it's not a set. + } + + /** + * Resize the item dimensions if it's bigger than the viewport + * @param width {integer} Width of the item to be opened + * @param height {integer} Height of the item to be opened + * @return An array containin the "fitted" dimensions + */ + function _fitToViewport(width,height){ + resized = false; + + _getDimensions(width,height); + + // Define them in case there's no resize needed + imageWidth = width, imageHeight = height; + + if( ((pp_containerWidth > windowWidth) || (pp_containerHeight > windowHeight)) && doresize && settings.allow_resize && !percentBased) { + resized = true, fitting = false; + + while (!fitting){ + if((pp_containerWidth > windowWidth)){ + imageWidth = (windowWidth - 200); + imageHeight = (height/width) * imageWidth; + }else if((pp_containerHeight > windowHeight)){ + imageHeight = (windowHeight - 200); + imageWidth = (width/height) * imageHeight; + }else{ + fitting = true; + } + + pp_containerHeight = imageHeight, pp_containerWidth = imageWidth; + } + + if((pp_containerWidth > windowWidth) || (pp_containerHeight > windowHeight)){ + _fitToViewport(pp_containerWidth,pp_containerHeight) + }; + + _getDimensions(imageWidth,imageHeight); + }; + + return { + width:Math.floor(imageWidth), + height:Math.floor(imageHeight), + containerHeight:Math.floor(pp_containerHeight), + containerWidth:Math.floor(pp_containerWidth) + (settings.horizontal_padding * 2), + contentHeight:Math.floor(pp_contentHeight), + contentWidth:Math.floor(pp_contentWidth), + resized:resized + }; + } + + /** + * Get the containers dimensions according to the item size + * @param width {integer} Width of the item to be opened + * @param height {integer} Height of the item to be opened + */ + function _getDimensions(width,height){ + width = parseFloat(width); + height = parseFloat(height); + + // Get the details height, to do so, I need to clone it since it's invisible + $pp_details = $pp_pic_holder.find('.pp_details'); + $pp_details.width(width); + detailsHeight = parseFloat($pp_details.css('marginTop')) + parseFloat($pp_details.css('marginBottom')); + + $pp_details = $pp_details.clone().addClass(settings.theme).width(width).appendTo($('body')).css({ + 'position':'absolute', + 'top':-10000 + }); + detailsHeight += $pp_details.height(); + detailsHeight = (detailsHeight <= 34) ? 36 : detailsHeight; // Min-height for the details + if($.browser.msie && $.browser.version==7) detailsHeight+=8; + $pp_details.remove(); + + // Get the titles height, to do so, I need to clone it since it's invisible + $pp_title = $pp_pic_holder.find('.ppt'); + $pp_title.width(width); + titleHeight = parseFloat($pp_title.css('marginTop')) + parseFloat($pp_title.css('marginBottom')); + $pp_title = $pp_title.clone().appendTo($('body')).css({ + 'position':'absolute', + 'top':-10000 + }); + titleHeight += $pp_title.height(); + $pp_title.remove(); + + // Get the container size, to resize the holder to the right dimensions + pp_contentHeight = height + detailsHeight; + pp_contentWidth = width; + pp_containerHeight = pp_contentHeight + titleHeight + $pp_pic_holder.find('.pp_top').height() + $pp_pic_holder.find('.pp_bottom').height(); + pp_containerWidth = width; + } + + function _getFileType(itemSrc){ + if (itemSrc.match(/youtube\.com\/watch/i) || itemSrc.match(/youtu\.be/i)) { + return 'youtube'; + }else if (itemSrc.match(/vimeo\.com/i)) { + return 'vimeo'; + }else if(itemSrc.match(/\b.mov\b/i)){ + return 'quicktime'; + }else if(itemSrc.match(/\b.swf\b/i)){ + return 'flash'; + }else if(itemSrc.match(/\biframe=true\b/i)){ + return 'iframe'; + }else if(itemSrc.match(/\bajax=true\b/i)){ + return 'ajax'; + }else if(itemSrc.match(/\bcustom=true\b/i)){ + return 'custom'; + }else if(itemSrc.substr(0,1) == '#'){ + return 'inline'; + }else{ + return 'image'; + } + } + + function _center_overlay(){ + if(doresize && typeof $pp_pic_holder != 'undefined') { + scroll_pos = _get_scroll(); + contentHeight = $pp_pic_holder.height(), contentwidth = $pp_pic_holder.width(); + + projectedTop = (windowHeight/2) + scroll_pos['scrollTop'] - (contentHeight/2); + if(projectedTop < 0) projectedTop = 0; + + if(contentHeight > windowHeight) + return; + + $pp_pic_holder.css({ + 'top': projectedTop, + 'left': (windowWidth/2) + scroll_pos['scrollLeft'] - (contentwidth/2) + }); + } + } + + function _get_scroll(){ + if (self.pageYOffset) { + return {scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset}; + } else if (document.documentElement && document.documentElement.scrollTop) { // Explorer 6 Strict + return {scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft}; + } else if (document.body) {// all other Explorers + return {scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft}; + } + } + + function _resize_overlay() { + windowHeight = $(window).height(), windowWidth = $(window).width(); + + if(typeof $pp_overlay != "undefined") $pp_overlay.height($(document).height()).width(windowWidth); + } + + function _insert_gallery(){ + if(isSet && settings.overlay_gallery && _getFileType(pp_images[set_position])=="image" && (settings.ie6_fallback && !($.browser.msie && parseInt($.browser.version,10) == 6))) { + itemWidth = 52+5; // 52 beign the thumb width, 5 being the right margin. + navWidth = (settings.theme == "facebook" || settings.theme == "pp_default") ? 50 : 30; // Define the arrow width depending on the theme + + itemsPerPage = Math.floor((pp_dimensions['containerWidth'] - 100 - navWidth) / itemWidth); + itemsPerPage = (itemsPerPage < pp_images.length) ? itemsPerPage : pp_images.length; + totalPage = Math.ceil(pp_images.length / itemsPerPage) - 1; + + // Hide the nav in the case there's no need for links + if(totalPage == 0){ + navWidth = 0; // No nav means no width! + $pp_gallery.find('.pp_arrow_next,.pp_arrow_previous').hide(); + }else{ + $pp_gallery.find('.pp_arrow_next,.pp_arrow_previous').show(); + } + + galleryWidth = itemsPerPage * itemWidth; + fullGalleryWidth = pp_images.length * itemWidth; + + // Set the proper width to the gallery items + $pp_gallery + .css('margin-left',-((galleryWidth/2) + (navWidth/2))) + .find('div:first').width(galleryWidth+5) + .find('ul').width(fullGalleryWidth) + .find('li.selected').removeClass('selected'); + + goToPage = (Math.floor(set_position/itemsPerPage) < totalPage) ? Math.floor(set_position/itemsPerPage) : totalPage; + + $.prettyPhoto.changeGalleryPage(goToPage); + + $pp_gallery_li.filter(':eq('+set_position+')').addClass('selected'); + }else{ + $pp_pic_holder.find('.pp_content').unbind('mouseenter mouseleave'); + // $pp_gallery.hide(); + } + } + + function _build_overlay(caller){ + // Inject Social Tool markup into General markup + if(settings.social_tools) + facebook_like_link = settings.social_tools.replace(/{location_href}/g, encodeURIComponent(location.href)); + + settings.markup = settings.markup.replace('{pp_social}',''); + + $('body').append(settings.markup); // Inject the markup + + $pp_pic_holder = $('.pp_pic_holder') , $ppt = $('.ppt'), $pp_overlay = $('div.pp_overlay'); // Set my global selectors + + // Inject the inline gallery! + if(isSet && settings.overlay_gallery) { + currentGalleryPage = 0; + toInject = ""; + for (var i=0; i < pp_images.length; i++) { + if(!pp_images[i].match(/\b(jpg|jpeg|png|gif)\b/gi)){ + classname = 'default'; + img_src = ''; + }else{ + classname = ''; + img_src = pp_images[i]; + } + toInject += "
  • "; + } + + toInject = settings.gallery_markup.replace(/\{gallery\}/g,toInject); + + $pp_pic_holder.find('#pp_full_res').after(toInject); + + $pp_gallery = $('.pp_pic_holder .pp_gallery'), $pp_gallery_li = $pp_gallery.find('li'); // Set the gallery selectors + + $pp_gallery.find('.pp_arrow_next').click(function(){ + $.prettyPhoto.changeGalleryPage('next'); + $.prettyPhoto.stopSlideshow(); + return false; + }); + + $pp_gallery.find('.pp_arrow_previous').click(function(){ + $.prettyPhoto.changeGalleryPage('previous'); + $.prettyPhoto.stopSlideshow(); + return false; + }); + + $pp_pic_holder.find('.pp_content').hover( + function(){ + $pp_pic_holder.find('.pp_gallery:not(.disabled)').fadeIn(); + }, + function(){ + $pp_pic_holder.find('.pp_gallery:not(.disabled)').fadeOut(); + }); + + itemWidth = 52+5; // 52 beign the thumb width, 5 being the right margin. + $pp_gallery_li.each(function(i){ + $(this) + .find('a') + .click(function(){ + $.prettyPhoto.changePage(i); + $.prettyPhoto.stopSlideshow(); + return false; + }); + }); + } + + + // Inject the play/pause if it's a slideshow + if(settings.slideshow){ + $pp_pic_holder.find('.pp_nav').prepend('Play'); + $pp_pic_holder.find('.pp_nav .pp_play').click(function(){ + $.prettyPhoto.startSlideshow(); + return false; + }); + } + + $pp_pic_holder.attr('class','pp_pic_holder ' + settings.theme); // Set the proper theme + + $pp_overlay + .css({ + 'opacity':0, + 'height':$(document).height(), + 'width':$(window).width() + }) + .bind('click',function(){ + if(!settings.modal) $.prettyPhoto.close(); + }); + + $('a.pp_close').bind('click',function(){ $.prettyPhoto.close(); return false; }); + + + if(settings.allow_expand) { + $('a.pp_expand').bind('click',function(e){ + // Expand the image + if($(this).hasClass('pp_expand')){ + $(this).removeClass('pp_expand').addClass('pp_contract'); + doresize = false; + }else{ + $(this).removeClass('pp_contract').addClass('pp_expand'); + doresize = true; + } + + _hideContent(function(){ $.prettyPhoto.open(); }); + + return false; + }); + } + + $pp_pic_holder.find('.pp_previous, .pp_nav .pp_arrow_previous').bind('click',function(){ + $.prettyPhoto.changePage('previous'); + $.prettyPhoto.stopSlideshow(); + return false; + }); + + $pp_pic_holder.find('.pp_next, .pp_nav .pp_arrow_next').bind('click',function(){ + $.prettyPhoto.changePage('next'); + $.prettyPhoto.stopSlideshow(); + return false; + }); + + _center_overlay(); // Center it + } + + if(!pp_alreadyInitialized && getHashtag()){ + pp_alreadyInitialized = true; + + // Grab the rel index to trigger the click on the correct element + hashIndex = getHashtag(); + hashRel = hashIndex; + hashIndex = hashIndex.substring(hashIndex.indexOf('/')+1,hashIndex.length-1); + hashRel = hashRel.substring(0,hashRel.indexOf('/')); + + // Little timeout to make sure all the prettyPhoto initialize scripts has been run. + // Useful in the event the page contain several init scripts. + setTimeout(function(){ $("a["+pp_settings.hook+"^='"+hashRel+"']:eq("+hashIndex+")").trigger('click'); },50); + } + + return this.unbind('click.prettyphoto').bind('click.prettyphoto',$.prettyPhoto.initialize); // Return the jQuery object for chaining. The unbind method is used to avoid click conflict when the plugin is called more than once + }; + + function getHashtag(){ + var url = location.href; + hashtag = (url.indexOf('#prettyPhoto') !== -1) ? decodeURI(url.substring(url.indexOf('#prettyPhoto')+1,url.length)) : false; + + return hashtag; + } + + function setHashtag(){ + if(typeof theRel == 'undefined') return; // theRel is set on normal calls, it's impossible to deeplink using the API + location.hash = theRel + '/'+rel_index+'/'; + } + + function clearHashtag(){ + if ( location.href.indexOf('#prettyPhoto') !== -1 ) location.hash = "prettyPhoto"; + } + + function getParam(name,url){ + name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); + var regexS = "[\\?&]"+name+"=([^&#]*)"; + var regex = new RegExp( regexS ); + var results = regex.exec( url ); + return ( results == null ) ? "" : results[1]; + } + +})(jQuery); + +var pp_alreadyInitialized = false; // Used for the deep linking to make sure not to call the same function several times. diff --git a/sources/lib/plugins/gallery/lang/ca/lang.php b/sources/lib/plugins/gallery/lang/ca/lang.php new file mode 100644 index 0000000..2e42315 --- /dev/null +++ b/sources/lib/plugins/gallery/lang/ca/lang.php @@ -0,0 +1,9 @@ + + */ +$lang['pages'] = 'Pàgines de la galeria'; +$lang['js']['addgal'] = 'Afegeix un espai com a galeria'; diff --git a/sources/lib/plugins/gallery/lang/ca/settings.php b/sources/lib/plugins/gallery/lang/ca/settings.php new file mode 100644 index 0000000..4b93619 --- /dev/null +++ b/sources/lib/plugins/gallery/lang/ca/settings.php @@ -0,0 +1,18 @@ + + */ +$lang['thumbnail_width'] = 'Amplada de la miniatura'; +$lang['thumbnail_height'] = 'Alçada de la miniatura'; +$lang['image_width'] = 'Amplada de la imatge'; +$lang['image_height'] = 'Alçada de la imatge'; +$lang['cols'] = 'Imatges per fila'; +$lang['sort'] = 'Com ordenar les imatges'; +$lang['sort_o_file'] = 'Ordenar per nom de l\'arxiu'; +$lang['sort_o_mod'] = 'Ordenar per data de l\'arxiu'; +$lang['sort_o_date'] = 'Ordenar per la data de l\'EXIF'; +$lang['sort_o_title'] = 'Ordenar pel títol de l\'EXIF'; +$lang['options'] = 'Opcions predeterminades de galeria adicionals'; diff --git a/sources/lib/plugins/gallery/lang/cs/settings.php b/sources/lib/plugins/gallery/lang/cs/settings.php new file mode 100644 index 0000000..a48795f --- /dev/null +++ b/sources/lib/plugins/gallery/lang/cs/settings.php @@ -0,0 +1,12 @@ + + */ + +$lang['thumbnail_width'] = 'Šířka náhledu'; +$lang['thumbnail_height'] = 'Výška náhledu'; +$lang['image_width'] = 'Šířka obrázku'; +$lang['image_height'] = 'Výška obrázku'; +$lang['cols'] = 'Obrázků na řádku'; diff --git a/sources/lib/plugins/gallery/lang/da/lang.php b/sources/lib/plugins/gallery/lang/da/lang.php new file mode 100644 index 0000000..4d5ce88 --- /dev/null +++ b/sources/lib/plugins/gallery/lang/da/lang.php @@ -0,0 +1,9 @@ + + */ +$lang['pages'] = 'Gallerisider:'; +$lang['js']['addgal'] = 'Tilføj navnerum som galleri'; diff --git a/sources/lib/plugins/gallery/lang/da/settings.php b/sources/lib/plugins/gallery/lang/da/settings.php new file mode 100644 index 0000000..9ca4ec6 --- /dev/null +++ b/sources/lib/plugins/gallery/lang/da/settings.php @@ -0,0 +1,18 @@ + + */ +$lang['thumbnail_width'] = 'Miniaturebillede bredde'; +$lang['thumbnail_height'] = 'Miniaturebillede højde'; +$lang['image_width'] = 'Billede bredde'; +$lang['image_height'] = 'Billede højde'; +$lang['cols'] = 'Billeder per række'; +$lang['sort'] = 'Sortér galleribilleder efter'; +$lang['sort_o_file'] = 'sortér efter filnavn'; +$lang['sort_o_mod'] = 'sortér efter fildato'; +$lang['sort_o_date'] = 'sortér efter EXIF dato'; +$lang['sort_o_title'] = 'sortér efter EXIF titel'; +$lang['options'] = 'Yderligere galleri-standardindstillinger'; diff --git a/sources/lib/plugins/gallery/lang/de/lang.php b/sources/lib/plugins/gallery/lang/de/lang.php new file mode 100644 index 0000000..8cb07dd --- /dev/null +++ b/sources/lib/plugins/gallery/lang/de/lang.php @@ -0,0 +1,9 @@ + + */ +$lang['pages'] = 'Gallerie-Seiten:'; +$lang['js']['addgal'] = 'Namensraum als Gallerie hinzufügen'; diff --git a/sources/lib/plugins/gallery/lang/de/settings.php b/sources/lib/plugins/gallery/lang/de/settings.php new file mode 100644 index 0000000..bb8ffc0 --- /dev/null +++ b/sources/lib/plugins/gallery/lang/de/settings.php @@ -0,0 +1,18 @@ + + */ +$lang['thumbnail_width'] = 'Vorschaubildbreite'; +$lang['thumbnail_height'] = 'Vorschaubildhöhe'; +$lang['image_width'] = 'Bildbreite'; +$lang['image_height'] = 'Bildhöhe'; +$lang['cols'] = 'Bilder pro Zeile'; +$lang['sort'] = 'Sortierung der Galleriebilder'; +$lang['sort_o_file'] = 'nach Dateiname sortieren'; +$lang['sort_o_mod'] = 'nach Dateidatum sortieren'; +$lang['sort_o_date'] = 'nach EXIF-Datum sortieren'; +$lang['sort_o_title'] = 'nach EXIF-Titel sortieren'; +$lang['options'] = 'Zusätzliche Gallerie Standard-Einstellungen'; diff --git a/sources/lib/plugins/gallery/lang/en/lang.php b/sources/lib/plugins/gallery/lang/en/lang.php new file mode 100644 index 0000000..85df9a3 --- /dev/null +++ b/sources/lib/plugins/gallery/lang/en/lang.php @@ -0,0 +1,4 @@ + + * @author Andreas Gohr + */ + +$lang['thumbnail_width'] = 'Thumbnail image width'; +$lang['thumbnail_height'] = 'Thumbnail image height'; +$lang['image_width'] = 'Image width'; +$lang['image_height'] = 'Image height'; +$lang['cols'] = 'Images per row'; + +$lang['sort'] = 'How to sort the gallery images'; +$lang['sort_o_file'] = 'sort by filename'; +$lang['sort_o_mod'] = 'sort by file date'; +$lang['sort_o_date'] = 'sort by EXIF date'; +$lang['sort_o_title'] = 'sort by EXIF title'; + +$lang['options'] = 'Additional gallery default options'; + diff --git a/sources/lib/plugins/gallery/lang/eo/lang.php b/sources/lib/plugins/gallery/lang/eo/lang.php new file mode 100644 index 0000000..7f648cf --- /dev/null +++ b/sources/lib/plugins/gallery/lang/eo/lang.php @@ -0,0 +1,9 @@ + + */ +$lang['pages'] = 'Galeripaĝoj:'; +$lang['js']['addgal'] = 'Aldoni nomspacon kiel galerio'; diff --git a/sources/lib/plugins/gallery/lang/eo/settings.php b/sources/lib/plugins/gallery/lang/eo/settings.php new file mode 100644 index 0000000..7d26c30 --- /dev/null +++ b/sources/lib/plugins/gallery/lang/eo/settings.php @@ -0,0 +1,18 @@ + + */ +$lang['thumbnail_width'] = 'Bildeta larĝeco'; +$lang['thumbnail_height'] = 'Bildeta alteco'; +$lang['image_width'] = 'Bildlarĝeco'; +$lang['image_height'] = 'Bildalteco'; +$lang['cols'] = 'Bildoj po vico'; +$lang['sort'] = 'Kiel ordigi la galeribildojn'; +$lang['sort_o_file'] = 'ordigi per dosier-nomo'; +$lang['sort_o_mod'] = 'ordigi per dosier-dato'; +$lang['sort_o_date'] = 'ordigi per EXIF-dato'; +$lang['sort_o_title'] = 'ordigi per EXIF-titolo'; +$lang['options'] = 'Aldonaj galeriaj standardaj opcioj'; diff --git a/sources/lib/plugins/gallery/lang/es/lang.php b/sources/lib/plugins/gallery/lang/es/lang.php new file mode 100644 index 0000000..59e1649 --- /dev/null +++ b/sources/lib/plugins/gallery/lang/es/lang.php @@ -0,0 +1,8 @@ + + */ +$lang['pages'] = 'Páginas de Galería'; diff --git a/sources/lib/plugins/gallery/lang/es/settings.php b/sources/lib/plugins/gallery/lang/es/settings.php new file mode 100644 index 0000000..4efc2a2 --- /dev/null +++ b/sources/lib/plugins/gallery/lang/es/settings.php @@ -0,0 +1,17 @@ + + */ +$lang['thumbnail_width'] = 'Ancho de la miniatura de la imagen'; +$lang['thumbnail_height'] = 'Alto de la miniatura de la imagen'; +$lang['image_width'] = 'Ancho de la imagen'; +$lang['image_height'] = 'Alto de la imagen'; +$lang['cols'] = 'Imágenes por fila'; +$lang['sort'] = 'Como ordenar las imágenes de la galería'; +$lang['sort_o_file'] = 'ordenar por nombre de archivo'; +$lang['sort_o_mod'] = 'ordenar por fecha de archivo'; +$lang['sort_o_date'] = 'ordenar por fecha EXIF'; +$lang['options'] = 'Opciones predeterminadas adicionales de la galería'; diff --git a/sources/lib/plugins/gallery/lang/fr/lang.php b/sources/lib/plugins/gallery/lang/fr/lang.php new file mode 100644 index 0000000..bcadb41 --- /dev/null +++ b/sources/lib/plugins/gallery/lang/fr/lang.php @@ -0,0 +1,10 @@ + + * @author NicolasFriedli + */ +$lang['pages'] = 'Pages galerie:'; +$lang['js']['addgal'] = 'Utiliser un espace de nom comme galerie'; diff --git a/sources/lib/plugins/gallery/lang/fr/settings.php b/sources/lib/plugins/gallery/lang/fr/settings.php new file mode 100644 index 0000000..504b2cd --- /dev/null +++ b/sources/lib/plugins/gallery/lang/fr/settings.php @@ -0,0 +1,20 @@ + + * @author Emmanuel Dupin + * @author NicolasFriedli + */ +$lang['thumbnail_width'] = 'Largeur des miniatures'; +$lang['thumbnail_height'] = 'Hauteur des miniatures'; +$lang['image_width'] = 'Largeur des images'; +$lang['image_height'] = 'Hauteur des images'; +$lang['cols'] = 'Nombre d\'images par ligne'; +$lang['sort'] = 'Critère de tri des images'; +$lang['sort_o_file'] = 'trier par nom du fichier'; +$lang['sort_o_mod'] = 'trier par date de modification du fichier'; +$lang['sort_o_date'] = 'trier par date EXIF'; +$lang['sort_o_title'] = 'trier par titre EXIF'; +$lang['options'] = 'Options par défaut supplémentaires'; diff --git a/sources/lib/plugins/gallery/lang/it/settings.php b/sources/lib/plugins/gallery/lang/it/settings.php new file mode 100644 index 0000000..d5d367a --- /dev/null +++ b/sources/lib/plugins/gallery/lang/it/settings.php @@ -0,0 +1,18 @@ + + * @author Diego Pierotto + */ + +$lang['thumbnail_width'] = 'Larghezza immagine anteprima'; +$lang['thumbnail_height'] = 'Altezza immagine anteprima'; +$lang['image_width'] = 'Larghezza immagine'; +$lang['image_height'] = 'Altezza immagine'; +$lang['cols'] = 'Immagini per riga'; +$lang['direct'] = 'Collegamento direct'; +$lang['lightbox'] = 'Utilizza Lightbox (implica il collegamento diretto)'; +$lang['showname'] = 'Mostra nome file immagine'; +$lang['reverse'] = 'Inverti ordine'; +$lang['js_ok'] = 'Allow javascript urls'; diff --git a/sources/lib/plugins/gallery/lang/ja/settings.php b/sources/lib/plugins/gallery/lang/ja/settings.php new file mode 100644 index 0000000..d7af76e --- /dev/null +++ b/sources/lib/plugins/gallery/lang/ja/settings.php @@ -0,0 +1,18 @@ + + */ +$lang['thumbnail_width'] = 'サムネイル画像の幅'; +$lang['thumbnail_height'] = 'サムネイル画像の高さ'; +$lang['image_width'] = '画像の幅'; +$lang['image_height'] = '画像の高さ'; +$lang['cols'] = '一行の画像数'; +$lang['sort'] = '画像のソート方法'; +$lang['sort_o_file'] = 'ファイル名順'; +$lang['sort_o_mod'] = 'ファイル日付順'; +$lang['sort_o_date'] = 'EXIF日付順'; +$lang['sort_o_title'] = 'EXIFタイトル順'; +$lang['options'] = 'デフォルトに追加するギャラリーのオプション'; diff --git a/sources/lib/plugins/gallery/lang/ko/lang.php b/sources/lib/plugins/gallery/lang/ko/lang.php new file mode 100644 index 0000000..aadb882 --- /dev/null +++ b/sources/lib/plugins/gallery/lang/ko/lang.php @@ -0,0 +1,8 @@ + + * @author Andreas Gohr + * @author SC Yoo + * @author Myeongjin + */ +$lang['thumbnail_width'] = '섬네일 그림 너비'; +$lang['thumbnail_height'] = '섬네일 그림 높이'; +$lang['image_width'] = '그림 너비'; +$lang['image_height'] = '그림 높이'; +$lang['cols'] = '열당 그림 수'; +$lang['sort'] = '갤러리 그림 정렬 방법'; +$lang['sort_o_file'] = '파일 이름 순서로 정렬'; +$lang['sort_o_mod'] = '파일 날짜 순서로 정렬'; +$lang['sort_o_date'] = 'EXIF 날짜 순서로 정렬'; +$lang['sort_o_title'] = 'EXIF 제목 순서로 정렬'; +$lang['options'] = '추가적인 갤러리 기본 설정'; diff --git a/sources/lib/plugins/gallery/lang/nl/lang.php b/sources/lib/plugins/gallery/lang/nl/lang.php new file mode 100644 index 0000000..7703677 --- /dev/null +++ b/sources/lib/plugins/gallery/lang/nl/lang.php @@ -0,0 +1,9 @@ + + */ +$lang['pages'] = 'Beeldreeks pagina\'s:'; +$lang['js']['addgal'] = 'Voeg naamruimte toe als beeldreeks'; diff --git a/sources/lib/plugins/gallery/lang/nl/settings.php b/sources/lib/plugins/gallery/lang/nl/settings.php new file mode 100644 index 0000000..f1cd4de --- /dev/null +++ b/sources/lib/plugins/gallery/lang/nl/settings.php @@ -0,0 +1,18 @@ + + */ +$lang['thumbnail_width'] = 'Breedte van het miniatuur beeld'; +$lang['thumbnail_height'] = 'Hoogte van het miniatuur beeld'; +$lang['image_width'] = 'Beeld breedte'; +$lang['image_height'] = 'Beeld hoogte'; +$lang['cols'] = 'Aantal beelden per rij'; +$lang['sort'] = 'Hoe de beeldreeks sorteren'; +$lang['sort_o_file'] = 'sorteren op bestandsnaam'; +$lang['sort_o_mod'] = 'sorteren op bestandsdatum'; +$lang['sort_o_date'] = 'sorteren op EXIF datum'; +$lang['sort_o_title'] = 'sorteren op EXIF titel'; +$lang['options'] = 'Bijkomende beeldreeks verstek opties'; diff --git a/sources/lib/plugins/gallery/lang/pt-br/lang.php b/sources/lib/plugins/gallery/lang/pt-br/lang.php new file mode 100644 index 0000000..2f3d09d --- /dev/null +++ b/sources/lib/plugins/gallery/lang/pt-br/lang.php @@ -0,0 +1,9 @@ + + */ +$lang['pages'] = 'Páginas da galeria:'; +$lang['js']['addgal'] = 'Adicionar domínio como galeria'; diff --git a/sources/lib/plugins/gallery/lang/pt-br/settings.php b/sources/lib/plugins/gallery/lang/pt-br/settings.php new file mode 100644 index 0000000..c942a47 --- /dev/null +++ b/sources/lib/plugins/gallery/lang/pt-br/settings.php @@ -0,0 +1,18 @@ + + */ +$lang['thumbnail_width'] = 'Largura da imagem miniatura'; +$lang['thumbnail_height'] = 'Altura da imagem miniatura'; +$lang['image_width'] = 'Largura da imagem'; +$lang['image_height'] = 'Altura da imagem'; +$lang['cols'] = 'Imagens por linha'; +$lang['sort'] = 'Como ordenar as imagens da galeria'; +$lang['sort_o_file'] = 'ordenar por nome do arquivo'; +$lang['sort_o_mod'] = 'ordenar por data do arquivo'; +$lang['sort_o_date'] = 'ordenar por data EXIF'; +$lang['sort_o_title'] = 'ordenar por título EXIF'; +$lang['options'] = 'Opções padrão da galeria adicional'; diff --git a/sources/lib/plugins/gallery/lang/ru/lang.php b/sources/lib/plugins/gallery/lang/ru/lang.php new file mode 100644 index 0000000..752ca12 --- /dev/null +++ b/sources/lib/plugins/gallery/lang/ru/lang.php @@ -0,0 +1,9 @@ + + */ +$lang['pages'] = 'Страницы галереи:'; +$lang['js']['addgal'] = 'Добавить пространство имён как галерею'; diff --git a/sources/lib/plugins/gallery/lang/ru/settings.php b/sources/lib/plugins/gallery/lang/ru/settings.php new file mode 100644 index 0000000..1830149 --- /dev/null +++ b/sources/lib/plugins/gallery/lang/ru/settings.php @@ -0,0 +1,18 @@ + + */ +$lang['thumbnail_width'] = 'Ширина миниатюры изображения'; +$lang['thumbnail_height'] = 'Высота миниатюры изображения'; +$lang['image_width'] = 'Ширина изображения'; +$lang['image_height'] = 'Высота изображения'; +$lang['cols'] = 'Изображения в ряд'; +$lang['sort'] = 'Как сортировать изображения в галерее'; +$lang['sort_o_file'] = 'сортировать по имени файла'; +$lang['sort_o_mod'] = 'сортировать по дате файла'; +$lang['sort_o_date'] = 'сортировать по EXIF-дате'; +$lang['sort_o_title'] = 'сортировать по EXIF-заголовку'; +$lang['options'] = 'Дополнительные опции'; diff --git a/sources/lib/plugins/gallery/lang/sk/lang.php b/sources/lib/plugins/gallery/lang/sk/lang.php new file mode 100644 index 0000000..191afa9 --- /dev/null +++ b/sources/lib/plugins/gallery/lang/sk/lang.php @@ -0,0 +1,9 @@ + + */ +$lang['pages'] = 'Stránky galérie:'; +$lang['js']['addgal'] = 'Pridaj menný priestor ako galériu'; diff --git a/sources/lib/plugins/gallery/lang/sk/settings.php b/sources/lib/plugins/gallery/lang/sk/settings.php new file mode 100644 index 0000000..4fe1a3d --- /dev/null +++ b/sources/lib/plugins/gallery/lang/sk/settings.php @@ -0,0 +1,18 @@ + + */ +$lang['thumbnail_width'] = 'Šírka náhľadu'; +$lang['thumbnail_height'] = 'Výška náhľadu'; +$lang['image_width'] = 'Šírka obrázku'; +$lang['image_height'] = 'Výška obrázku'; +$lang['cols'] = 'Počet obrázkov na riadok'; +$lang['sort'] = 'Spôsob triedenia obrázkov galérie'; +$lang['sort_o_file'] = 'triedenie podľa mena'; +$lang['sort_o_mod'] = 'triedenie podľa dátumu'; +$lang['sort_o_date'] = 'triedenie podľa EXIF dátumu'; +$lang['sort_o_title'] = 'triedenie podľa EXIF názvu'; +$lang['options'] = 'Dodatočné imlicitné voľby galérie'; diff --git a/sources/lib/plugins/gallery/lang/tr/lang.php b/sources/lib/plugins/gallery/lang/tr/lang.php new file mode 100644 index 0000000..5d294b4 --- /dev/null +++ b/sources/lib/plugins/gallery/lang/tr/lang.php @@ -0,0 +1,10 @@ + + * @author ilker Rifat Kapaç + */ +$lang['pages'] = 'Sergi Sayfaları'; +$lang['js']['addgal'] = 'İsimalanını sergi olarak ekle'; diff --git a/sources/lib/plugins/gallery/lang/tr/settings.php b/sources/lib/plugins/gallery/lang/tr/settings.php new file mode 100644 index 0000000..3e56595 --- /dev/null +++ b/sources/lib/plugins/gallery/lang/tr/settings.php @@ -0,0 +1,19 @@ + + * @author ilker Rifat Kapaç + */ +$lang['thumbnail_width'] = 'Küçük resim genişliği'; +$lang['thumbnail_height'] = 'Küçük resim yüksekliği'; +$lang['image_width'] = 'Resim genişliği'; +$lang['image_height'] = 'Resim yüksekliği'; +$lang['cols'] = 'Satır başına görüntü sayısı'; +$lang['sort'] = 'Sergi resimleri nasıl sıralansın'; +$lang['sort_o_file'] = 'Dosya adına göre sırala'; +$lang['sort_o_mod'] = 'Dosya tarihine göre sıralama'; +$lang['sort_o_date'] = 'EXIF tarihine göre sırala'; +$lang['sort_o_title'] = 'EXIF başlığına göre sırala'; +$lang['options'] = 'İlave serginin varsayılan seçenekleri'; diff --git a/sources/lib/plugins/gallery/lang/zh-tw/lang.php b/sources/lib/plugins/gallery/lang/zh-tw/lang.php new file mode 100644 index 0000000..52cec3e --- /dev/null +++ b/sources/lib/plugins/gallery/lang/zh-tw/lang.php @@ -0,0 +1,9 @@ + + */ +$lang['pages'] = '相簿頁碼'; +$lang['js']['addgal'] = '添加作為相簿的名字空間'; diff --git a/sources/lib/plugins/gallery/lang/zh-tw/settings.php b/sources/lib/plugins/gallery/lang/zh-tw/settings.php new file mode 100644 index 0000000..7883577 --- /dev/null +++ b/sources/lib/plugins/gallery/lang/zh-tw/settings.php @@ -0,0 +1,18 @@ + + */ +$lang['thumbnail_width'] = '縮圖的寬度'; +$lang['thumbnail_height'] = '縮圖的高度'; +$lang['image_width'] = '圖像寬度'; +$lang['image_height'] = '圖像高度'; +$lang['cols'] = '每一列的圖像數'; +$lang['sort'] = '相簿圖像要如何排序?'; +$lang['sort_o_file'] = '依檔名排序'; +$lang['sort_o_mod'] = '依建檔日期排序'; +$lang['sort_o_date'] = '依EXIF日期排序'; +$lang['sort_o_title'] = '依EXIF標題排序'; +$lang['options'] = '額外的相簿預設選項'; diff --git a/sources/lib/plugins/gallery/lang/zh/lang.php b/sources/lib/plugins/gallery/lang/zh/lang.php new file mode 100644 index 0000000..daf90a9 --- /dev/null +++ b/sources/lib/plugins/gallery/lang/zh/lang.php @@ -0,0 +1,9 @@ + + */ +$lang['pages'] = '相册页面'; +$lang['js']['addgal'] = '将命名空间添加为相册'; diff --git a/sources/lib/plugins/gallery/lang/zh/settings.php b/sources/lib/plugins/gallery/lang/zh/settings.php new file mode 100644 index 0000000..91f5198 --- /dev/null +++ b/sources/lib/plugins/gallery/lang/zh/settings.php @@ -0,0 +1,18 @@ + + */ +$lang['thumbnail_width'] = '缩略图宽度'; +$lang['thumbnail_height'] = '缩略图高度'; +$lang['image_width'] = '图片宽度'; +$lang['image_height'] = '图片高度'; +$lang['cols'] = '每行图片数'; +$lang['sort'] = '图片排序方式'; +$lang['sort_o_file'] = '按文件名'; +$lang['sort_o_mod'] = '按文件时间'; +$lang['sort_o_date'] = '按 EXIF 时间'; +$lang['sort_o_title'] = '按 EXIT 标题'; +$lang['options'] = '附加相册默认选项'; diff --git a/sources/lib/plugins/gallery/plugin.info.txt b/sources/lib/plugins/gallery/plugin.info.txt new file mode 100644 index 0000000..59c38f3 --- /dev/null +++ b/sources/lib/plugins/gallery/plugin.info.txt @@ -0,0 +1,7 @@ +base gallery +author Andreas Gohr +email andi@splitbrain.org +date 2014-05-18 +name Gallery Plugin +desc Creates a gallery of images from a namespace or RSS/ATOM feed +url http://www.dokuwiki.org/plugin:gallery diff --git a/sources/lib/plugins/gallery/prettyPhoto/dark_rounded/btnNext.png b/sources/lib/plugins/gallery/prettyPhoto/dark_rounded/btnNext.png new file mode 100755 index 0000000000000000000000000000000000000000..b28c1ef3d595d5af9db1f2a4378cfd64407ed5c0 GIT binary patch literal 1411 zcmV-}1$_F6P)$9a05|MJUF0->4SGK<7F5TJ=lWKN6+&IhzfIXTxP_BAUYSlC~k)ya96~A ztE!1Fs3@{uSCwU7suGg-Dqm*4{6%~bnXhbax0`G>8;y^TlaJ!y=Z$>*$bCxrnvF(o z`x+M)R}d8y<%*4sb=vKA7v=~-N$_0n-ZRLqHxCaF-bMz>;maqN%k>M_92kbLQc)rz zB8pyLU&UAqOwrN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MN#~@dC2t52le+>RFzyR~BA^19M RLBjw5002ovPDHLkV1n=}nO*<@ literal 0 HcmV?d00001 diff --git a/sources/lib/plugins/gallery/prettyPhoto/dark_rounded/btnPrevious.png b/sources/lib/plugins/gallery/prettyPhoto/dark_rounded/btnPrevious.png new file mode 100755 index 0000000000000000000000000000000000000000..e0cd9c49af7fe2f6ab694843bdd3b90ce9217cb3 GIT binary patch literal 1442 zcmV;T1zq}yP)DPR}?-yIFE=Eh>D`1 zxDZ4LPAETaM%Rg1tJM?Bq#w*j8W7$G%8Lw&qL>a zCw-c0=k{xpz@y)ROWmrvb?SWQJHxHA4-E}n(SMgP*YTP@kUTy+|!o71v*0Uj9&rU)Awvb?t|yrluuz?lkGJ^!4>Q=_3#Yh7?%3ySpO=mYhx}U&DY{ ztyUfuiv?p_UHazs_V(+RmX<#~!COX0NBtf&z+PNj(ACuyg9R|V-7WxmjW|KE>|Uds z@STc?cg@YsKf-UK&-yU{K0Q69%gakX4+sdLz`#JA)xX(ON1M&Y_pk=Ql>x3!!mdfe z!^0^!IG908e&ZRJBWj|fqrXs78-l{_=_v@jjIfe|ffq^G2m?4m^pL_e6dJiF1qN%N zN7iBv{W#*>#30@cz{pcPr!(of7J!S2ium5d#02Y>wRk`5Q93?XY=7I{-o9Wrc}-P4 zijR+f<+;7RJ8Nysxo|~Jaii!%Fot>rm`FYk+ zS69dHT3lRYgFQtzUOxh`I6)W|z%w&5?&_^S2ghNqocjra(~1+%0Vc$oy}iBE*4D=J zf`S5W8<5G#N$Tn8;ro!p#6)%$WMgB4Iy*brNyEd#%-Ht!Hs$8#((&;zr$TIOEG;Z7 z@LUWu*&qh%L!_jnsm&{8?^!)!Wk?@MMb%{ePRf%0|=@*@(HY=il?Tga{EH4qxvIv(ca)R=-l7m z=dj0mge~-X6I1W@6l_i33LLtW&2z{I<5w2)1HBr?f(#o-m~a)XCyiluc>E>604H)GzA+XomH+?%07*qoM6N<$f}$awVgLXD literal 0 HcmV?d00001 diff --git a/sources/lib/plugins/gallery/prettyPhoto/dark_rounded/contentPattern.png b/sources/lib/plugins/gallery/prettyPhoto/dark_rounded/contentPattern.png new file mode 100755 index 0000000000000000000000000000000000000000..e5a047c3a7efb0f8085e0b70523299af00a5dbd6 GIT binary patch literal 130 zcmeAS@N?(olHy`uVBq!ia0vp^A|TAc1|)ksWqE;=WQl7;NpOBzNqJ&XDuZK6ep0G} zXKrG8YEWuoN@d~6R2!fo6;Bt(kcwMLDG3QT&O5jsIO33Mko90i<6^cxDT}NJ0fqt! a2NIKlt||NsBb%*?E=uIA+AG%zrD`0!y=R1_N<+vm@pjg5^ZBqW4{ zgcKDO=ggUN^5n@6A3hv7aNygwZyp{VGiT1cdi82iQIVXS9M~i*gyK&Yu&54*1lh^J znxLT2my$UzW7WEx*ZT@|&X?rguUPlK=KX)mqpTdl9&9X0-U1vFe5XV=OIC<1TA^wB zAR@v0R&G+mkFG;kP93Sa$EGmNNLpZ-!L!AgPrAh9_7P-L(M E0LAB0sQ>@~ literal 0 HcmV?d00001 diff --git a/sources/lib/plugins/gallery/prettyPhoto/dark_rounded/loader.gif b/sources/lib/plugins/gallery/prettyPhoto/dark_rounded/loader.gif new file mode 100755 index 0000000000000000000000000000000000000000..50820eedd904647a76c4c2c1d830d4339588c08d GIT binary patch literal 2545 zcma*pYg7~I83*u}xzA)~n25ScZ5t-T5>nU=30MS$Xhdjjt5TMMW#9(@)N1wHw{N#>*%A~K6dfI%mzSs0>1;MzQc{x1WQvWAEi5cd zO-&6A4ejdcYHV!G&dwej90WgkdA*fGvWCM(P; z$dsjIrxfkWO-cJGD`!tG@Op!gxcHQxYYW#Q0eW60s};c7^ldElX7vkaqh-b(7r4^0 z+UAb0ZSr75<*E5h0II=##CBs?6qZq|wUb!3#%m$M1s7pTB@&S06@9Ay z-h5f_b9-#xd~c$}>EX+VI*I%()}0TCh#*z{qN+;rk#%*HM(Q=fSuu34zchyM3e)?`6^f~$^~ z0L(`R@{+Sb&Lw^rQ0mE&rsN{19?LGi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IeuLuVE;J zMU;zXpKv4ew*ej2mcLgY77c0rcaD7i-OHBM_w!bI7sLh;$kU&9zltxt1OD2qL|J;&bhtXwqAHM6xRf*yD4ofPQO{_whBa&Y*iCFs_G=IgnfD{l3X!rx368LCX1Vtw#^VR1=jt|2}Q-YZ8)R$_o? zXe&>PWnSYgc3wT8Sa({7?q-O!oyI_c#1%&XjP`}73A_%VXfsOf$8jS`uD`Yq!wLCq zId#TxPJTy@wTF!w78H#BZ=C+$RSaM?39k!c*vN7#tXBU3;O}dHT^_;L4G+E)eAx!e z$jjz9$B$QQ^7DdOx|rFAG2&g6TUH)%6sqBDIU>PP0|HTYo)Bxj(VK#x1f+}5(H#tw zbb4iqfOZ2a4yFe~)DXD?&}9Ik^#%!PL|Z?cDZK2Tl4%H^Jh*rZTQDq<@>&LjL8>&bmbP;{9$V1f72|-IC6J*aS0@jCMCW#2N6=@ z4`AZpxsaAsVQ@O2`+(k0w?jjrokZ16XhMUc+v!dQ8ajnupX>w}bRm9Xw)Di6(Qq#i K>KdTlt$zd2^$V2% literal 0 HcmV?d00001 diff --git a/sources/lib/plugins/gallery/prettyPhoto/dark_rounded/sprite.png b/sources/lib/plugins/gallery/prettyPhoto/dark_rounded/sprite.png new file mode 100755 index 0000000000000000000000000000000000000000..fb8c0f83d715aec1014b77f0b44002a07a635052 GIT binary patch literal 4076 zcmV;S0000PbVXQnQ*UN; zcVTj606}DLVr3vnZDD6+Qe|Oed2z{QJOBU>j!8s8RCwC#U2SX>#~B`*!$2VB(|j3% zAts5#cYsEG#(Wr;76>STAC;0I1@Qx^N~KgK6{=#Y{z#-GYJXA@VIk2Ur1_C5v_&9e zP>4wYwW5Ft7%)y82do${5DX!v?=zmcj3={qyL-ELw|DbOqubk^eP?#wXWp-!n=5$u z@FBBgDYkw4cE^j8Cr_S2AIqrBqcWY!gn-%|C_e9`;~@cdl=O#mpPkBu}iuh5{BVE|=`8c6_< zzyShA0AK`w_<8wEg@uK@6ciMoT%od?>eo`;OL?IY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+J^WV9UU#@iT~smWm{7`EZfx7BohS#jDGsnrH2m_UXQDI4>Bu&@Eaf)XZ|(~k9jZ_ z_ZWxq`emr|Xzc63$X|%rJll+IY;0_V?|(O6W`YCeEnxjf(UTDFL-@J*W=y-;YJV`; zte&CGf|v^iSUrL(V1rF)A^YGM9v(j6)c=JS`mZnWV1WUv&|&|TH8L{d9vmF}hxfbR z82m3^-_rhKSS4+OhpU&ZpOyf34Gj(b&6|EdCyLJu@m1w&8bCiKt?{ei;p}BIk$v;W z;K0BD2qXDg#@j>#gM45R2lxBQbC~&$0rR=di9ZMN#~@dC2t52le+>RFzyR~BA^19M RLBjw5002ovPDHLkV1n=}nO*<@ literal 0 HcmV?d00001 diff --git a/sources/lib/plugins/gallery/prettyPhoto/dark_square/btnPrevious.png b/sources/lib/plugins/gallery/prettyPhoto/dark_square/btnPrevious.png new file mode 100755 index 0000000000000000000000000000000000000000..e0cd9c49af7fe2f6ab694843bdd3b90ce9217cb3 GIT binary patch literal 1442 zcmV;T1zq}yP)DPR}?-yIFE=Eh>D`1 zxDZ4LPAETaM%Rg1tJM?Bq#w*j8W7$G%8Lw&qL>a zCw-c0=k{xpz@y)ROWmrvb?SWQJHxHA4-E}n(SMgP*YTP@kUTy+|!o71v*0Uj9&rU)Awvb?t|yrluuz?lkGJ^!4>Q=_3#Yh7?%3ySpO=mYhx}U&DY{ ztyUfuiv?p_UHazs_V(+RmX<#~!COX0NBtf&z+PNj(ACuyg9R|V-7WxmjW|KE>|Uds z@STc?cg@YsKf-UK&-yU{K0Q69%gakX4+sdLz`#JA)xX(ON1M&Y_pk=Ql>x3!!mdfe z!^0^!IG908e&ZRJBWj|fqrXs78-l{_=_v@jjIfe|ffq^G2m?4m^pL_e6dJiF1qN%N zN7iBv{W#*>#30@cz{pcPr!(of7J!S2ium5d#02Y>wRk`5Q93?XY=7I{-o9Wrc}-P4 zijR+f<+;7RJ8Nysxo|~Jaii!%Fot>rm`FYk+ zS69dHT3lRYgFQtzUOxh`I6)W|z%w&5?&_^S2ghNqocjra(~1+%0Vc$oy}iBE*4D=J zf`S5W8<5G#N$Tn8;ro!p#6)%$WMgB4Iy*brNyEd#%-Ht!Hs$8#((&;zr$TIOEG;Z7 z@LUWu*&qh%L!_jnsm&{8?^!)!Wk?@MMb%{ePRf%0|=@*@(HY=il?Tga{EH4qxvIv(ca)R=-l7m z=dj0mge~-X6I1W@6l_i33LLtW&2z{I<5w2)1HBr?f(#o-m~a)XCyiluc>E>604H)GzA+XomH+?%07*qoM6N<$f}$awVgLXD literal 0 HcmV?d00001 diff --git a/sources/lib/plugins/gallery/prettyPhoto/dark_square/contentPattern.png b/sources/lib/plugins/gallery/prettyPhoto/dark_square/contentPattern.png new file mode 100755 index 0000000000000000000000000000000000000000..7b50aff880e57ea386400d763dbddf82fff72be6 GIT binary patch literal 121 zcmeAS@N?(olHy`uVBq!ia0vp^AT}2V8<6ZZI=>f4NtU=qlmzFem6RtIr7}3CIKlt||NsBb%*?E=uIA+AG%zrD`0!y=R1_N<+vm@pjg5^ZBqW4{ zgcKDO=ggUN^5n@6A3hv7aNygwZyp{VGiT1cdi82iQIVXS9M~i*gyK&Yu&54*1lh^J znxLT2my$UzW7WEx*ZT@|&X?rguUPlK=KX)mqpTdl9&9X0-U1vFe5XV=OIC<1TA^wB zAR@v0R&G+mkFG;kP93Sa$EGmNNLpZ-!L!AgPrAh9_7P-L(M E0LAB0sQ>@~ literal 0 HcmV?d00001 diff --git a/sources/lib/plugins/gallery/prettyPhoto/dark_square/loader.gif b/sources/lib/plugins/gallery/prettyPhoto/dark_square/loader.gif new file mode 100755 index 0000000000000000000000000000000000000000..50820eedd904647a76c4c2c1d830d4339588c08d GIT binary patch literal 2545 zcma*pYg7~I83*u}xzA)~n25ScZ5t-T5>nU=30MS$Xhdjjt5TMMW#9(@)N1wHw{N#>*%A~K6dfI%mzSs0>1;MzQc{x1WQvWAEi5cd zO-&6A4ejdcYHV!G&dwej90WgkdA*fGvWCM(P; z$dsjIrxfkWO-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V0q*WR$wrlG*GZ+}?36LEVopx8&UoR5|FP2X(gg*>F2Q`DOOWzT zKy$O1#JGKIqQfYwpC&#w#q@DPqW?2e#VL|C9rwWEFAWIx{OQyh2QiYjN9*YZVSoMS zFA84%7}x9g)1Aex=0uh3IjS_3TZ$cycqP0)!%# zOBK66#7X}`IVZ(={4$W>L=h`Z1T4#AR|_aHZ=cBtyvh4h;coJH!AS0chIeuLuVE;J zMU;zXpKv4ew*ej2mcLgY77c0rcaD7i-OHBM_w!bI7sLh;$kU&9zltxt1OD2qL|J;&bhtXwqAHM6xRf*yD4ofPQO{_whBa&Y*iCFs_G=IgnfD{l3X!rx368LCX1Vtw#^VR1=jt|2}Q-YZ8)R$_o? zXe&>PWnSYgc3wT8Sa({7?q-O!oyI_c#1%&XjP`}73A_%VXfsOf$8jS`uD`Yq!wLCq zId#TxPJTy@wTF!w78H#BZ=C+$RSaM?39k!c*vN7#tXBU3;O}dHT^_;L4G+E)eAx!e z$jjz9$B$QQ^7DdOx|rFAG2&g6TUH)%6sqBDIU>PP0|HTYo)Bxj(VK#x1f+}5(H#tw zbb4iqfOZ2a4yFe~)DXD?&}9Ik^#%!PL|Z?cDZK2Tl4%H^Jh*rZTQDq<@>&LjL8>&bmbP;{9$V1f72|-IC6J*aS0@jCMCW#2N6=@ z4`AZpxsaAsVQ@O2`+(k0w?jjrokZ16XhMUc+v!dQ8ajnupX>w}bRm9Xw)Di6(Qq#i K>KdTlt$zd2^$V2% literal 0 HcmV?d00001 diff --git a/sources/lib/plugins/gallery/prettyPhoto/dark_square/sprite.png b/sources/lib/plugins/gallery/prettyPhoto/dark_square/sprite.png new file mode 100755 index 0000000000000000000000000000000000000000..4fe354752455e070ebb56f42a60fc2233de45bd7 GIT binary patch literal 3507 zcmV;k4NUThP)QnSP5?=@`DvWA}t|^%OI}h zP*!BY9Om*eGGKAoU~X{US5!@krn;xAr)PRb>5@v*UH$64dSAWw>UGt4oYmUe%EIEl zgyO5dyc@tXZ>89XfRAv1&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RdIyQvL{VEAJ z{WsNbsP+p1b6>F8cTL2%wjp5d3cj0)?{d8g0dp?cP56T9IPuaPCaw+XRdhaUg{002ovPDHLkV1kA;p5g!i literal 0 HcmV?d00001 diff --git a/sources/lib/plugins/gallery/prettyPhoto/default/default_thumb.png b/sources/lib/plugins/gallery/prettyPhoto/default/default_thumb.png new file mode 100644 index 0000000000000000000000000000000000000000..1a26e4b16e18db9e0979a6ba5ecb9e1e1c8753e5 GIT binary patch literal 1537 zcmeAS@N?(olHy`uVBq!ia0vp^MnJ5{!2~2lDSr z1<%~X^wgl##FWaylc_cg49rTIArU1JzCKpT`MG+DAT@dwxdlMo3=B5*6$OdO*{LN8 zNvY|XdA3ULckfqH$V{%1*XSQL?vFu&J;D8jzb> zlBiITo0C^;Rbi_HHrEQs1_|pcDS(xfWZNo192Makpx~Tel&WB=XP}#GU}m6TW~gUq zY+`P1uA^XNU}&IkV5Dzoq-$tyWo%?+V4wg6Nh+i#(Mch>H3D2mX;thjEr=FDs+o0^GXscbn}XpVJ5hw7AF^F7L;V>=P7_pOiaoz zEwNPsx)kDt+yc06!V;*iRM zRQ;gT;{4L0WMIUlDTAykuyQU+O)SYT3dzsUfrVl~Mt(_taYlZDf^)E`f^TASW*&$S zR`2U;<(XGpl9-pA>gi&u1T;Y}Gc(1?#n{Qv$p(%8_*)y>$@ z#MQtErq?AuximL5uLPzy1)RB67F)=Cl-0%Nhmu^a?8hh0T^w9mUDEGv?>K8d)wzGgml>(n6(8(9 zLQ`Ch#S2apT=}rXs&X^0zh+&mx?FYr+U#jM&p!XmF}n>!Z>NQKA5GdC6{|P> z^2;lGmp8sGkxst-wyf7pS!InB58L6Yy>5IL4?h&>bP;&9@TlG|3th49u+^emt$*tN zdmg^;Yue+sIBvao_fZ+XX8WkksIZaiEUTJwq;9`_|M4e% zU3SxfhI=h7TH7ymYDPlEe(|R&oOc4=Tn{~SQG5F739G|ai+gJ%H$D6tw`B5(cf0TQ zMeSQrGMz2Vdufo~bZrr?n>pY77p~A!)0y}y{i;}wfugc`t-_fUBcP+T=39SO2rAyM zpBeR{cwfc~^WP~(GtWH#{IOzAA6KcOi{#|)d*A-5U(7KJ_WW~CWlPlBh`km&eN;Yr ze*d=iV1mNYPKgAk?cU2TKQG#Tn^!UG#jPb_t8c#j=Aht^HeXct(m@_MzIGpHwe!p8 zh!q6S|9RMhqy4Z_zyFd{qnS+y6__V7r5~zU$aB4H_t}UePj+sp+n(Sm=$UCEHRW^V z8NEkWUY10-N(yVbS7mfI82S`kd;k4t!q0_`SEsVE@%8Myap6pg^V0upjEa2XseZE? z#Fl;wZnjw7z%enSq+%NHRp;%&a~@9m^r+^be~*WvxYNc}&6gKXPYY_Umg(lx+a^@* y;MyFr{@1hJHY$01i`>iV{`=Qlt`e)`G+_9kRR3W^dd`1Pq3r4E=d#Wzp$PyqQ%Md0 literal 0 HcmV?d00001 diff --git a/sources/lib/plugins/gallery/prettyPhoto/default/loader.gif b/sources/lib/plugins/gallery/prettyPhoto/default/loader.gif new file mode 100644 index 0000000000000000000000000000000000000000..35d397c9e430c2ee8f1d95d8fe47da79a399e746 GIT binary patch literal 6331 zcmds*`+F4iy~lTFXXZPzvzOV~*~`q{W@cw)MW88-6fAm{-61U4vX@XF#9*>`A*3Nj z8kM5~Hp%YhLLj#d1RBUD1c(6)V8EbYa{~gR2avYdrixLlT5CbHqV4f?g7rC1pNAjM z`NjPMW}ol-{d#}C@6UI^!kpQ2Vzh!*>{ciqef-h>qy6=p>&M?7FMqcD+}U&8UEQC5 z_IcTwveDtu_U-MTeEdlwmALfVOZ#8gUtCgr{MF;>E$R0^ct25@xODN-{@(rn_~swQ zMa9QoKAvt)zd!MQ`TFv6Z=CDi)BXA1J}-N^Z1mJ<`_A@HKK-P=u73RYOyn)56?1o!D4<#=fj3c?QWk zVxL?6=U)!&=VmnAnQ43do}>q!xNdFry;c?MAJ7r--4*U~>JU)@9?-a4M(UyU8_Foc zxfX`$^^5DA1j_=44Oai`p>=JniePNEQfdFXhk$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(RRYTBrDUd98JJrb z7#fLwm{}MaS~$5GxtTec8X6j#Sr}Lvz|6p=*T~$|)WF!-!r0XUsNU7U!qv>p z(%8_*)y>$@#MQtErq?sCxFj(zITdDaCeU7}UUR&9t(=Qe6HD@oLh|!-U@0IVBfliS zI3vG6!8zDe!8b8EGY`ZEMGwTcE~!PCWvMA{Mftf3;PAD|#9}{Te?#=9kP~M5K*#8V z5(iRZfe8UqAczT1`aljm^Q7hhb4(F1Ye=}+?qFbGtn+kn45_&FX1ZbaAqR=J`zl?F z6hjSyjd!`VI8EdE8sG8XfqlB4?53p`oXq|={9jl-!D&;f1^{JhASwBZOL?tR{ zlH%Dj%k3+shurJeS4ueU5IiN5?|}71hdT`>pKRPGsr=9X6P&a$BEd#(an#yFn{;~I zl=n%VOEX@vitE<)K#@eNxu00SRoQBEHKlFl^t~)_{G;oI$&I_#9WIo)l4W{gQ%}`i zzWd(|XZrk@dCY)^r`>s5|0I=-hCI$}`*vm4g=_p@J8|0fiy0e&iW!$>a$PSCTp1D| z!rHv`cJ8+Q;q2$07gx+XK4(|l`pB@ke(cQ$8~o+j92;~_&v4Gv+9@A^ zhOKTb+R1a-M8D~xh0Fo<*qpG{qSH>R7QbFvDE6VuW-jv|G2TBSyd^JGLsdQ`^NVK9 rGOv0gxL3Hg@R8`G7st=^GcYqeNGZH3c0pYORKj_>`njxgN@xNAKx^Dt literal 0 HcmV?d00001 diff --git a/sources/lib/plugins/gallery/prettyPhoto/default/sprite_prev.png b/sources/lib/plugins/gallery/prettyPhoto/default/sprite_prev.png new file mode 100644 index 0000000000000000000000000000000000000000..1ee486514b9c4b3b36381fb0a3ecc3fe3a9f93ca GIT binary patch literal 1376 zcmeAS@N?(olHy`uVBq!ia0vp^(m*W7!3HGnN~S&oQj#UE5hcO-X(i=}MX3yqDfvmM z3ZA)%>8U}fi7AzZCsS=07?{&CLn2Bde0{8v^Ko2Tt~skz|cV7z)0WFNY~KZ%Gk)tz(4^Clz_GsrKDK}xwt{?0`hE?GD=Dctn~HE z%ggo3jrH=2()A53EiFN27#ZmTRp=I1=9MH?=;jqG!%T2VElw`VEGWs$&r<-In3$Ab zT4JjNbScCOxdpzyaD(%Tp#cR9GX09g0)0b01O41wkiWpHi%Wu15zfG>x;Uh=AXPso zwK%`DC>aHCFybnZQU%%yG$2F3nBNEAe!(RRYTBrDUd98JJrb z7#fLwm{}MaS~$5GxtTec8X6j#Sr}Lvz|6p=*TvY$(85Px?R(JoBXH0dq_dFl$J7T(M(dV4UFT;uunK>&^82S%(5dj_qH< z=*S}&*wSLt6i`q!QRxTIxr2f63j((D&Glk4bUrY>phW8*BX?6W+sOqktDKkpQupx5 zXVR6ue5HEf1!nmc?&=yMi}nq)%8Sz3BLd=JXKh?K+7<-V*=#&TPw-;cK67S}GK<|Nij=gN9YBUX)mA zh;Wt6nYpa?jR{w8>=%xtco;q0>$PNpn+{JB>CZJBh}qL}?smVM58)0;KA0$JUrYeg;& z`Zd*yb!iaiy4OwuEEavuaqHW^R{1VJZ{q8`Htg`n3YU!$NAk8euX}wXZ+pqCT^BPJ z#OS&6*%zD7^m$=gy7{Jy)!buA8xPd&ci$S-yVv~VhnTftC!T*6wD6m-=uw2vEBzb) zJAUTw+1zqA^5CK6cbK&!IHc6)T`_#r`{L{G&(>L4)9l6MnRpmD^*T?NvsT^(m3f}7 KelF{r5}E+5_2k|F literal 0 HcmV?d00001 diff --git a/sources/lib/plugins/gallery/prettyPhoto/default/sprite_x.png b/sources/lib/plugins/gallery/prettyPhoto/default/sprite_x.png new file mode 100644 index 0000000000000000000000000000000000000000..d4433ab0d6933357b0e91f6fc72662f1bda39f51 GIT binary patch literal 1097 zcmbVLO;6N77_MS)MM;nwo`!OD+nJVacbl!qZo9GxMY61M6Jla%XW0hYsqNr)@gitU zylOlc4<0o}{R2vrqcPk(8T|()dhl$R?gx4x7@ee@d1v0|dB5*3E?gQNIXA*_+-P;q zsIh&UePU)f{cnx$v2B8y4Z1{{v~5S2n{~+w236l)#WifZof{u;k>iG%UcEsZ*1YBr zU$9dhA@M_o=D6Za657rhreFoHdV$V=fAfw9o~!d$a~8D1GH!Wun-N~xT&O#nYfi!C zXD)zZqA>y=QyV1ydJt=g&Ubk=c22KF9&}acn$Gu}YFLY)Od-qNm-<7vZO%>`ip1QBDbm4j7r}YlXSjCX{d=}yWJMrvOuC$5fuuBltYrT zOd}h20%|AOAf6g97&vw!FQgs`K+0&ZkPWKy%+p>7erQ<-#6jFo6ibI+L$%|2C&Xe6$7CaNSUs9k12D_o(S}k*=8bka@>o&qb%Qt?J`QNr(0TSE zxSp#)l!pkZ(@>S5l1C_Csz?>3ltV~X@~{909EV|*ilM4T-jGeDgpdjIrcx=$NHQxj znl_;{z*d8p+JS=yc0Fddk1ZdG)yfgJDT(TYtPeV1u|+6}TO{cS;gKmB`?-2V?{#)EVtouJX6PYt&+8lp0%ixN2V0t`geI^_X4-VMGL~Jy6 zKR$WN#;Q{_X6wo4Z(nB5a^TF+ZXNu3_4DNLbMD@?Q;%;wd+_qd&iL`t#Y|>vIrDXA v@AlYOS2{KcPTc)Bp*T@``(m<(x-<2j`?UP<(dqds5yw{5Trggju5a%Hri)27 literal 0 HcmV?d00001 diff --git a/sources/lib/plugins/gallery/prettyPhoto/default/sprite_y.png b/sources/lib/plugins/gallery/prettyPhoto/default/sprite_y.png new file mode 100644 index 0000000000000000000000000000000000000000..7786ab5128c53a952830a3494898ee3ff5d00cf2 GIT binary patch literal 1162 zcmc&!O;6N77_K29hOj@tkHe%~Jh1IdcemX(RKjk%vg#r(E3SzeN;}Io&`xb<*+OD4 z+)VVuMg0+qSCJ@*7xCcT-$25F5O2ik?iM`|OuRTrJM&K8=Xt;Te0JtWX5{h+$8nkJ zv{7ff&YsPS!|Z*0^0~^kOVn)AInttCE5zKCLl!Zpde#!IW6N24@)b{T+)&GHG-a)@DJOgcuYAn6;q{fs6!{ z%PWd94kU=62qh6oS)^z=NrMm!7SF7OPD`sBm4PiL>3o~gKoiAow<~mW0tuHyq^fGd zAxT-Lk&V`TYQ$>O)M}^1el$oFOPLs3frtbs zdR`J&PdlP@{M(H)wWG#bfWrIa4knWWu5;SJWJm z%t{XBO(><`@kg_ySF8h*<7w+N;dFSg&n6~J zMq}&NO*U2^s>W0!{&DdAedZY)<@R3ff7{#MeyEL&yty`H>_4?0tak3+^Tzp;f5#1RUtWw}*f@CfG5I@G%^BluX<_phuCz@w literal 0 HcmV?d00001 diff --git a/sources/lib/plugins/gallery/prettyPhoto/facebook/btnNext.png b/sources/lib/plugins/gallery/prettyPhoto/facebook/btnNext.png new file mode 100755 index 0000000000000000000000000000000000000000..e809c3b64219468c4c744a4d4f086460ee6c8d6f GIT binary patch literal 845 zcmV-T1G4;yP)*<*4T)FKQHep0ar5R4IgX^MaUqaei9+gx zK#oWha#RSUqSL<~3WaX<08-Gx({VYS&ijjti?_uR@~-8hZnyh^-|xRkG^9)>qkKN! zl-KJu5DVD?g=ju>xm?$Xh5WNRfWqOh&EardB^DA(E|(8RqtR)b&DNLlZLpn(p$eGi z`&orTF|@qAJk2o7i&QGLOI##dQYw|htE;OsCX;E5SV%0DN;Q&9CZ9}9OsI*4#8Ru( zs`d5t$3~-Zgjh%{jYc!Jv9U2@Fc^l3g~ZZowHMRr^dp^4H$*HXmR_&dE-fvYh=wc_ z3Pro!zDX=(u~^)J?Id2QRE~*+q-lEBVzIU=>}-WHNh1mRj|C z{RryGSG}%2dIs5OG>&IyXXA-Pf+n(PJ^^_=p4YKhtVrbXN3+>v=jP@Tkw~P_@2sjT zkSxnK1A)L=Fc{1u5vVJW3kwTxA&MW7NQ7^ieW(jp1wGI&cw?UNjUh#S6ZTw zv=GQ`i9&7*fyB)~dlCbzaP#I3d4f*+W2B^a+`I*CAvtuW2}tDH;^r%83popX4~!3$ z21E#lBbNccM_ivBiM@4iz~BDKto|Fa71itLv{we-TU_n~*cW_|z`dHEQ5#*7zXcco X7c=PvI!UA-00000NkvXXu0mjfDKUXP literal 0 HcmV?d00001 diff --git a/sources/lib/plugins/gallery/prettyPhoto/facebook/btnPrevious.png b/sources/lib/plugins/gallery/prettyPhoto/facebook/btnPrevious.png new file mode 100755 index 0000000000000000000000000000000000000000..0812542cccfdfd9d1644ed721516c00fc6a03c24 GIT binary patch literal 828 zcmV-C1H=4@P)-u>SFdGE)KMkDk;;yCW4W(C*+z6Lgc zFY;|dX$bxTZi7F9Ykb?Ev7Z9+0(b#Di=?A%@H+V0SwP+b-vz6X^fUlhz#FH5w1aOW z>FYhXjK+9>tc(C6K29qsq!R2vYzeYKq^0;HM*iEn3dyhunl7I|_Lf8F%zmrz~qC>8(u37?tz=A@d z;A9Eu^ZBm8EZ(OHC@SRA($eKGUEgAT#MYKR>U_=krgrTCLzGCqW>sR_j!;SbU_@ z>9k_30n{Na7RzL*R9Z9`40^Fva;lIflj&T!Tz+UY8fV1ZkEuc?lS!M|Y!>~BMitWI z@l@*ddPCNbolfTfwv9}q(b$$PBv!N8+;=z}nO3W{BU?zUTCMgIKwq}o?OoYIVpXfv zzTIwr-tBh3%N7!Ab91xja=BjgdcD4o;|hL2|JNaXZ*Om3tyYI+an&jm3OjJ0e1)N8 zm#)W^%jH_j%gdR;U~nK?NUT&U)mT|s$sU4a3yBqv$LqmhFgF|yN3w;)T3cJIg~Q=> zSOkYO`kz1&5zOWX$XY6pBwI)T3Gl0cf_{;tYag+xA0&`1Mj=}ykXwvGZjnIZVxV2d z06REt5=gvZR~UnQgX1RMC#&dK5s<{S!N)sRu@ZhTcfdAuRQ4h@;f#9=euwxvJ2}?Y zy#{|B_b~9cW8qbFRO5p`9$yjx>@&E_r{*VgLY3ri0R{lIBCT m-o+D*vL38xWMObn^tomvpcVhX~C5P hfz0h)jSP%z43bA#R32EIs{v|b@O1TaS?83{1OPdrCnx{_ literal 0 HcmV?d00001 diff --git a/sources/lib/plugins/gallery/prettyPhoto/facebook/contentPatternRight.png b/sources/lib/plugins/gallery/prettyPhoto/facebook/contentPatternRight.png new file mode 100755 index 0000000000000000000000000000000000000000..76e50d0f5c6a8d0ee5f69b82493d94805f93d47b GIT binary patch literal 136 zcmeAS@N?(olHy`uVBq!ia0vp^A|TAc1|)ksWqE;=WQl7;NpOBzNqJ&XDuZK6ep0G} zXKrG8YEWuoN@d~6R2!foEl(H6kcwMLfB0E=SQwO*la-k#HgqC} m{yP{*X)b2tGiPRG;$g@#WM60<^5zjxFN3G6pUXO@geCwXd?|PU literal 0 HcmV?d00001 diff --git a/sources/lib/plugins/gallery/prettyPhoto/facebook/default_thumbnail.gif b/sources/lib/plugins/gallery/prettyPhoto/facebook/default_thumbnail.gif new file mode 100755 index 0000000000000000000000000000000000000000..2b1280f32756805aaa557cea32c70b05a2aa46b4 GIT binary patch literal 227 zcmZ?wbhEHbG-6O>IKlt||NsBb%*?E=uIA+AG%zrD`0!y=R1_N<+vm@pjg5^ZBqW4{ zgcKDO=ggUN^5n@6A3hv7aNygwZyp{VGiT1cdi82iQIVXS9M~i*gyK&Yu&54*1lh^J znxLT2my$UzW7WEx*ZT@|&X?rguUPlK=KX)mqpTdl9&9X0-U1vFe5XV=OIC<1TA^wB zAR@v0R&G+mkFG;kP93Sa$EGmNNLpZ-!L!AgPrAh9_7P-L(M E0LAB0sQ>@~ literal 0 HcmV?d00001 diff --git a/sources/lib/plugins/gallery/prettyPhoto/facebook/loader.gif b/sources/lib/plugins/gallery/prettyPhoto/facebook/loader.gif new file mode 100755 index 0000000000000000000000000000000000000000..7ac990cf04f2323f9723518bfd72ce102222cefa GIT binary patch literal 2545 zcma*pYg7~I83*u}xzA)~n25ScX&WZP5>nU=1T3OL6cUK&3gY5=2L-vPKosR#4J1Gy z2{*Y2f`*F<925Z+DqcWPab1;V*Q&?%tge1gx39sBO@dC?%nI@=>b1`dA^f;rd<;kzBEP~@QDg`5nuHDmwWi`ccB(8fJu!D@W@6GOX&Kuyf#(~9#Kot4om)5$3D8qAS)~A$Ca-6yH;bP-YR%)e z*uVwm#a35*X`LHGj32c;jsl4QZfgsvW!V?{2-SqnJnoXXF*nkrHs1S%=LGrPst~{V z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qr892t1}tnKJhH@#8t@Kd5+JFTvl4fM{-RZmp`Sx`YdM zQ*$~Onmz9uH*Wk6mY{saiWOBvf?i4lkH>TT`RAW6gDB!RYQkPfgzD<*+I8#Jm3;c? zr7T3T9n?ATHE>Z`AQM@{D6M38;#?BkC=uHLwD<4JG|I}Oso>mzRq7cTtJ z?REz=G&FQbeJAKk1X*XVva+(pU>&?Vn&M%Ih9zUe$Eya^t>&FhR>>xah+xFnujZXj zR>>xah(PajA|Ig}IKL0y|J>lZJ#Fj(jrCpQI^mRy@qLaK%O>z1JI-Pz5NLJ~p&S1f ZU;uc#vp>^SEa3nE002ovPDHLkV1iA65^4Yd literal 0 HcmV?d00001 diff --git a/sources/lib/plugins/gallery/prettyPhoto/light_rounded/btnNext.png b/sources/lib/plugins/gallery/prettyPhoto/light_rounded/btnNext.png new file mode 100755 index 0000000000000000000000000000000000000000..b28c1ef3d595d5af9db1f2a4378cfd64407ed5c0 GIT binary patch literal 1411 zcmV-}1$_F6P)$9a05|MJUF0->4SGK<7F5TJ=lWKN6+&IhzfIXTxP_BAUYSlC~k)ya96~A ztE!1Fs3@{uSCwU7suGg-Dqm*4{6%~bnXhbax0`G>8;y^TlaJ!y=Z$>*$bCxrnvF(o z`x+M)R}d8y<%*4sb=vKA7v=~-N$_0n-ZRLqHxCaF-bMz>;maqN%k>M_92kbLQc)rz zB8pyLU&UAqOwrNN6cZCek&%%UV)*w#qa-FKlGEv|W5{3m+Nvr57=wC&(2ff5mzNh( z17JKGEL7k>2JHbJV~7v<&GHpkvnUX*@G!g&=-b;{j2C0X$H#{?xZRXAJPcs=9iF5m z$;ezRVzj2FM&MRfRz${TF_i##NF31cG^#Z`@cilNNv;SVRNO-;YUtmzPp;pO=?M$H&KXa&kgtWo0s6lPBgmI5?pE{Cs(iF?a`l;~DyD zeo-f&{o>+6-iK$tg6sHliqT3V>L zx0mkj?xbHsLxUI=K#h%!R99C=xw*MwjGUYtIy^k2!oou8>FJR^X=!QH*48EpNJ&YN zz7-V})Y{rg#l^)k2J7^-2D?WJrFf_^uu26000%G@R$X09v$M0`^;N^cP^fA+Q(jhM zR905f>guZ8WBY@$Q1eGn3BF&S-6IO?Hdx z>uV}0DWR^eF6oE&U>w5J%A>2v)`ghfQje?W0Dg6KC9&Gv+$?R{&z#uwe4u1DKR++| z0`pl5JPg3TzCNn2uNR5JkaKf$B7Z_1&}6(^FbrUZ(Z+b=uwC z6(A&3NPBN@PmI#h(ILt+GyQw^>CHgU3XH4^;Dv>Sz>|8Qt(jZ55^YOLN}|opO-W|v z)`SB2*4EZaaw;z`7Z10$w~KTUvj`0&EQiD4JrpU!n-28IYLy5594xT8W%)a>_yR`3 z4uAv%?*STd2moYs%#XI6ogI-V+As$Uv9+}&&z6>!Bm^*iV`GB~3JU1x=tz`+@o0Yw z+J^WV9UU#@iT~smWm{7`EZfx7BohS#jDGsnrH2m_UXQDI4>Bu&@Eaf)XZ|(~k9jZ_ z_ZWxq`emr|Xzc63$X|%rJll+IY;0_V?|(O6W`YCeEnxjf(UTDFL-@J*W=y-;YJV`; zte&CGf|v^iSUrL(V1rF)A^YGM9v(j6)c=JS`mZnWV1WUv&|&|TH8L{d9vmF}hxfbR z82m3^-_rhKSS4+OhpU&ZpOyf34Gj(b&6|EdCyLJu@m1w&8bCiKt?{ei;p}BIk$v;W z;K0BD2qXDg#@j>#gM45R2lxBQbC~&$0rR=di9ZMN#~@dC2t52le+>RFzyR~BA^19M RLBjw5002ovPDHLkV1n=}nO*<@ literal 0 HcmV?d00001 diff --git a/sources/lib/plugins/gallery/prettyPhoto/light_rounded/btnPrevious.png b/sources/lib/plugins/gallery/prettyPhoto/light_rounded/btnPrevious.png new file mode 100755 index 0000000000000000000000000000000000000000..e0cd9c49af7fe2f6ab694843bdd3b90ce9217cb3 GIT binary patch literal 1442 zcmV;T1zq}yP)DPR}?-yIFE=Eh>D`1 zxDZ4LPAETaM%Rg1tJM?Bq#w*j8W7$G%8Lw&qL>a zCw-c0=k{xpz@y)ROWmrvb?SWQJHxHA4-E}n(SMgP*YTP@kUTy+|!o71v*0Uj9&rU)Awvb?t|yrluuz?lkGJ^!4>Q=_3#Yh7?%3ySpO=mYhx}U&DY{ ztyUfuiv?p_UHazs_V(+RmX<#~!COX0NBtf&z+PNj(ACuyg9R|V-7WxmjW|KE>|Uds z@STc?cg@YsKf-UK&-yU{K0Q69%gakX4+sdLz`#JA)xX(ON1M&Y_pk=Ql>x3!!mdfe z!^0^!IG908e&ZRJBWj|fqrXs78-l{_=_v@jjIfe|ffq^G2m?4m^pL_e6dJiF1qN%N zN7iBv{W#*>#30@cz{pcPr!(of7J!S2ium5d#02Y>wRk`5Q93?XY=7I{-o9Wrc}-P4 zijR+f<+;7RJ8Nysxo|~Jaii!%Fot>rm`FYk+ zS69dHT3lRYgFQtzUOxh`I6)W|z%w&5?&_^S2ghNqocjra(~1+%0Vc$oy}iBE*4D=J zf`S5W8<5G#N$Tn8;ro!p#6)%$WMgB4Iy*brNyEd#%-Ht!Hs$8#((&;zr$TIOEG;Z7 z@LUWu*&qh%L!_jnsm&{8?^!)!Wk?@MMb%{ePRf%0|=@*@(HY=il?Tga{EH4qxvIv(ca)R=-l7m z=dj0mge~-X6I1W@6l_i33LLtW&2z{I<5w2)1HBr?f(#o-m~a)XCyiluc>E>604H)GzA+XomH+?%07*qoM6N<$f}$awVgLXD literal 0 HcmV?d00001 diff --git a/sources/lib/plugins/gallery/prettyPhoto/light_rounded/default_thumbnail.gif b/sources/lib/plugins/gallery/prettyPhoto/light_rounded/default_thumbnail.gif new file mode 100755 index 0000000000000000000000000000000000000000..2b1280f32756805aaa557cea32c70b05a2aa46b4 GIT binary patch literal 227 zcmZ?wbhEHbG-6O>IKlt||NsBb%*?E=uIA+AG%zrD`0!y=R1_N<+vm@pjg5^ZBqW4{ zgcKDO=ggUN^5n@6A3hv7aNygwZyp{VGiT1cdi82iQIVXS9M~i*gyK&Yu&54*1lh^J znxLT2my$UzW7WEx*ZT@|&X?rguUPlK=KX)mqpTdl9&9X0-U1vFe5XV=OIC<1TA^wB zAR@v0R&G+mkFG;kP93Sa$EGmNNLpZ-!L!AgPrAh9_7P-L(M E0LAB0sQ>@~ literal 0 HcmV?d00001 diff --git a/sources/lib/plugins/gallery/prettyPhoto/light_rounded/loader.gif b/sources/lib/plugins/gallery/prettyPhoto/light_rounded/loader.gif new file mode 100755 index 0000000000000000000000000000000000000000..7ac990cf04f2323f9723518bfd72ce102222cefa GIT binary patch literal 2545 zcma*pYg7~I83*u}xzA)~n25ScX&WZP5>nU=1T3OL6cUK&3gY5=2L-vPKosR#4J1Gy z2{*Y2f`*F<925Z+DqcWPab1;V*Q&?%tge1gx39sBO@dC?%nI@=>b1`dA^f;rd<;kzBEP~@QDg`5nuHDmwWi`ccB(8fJu!D@W@6GOX&Kuyf#(~9#Kot4om)5$3D8qAS)~A$Ca-6yH;bP-YR%)e z*uVwm#a35*X`LHGj32c;jsl4QZfgsvW!V?{2-SqnJnoXXF*nkrHs1S%=LGrPst~{V zbIXcXr&l++uUTGfQbH(6qL7Kn#+Xt|g{`v4+z9V)In}XN;&Aif7dZ&S7naR;h=?Fn^{lc|@~&lZlv?W9&si{Zho3Zq zBNC0W8pT9f=}<$GQHasxVL1urLe*G$-i1I28VmOw4D1-nlxMUF7p{*V9W9#? zG3-PbWllts&>7IxQA0d2*lgcSw`;G+rpt*+JWGhuM10z1YIElzOCrY2>B0NtO_MPS zMFf29+_^(8vP$B!PKEl9XU62S@@i=sRcJ^lp7MFFlGzbm>4Ok7O@u`=7$RC~4%Sy4 zYHq1ICcqWPd4_@-lucMS20@nSCdAI1T?+2+dcgowe`%@+K-I${;uYHgEWPq*J&<;{Drqc!cL#1&wL zi~k_=rv}{|hWqv;9yTrI81Aln{6ubW*40;m3xk6_R;~^o)wq1blF3R~tzpvi6+Rf{ zO@-+>SE~;p9EM~ zU%BS@TGN0@Gf>_;Jmxbp+J13zX24k|z@bQPb{EF0CmfYbxJ~O%k&CRSN)_G#!raT! zB2RD$R7b>ld3eqn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19M RLBjw5002ovPDHLkV1n=}nO*<@ literal 0 HcmV?d00001 diff --git a/sources/lib/plugins/gallery/prettyPhoto/light_square/btnPrevious.png b/sources/lib/plugins/gallery/prettyPhoto/light_square/btnPrevious.png new file mode 100755 index 0000000000000000000000000000000000000000..e0cd9c49af7fe2f6ab694843bdd3b90ce9217cb3 GIT binary patch literal 1442 zcmV;T1zq}yP)DPR}?-yIFE=Eh>D`1 zxDZ4LPAETaM%Rg1tJM?Bq#w*j8W7$G%8Lw&qL>a zCw-c0=k{xpz@y)ROWmrvb?SWQJHxHA4-E}n(SMgP*YTP@kUTy+|!o71v*0Uj9&rU)Awvb?t|yrluuz?lkGJ^!4>Q=_3#Yh7?%3ySpO=mYhx}U&DY{ ztyUfuiv?p_UHazs_V(+RmX<#~!COX0NBtf&z+PNj(ACuyg9R|V-7WxmjW|KE>|Uds z@STc?cg@YsKf-UK&-yU{K0Q69%gakX4+sdLz`#JA)xX(ON1M&Y_pk=Ql>x3!!mdfe z!^0^!IG908e&ZRJBWj|fqrXs78-l{_=_v@jjIfe|ffq^G2m?4m^pL_e6dJiF1qN%N zN7iBv{W#*>#30@cz{pcPr!(of7J!S2ium5d#02Y>wRk`5Q93?XY=7I{-o9Wrc}-P4 zijR+f<+;7RJ8Nysxo|~Jaii!%Fot>rm`FYk+ zS69dHT3lRYgFQtzUOxh`I6)W|z%w&5?&_^S2ghNqocjra(~1+%0Vc$oy}iBE*4D=J zf`S5W8<5G#N$Tn8;ro!p#6)%$WMgB4Iy*brNyEd#%-Ht!Hs$8#((&;zr$TIOEG;Z7 z@LUWu*&qh%L!_jnsm&{8?^!)!Wk?@MMb%{ePRf%0|=@*@(HY=il?Tga{EH4qxvIv(ca)R=-l7m z=dj0mge~-X6I1W@6l_i33LLtW&2z{I<5w2)1HBr?f(#o-m~a)XCyiluc>E>604H)GzA+XomH+?%07*qoM6N<$f}$awVgLXD literal 0 HcmV?d00001 diff --git a/sources/lib/plugins/gallery/prettyPhoto/light_square/default_thumbnail.gif b/sources/lib/plugins/gallery/prettyPhoto/light_square/default_thumbnail.gif new file mode 100755 index 0000000000000000000000000000000000000000..2b1280f32756805aaa557cea32c70b05a2aa46b4 GIT binary patch literal 227 zcmZ?wbhEHbG-6O>IKlt||NsBb%*?E=uIA+AG%zrD`0!y=R1_N<+vm@pjg5^ZBqW4{ zgcKDO=ggUN^5n@6A3hv7aNygwZyp{VGiT1cdi82iQIVXS9M~i*gyK&Yu&54*1lh^J znxLT2my$UzW7WEx*ZT@|&X?rguUPlK=KX)mqpTdl9&9X0-U1vFe5XV=OIC<1TA^wB zAR@v0R&G+mkFG;kP93Sa$EGmNNLpZ-!L!AgPrAh9_7P-L(M E0LAB0sQ>@~ literal 0 HcmV?d00001 diff --git a/sources/lib/plugins/gallery/prettyPhoto/light_square/loader.gif b/sources/lib/plugins/gallery/prettyPhoto/light_square/loader.gif new file mode 100755 index 0000000000000000000000000000000000000000..7ac990cf04f2323f9723518bfd72ce102222cefa GIT binary patch literal 2545 zcma*pYg7~I83*u}xzA)~n25ScX&WZP5>nU=1T3OL6cUK&3gY5=2L-vPKosR#4J1Gy z2{*Y2f`*F<925Z+DqcWPab1;V*Q&?%tge1gx39sBO@dC?%nI@=>b1`dA^f;rd<;kzBEP~@QDg`5nuHDmwWi`ccB(8fJu!D@W@6GOX&Kuyf#(~9#Kot4om)5$3D8qAS)~A$Ca-6yH;bP-YR%)e z*uVwm#a35*X`LHGj32c;jsl4QZfgsvW!V?{2-SqnJnoXXF*nkrHs1S%=LGrPst~{V zbIXcXr&l++uUTGfQbH(6qL7Kn#+Xt|g{`v4+z9V)In}XN;&Aif7dZ&S7naR;h=?Fn^{lc|@~&lZlv?W9&si{Zho3Zq zBNC0W8pT9f=}<$GQHasxVL1urLe*G$-i1I28VmOw4D1-nlxMUF7p{*V9W9#? zG3-PbWllts&>7IxQA0d2*lgcSw`;G+rpt*+JWGhuM10z1YIElzOCrY2>B0NtO_MPS zMFf29+_^(8vP$B!PKEl9XU62S@@i=s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nm2}-5ve^HA&$S_wEUZqs&l8~K+0fS+@UF8-HSz>lc^>%&4p^;N+GXh~6k?jR zqSk=7m9H!-gbc5Ig9S`v+9xc^>2k0WGAnnvwWH(9G&z_N-?Rw&Vgqjy*#<1i?R^8P|~ zJJk+0_ZbJ+FGOy%F-b}wX~jQXYio0#kueNF{Ye1#>o97$5BhM;T~vRdIyQvL{VEAJ z{WsNbsP+p1b6>F8cTL2%wjp5d3cj0)?{d8g0dp?cP56T9IPuaPCaw+XRdhaUg{002ovPDHLkV1kA;p5g!i literal 0 HcmV?d00001 diff --git a/sources/lib/plugins/gallery/screen.css b/sources/lib/plugins/gallery/screen.css new file mode 100644 index 0000000..9536404 --- /dev/null +++ b/sources/lib/plugins/gallery/screen.css @@ -0,0 +1,60 @@ +div.dokuwiki div.gallery table { + border: none; +} +div.dokuwiki div.gallery table td { + padding: 1em; + text-align: center; + vertical-align: middle; + border: none; +} + +div.dokuwiki div.gallery table img.tn { + padding: 0.4em; + border: 1px solid __border__; + max-width: none; +} + +div.dokuwiki div.gallery { + clear: left; + margin-bottom: 1em; +} + +/*div.dokuwiki div.gallery div { + * float: left; + * }*/ + +div.dokuwiki div.gallery img.tn { + margin: 9px; + vertical-align: middle; + padding: 0.4em; + border: 1px solid #000; +} + +div.dokuwiki div.gallery_left { + float: left; +} + +div.dokuwiki div.gallery div { + float: left; +} + +div.dokuwiki div.gallery_right { + float: right; +} + +div.dokuwiki div.gallery_center { + margin-left: auto; + margin-right: auto; +} + +div.dokuwiki div.gallery_center { + width: 80%; + text-align: center; +} + +/* for pagination */ +div.dokuwiki div.gallery div.gallery_pages { + float: none; + text-align: left; +} + diff --git a/sources/lib/plugins/gallery/script.js b/sources/lib/plugins/gallery/script.js new file mode 100644 index 0000000..249fb4c --- /dev/null +++ b/sources/lib/plugins/gallery/script.js @@ -0,0 +1,60 @@ +/* DOKUWIKI:include_once jquery.prettyPhoto.js */ + +/** + * Add a quicklink to the media popup + */ +function gallery_plugin(){ + var $opts = jQuery('#media__opts'); + if(!$opts.length) return; + if(!window.opener) return; + + var glbl = document.createElement('label'); + var glnk = document.createElement('a'); + var gbrk = document.createElement('br'); + glnk.name = 'gallery_plugin'; + glnk.innerHTML = LANG.plugins.gallery.addgal; //FIXME localize + glnk.style.cursor = 'pointer'; + + glnk.onclick = function(){ + var $h1 = jQuery('#media__ns'); + if(!$h1.length) return; + var ns = $h1[0].innerHTML; + opener.insertAtCarret('wiki__text','{{gallery>'+ns+'}}'); + if(!dw_mediamanager.keepopen) window.close(); + }; + + $opts[0].appendChild(glbl); + glbl.appendChild(glnk); + $opts[0].appendChild(gbrk); +} + +/** + * Display a selected page and hide all others + */ +function gallery_pageselect(e){ + var galid = e.target.hash.substr(10,4); + var $pages = jQuery('div.gallery__'+galid); + $pages.hide(); + jQuery('#'+e.target.hash.substr(1)).show(); + return false; +} + +// === main === +jQuery(function(){ + jQuery("a.lightbox, a[rel^='lightbox']").prettyPhoto({ + overlay_gallery: false, + slideshow: 2000, + description_src: 'longdesc' + }); + + gallery_plugin(); + + // hide all pages except the first one + var $pages = jQuery('div.gallery_page'); + $pages.hide(); + $pages.eq(0).show(); + + // attach page selector + jQuery('a.gallery_pgsel').click(gallery_pageselect); +}); + diff --git a/sources/lib/plugins/gallery/style.css b/sources/lib/plugins/gallery/style.css new file mode 100644 index 0000000..268c26a --- /dev/null +++ b/sources/lib/plugins/gallery/style.css @@ -0,0 +1,525 @@ +/* ------------------------------------------------------------------------ + This you can edit. +------------------------------------------------------------------------- */ + + /* ---------------------------------- + Default Theme + ----------------------------------- */ + + div.pp_default .pp_top, + div.pp_default .pp_top .pp_middle, + div.pp_default .pp_top .pp_left, + div.pp_default .pp_top .pp_right, + div.pp_default .pp_bottom, + div.pp_default .pp_bottom .pp_left, + div.pp_default .pp_bottom .pp_middle, + div.pp_default .pp_bottom .pp_right { height: 13px; } + + div.pp_default .pp_top .pp_left { background: url(prettyPhoto/default/sprite.png) -78px -93px no-repeat; } /* Top left corner */ + div.pp_default .pp_top .pp_middle { background: url(prettyPhoto/default/sprite_x.png) top left repeat-x; } /* Top pattern/color */ + div.pp_default .pp_top .pp_right { background: url(prettyPhoto/default/sprite.png) -112px -93px no-repeat; } /* Top right corner */ + + div.pp_default .pp_content .ppt { color: #f8f8f8; } + div.pp_default .pp_content_container .pp_left { background: url(prettyPhoto/default/sprite_y.png) -7px 0 repeat-y; padding-left: 13px; } + div.pp_default .pp_content_container .pp_right { background: url(prettyPhoto/default/sprite_y.png) top right repeat-y; padding-right: 13px; } + div.pp_default .pp_content { background-color: #fff; } /* Content background */ + div.pp_default .pp_next:hover { background: url(prettyPhoto/default/sprite_next.png) center right no-repeat; cursor: pointer; } /* Next button */ + div.pp_default .pp_previous:hover { background: url(prettyPhoto/default/sprite_prev.png) center left no-repeat; cursor: pointer; } /* Previous button */ + div.pp_default .pp_expand { background: url(prettyPhoto/default/sprite.png) 0 -29px no-repeat; cursor: pointer; width: 28px; height: 28px; } /* Expand button */ + div.pp_default .pp_expand:hover { background: url(prettyPhoto/default/sprite.png) 0 -56px no-repeat; cursor: pointer; } /* Expand button hover */ + div.pp_default .pp_contract { background: url(prettyPhoto/default/sprite.png) 0 -84px no-repeat; cursor: pointer; width: 28px; height: 28px; } /* Contract button */ + div.pp_default .pp_contract:hover { background: url(prettyPhoto/default/sprite.png) 0 -113px no-repeat; cursor: pointer; } /* Contract button hover */ + div.pp_default .pp_close { width: 30px; height: 30px; background: url(prettyPhoto/default/sprite.png) 2px 1px no-repeat; cursor: pointer; } /* Close button */ + div.pp_default #pp_full_res .pp_inline { color: #000; } + div.pp_default .pp_gallery ul li a { background: url(prettyPhoto/default/default_thumb.png) center center #f8f8f8; border:1px solid #aaa; } + div.pp_default .pp_gallery ul li a:hover, + div.pp_default .pp_gallery ul li.selected a { border-color: #fff; } + div.pp_default .pp_social { margin-top: 7px; } + + div.pp_default .pp_gallery a.pp_arrow_previous, + div.pp_default .pp_gallery a.pp_arrow_next { position: static; left: auto; } + div.pp_default .pp_nav .pp_play, + div.pp_default .pp_nav .pp_pause { background: url(prettyPhoto/default/sprite.png) -51px 1px no-repeat; height:30px; width:30px; } + div.pp_default .pp_nav .pp_pause { background-position: -51px -29px; } + div.pp_default .pp_details { position: relative; } + div.pp_default a.pp_arrow_previous, + div.pp_default a.pp_arrow_next { background: url(prettyPhoto/default/sprite.png) -31px -3px no-repeat; height: 20px; margin: 4px 0 0 0; width: 20px; } + div.pp_default a.pp_arrow_next { left: 52px; background-position: -82px -3px; } /* The next arrow in the bottom nav */ + div.pp_default .pp_content_container .pp_details { margin-top: 5px; } + div.pp_default .pp_nav { clear: none; height: 30px; width: 110px; position: relative; } + div.pp_default .pp_nav .currentTextHolder{ font-family: Georgia; font-style: italic; color:#999; font-size: 11px; left: 75px; line-height: 25px; margin: 0; padding: 0 0 0 10px; position: absolute; top: 2px; } + + div.pp_default .pp_close:hover, div.pp_default .pp_nav .pp_play:hover, div.pp_default .pp_nav .pp_pause:hover, div.pp_default .pp_arrow_next:hover, div.pp_default .pp_arrow_previous:hover { opacity:0.7; } + + div.pp_default .pp_description{ font-size: 11px; font-weight: bold; line-height: 14px; margin: 5px 50px 5px 0; } + + div.pp_default .pp_bottom .pp_left { background: url(prettyPhoto/default/sprite.png) -78px -127px no-repeat; } /* Bottom left corner */ + div.pp_default .pp_bottom .pp_middle { background: url(prettyPhoto/default/sprite_x.png) bottom left repeat-x; } /* Bottom pattern/color */ + div.pp_default .pp_bottom .pp_right { background: url(prettyPhoto/default/sprite.png) -112px -127px no-repeat; } /* Bottom right corner */ + + div.pp_default .pp_loaderIcon { background: url(prettyPhoto/default/loader.gif) center center no-repeat; } /* Loader icon */ + + + /* ---------------------------------- + Light Rounded Theme + ----------------------------------- */ + + + div.light_rounded .pp_top .pp_left { background: url(prettyPhoto/light_rounded/sprite.png) -88px -53px no-repeat; } /* Top left corner */ + div.light_rounded .pp_top .pp_middle { background: #fff; } /* Top pattern/color */ + div.light_rounded .pp_top .pp_right { background: url(prettyPhoto/light_rounded/sprite.png) -110px -53px no-repeat; } /* Top right corner */ + + div.light_rounded .pp_content .ppt { color: #000; } + div.light_rounded .pp_content_container .pp_left, + div.light_rounded .pp_content_container .pp_right { background: #fff; } + div.light_rounded .pp_content { background-color: #fff; } /* Content background */ + div.light_rounded .pp_next:hover { background: url(prettyPhoto/light_rounded/btnNext.png) center right no-repeat; cursor: pointer; } /* Next button */ + div.light_rounded .pp_previous:hover { background: url(prettyPhoto/light_rounded/btnPrevious.png) center left no-repeat; cursor: pointer; } /* Previous button */ + div.light_rounded .pp_expand { background: url(prettyPhoto/light_rounded/sprite.png) -31px -26px no-repeat; cursor: pointer; } /* Expand button */ + div.light_rounded .pp_expand:hover { background: url(prettyPhoto/light_rounded/sprite.png) -31px -47px no-repeat; cursor: pointer; } /* Expand button hover */ + div.light_rounded .pp_contract { background: url(prettyPhoto/light_rounded/sprite.png) 0 -26px no-repeat; cursor: pointer; } /* Contract button */ + div.light_rounded .pp_contract:hover { background: url(prettyPhoto/light_rounded/sprite.png) 0 -47px no-repeat; cursor: pointer; } /* Contract button hover */ + div.light_rounded .pp_close { width: 75px; height: 22px; background: url(prettyPhoto/light_rounded/sprite.png) -1px -1px no-repeat; cursor: pointer; } /* Close button */ + div.light_rounded .pp_details { position: relative; } + div.light_rounded .pp_description { margin-right: 85px; } + div.light_rounded #pp_full_res .pp_inline { color: #000; } + div.light_rounded .pp_gallery a.pp_arrow_previous, + div.light_rounded .pp_gallery a.pp_arrow_next { margin-top: 12px !important; } + div.light_rounded .pp_nav .pp_play { background: url(prettyPhoto/light_rounded/sprite.png) -1px -100px no-repeat; height: 15px; width: 14px; } + div.light_rounded .pp_nav .pp_pause { background: url(prettyPhoto/light_rounded/sprite.png) -24px -100px no-repeat; height: 15px; width: 14px; } + + div.light_rounded .pp_arrow_previous { background: url(prettyPhoto/light_rounded/sprite.png) 0 -71px no-repeat; } /* The previous arrow in the bottom nav */ + div.light_rounded .pp_arrow_previous.disabled { background-position: 0 -87px; cursor: default; } + div.light_rounded .pp_arrow_next { background: url(prettyPhoto/light_rounded/sprite.png) -22px -71px no-repeat; } /* The next arrow in the bottom nav */ + div.light_rounded .pp_arrow_next.disabled { background-position: -22px -87px; cursor: default; } + + div.light_rounded .pp_bottom .pp_left { background: url(prettyPhoto/light_rounded/sprite.png) -88px -80px no-repeat; } /* Bottom left corner */ + div.light_rounded .pp_bottom .pp_middle { background: #fff; } /* Bottom pattern/color */ + div.light_rounded .pp_bottom .pp_right { background: url(prettyPhoto/light_rounded/sprite.png) -110px -80px no-repeat; } /* Bottom right corner */ + + div.light_rounded .pp_loaderIcon { background: url(prettyPhoto/light_rounded/loader.gif) center center no-repeat; } /* Loader icon */ + + /* ---------------------------------- + Dark Rounded Theme + ----------------------------------- */ + + div.dark_rounded .pp_top .pp_left { background: url(prettyPhoto/dark_rounded/sprite.png) -88px -53px no-repeat; } /* Top left corner */ + div.dark_rounded .pp_top .pp_middle { background: url(prettyPhoto/dark_rounded/contentPattern.png) top left repeat; } /* Top pattern/color */ + div.dark_rounded .pp_top .pp_right { background: url(prettyPhoto/dark_rounded/sprite.png) -110px -53px no-repeat; } /* Top right corner */ + + div.dark_rounded .pp_content_container .pp_left { background: url(prettyPhoto/dark_rounded/contentPattern.png) top left repeat-y; } /* Left Content background */ + div.dark_rounded .pp_content_container .pp_right { background: url(prettyPhoto/dark_rounded/contentPattern.png) top right repeat-y; } /* Right Content background */ + div.dark_rounded .pp_content { background: url(prettyPhoto/dark_rounded/contentPattern.png) top left repeat; } /* Content background */ + div.dark_rounded .pp_next:hover { background: url(prettyPhoto/dark_rounded/btnNext.png) center right no-repeat; cursor: pointer; } /* Next button */ + div.dark_rounded .pp_previous:hover { background: url(prettyPhoto/dark_rounded/btnPrevious.png) center left no-repeat; cursor: pointer; } /* Previous button */ + div.dark_rounded .pp_expand { background: url(prettyPhoto/dark_rounded/sprite.png) -31px -26px no-repeat; cursor: pointer; } /* Expand button */ + div.dark_rounded .pp_expand:hover { background: url(prettyPhoto/dark_rounded/sprite.png) -31px -47px no-repeat; cursor: pointer; } /* Expand button hover */ + div.dark_rounded .pp_contract { background: url(prettyPhoto/dark_rounded/sprite.png) 0 -26px no-repeat; cursor: pointer; } /* Contract button */ + div.dark_rounded .pp_contract:hover { background: url(prettyPhoto/dark_rounded/sprite.png) 0 -47px no-repeat; cursor: pointer; } /* Contract button hover */ + div.dark_rounded .pp_close { width: 75px; height: 22px; background: url(prettyPhoto/dark_rounded/sprite.png) -1px -1px no-repeat; cursor: pointer; } /* Close button */ + div.dark_rounded .pp_details { position: relative; } + div.dark_rounded .pp_description { margin-right: 85px; } + div.dark_rounded .currentTextHolder { color: #c4c4c4; } + div.dark_rounded .pp_description { color: #fff; } + div.dark_rounded #pp_full_res .pp_inline { color: #fff; } + div.dark_rounded .pp_gallery a.pp_arrow_previous, + div.dark_rounded .pp_gallery a.pp_arrow_next { margin-top: 12px !important; } + div.dark_rounded .pp_nav .pp_play { background: url(prettyPhoto/dark_rounded/sprite.png) -1px -100px no-repeat; height: 15px; width: 14px; } + div.dark_rounded .pp_nav .pp_pause { background: url(prettyPhoto/dark_rounded/sprite.png) -24px -100px no-repeat; height: 15px; width: 14px; } + + div.dark_rounded .pp_arrow_previous { background: url(prettyPhoto/dark_rounded/sprite.png) 0 -71px no-repeat; } /* The previous arrow in the bottom nav */ + div.dark_rounded .pp_arrow_previous.disabled { background-position: 0 -87px; cursor: default; } + div.dark_rounded .pp_arrow_next { background: url(prettyPhoto/dark_rounded/sprite.png) -22px -71px no-repeat; } /* The next arrow in the bottom nav */ + div.dark_rounded .pp_arrow_next.disabled { background-position: -22px -87px; cursor: default; } + + div.dark_rounded .pp_bottom .pp_left { background: url(prettyPhoto/dark_rounded/sprite.png) -88px -80px no-repeat; } /* Bottom left corner */ + div.dark_rounded .pp_bottom .pp_middle { background: url(prettyPhoto/dark_rounded/contentPattern.png) top left repeat; } /* Bottom pattern/color */ + div.dark_rounded .pp_bottom .pp_right { background: url(prettyPhoto/dark_rounded/sprite.png) -110px -80px no-repeat; } /* Bottom right corner */ + + div.dark_rounded .pp_loaderIcon { background: url(prettyPhoto/dark_rounded/loader.gif) center center no-repeat; } /* Loader icon */ + + + /* ---------------------------------- + Dark Square Theme + ----------------------------------- */ + + div.dark_square .pp_left , + div.dark_square .pp_middle, + div.dark_square .pp_right, + div.dark_square .pp_content { background: #000; } + + div.dark_square .currentTextHolder { color: #c4c4c4; } + div.dark_square .pp_description { color: #fff; } + div.dark_square .pp_loaderIcon { background: url(prettyPhoto/dark_square/loader.gif) center center no-repeat; } /* Loader icon */ + + div.dark_square .pp_expand { background: url(prettyPhoto/dark_square/sprite.png) -31px -26px no-repeat; cursor: pointer; } /* Expand button */ + div.dark_square .pp_expand:hover { background: url(prettyPhoto/dark_square/sprite.png) -31px -47px no-repeat; cursor: pointer; } /* Expand button hover */ + div.dark_square .pp_contract { background: url(prettyPhoto/dark_square/sprite.png) 0 -26px no-repeat; cursor: pointer; } /* Contract button */ + div.dark_square .pp_contract:hover { background: url(prettyPhoto/dark_square/sprite.png) 0 -47px no-repeat; cursor: pointer; } /* Contract button hover */ + div.dark_square .pp_close { width: 75px; height: 22px; background: url(prettyPhoto/dark_square/sprite.png) -1px -1px no-repeat; cursor: pointer; } /* Close button */ + div.dark_square .pp_details { position: relative; } + div.dark_square .pp_description { margin: 0 85px 0 0; } + div.dark_square #pp_full_res .pp_inline { color: #fff; } + div.dark_square .pp_gallery a.pp_arrow_previous, + div.dark_square .pp_gallery a.pp_arrow_next { margin-top: 12px !important; } + div.dark_square .pp_nav { clear: none; } + div.dark_square .pp_nav .pp_play { background: url(prettyPhoto/dark_square/sprite.png) -1px -100px no-repeat; height: 15px; width: 14px; } + div.dark_square .pp_nav .pp_pause { background: url(prettyPhoto/dark_square/sprite.png) -24px -100px no-repeat; height: 15px; width: 14px; } + + div.dark_square .pp_arrow_previous { background: url(prettyPhoto/dark_square/sprite.png) 0 -71px no-repeat; } /* The previous arrow in the bottom nav */ + div.dark_square .pp_arrow_previous.disabled { background-position: 0 -87px; cursor: default; } + div.dark_square .pp_arrow_next { background: url(prettyPhoto/dark_square/sprite.png) -22px -71px no-repeat; } /* The next arrow in the bottom nav */ + div.dark_square .pp_arrow_next.disabled { background-position: -22px -87px; cursor: default; } + + div.dark_square .pp_next:hover { background: url(prettyPhoto/dark_square/btnNext.png) center right no-repeat; cursor: pointer; } /* Next button */ + div.dark_square .pp_previous:hover { background: url(prettyPhoto/dark_square/btnPrevious.png) center left no-repeat; cursor: pointer; } /* Previous button */ + + + /* ---------------------------------- + Light Square Theme + ----------------------------------- */ + + div.light_square .pp_left , + div.light_square .pp_middle, + div.light_square .pp_right, + div.light_square .pp_content { background: #fff; } + + div.light_square .pp_content .ppt { color: #000; } + div.light_square .pp_expand { background: url(prettyPhoto/light_square/sprite.png) -31px -26px no-repeat; cursor: pointer; } /* Expand button */ + div.light_square .pp_expand:hover { background: url(prettyPhoto/light_square/sprite.png) -31px -47px no-repeat; cursor: pointer; } /* Expand button hover */ + div.light_square .pp_contract { background: url(prettyPhoto/light_square/sprite.png) 0 -26px no-repeat; cursor: pointer; } /* Contract button */ + div.light_square .pp_contract:hover { background: url(prettyPhoto/light_square/sprite.png) 0 -47px no-repeat; cursor: pointer; } /* Contract button hover */ + div.light_square .pp_close { width: 75px; height: 22px; background: url(prettyPhoto/light_square/sprite.png) -1px -1px no-repeat; cursor: pointer; } /* Close button */ + div.light_square .pp_details { position: relative; } + div.light_square .pp_description { margin-right: 85px; } + div.light_square #pp_full_res .pp_inline { color: #000; } + div.light_square .pp_gallery a.pp_arrow_previous, + div.light_square .pp_gallery a.pp_arrow_next { margin-top: 12px !important; } + div.light_square .pp_nav .pp_play { background: url(prettyPhoto/light_square/sprite.png) -1px -100px no-repeat; height: 15px; width: 14px; } + div.light_square .pp_nav .pp_pause { background: url(prettyPhoto/light_square/sprite.png) -24px -100px no-repeat; height: 15px; width: 14px; } + + div.light_square .pp_arrow_previous { background: url(prettyPhoto/light_square/sprite.png) 0 -71px no-repeat; } /* The previous arrow in the bottom nav */ + div.light_square .pp_arrow_previous.disabled { background-position: 0 -87px; cursor: default; } + div.light_square .pp_arrow_next { background: url(prettyPhoto/light_square/sprite.png) -22px -71px no-repeat; } /* The next arrow in the bottom nav */ + div.light_square .pp_arrow_next.disabled { background-position: -22px -87px; cursor: default; } + + div.light_square .pp_next:hover { background: url(prettyPhoto/light_square/btnNext.png) center right no-repeat; cursor: pointer; } /* Next button */ + div.light_square .pp_previous:hover { background: url(prettyPhoto/light_square/btnPrevious.png) center left no-repeat; cursor: pointer; } /* Previous button */ + + div.light_square .pp_loaderIcon { background: url(prettyPhoto/light_rounded/loader.gif) center center no-repeat; } /* Loader icon */ + + + /* ---------------------------------- + Facebook style Theme + ----------------------------------- */ + + div.facebook .pp_top .pp_left { background: url(prettyPhoto/facebook/sprite.png) -88px -53px no-repeat; } /* Top left corner */ + div.facebook .pp_top .pp_middle { background: url(prettyPhoto/facebook/contentPatternTop.png) top left repeat-x; } /* Top pattern/color */ + div.facebook .pp_top .pp_right { background: url(prettyPhoto/facebook/sprite.png) -110px -53px no-repeat; } /* Top right corner */ + + div.facebook .pp_content .ppt { color: #000; } + div.facebook .pp_content_container .pp_left { background: url(prettyPhoto/facebook/contentPatternLeft.png) top left repeat-y; } /* Content background */ + div.facebook .pp_content_container .pp_right { background: url(prettyPhoto/facebook/contentPatternRight.png) top right repeat-y; } /* Content background */ + div.facebook .pp_content { background: #fff; } /* Content background */ + div.facebook .pp_expand { background: url(prettyPhoto/facebook/sprite.png) -31px -26px no-repeat; cursor: pointer; } /* Expand button */ + div.facebook .pp_expand:hover { background: url(prettyPhoto/facebook/sprite.png) -31px -47px no-repeat; cursor: pointer; } /* Expand button hover */ + div.facebook .pp_contract { background: url(prettyPhoto/facebook/sprite.png) 0 -26px no-repeat; cursor: pointer; } /* Contract button */ + div.facebook .pp_contract:hover { background: url(prettyPhoto/facebook/sprite.png) 0 -47px no-repeat; cursor: pointer; } /* Contract button hover */ + div.facebook .pp_close { width: 22px; height: 22px; background: url(prettyPhoto/facebook/sprite.png) -1px -1px no-repeat; cursor: pointer; } /* Close button */ + div.facebook .pp_details { position: relative; } + div.facebook .pp_description { margin: 0 37px 0 0; } + div.facebook #pp_full_res .pp_inline { color: #000; } + div.facebook .pp_loaderIcon { background: url(prettyPhoto/facebook/loader.gif) center center no-repeat; } /* Loader icon */ + + div.facebook .pp_arrow_previous { background: url(prettyPhoto/facebook/sprite.png) 0 -71px no-repeat; height: 22px; margin-top: 0; width: 22px; } /* The previous arrow in the bottom nav */ + div.facebook .pp_arrow_previous.disabled { background-position: 0 -96px; cursor: default; } + div.facebook .pp_arrow_next { background: url(prettyPhoto/facebook/sprite.png) -32px -71px no-repeat; height: 22px; margin-top: 0; width: 22px; } /* The next arrow in the bottom nav */ + div.facebook .pp_arrow_next.disabled { background-position: -32px -96px; cursor: default; } + div.facebook .pp_nav { margin-top: 0; } + div.facebook .pp_nav p { font-size: 15px; padding: 0 3px 0 4px; } + div.facebook .pp_nav .pp_play { background: url(prettyPhoto/facebook/sprite.png) -1px -123px no-repeat; height: 22px; width: 22px; } + div.facebook .pp_nav .pp_pause { background: url(prettyPhoto/facebook/sprite.png) -32px -123px no-repeat; height: 22px; width: 22px; } + + div.facebook .pp_next:hover { background: url(prettyPhoto/facebook/btnNext.png) center right no-repeat; cursor: pointer; } /* Next button */ + div.facebook .pp_previous:hover { background: url(prettyPhoto/facebook/btnPrevious.png) center left no-repeat; cursor: pointer; } /* Previous button */ + + div.facebook .pp_bottom .pp_left { background: url(prettyPhoto/facebook/sprite.png) -88px -80px no-repeat; } /* Bottom left corner */ + div.facebook .pp_bottom .pp_middle { background: url(prettyPhoto/facebook/contentPatternBottom.png) top left repeat-x; } /* Bottom pattern/color */ + div.facebook .pp_bottom .pp_right { background: url(prettyPhoto/facebook/sprite.png) -110px -80px no-repeat; } /* Bottom right corner */ + + +/* ------------------------------------------------------------------------ + DO NOT CHANGE +------------------------------------------------------------------------- */ + + div.pp_pic_holder a:focus { outline:none; } + + div.pp_overlay { + background: #000; + display: none; + left: 0; + position: absolute; + top: 0; + width: 100%; + z-index: 9500; + } + + div.pp_pic_holder { + display: none; + position: absolute; + width: 100px; + z-index: 10000; + } + + + .pp_top { + height: 20px; + position: relative; + } + * html .pp_top { padding: 0 20px; } + + .pp_top .pp_left { + height: 20px; + left: 0; + position: absolute; + width: 20px; + } + .pp_top .pp_middle { + height: 20px; + left: 20px; + position: absolute; + right: 20px; + } + * html .pp_top .pp_middle { + left: 0; + position: static; + } + + .pp_top .pp_right { + height: 20px; + left: auto; + position: absolute; + right: 0; + top: 0; + width: 20px; + } + + .pp_content { height: 40px; min-width: 40px; } + * html .pp_content { width: 40px; } + + .pp_fade { display: none; } + + .pp_content_container { + position: relative; + text-align: left; + width: 100%; + } + + .pp_content_container .pp_left { padding-left: 20px; } + .pp_content_container .pp_right { padding-right: 20px; } + + .pp_content_container .pp_details { + float: left; + margin: 10px 0 2px 0; + } + .pp_description { + display: none; + margin: 0; + } + + .pp_social { float: left; margin: 0; } + .pp_social .facebook { float: left; margin-left: 5px; width: 55px; overflow: hidden; } + .pp_social .twitter { float: left; } + + .pp_nav { + clear: right; + float: left; + margin: 3px 10px 0 0; + } + + .pp_nav p { + float: left; + margin: 2px 4px; + white-space: nowrap; + } + + .pp_nav .pp_play, + .pp_nav .pp_pause { + float: left; + margin-right: 4px; + text-indent: -10000px; + } + + a.pp_arrow_previous, + a.pp_arrow_next { + display: block; + float: left; + height: 15px; + margin-top: 3px; + overflow: hidden; + text-indent: -10000px; + width: 14px; + } + + .pp_hoverContainer { + position: absolute; + top: 0; + width: 100%; + z-index: 2000; + } + + .pp_gallery { + display: none; + left: 50%; + margin-top: -50px; + position: absolute; + z-index: 10000; + } + + .pp_gallery div { + float: left; + overflow: hidden; + position: relative; + } + + .pp_gallery ul { + float: left; + height: 35px; + margin: 0 0 0 5px; + padding: 0; + position: relative; + white-space: nowrap; + } + + .pp_gallery ul a { + border: 1px #000 solid; + border: 1px rgba(0,0,0,0.5) solid; + display: block; + float: left; + height: 33px; + overflow: hidden; + } + + .pp_gallery ul a:hover, + .pp_gallery li.selected a { border-color: #fff; } + + .pp_gallery ul a img { border: 0; } + + .pp_gallery li { + display: block; + float: left; + margin: 0 5px 0 0; + padding: 0; + } + + .pp_gallery li.default a { + background: url(prettyPhoto/facebook/default_thumbnail.gif) 0 0 no-repeat; + display: block; + height: 33px; + width: 50px; + } + + .pp_gallery li.default a img { display: none; } + + .pp_gallery .pp_arrow_previous, + .pp_gallery .pp_arrow_next { + margin-top: 7px !important; + } + + a.pp_next { + background: url(prettyPhoto/light_rounded/btnNext.png) 10000px 10000px no-repeat; + display: block; + float: right; + height: 100%; + text-indent: -10000px; + width: 49%; + } + + a.pp_previous { + background: url(prettyPhoto/light_rounded/btnNext.png) 10000px 10000px no-repeat; + display: block; + float: left; + height: 100%; + text-indent: -10000px; + width: 49%; + } + + a.pp_expand, + a.pp_contract { + cursor: pointer; + display: none; + height: 20px; + position: absolute; + right: 30px; + text-indent: -10000px; + top: 10px; + width: 20px; + z-index: 20000; + } + + a.pp_close { + position: absolute; right: 0; top: 0; + display: block; + line-height:22px; + text-indent: -10000px; + } + + .pp_bottom { + height: 20px; + position: relative; + } + * html .pp_bottom { padding: 0 20px; } + + .pp_bottom .pp_left { + height: 20px; + left: 0; + position: absolute; + width: 20px; + } + .pp_bottom .pp_middle { + height: 20px; + left: 20px; + position: absolute; + right: 20px; + } + * html .pp_bottom .pp_middle { + left: 0; + position: static; + } + + .pp_bottom .pp_right { + height: 20px; + left: auto; + position: absolute; + right: 0; + top: 0; + width: 20px; + } + + .pp_loaderIcon { + display: block; + height: 24px; + left: 50%; + margin: -12px 0 0 -12px; + position: absolute; + top: 50%; + width: 24px; + } + + #pp_full_res { + line-height: 1 !important; + } + + #pp_full_res .pp_inline { + text-align: left; + } + + #pp_full_res .pp_inline p { margin: 0 0 15px 0; } + + div.ppt { + color: #fff; + display: none; + font-size: 17px; + margin: 0 0 5px 15px; + z-index: 9999; + } diff --git a/sources/lib/plugins/gallery/syntax.php b/sources/lib/plugins/gallery/syntax.php new file mode 100644 index 0000000..8c32f7b --- /dev/null +++ b/sources/lib/plugins/gallery/syntax.php @@ -0,0 +1,663 @@ + + * @author Joe Lapp + * @author Dave Doyle + */ + +if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../').'/'); +if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/'); +require_once(DOKU_PLUGIN.'syntax.php'); +require_once(DOKU_INC.'inc/search.php'); +require_once(DOKU_INC.'inc/JpegMeta.php'); + +class syntax_plugin_gallery extends DokuWiki_Syntax_Plugin { + + /** + * What kind of syntax are we? + */ + function getType(){ + return 'substition'; + } + + /** + * What about paragraphs? + */ + function getPType(){ + return 'block'; + } + + /** + * Where to sort in? + */ + function getSort(){ + return 301; + } + + + /** + * Connect pattern to lexer + */ + function connectTo($mode) { + $this->Lexer->addSpecialPattern('\{\{gallery>[^}]*\}\}',$mode,'plugin_gallery'); + } + + /** + * Handle the match + */ + function handle($match, $state, $pos, &$handler){ + global $ID; + $match = substr($match,10,-2); //strip markup from start and end + + $data = array(); + + $data['galid'] = substr(md5($match),0,4); + + // alignment + $data['align'] = 0; + if(substr($match,0,1) == ' ') $data['align'] += 1; + if(substr($match,-1,1) == ' ') $data['align'] += 2; + + // extract params + list($ns,$params) = explode('?',$match,2); + $ns = trim($ns); + + // namespace (including resolving relatives) + if(!preg_match('/^https?:\/\//i',$ns)){ + $data['ns'] = resolve_id(getNS($ID),$ns); + }else{ + $data['ns'] = $ns; + } + + // set the defaults + $data['tw'] = $this->getConf('thumbnail_width'); + $data['th'] = $this->getConf('thumbnail_height'); + $data['iw'] = $this->getConf('image_width'); + $data['ih'] = $this->getConf('image_height'); + $data['cols'] = $this->getConf('cols'); + $data['filter'] = ''; + $data['lightbox'] = false; + $data['direct'] = false; + $data['showname'] = false; + $data['showtitle'] = false; + $data['reverse'] = false; + $data['random'] = false; + $data['cache'] = true; + $data['crop'] = false; + $data['recursive']= true; + $data['sort'] = $this->getConf('sort'); + $data['limit'] = 0; + $data['offset'] = 0; + $data['paginate'] = 0; + + // parse additional options + $params = $this->getConf('options').','.$params; + $params = preg_replace('/[,&\?]+/',' ',$params); + $params = explode(' ',$params); + foreach($params as $param){ + if($param === '') continue; + if($param == 'titlesort'){ + $data['sort'] = 'title'; + }elseif($param == 'datesort'){ + $data['sort'] = 'date'; + }elseif($param == 'modsort'){ + $data['sort'] = 'mod'; + }elseif(preg_match('/^=(\d+)$/',$param,$match)){ + $data['limit'] = $match[1]; + }elseif(preg_match('/^\+(\d+)$/',$param,$match)){ + $data['offset'] = $match[1]; + }elseif(is_numeric($param)){ + $data['cols'] = (int) $param; + }elseif(preg_match('/^~(\d+)$/',$param,$match)){ + $data['paginate'] = $match[1]; + }elseif(preg_match('/^(\d+)([xX])(\d+)$/',$param,$match)){ + if($match[2] == 'X'){ + $data['iw'] = $match[1]; + $data['ih'] = $match[3]; + }else{ + $data['tw'] = $match[1]; + $data['th'] = $match[3]; + } + }elseif(strpos($param,'*') !== false){ + $param = preg_quote($param,'/'); + $param = '/^'.str_replace('\\*','.*?',$param).'$/'; + $data['filter'] = $param; + }else{ + if(substr($param,0,2) == 'no'){ + $data[substr($param,2)] = false; + }else{ + $data[$param] = true; + } + } + } + + // implicit direct linking? + if($data['lightbox']) $data['direct'] = true; + + + return $data; + } + + /** + * Create output + */ + function render($mode, &$R, $data){ + global $ID; + if($mode == 'xhtml'){ + $R->info['cache'] = $data['cache']; + $R->doc .= $this->_gallery($data); + return true; + }elseif($mode == 'metadata'){ + $rel = p_get_metadata($ID,'relation',METADATA_RENDER_USING_CACHE); + $img = $rel['firstimage']; + if(empty($img)){ + $files = $this->_findimages($data); + if(count($files)) $R->internalmedia($files[0]['id']); + } + return true; + } + return false; + } + + /** + * Loads images from a MediaRSS or ATOM feed + */ + function _loadRSS($url){ + require_once(DOKU_INC.'inc/FeedParser.php'); + $feed = new FeedParser(); + $feed->set_feed_url($url); + $feed->init(); + $files = array(); + + // base url to use for broken feeds with non-absolute links + $main = parse_url($url); + $host = $main['scheme'].'://'. + $main['host']. + (($main['port'])?':'.$main['port']:''); + $path = dirname($main['path']).'/'; + + foreach($feed->get_items() as $item){ + if ($enclosure = $item->get_enclosure()){ + // skip non-image enclosures + if($enclosure->get_type()){ + if(substr($enclosure->get_type(),0,5) != 'image') continue; + }else{ + if(!preg_match('/\.(jpe?g|png|gif)(\?|$)/i', + $enclosure->get_link())) continue; + } + + // non absolute links + $ilink = $enclosure->get_link(); + if(!preg_match('/^https?:\/\//i',$ilink)){ + if($ilink{0} == '/'){ + $ilink = $host.$ilink; + }else{ + $ilink = $host.$path.$ilink; + } + } + $link = $item->link; + if(!preg_match('/^https?:\/\//i',$link)){ + if($link{0} == '/'){ + $link = $host.$link; + }else{ + $link = $host.$path.$link; + } + } + + $files[] = array( + 'id' => $ilink, + 'isimg' => true, + 'file' => basename($ilink), + // decode to avoid later double encoding + 'title' => htmlspecialchars_decode($enclosure->get_title(),ENT_COMPAT), + 'desc' => strip_tags(htmlspecialchars_decode($enclosure->get_description(),ENT_COMPAT)), + 'width' => $enclosure->get_width(), + 'height' => $enclosure->get_height(), + 'mtime' => $item->get_date('U'), + 'ctime' => $item->get_date('U'), + 'detail' => $link, + ); + } + } + return $files; + } + + /** + * Gather all photos matching the given criteria + */ + function _findimages(&$data){ + global $conf; + $files = array(); + + // http URLs are supposed to be media RSS feeds + if(preg_match('/^https?:\/\//i',$data['ns'])){ + $files = $this->_loadRSS($data['ns']); + $data['_single'] = false; + }else{ + $dir = utf8_encodeFN(str_replace(':','/',$data['ns'])); + // all possible images for the given namespace (or a single image) + if(is_file($conf['mediadir'].'/'.$dir)){ + require_once(DOKU_INC.'inc/JpegMeta.php'); + $files[] = array( + 'id' => $data['ns'], + 'isimg' => preg_match('/\.(jpe?g|gif|png)$/',$dir), + 'file' => basename($dir), + 'mtime' => filemtime($conf['mediadir'].'/'.$dir), + 'meta' => new JpegMeta($conf['mediadir'].'/'.$dir) + ); + $data['_single'] = true; + }else{ + $depth = $data['recursive'] ? 0 : 1; + search($files, + $conf['mediadir'], + 'search_media', + array('depth'=>$depth), + $dir); + $data['_single'] = false; + } + } + + // done, yet? + $len = count($files); + if(!$len) return $files; + if($data['single']) return $files; + + // filter images + for($i=0; $i<$len; $i++){ + if(!$files[$i]['isimg']){ + unset($files[$i]); // this is faster, because RE was done before + }elseif($data['filter']){ + if(!preg_match($data['filter'],noNS($files[$i]['id']))) unset($files[$i]); + } + } + if($len<1) return $files; + + // random? + if($data['random']){ + shuffle($files); + }else{ + // sort? + if($data['sort'] == 'date'){ + usort($files,array($this,'_datesort')); + }elseif($data['sort'] == 'mod'){ + usort($files,array($this,'_modsort')); + }elseif($data['sort'] == 'title'){ + usort($files,array($this,'_titlesort')); + } + + // reverse? + if($data['reverse']) $files = array_reverse($files); + } + + // limits and offsets? + if($data['offset']) $files = array_slice($files,$data['offset']); + if($data['limit']) $files = array_slice($files,0,$data['limit']); + + return $files; + } + + /** + * usort callback to sort by file lastmodified time + */ + function _modsort($a,$b){ + if($a['mtime'] < $b['mtime']) return -1; + if($a['mtime'] > $b['mtime']) return 1; + return strcmp($a['file'],$b['file']); + } + + /** + * usort callback to sort by EXIF date + */ + function _datesort($a,$b){ + $da = $this->_meta($a,'cdate'); + $db = $this->_meta($b,'cdate'); + if($da < $db) return -1; + if($da > $db) return 1; + return strcmp($a['file'],$b['file']); + } + + /** + * usort callback to sort by EXIF title + */ + function _titlesort($a,$b){ + $ta = $this->_meta($a,'title'); + $tb = $this->_meta($b,'title'); + return strcmp($ta,$tb); + } + + + /** + * Does the gallery formatting + */ + function _gallery($data){ + global $conf; + global $lang; + $ret = ''; + + $files = $this->_findimages($data); + + //anything found? + if(!count($files)){ + $ret .= '

    '.$lang['nothingfound'].'
    '; + return $ret; + } + + // prepare alignment + $align = ''; + $xalign = ''; + if($data['align'] == 1){ + $align = ' gallery_right'; + $xalign = ' align="right"'; + } + if($data['align'] == 2){ + $align = ' gallery_left'; + $xalign = ' align="left"'; + } + if($data['align'] == 3){ + $align = ' gallery_center'; + $xalign = ' align="center"'; + } + if(!$data['_single']){ + if(!$align) $align = ' gallery_center'; // center galleries on default + if(!$xalign) $xalign = ' align="center"'; + } + + $page = 0; + + // build gallery + if($data['_single']){ + $ret .= $this->_image($files[0],$data); + $ret .= $this->_showname($files[0],$data); + $ret .= $this->_showtitle($files[0],$data); + }elseif($data['cols'] > 0){ // format as table + $close_pg = false; + + $i = 0; + foreach($files as $img){ + + // new page? + if($data['paginate'] && ($i % $data['paginate'] == 0)){ + $ret .= ''; + $close_pg = false; + } + + } + + if ($close_tr){ + // add remaining empty cells + while($i % $data['cols']){ + $ret .= ''; + $i++; + } + $ret .= ''; + } + + if(!$data['paginate']){ + $ret .= ''; + }elseif ($close_pg){ + $ret .= ''; + $ret .= ''; + } + }else{ // format as div sequence + $i = 0; + $close_pg = false; + foreach($files as $img){ + + if($data['paginate'] && ($i % $data['paginate'] == 0)){ + $ret .= ''; + $close_pg = false; + } + } + + if($close_pg) $ret .= ''; + + $ret .= '
    '; + } + + // pagination links + $pgret = ''; + if($page){ + $pgret .= ''; + } + + return '
    '.$pgret.$ret.'
    '; + } + + /** + * Defines how a thumbnail should look like + */ + function _image(&$img,$data){ + global $ID; + + // calculate thumbnail size + if(!$data['crop']){ + $w = (int) $this->_meta($img,'width'); + $h = (int) $this->_meta($img,'height'); + if($w && $h){ + $dim = array(); + if($w > $data['tw'] || $h > $data['th']){ + $ratio = $this->_ratio($img,$data['tw'],$data['th']); + $w = floor($w * $ratio); + $h = floor($h * $ratio); + $dim = array('w'=>$w,'h'=>$h); + } + }else{ + $data['crop'] = true; // no size info -> always crop + } + } + if($data['crop']){ + $w = $data['tw']; + $h = $data['th']; + $dim = array('w'=>$w,'h'=>$h); + } + + //prepare img attributes + $i = array(); + $i['width'] = $w; + $i['height'] = $h; + $i['border'] = 0; + $i['alt'] = $this->_meta($img,'title'); + $i['longdesc'] = str_replace("\n",' ',$this->_meta($img,'desc')); + if(!$i['longdesc']) unset($i['longdesc']); + $i['class'] = 'tn'; + $iatt = buildAttributes($i); + $src = ml($img['id'],$dim); + + // prepare lightbox dimensions + $w_lightbox = (int) $this->_meta($img,'width'); + $h_lightbox = (int) $this->_meta($img,'height'); + $dim_lightbox = array(); + if($w_lightbox > $data['iw'] || $h_lightbox > $data['ih']){ + $ratio = $this->_ratio($img,$data['iw'],$data['ih']); + $w_lightbox = floor($w_lightbox * $ratio); + $h_lightbox = floor($h_lightbox * $ratio); + $dim_lightbox = array('w'=>$w_lightbox,'h'=>$h_lightbox); + } + + //prepare link attributes + $a = array(); + $a['title'] = $this->_meta($img,'title'); + if($data['lightbox']){ + $href = ml($img['id'],$dim_lightbox); + $a['class'] = "lightbox JSnocheck"; + $a['rel'] = 'lightbox[gal-'.substr(md5($ID),4).']'; //unique ID for the gallery + }elseif($img['detail'] && !$data['direct']){ + $href = $img['detail']; + }else{ + $href = ml($img['id'],array('id'=>$ID),$data['direct']); + } + $aatt = buildAttributes($a); + + // prepare output + $ret = ''; + $ret .= ''; + $ret .= ''; + $ret .= ''; + return $ret; + } + + + /** + * Defines how a filename + link should look + */ + function _showname($img,$data){ + global $ID; + + if(!$data['showname'] ) { return ''; } + + //prepare link + $lnk = ml($img['id'],array('id'=>$ID),false); + + // prepare output + $ret = ''; + $ret .= '
    '; + $ret .= hsc($img['file']); + $ret .= ''; + return $ret; + } + + /** + * Defines how title + link should look + */ + function _showtitle($img,$data){ + global $ID; + + if(!$data['showtitle'] ) { return ''; } + + //prepare link + $lnk = ml($img['id'],array('id'=>$ID),false); + + // prepare output + $ret = ''; + $ret .= '
    '; + $ret .= hsc($this->_meta($img,'title')); + $ret .= ''; + return $ret; + } + + /** + * Return the metadata of an item + * + * Automatically checks if a JPEGMeta object is available or if all data is + * supplied in array + */ + function _meta(&$img,$opt){ + if($img['meta']){ + // map JPEGMeta calls to opt names + + switch($opt){ + case 'title': + return $img['meta']->getField('Simple.Title'); + case 'desc': + return $img['meta']->getField('Iptc.Caption'); + case 'cdate': + return $img['meta']->getField('Date.EarliestTime'); + case 'width': + return $img['meta']->getField('File.Width'); + case 'height': + return $img['meta']->getField('File.Height'); + + + default: + return ''; + } + + }else{ + // just return the array field + return $img[$opt]; + } + } + + /** + * Calculates the multiplier needed to resize the image to the given + * dimensions + * + * @author Andreas Gohr + */ + function _ratio(&$img,$maxwidth,$maxheight=0){ + if(!$maxheight) $maxheight = $maxwidth; + + $w = $this->_meta($img,'width'); + $h = $this->_meta($img,'height'); + + $ratio = 1; + if($w >= $h){ + if($w >= $maxwidth){ + $ratio = $maxwidth/$w; + }elseif($h > $maxheight){ + $ratio = $maxheight/$h; + } + }else{ + if($h >= $maxheight){ + $ratio = $maxheight/$h; + }elseif($w > $maxwidth){ + $ratio = $maxwidth/$w; + } + } + return $ratio; + } + +} + +//Setup VIM: ex: et ts=4 enc=utf-8 :