Add an option to enter the new fullscreen mode.
authorSteinar H. Gunderson <sesse@debian.org>
Mon, 31 Jul 2006 18:02:00 +0000 (20:02 +0200)
committerSteinar H. Gunderson <sesse@debian.org>
Mon, 31 Jul 2006 18:02:00 +0000 (20:02 +0200)
perl/Sesse/pr0n/Index.pm
templates/bilder.knatten.com/fullscreen [new file with mode: 0644]
templates/default/fullscreen [new file with mode: 0644]
templates/itk-bilder.samfundet.no/fullscreen [new file with mode: 0644]
templates/skoyen.bilder.knatten.com/fullscreen [new file with mode: 0644]

index c073a76086ec70a33e74d9b38a8c62f70dd0eef6..cbdb93c4172f80b0341c9afeee5ce64eaa74b215 100644 (file)
@@ -139,6 +139,7 @@ sub handler {
                print_infobox($r, $event, \%settings, \%defsettings);
                print_nextprev($r, $event, \%settings, \%defsettings);
                print_selected($r, $event, \%settings, \%defsettings) if ($num_selected > 0);
+               print_fullscreen($r, $event, \%settings, \%defsettings);
 
                my $toclose = 0;
                my $lastupl = "";
@@ -488,6 +489,19 @@ sub print_selected {
        
        $r->print('</p>');
 }
+
+sub print_fullscreen {
+       my ($r, $event, $settings, $defsettings) = @_;
+
+       chomp (my $title = Sesse::pr0n::Templates::fetch_template($r, 'fullscreen'));
+
+       my %newsettings = %$settings;
+       $newsettings{'fullscreen'} = 1;
+
+        $r->print("    <p>");
+       Sesse::pr0n::Common::print_link($r, $title, "/$event/", \%newsettings, $defsettings);
+       $r->print("</p>\n");
+}
        
 1;
 
diff --git a/templates/bilder.knatten.com/fullscreen b/templates/bilder.knatten.com/fullscreen
new file mode 100644 (file)
index 0000000..dd067c2
--- /dev/null
@@ -0,0 +1 @@
+Vis bilder i fullskjerm
diff --git a/templates/default/fullscreen b/templates/default/fullscreen
new file mode 100644 (file)
index 0000000..d575e4b
--- /dev/null
@@ -0,0 +1 @@
+Show images in full screen
diff --git a/templates/itk-bilder.samfundet.no/fullscreen b/templates/itk-bilder.samfundet.no/fullscreen
new file mode 100644 (file)
index 0000000..dd067c2
--- /dev/null
@@ -0,0 +1 @@
+Vis bilder i fullskjerm
diff --git a/templates/skoyen.bilder.knatten.com/fullscreen b/templates/skoyen.bilder.knatten.com/fullscreen
new file mode 100644 (file)
index 0000000..dd067c2
--- /dev/null
@@ -0,0 +1 @@
+Vis bilder i fullskjerm