Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Files | Namespaces | Classes | Functions | Variables
theme_classic

Files

file  behat_theme_classic_behat_admin.php
 Step definitions related to administration overrides for the Classic theme.
 
file  behat_theme_classic_behat_blocks.php
 Step definitions related to blocks overrides for the Classic theme.
 
file  behat_theme_classic_behat_course.php
 Behat course-related step definition overrides for the Classic theme.
 
file  behat_theme_classic_behat_grade.php
 Behat grade related step definition overrides for the Classic theme.
 
file  behat_theme_classic_behat_mod_forum.php
 Step definitions related to mod_forum overrides for the Classic theme.
 
file  behat_theme_classic_behat_mod_quiz.php
 Step definitions related to mod_quiz overrides for the Classic theme.
 
file  behat_theme_classic_behat_navigation.php
 Navigation step definition overrides for the Classic theme.
 
file  behat_theme_classic_behat_repository_upload.php
 Override definitions for the upload repository type for the Classic theme.
 
file  columns.php
 The columns layout for the classic theme.
 
file  config.php
 classic config.
 
file  contentonly.php
 A one column layout for the classic theme.
 
file  core_renderer.php
 Renderers to align Moodle's HTML with that expected by Bootstrap.
 
file  icon_system_fontawesome.php
 Overridden fontawesome icons.
 
file  lib.php
 Classic theme callbacks.
 
file  provider.php
 Privacy Subsystem implementation for theme_classic.
 
file  secure.php
 A secure layout for the classic theme.
 
file  settings.php
 Classic theme settings file.
 
file  version.php
 Classic theme.
 

Namespaces

namespace  theme_classic\output
  
 
namespace  theme_classic\privacy
  
 

Classes

class  behat_theme_classic_behat_admin
 
class  behat_theme_classic_behat_blocks
 
class  behat_theme_classic_behat_course
 
class  behat_theme_classic_behat_grade
 
class  behat_theme_classic_behat_mod_forum
 
class  behat_theme_classic_behat_mod_quiz
 
class  behat_theme_classic_behat_navigation
 
class  behat_theme_classic_behat_repository_upload
 
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. More...
 
 theme_classic_get_main_scss_content ($theme)
 Returns the main SCSS content. More...
 
 theme_classic_get_pre_scss ($theme)
 Get SCSS to prepend. More...
 
 theme_classic_get_precompiled_css ()
 Get compiled css. More...
 
 theme_classic_pluginfile ($course, $cm, $context, $filearea, $args, $forcedownload, array $options=array())
 Serves any files associated with the theme settings. More...
 

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)
 
 $plugin = 2020060900
 
 $templatecontext
 
 $templatecontext
 
 $templatecontext
 
$plugin component = 'theme_classic'
 
$plugin dependencies = array('theme_boost' => 2020060900)
 
$THEME editor_sheets = []
 
$THEME enable_dock = false
 
$THEME extrascsscallback = 'theme_classic_get_extra_scss'
 
$THEME iconsystem = '\\theme_classic\\output\\icon_system_fontawesome'
 
$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 = 2020061500
 
$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
]
static instance($courseid, $strictness=MUST_EXIST)
Returns course context instance.
Definition: accesslib.php:6997
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:1430

◆ $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