Commit 3372addd authored by Mihail Geshoski's avatar Mihail Geshoski
Browse files

MDL-72450 theme: Allow themes to specify whether they use course index

Introduces a new theme config 'usecourseindex' which allows themes to
specify whether they implement and use course index.
parent 9145d80b
......@@ -677,6 +677,12 @@ class theme_config {
*/
public $precompiledcsscallback = null;
/**
* Whether the theme uses course index.
* @var bool
*/
public $usescourseindex = false;
/**
* Load the config.php file for a particular theme, and return an instance
* of this class. (That is, this is a factory method.)
......@@ -754,7 +760,7 @@ class theme_config {
'rendererfactory', 'csspostprocess', 'editor_sheets', 'editor_scss', 'rarrow', 'larrow', 'uarrow', 'darrow',
'hidefromselector', 'doctype', 'yuicssmodules', 'blockrtlmanipulations', 'blockrendermethod',
'scss', 'extrascsscallback', 'prescsscallback', 'csstreepostprocessor', 'addblockposition',
'iconsystem', 'precompiledcsscallback', 'haseditswitch');
'iconsystem', 'precompiledcsscallback', 'haseditswitch', 'usescourseindex');
foreach ($config as $key=>$value) {
if (in_array($key, $configurable)) {
......
This files describes API changes in /theme/* themes,
information provided here is intended especially for theme designer.
=== 4.0 ===
* A new theme config 'usescourseindex' allows a theme to specify whether it implements and uses course index.
=== 3.11 ===
* The classname 'viewmode-cobmined' in course/management.php has been changed to 'viewmode-combined'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment