'./', 'text' => 'Advanced Customization', }); my $err = sub { $title = "Error"; $body = shift; return; }; my $pub = LJ::S2::get_public_layers(); my $id; if ($GET{'id'} =~ /^\d+$/) { # numeric $id = $GET{'id'}; } elsif ($GET{'id'}) { # redist_uniq $id = $pub->{$GET{'id'}}->{'s2lid'}; } my $dbr = LJ::get_db_reader(); my $remote = LJ::get_remote(); # show the public layers unless ($id) { $title = "Public Layers"; my %layerinfo; my @to_load = grep { /^\d+$/ } keys %$pub; LJ::S2::load_layer_info(\%layerinfo, \@to_load); my $recurse = sub { my $self = shift; my $lid = shift; # layer id my $lay = $pub->{$lid}; return unless $lay; # set to true if the layer is not core and is not a layout my $is_child = $lay->{'type'} ne 'core' && $lay->{'type'} ne 'layout'; my $typedes = " ($lay->{'type'}" . (! $is_child ? ": $lid" : '') . ")"; # show link to detailed view $body .= "
$ek | $ev |
$k | $v |
$ds |
Alphabetical";
$body .= "
| ";
$body .= "Hierarchical";
my $dumpsub = sub {
my $self = shift;
my $parent = shift;
$body .= "
|
$ds |
$ds |