From 0f20aa18617c649c270ab18e0c777907dcf99c94 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 27 Feb 2011 13:54:43 +0100 Subject: Add additional lightbox files, move everything but index.xhtml to .dthumb --- lib/App/Dthumb/Data.pm | 76 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 75 insertions(+), 1 deletion(-) (limited to 'lib/App/Dthumb') diff --git a/lib/App/Dthumb/Data.pm b/lib/App/Dthumb/Data.pm index 85ab1d2..69877d5 100644 --- a/lib/App/Dthumb/Data.pm +++ b/lib/App/Dthumb/Data.pm @@ -5,6 +5,7 @@ use warnings; use base 'Exporter'; use Data::Section -setup; +use MIME::Base64 qw(decode_base64); our @EXPORT_OK = (); @@ -29,6 +30,21 @@ sub lightbox { return ${$self->section_data('lightbox.js')}; } +sub overlay_png { + my ($self) = @_; + return decode_base64(${$self->section_data('overlay.png')}); +} + +sub loading_gif { + my ($self) = @_; + return decode_base64(${$self->section_data('loading.gif')}); +} + +sub close_gif { + my ($self) = @_; + return decode_base64(${$self->section_data('close.gif')}); +} + 1; __DATA__ @@ -41,7 +57,7 @@ ______[ html_and_css ]______ dthumb - +