mason/.perl-lib/TrivGal.pm: Add a couple more size options.
[tgal] / mason / .perl-lib / TrivGal.pm
index b47835a..50c2f45 100644 (file)
@@ -148,6 +148,8 @@ export qw{%SIZE};
 our %SIZE = (smallthumb => 96,
             medthumb => 144,
             bigthumb => 228,
+            small => 480,
+            embed => 720,
             view => 1200);
 
 export qw{init};
@@ -304,12 +306,13 @@ sub listdir ($) {
       } else {
        if ($item && $comment) { $item->comment($comment); }
        my ($flags, $name, $c) =
-         /^ (?: ([!]+) \s+)?           # flags
+         /^ (?: ([-!]+) \s+)?          # flags
             (\S+) \s*                  # filename
             (\S | \S.*\S )?            # start of the comment
             \s*
             $/x;
        my $indexp = $flags =~ /!/;
+       my $hidep = $flags =~ /-/;
        $name = urldecode $name;
        my $list;
        $item = TrivGal::Item->new($name);
@@ -326,7 +329,7 @@ sub listdir ($) {
          }
        }
        $comment = $c;
-       push @$list, $item;
+       push @$list, $item unless $hidep;
       }
     }
     if ($item && $comment) { $item->comment($comment); }