<?php print_container_end(); ?><!-- end container Content -->
<!-- START OF FOOTER -->
<?php

global $CFG, $COURSE;
if (function_exists('is_in_popup')) {
    $inpopup = is_in_popup();
} else {
    $inpopup = false;
}

if (!$inpopup) {
    print_container_start(false, '', 'footer');

    echo '<p class="helplink">';
    echo page_doc_link(get_string('moodledocslink'));
    echo '</p>';

    echo $loggedinas;
    echo $homelink;

    if (!empty($performanceinfo) && isloggedin()) {
        echo $performanceinfo;
    }

    print_container_end();

} // end if inpopup

?>
</div> <!-- end page div -->
</body>
</html>
