<%doc> ############################################################################### =head1 NAME help/autohandler =head1 DESCRIPTION This autohandler provides a wrapper around the help documents in the help hierarchy. It provides the header and close button as well as pulling in the CSS styles. =head1 AUTHORS Sam Tregar David Wheeler =cut <% $title %>
Close
%# Insert the table top. % unless ($about) {
<% $m->call_next %>
% } else { <% $m->call_next %> % } %# Close up the document.
Close
%#-- End HTML --# %#-- Once --# <%once>; my $widget = 'help'; %#-- Init --# <%init>; my ($context, $title, $page, $about); if ($r->uri =~ m:/help/$lang_key/about\.html:) { $about = 1; $context = 'About the Bricolage Content Management System'; $title = "Bricolage " . Bric->VERSION; $page = ''; } else { ($context, $page) = @{ get_state_data($widget) }{qw(context page)}; $title = 'Bricolage Help'; } <%cleanup>; # Don't keep help pages in the history. pop_page();