dirroot.'/_page_header.php');
}
// Output the footer part of a page.
// Adds the footer information and closes the HTML part of the page.
function print_footer()
{
global $CFG;
include($CFG->dirroot.'/_page_footer.php');
}
// Start the main content section of a page.
// Should only be called ONCE per page,
// and must have a corresponding call to end_page_content().
function start_page_content()
{
echo "
\n";
}
// End the main content section of a page.
function end_page_content()
{
echo "
\n";
}
// Start the side content section of a page.
// Should only be called ONCE per page,
// and must have a corresponding call to end_side_content().
// Should be called AFTER end_page_content().
function start_side_content()
{
echo "\n";
}
// Start an "About" box. Should only be called ONCE per page,
// and should have a corresponding call to end_about_box().
// Designed for use within the sidebar section
// $title = title of the box
function start_about_box($title)
{
echo "\n";
// Display the title and (optionally) the subtitle
echo "
{$title}
\n";
if (!empty($subtitle)) echo "
{$subtitle}
\n";
// Start the entry section
echo "
\n";
}
// End a page entry
// $meta = a numeric array of extra items to be displayed at the bottom, e.g. a "more" link
function end_page_entry($meta=null)
{
// Close the text section
echo "
\n";
// Display the meta information
echo "
\n";
if (is_array($meta)) {
$isfirst = true;
foreach ($meta as $m) {
// Display a separator
if ($isfirst) $isfirst = false;
else echo ' | ';
// Display the item
echo $m;
}
}
echo "
\n";
// Done!
echo "
\n";
}
?>