summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-02-28 18:11:19 +0100
committerDaniel Friesel <derf@finalrewind.org>2011-02-28 18:11:19 +0100
commit011ed48f326216672f962e128f96cb83cef28460 (patch)
treea3aea674780eb2215c041f1ad613968a4f8b6e92 /lib
parent5a366eae6ea2b09a61936f5c2e8436f4b9242538 (diff)
Switch from lightbox to shadowbox
Diffstat (limited to 'lib')
-rwxr-xr-xlib/App/Dthumb.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/App/Dthumb.pm b/lib/App/Dthumb.pm
index a8014de..ad927da 100755
--- a/lib/App/Dthumb.pm
+++ b/lib/App/Dthumb.pm
@@ -35,7 +35,6 @@ sub new {
$ref->{current_file_id} = 0;
$ref->{config}->{file_index} = 'index.xhtml';
- $ref->{config}->{file_lightbox} = 'lightbox.js';
$ref->{config}->{dir_thumbs} = '.thumbs';
$ref->{config}->{dir_data} = '.dthumb';
@@ -95,7 +94,8 @@ sub create_files {
mkdir($datadir);
}
- for my $file (qw(lightbox.js overlay.png loading.gif close.gif)) {
+ for my $file (qw(close.png loading.gif next.png pause.png play.png
+ previous.png shadowbox.css shadowbox.js)) {
open(my $fh, '>', "${datadir}/${file}");
print {$fh} $self->{data}->get($file);
close($fh);
@@ -134,7 +134,7 @@ sub create_thumbnail_html {
$div_height,
);
$self->{html} .= sprintf(
- "\t<a rel=\"lightbox\" href=\"%s\">\n"
+ "\t<a rel=\"shadowbox[main]\" href=\"%s\">\n"
. "\t\t<img src=\"%s/%s\" alt=\"%s\" /></a>\n",
$file,
$self->{config}->{dir_thumbs},