Scoop Box Exchange - Show Box: section_title 1.00
|
Description:
This will display the title for the section that you are viewing. Since all sections use the index_template to be displayed, we don't want to have to have a different template for each section. This box allows you to just add a new section, and when its viewed it will show the title that you set in the section admin tool
Box Code:
my $content = 'Latest News';
my $op = $S->{CGI}->param('op');
my $page_num = $S->cgi->param('page');
my $page = '';
if ($page_num && $page_num != 1) {
$page = "(page $page_num)";
}
if ($op eq 'section') {
my $section = $S->{CGI}->param('section');
unless($S->have_section_perm('hide_read_stories',$section)) {
$content = $S->{SECTION_DATA}->{$section}->{title};
} else {
$content = '';
}
}
return {'content' => "%%title_font%%$content $page%%title_font_end%%" };
|
|
Smokedot |
It's 4:19... do you know where your bong is? |
|
|
|
|