Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
drawers.php File Reference

Variables

 $addblockbutton = $OUTPUT->addblockbutton()
 
 $blockdraweropen = false
 
if($courseindexopen) $blockshtml = $OUTPUT->blocks('side-pre')
 
if(! $courseindex) $bodyattributes = $OUTPUT->body_attributes($extraclasses)
 
 $buildregionmainsettings = !$PAGE->include_region_main_settings_in_header_actions() && !$PAGE->has_secondary_navigation()
 
if(! $hasblocks) $courseindex = core_course_drawer()
 
if(defined('BEHAT_SITE_RUNNING') &&get_user_preferences('behat_keep_drawer_closed') !=1) $extraclasses = ['uses-drawers']
 
 $forceblockdraweropen = $OUTPUT->firstview_fakeblocks()
 
 $hasblocks = (strpos($blockshtml, 'data-block=') !== false || !empty($addblockbutton))
 
 $header = $PAGE->activityheader
 
 $headercontent = $header->export_for_template($renderer)
 
 $overflow = ''
 
if($PAGE->has_secondary_navigation()) $primary = new core\navigation\output\primary($PAGE)
 
 $primarymenu = $primary->export_for_template($renderer)
 
 $regionmainsettingsmenu = $buildregionmainsettings ? $OUTPUT->region_main_settings_menu() : false
 
 $renderer = $PAGE->get_renderer('core')
 
 $secondarynavigation = false
 
 $templatecontext
 
if(isloggedin()) else