Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
theme_classic

Topics

 test
 
 

Directories

directory classes
  
 

Namespaces

namespace  theme_classic\output
 Renderers to align Moodle's HTML with that expected by Bootstrap.
 
namespace  theme_classic\privacy
 Privacy Subsystem implementation for theme_classic.
 

Classes

class  theme_classic\output\core_renderer
 Renderers to align Moodle's HTML with that expected by Bootstrap. More...
 
class  theme_classic\output\icon_system_fontawesome
 Class overriding some of the Moodle default FontAwesome icons. More...
 
class  theme_classic\privacy\provider
 The classic theme does not store any data. More...
 

Functions

 theme_classic_get_extra_scss ($theme)
 Inject additional SCSS.
 
 theme_classic_get_main_scss_content ($theme)
 Returns the main SCSS content.
 
 theme_classic_get_pre_scss ($theme)
 Get SCSS to prepend.
 
 theme_classic_get_precompiled_css ()
 Get compiled css.
 
 theme_classic_pluginfile ($course, $cm, $context, $filearea, $args, $forcedownload, array $options=array())
 Serves any files associated with the theme settings.
 

Variables

 $blockspost = $OUTPUT->blocks('side-post')
 
 $blockspost = $OUTPUT->blocks('side-post')
 
 $blockspre = $OUTPUT->blocks('side-pre')
 
 $blockspre = $OUTPUT->blocks('side-pre')
 
 $bodyattributes = $OUTPUT->body_attributes()
 
 $bodyattributes = $OUTPUT->body_attributes([])
 
 $bodyattributes = $OUTPUT->body_attributes()
 
 $hassidepost = $PAGE->blocks->region_has_content('side-post', $OUTPUT)
 
 $hassidepost = $PAGE->blocks->region_has_content('side-post', $OUTPUT)
 
 $hassidepre = $PAGE->blocks->region_has_content('side-pre', $OUTPUT)
 
 $hassidepre = $PAGE->blocks->region_has_content('side-pre', $OUTPUT)
 
 $header = $PAGE->activityheader
 
 $headercontent = $header->export_for_template($renderer)
 
 $plugin = 2023100400
 
 $renderer = $PAGE->get_renderer('core')
 
 $templatecontext
 
 $templatecontext
 
 $templatecontext
 
$plugin component = 'theme_classic'
 
$plugin dependencies = ['theme_boost' => 2023100400]
 
$THEME editor_sheets = []
 
$THEME enable_dock = false
 
$THEME extrascsscallback = 'theme_classic_get_extra_scss'
 
$THEME haseditswitch = false
 
$THEME iconsystem = '\\theme_classic\\output\\icon_system_fontawesome'
 
 if (empty( $PAGE->layout_options[ 'noactivityheader']))
 
$THEME layouts
 
$THEME name = 'classic'
 
$THEME parents = ['boost']
 
$THEME precompiledcsscallback = 'theme_classic_get_precompiled_css'
 
$THEME prescsscallback = 'theme_classic_get_pre_scss'
 
$THEME rendererfactory = 'theme_overridden_renderer_factory'
 
$THEME scss
 
$THEME sheets = []
 
$THEME usefallback = true
 
$plugin version = 2023100900
 
$THEME yuicssmodules = array()
 

Detailed Description

Function Documentation

◆ theme_classic_get_extra_scss()

theme_classic_get_extra_scss ( $theme)

Inject additional SCSS.

Parameters
theme_config$themeThe theme config object.
Return values
string

◆ theme_classic_get_main_scss_content()

theme_classic_get_main_scss_content ( $theme)

Returns the main SCSS content.

Parameters
theme_config$themeThe theme config object.
Return values
string

◆ theme_classic_get_pre_scss()

theme_classic_get_pre_scss ( $theme)

Get SCSS to prepend.

Parameters
theme_config$themeThe theme config object.
Return values
array

◆ theme_classic_get_precompiled_css()

theme_classic_get_precompiled_css ( )

Get compiled css.

Return values
stringcompiled css

◆ theme_classic_pluginfile()

theme_classic_pluginfile ( $course,
$cm,
$context,
$filearea,
$args,
$forcedownload,
array $options = array() )

Serves any files associated with the theme settings.

Parameters
stdClass$course
stdClass$cm
context$context
string$filearea
array$args
bool$forcedownload
array$options
Return values
bool

Variable Documentation

◆ $templatecontext [1/3]

$templatecontext
Initial value:
= [
'sitename' => format_string($SITE->shortname, true, ['context' => context_course::instance(SITEID), "escape" => false]),
'output' => $OUTPUT,
'sidepreblocks' => $blockspre,
'sidepostblocks' => $blockspost,
'haspreblocks' => $hassidepre,
'haspostblocks' => $hassidepost,
'bodyattributes' => $bodyattributes,
'headercontent' => $headercontent,
]
format_string($string, $striplinks=true, $options=null)
Given a simple string, this function returns the string processed by enabled string filters if $CFG->...
Definition weblib.php:1531
global $SITE
This file defines settingpages and externalpages under the "badges" section.
Definition badges.php:28

◆ $templatecontext [2/3]

$templatecontext
Initial value:
= [
'sitename' => format_string($SITE->shortname, true, ['context' => context_course::instance(SITEID), "escape" => false]),
'output' => $OUTPUT,
'bodyattributes' => $bodyattributes
]

◆ $templatecontext [3/3]

$templatecontext
Initial value:
= [
'sitename' => format_string($SITE->shortname, true, ['context' => context_course::instance(SITEID), "escape" => false]),
'output' => $OUTPUT,
'sidepreblocks' => $blockspre,
'sidepostblocks' => $blockspost,
'haspreblocks' => $hassidepre,
'haspostblocks' => $hassidepost,
'bodyattributes' => $bodyattributes
]

◆ scss

$THEME scss
Initial value:
= function($theme) {
}
theme_classic_get_main_scss_content($theme)
Returns the main SCSS content.
Definition lib.php:34