]> mj.ucw.cz Git - gallery.git/blobdiff - gal2/UCW/Gallery/Web/NrtBlue.pm
Gallery2: Plain theme
[gallery.git] / gal2 / UCW / Gallery / Web / NrtBlue.pm
index de05937643dbb0331edf8623deaeb51de0e00987..0d327f157459c4f36de01ac74f36ccb2cc33f9a7 100644 (file)
@@ -1,5 +1,5 @@
 # NRT Theme for MJ's Photo Gallery
-# (c) 2003--2004 Martin Mares <mj@ucw.cz>; GPL'ed
+# (c) 2003--2012 Martin Mares <mj@ucw.cz>; GPL'ed
 # Theme images taken from the cthumb package (c) Carlos Puchol
 
 package UCW::Gallery::Web::NrtBlue;
@@ -25,13 +25,13 @@ my $bot_h = 18;
 
 sub theme_dir($) {
        my ($self) = @_;
-       return $self->get('ThemeUrlPrefix') . "/" . $theme_name;
+       return $self->get('ThemeUrlPrefix') . $theme_name;
 }
 
 sub theme_head_extras($) {
        my ($self) = @_;
        my $stylesheet = $self->theme_dir . "/style.css";
-       return "<link rel=stylesheet href='$stylesheet' type='text/css' media=all>";
+       return "<link rel=stylesheet href='$stylesheet' type='text/css' media=all>\n";
 }
 
 sub show_links($$$$) {
@@ -70,8 +70,7 @@ sub show_thumb($) {
        print "<a href='$click_url'><img src='$thumb' width=$tw height=$th alt='Photo'$tit class=ti style='left: ${ol}px; top: ${ot}px'></a>\n";
        print "<img src='$theme/right.png' width=$right_w height=$side_h alt='' class=tr>\n";
        print "<img src='$theme/bot.png' width=$box_w height=$bot_h alt='' class=tb>\n";
-       print "</div>\n";
-       print "</div>\n\n";
+       print "</div></div>\n\n";
 }
 
 sub attach($$) {