From e06f95874bb6a3a36a9e0f89f6c66df055ea0ceb Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Wed, 27 Aug 2008 23:25:08 +0000 Subject: [PATCH] jQuery lightbox Plugin auf AGPL-Version gewechselt (fixes #12) --- css/grafiken/lightbox-btn-close.gif | Bin 700 -> 0 bytes css/grafiken/lightbox-btn-next.gif | Bin 812 -> 0 bytes css/grafiken/lightbox-btn-prev.gif | Bin 832 -> 0 bytes css/jquery.lightbox-0.4.css | 101 -------- css/jquery.lightbox.css | 220 ++++++++++++++++++ .../lightbox-blank.gif => images/blank.gif | Bin .../loading.gif | Bin images/next.gif | Bin 0 -> 1252 bytes images/prev.gif | Bin 0 -> 1264 bytes includes/galleryfunctions.php | 7 +- index.php | 14 +- js/jQuery.colorBlend.pack.js | 1 + js/jquery.lightbox.packed.js | 11 + scripts/jquery.lightbox.js | 14 -- scripts/ourhandlers.js | 2 +- 15 files changed, 244 insertions(+), 126 deletions(-) delete mode 100644 css/grafiken/lightbox-btn-close.gif delete mode 100644 css/grafiken/lightbox-btn-next.gif delete mode 100644 css/grafiken/lightbox-btn-prev.gif delete mode 100644 css/jquery.lightbox-0.4.css create mode 100644 css/jquery.lightbox.css rename css/grafiken/lightbox-blank.gif => images/blank.gif (100%) rename css/grafiken/lightbox-ico-loading.gif => images/loading.gif (100%) create mode 100644 images/next.gif create mode 100644 images/prev.gif create mode 100644 js/jQuery.colorBlend.pack.js create mode 100644 js/jquery.lightbox.packed.js delete mode 100644 scripts/jquery.lightbox.js diff --git a/css/grafiken/lightbox-btn-close.gif b/css/grafiken/lightbox-btn-close.gif deleted file mode 100644 index 33bcf517a35b72135b6a5b97bac72425762b8343..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 700 zcmZ?wbhEHbbYc)=xXQrr|NsBLfB*ja_3OuvA78(I{qW(#>({SezI^%Y*|R54p4`8G z|IVE|w{G3Ke*OB@t5+{wx^(*V=@TbT?Ay0*`}XZywrtt7Y18`k>sPE;v3T*~dGqGY zo;`cov}qG3PVDdR@9F7jZ*OmEYHDa`sI9FnD=RB5E-oxA%*)Hm%*;$rPftlnNlHqJ zkB^Uyjg5+m3Jnbn4h{|o2=Mds^Y-@k^z?Ldb7LR`6o0ZXurvH;&;cm~`H6w;ze7WT zhmKVLi6uoRbFAiHSg}QNM$~#2#^;SaIV^5XhYKa-WLTaw7EPSeoxUZ&W*tAf%&o4( zmMs}FnZ=U&t@`p#;`)5z0}*FgxG7?Q+eP>#}Q0kG{s^ou20;n;V<17z*6xlW|Jw?=bOR#PEpA zg=KOFx5Rw`%jtY|_3ZS` zqUjnN13nacHVT_2ml!nlJA2OW%MmP8S=ga0=sH=)An?>j$~+u1KUln%@oJ3-U|ygRY{{;{vyg#@ zVe7)XGmJPB4>%ce-gMSF@xfy;(;UM9kqL%E%RL+UjM8k(gB06(gljgeIR7Z|k07_Y Yz?%8?E)08>7@u6ee}4b|UkVJ?0I^^iLI3~& diff --git a/css/grafiken/lightbox-btn-next.gif b/css/grafiken/lightbox-btn-next.gif deleted file mode 100644 index a0d4fcf84a784f2cf44c33084145dde5df294ccf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 812 zcmZ?wbhEHbv}aIYc*el+|NsBLfB*je{rl(7pWnZK|N8ao=g*%%e*F0U{rk6X-@bnR z`sK@)&!0bk_Uze{Cr=(ddi3DIgM0Vx-MMq;#*G`-u3fuy>C%M@7tWnKck0xs6DLj_ zJ9g~Qp+g4_9N4pG&#qm&wr$(CWy_Y$n>TOVxN-gZ^=sFzUA=ns%9SgZFJHcN>C(lE z7tftLclPYrGiT16IB{Zse}8XpZ+CZhdwY9pYio0Jb7Ny;LqkJdU0qdGRYgTbSy@?0 zNl8ILL0(>7PEJl%R#rwvMp{~0N=iynQc^-fLR?&2OiWBvR8&MnL|9l@NJvOfP*6ZX zfS;eAudlDSx3{OKr@OnmtE;QCvop}+41)kD{$ycfX9#A{0l5VfCk*WW8-jxwT3XxM zJ370%dpeqXCrq3)dCJsj(`U?_HG9t7dGi-6T(o$}(q+q6EMSyU6K`dbQDR_IP*vNm z&M%^|u7yignomt{TLh9X-vlT%qa~3Xe4)wGVP;i|rWZ3pVTZ!3`iIq!%NnqiVmI=~4yG?*UBuy@#qi_9lOv%EOFWqjwm)IFQ?j)3`1T=zfmcO{foI3W6sLtd zS4F+)nC;}rU*j;#AyW5g3x|3eXP|{qRNj;|3pfM diff --git a/css/grafiken/lightbox-btn-prev.gif b/css/grafiken/lightbox-btn-prev.gif deleted file mode 100644 index 040ee5992f7fdb9b51907cb4ba1c5570b1b5482a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 832 zcmZ?wbhEHbv}aIYc*el+|NsBLfB*je{rl(7pFe*5`1bAFmoHyFefsp_!-se8-o1MD z>gCIq&!0bk`t<4J$B!RAe0cx<{kwPX-oAbN)~#DNZrr$b?b?+qS1w$*aPHi>GiT16 zK7IP+$&<&AA3u8Z=;6bM4<0Ta{2P*ix)3mxNzb8`Sa(^n>T09oLRGG&6qJ`%9JS+CQRt>@9*vHZEbCBZf^0EX>c(&&|!v&d$!v%uG#9O-@cuN=iydNQjGz zi;0Peii(PehzJV{3keAc4h{|s4D|Q+_x1Jl_V)Jl^mKQ3cXD!aaBu(y1q0oI;!hSv zc7{j>9gxkSIALJ_-@wq++|t_C-qG3B78%*yKVf2j-=wM2rq7r;YxbPE^X4yDxM=Z` zrOTGDSUHZ{$*`cIU*V9G=mkL*$3~&B9F~NQE=O7f+$T8{d|+|! z5LB^I==tcv%)lM$(xcU&+%-wnv&x6z08`gQRsV((28G1VNlI>g4%W9mc+UCN{rKLQV#k0fcFk=e`pVK=5riUkZTAtTQ6isw#WRUmZ3z(a9R-j$e ze3FRFDrSywC%q{a3<^!By0Zf_LL_n(8yB!Rulm4I*~32ZbaR4DVcG)ssl5F2B6c2< z?&fr4Oo*`z)H=|_wuV)6!iF%%R#s*epBZ+t2Ny7lSgg8L*Lk3Uk?9ck4?hLV?=DPC dE8_S6+w=SThsUSq`|tm!>h(?3l#7MI8UW1vMEU># diff --git a/css/jquery.lightbox-0.4.css b/css/jquery.lightbox-0.4.css deleted file mode 100644 index 5fa5b0f..0000000 --- a/css/jquery.lightbox-0.4.css +++ /dev/null @@ -1,101 +0,0 @@ -/** - * jQuery lightBox plugin - * This jQuery plugin was inspired and based on Lightbox 2 by Lokesh Dhakar (http://www.huddletogether.com/projects/lightbox2/) - * and adapted to me for use like a plugin from jQuery. - * @name jquery-lightbox-0.4.css - * @author Leandro Vieira Pinho - http://leandrovieira.com - * @version 0.4 - * @date November 17, 2007 - * @category jQuery plugin - * @copyright (c) 2007 Leandro Vieira Pinho (leandrovieira.com) - * @license CC Attribution-No Derivative Works 2.5 Brazil - http://creativecommons.org/licenses/by-nd/2.5/br/deed.en_US - * @example Visit http://leandrovieira.com/projects/jquery/lightbox/ for more informations about this jQuery plugin - */ -#jquery-overlay { - position: absolute; - top: 0; - left: 0; - z-index: 90; - width: 100%; - height: 500px; -} -#jquery-lightbox { - position: absolute; - top: 0; - left: 0; - width: 100%; - z-index: 100; - text-align: center; - line-height: 0; -} -#jquery-lightbox a img { border: none; } -#lightbox-container-image-box { - position: relative; - background-color: #fff; - width: 250px; - height: 250px; - margin: 0 auto; -} -#lightbox-container-image { padding: 10px; } -#lightbox-loading { - position: absolute; - top: 40%; - left: 0%; - height: 25%; - width: 100%; - text-align: center; - line-height: 0; -} -#lightbox-nav { - position: absolute; - top: 0; - left: 0; - height: 100%; - width: 100%; - z-index: 10; -} -#lightbox-container-image-box > #lightbox-nav { left: 0; } -#lightbox-nav a { outline: none;} -#lightbox-nav-btnPrev, #lightbox-nav-btnNext { - width: 49%; - height: 100%; - zoom: 1; - display: block; -} -#lightbox-nav-btnPrev { - left: 0; - float: left; -} -#lightbox-nav-btnNext { - right: 0; - float: right; -} -#lightbox-container-image-data-box { - font: 10px Verdana, Helvetica, sans-serif; - background-color: #fff; - margin: 0 auto; - line-height: 1.4em; - overflow: auto; - width: 100%; - padding: 0 10px 0; -} -#lightbox-container-image-data { - padding: 0 10px; - color: #666; -} -#lightbox-container-image-data #lightbox-image-details { - width: 70%; - float: left; - text-align: left; -} -#lightbox-image-details-caption { font-weight: bold; } -#lightbox-image-details-currentNumber { - display: block; - clear: left; - padding-bottom: 1.0em; -} -#lightbox-secNav-btnClose { - width: 66px; - float: right; - padding-bottom: 0.7em; -} \ No newline at end of file diff --git a/css/jquery.lightbox.css b/css/jquery.lightbox.css new file mode 100644 index 0000000..c248c18 --- /dev/null +++ b/css/jquery.lightbox.css @@ -0,0 +1,220 @@ +/* + * jQuery Lightbox Plugin (balupton edition) - Lightboxes for jQuery + * Copyright (C) 2008 Benjamin Arthur Lupton + * http://jquery.com/plugins/project/jquerylightbox_bal + * + * This file is part of jQuery Lightbox (balupton edition). + * + * jQuery Lightbox (balupton edition) is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * jQuery Lightbox (balupton edition) 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with jQuery Lightbox (balupton edition). If not, see . + * + * @name jquery_lightbox: jquery.lightbox.css + * @package jQuery Lightbox Plugin (balupton edition) + * @version 1.3.0-rc1 + * @date August 24, 2008 + * @category jQuery plugin + * @author Benjamin "balupton" Lupton {@link http://www.balupton.com} + * @copyright (c) 2008 Benjamin Arthur Lupton {@link http://www.balupton.com} + * @license GNU Affero General Public License - {@link http://www.gnu.org/licenses/agpl.html} + * @example Visit {@link http://jquery.com/plugins/project/jquerylightbox_bal} for more information. + */ + +html, body { margin: 0; padding: 0; height: 100%;} + +#lightbox, #lightbox-overlay { + position: absolute; + top: 0px; + left: 0px; + bottom:auto; + right:auto; + + z-index:100; + width:100%; + height:auto; + + text-align:center; + color:#333333; + + /* stop stupid conflicts */ + margin:0px; + padding:0px; + border:none; + outline:none; + line-height:0; + + /* general conflict stopper */ + text-decoration:none; + background:none; + word-spacing:normal; + letter-spacing:normal; + float:none; + clear:none; + display:block; +} + +#lightbox a, #lightbox a:link, #lightbox a:visited, #lightbox a:hover { + text-decoration:underline; + color:#999999; +} + +#lightbox-overlay { + z-index: 90; + background-color:#000000; + height: 100%; + position:fixed; +} +#lightbox-overlay-text { + text-align: right; + margin-right: 20px; + margin-top: 20px; + color: white; + font-size: 12px; + cursor: default; + line-height:normal; +} +#lightbox-overlay-text a, #lightbox-overlay-text a:hover, #lightbox-overlay-text a:visited, #lightbox-overlay-text a:link { + color:white; +} +#lightbox-overlay-text span { + padding-left:5px; + padding-right:5px; +} + +#lightbox img, #lightbox a img, #lightbox a { border:none; outline:none; } + +#lightbox-imageBox { + position:relative; + border:1px solid black;; + background-color:white; + width:400px; + height:400px; + margin:0 auto; +} + +#lightbox-imageContainer { + padding:1px; +} + +#lightbox-loading { + position:absolute; + top:40%; + left:0%; + height:25%; + width:100%; + text-align:center; + line-height:0; +} + +#lightbox-nav { + position:absolute; + top:0; + left:0; + height:100%; + width:100%; + z-index:10; +} +/* #lightbox-imageBox > #lightbox-nav { left: 0; } +#lightbox-nav a { outline: none; }*/ + + +#lightbox-nav-btnPrev, #lightbox-nav-btnNext { + display:block; + width:49%; + height: 100%; + background:transparent url("../images/blank.gif") no-repeat; /* Trick IE into showing hover */ + /* cursor:pointer; */ + zoom:1; /* who knows why? */ + + padding:0px; + margin:0px; +} +#lightbox-nav-btnPrev { + left:0; + right:auto; + float:left; +} +#lightbox-nav-btnNext { + left:auto; + right:0; + float:right; +} +/* +.preload_largeLink, #prevLink:hover, #prevLink:visited:hover { + background:url("../images/prev.gif") left 45% no-repeat; +} +.preload_nextLink, #nextLink:hover, #nextLink:visited:hover { + background:url("../images/next.gif") right 45% no-repeat; +} +*/ + +#lightbox-infoBox { + font:10px Verdana, Helvetica, sans-serif; + background-color:#FFFFFF; + margin:0 auto; + padding:0px; + + /* width: 100%; + padding: 0 10px 0; */ +} + +#lightbox-infoContainer { + padding-left:10px; + padding-right:10px; + padding-top:5px; + padding-bottom:5px; + color:#666; + + line-height:normal; + /* height:30px; */ +} +#lightbox-infoHeader { + width:100%; + text-align:center; +} +#lightbox-caption { + text-align:justify; +} +#lightbox-caption-title { + font-weight:bold; +} +#lightbox-caption-description { + font-weight:normal; +} + +#lightbox-infoFooter { + margin-top:3px; + color:#999999; +} +#lightbox-currentNumber { + display:block; + width:49%; + float:left; + text-align:left; +} +#lightbox-close { + display:block; + width:45%; + float:right; + text-align:right; +} +#lightbox-close-button{ + padding-left:30%; +} +#lightbox-close-button:hover { + color:#666666; +} + +#lightbox-infoContainer-clear { + clear:both; + visibility:hidden; +} \ No newline at end of file diff --git a/css/grafiken/lightbox-blank.gif b/images/blank.gif similarity index 100% rename from css/grafiken/lightbox-blank.gif rename to images/blank.gif diff --git a/css/grafiken/lightbox-ico-loading.gif b/images/loading.gif similarity index 100% rename from css/grafiken/lightbox-ico-loading.gif rename to images/loading.gif diff --git a/images/next.gif b/images/next.gif new file mode 100644 index 0000000000000000000000000000000000000000..6c40e51a31bce7ddfac5f10ec11e2403019ca4b2 GIT binary patch literal 1252 zcmZ?wbhEHbv}aIY_}+1^-4^K=?3=9lhv0}y5t5@&ezkl%H!9Rcg{P^)>;>3wtwrq)w zjlFm8UUPGERaI4EW8C&ZHSy^-E z&h_{AU$<`EzJ2?8dU||)ecRgFo;-Q-@ZrPj*RQWxv*z{d*M|=uc5-rxh={1Gt1B)p zuB@z_J$v@!$B%Pza=v`|^8f#TV`F26Q9$<)Q2fcl$iUFdpaZfQlqVQC{xh)i3b|}p zaIl#}SS#j)z{3M=0?J-X){18#t4FnV&ADwPmY8kM^qRBa+Ss;jowc>(u6Q{856unO7XG0CH04+qke}t=kX<#j~4ncHM_B}aGWghWz=*1$MI;5Ihzn` zR>+M+2LUH}Nrf;O8HEK5*-SzOS8gh?H%&OlI4R-5V@A)8?M)0{K5SZi?8BqustgAU z4W70%>8X6NvjF;niDfctr^2SjR(=JxPU-N@Kg|kk4K@aj0`s0W2=G_6C~$~~mQ0YZ z_~ZFtzJjxXVl#JDU_&dLOqZiOr_+IkwphCb3~r9UHhw$ABFy#3ot1^n;23Q5cJJQ3V8Md>_wP41H#<2wd3$@u#>PfPMHLklWo2dU+qZAR zgb7ooOgVGr%#R;GmMmEk6cm)2ntJTmu_H&09-@kvaTeoii{{4A*d5MXMnVFeau3YKs>)X0@>)yS47cE-! z>eZ{cbLZ~dxid60bk?j{%a$$s`0?ZS@84IgT6N*Vg`S?C6DLlrSg~UD>eWd}No{Ry zo}Qi&5fPg=Z+`gjp`)W?VPWC<^XE^WK3!Z~{Qmv>@bK_=@813Y|KHfym|+yqI0O`b zvM@3*bTa6G>;dHo29Ey>f}AoQ8x|aF<`C90nW1s}-j^R+5pxE3c=EPF>qF}*uMm`(1lNtsE&J(Pa1h33E zupm>2y`$?uz=8!nJvJRW5(X&`j&QP;UhrWsn9#tfti6bfKxUoPGg6n0iPgWs91pJ3q@95mJWd!P8X9U z4IGv>3L7RK^KC-j=Pf$n^uHy(fAlT3m7{nlD5pc^P zhe1JD$<{{U2pfaIf~C{scvRR~7OYfx=4vj$aA0P}Jjus1__rn;W+*sj$-t4g;b#CN d\"%s\"", - $fullname, GALLERYPREFIX, DIRECTORY_SEPARATOR, $scaledimage, - getImageLabel($galleryname, $basename), $scaledimagesize[3]); + $label = getImageLabel($galleryname, $basename); + printf("\"%s\"", + $label, $fullname, GALLERYPREFIX, DIRECTORY_SEPARATOR, + $scaledimage, $label, $scaledimagesize[3]); break; } } diff --git a/index.php b/index.php index 8145fa4..6badbc6 100644 --- a/index.php +++ b/index.php @@ -51,13 +51,13 @@ $aquarelle = ($menu = 14); Bilderframework - - - - - - - + + + + + + +