mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
33 lines
1.2 KiB
PHP
33 lines
1.2 KiB
PHP
<?php
|
|
|
|
defined('MOODLE_INTERNAL') || die;
|
|
|
|
if ($ADMIN->fulltree) {
|
|
|
|
// Logo file setting
|
|
$name = 'theme_afterburner/logo';
|
|
$title = get_string('logo','theme_afterburner');
|
|
$description = get_string('logodesc', 'theme_afterburner');
|
|
$setting = new admin_setting_configstoredfile($name, $title, $description, 'logo');
|
|
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
$settings->add($setting);
|
|
|
|
// Foot note setting
|
|
$name = 'theme_afterburner/footnote';
|
|
$title = get_string('footnote','theme_afterburner');
|
|
$description = get_string('footnotedesc', 'theme_afterburner');
|
|
$default = '';
|
|
$setting = new admin_setting_confightmleditor($name, $title, $description, $default);
|
|
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
$settings->add($setting);
|
|
|
|
// Custom CSS file
|
|
$name = 'theme_afterburner/customcss';
|
|
$title = get_string('customcss','theme_afterburner');
|
|
$description = get_string('customcssdesc', 'theme_afterburner');
|
|
$default = '';
|
|
$setting = new admin_setting_configtextarea($name, $title, $description, $default);
|
|
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
$settings->add($setting);
|
|
|
|
} |