2013-01-27 20:33:17 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
defined('MOODLE_INTERNAL') || die;
|
|
|
|
|
|
|
|
if ($ADMIN->fulltree) {
|
|
|
|
|
|
|
|
// Tagline setting
|
|
|
|
$name = 'theme_anomaly/tagline';
|
|
|
|
$title = get_string('tagline','theme_anomaly');
|
|
|
|
$description = get_string('taglinedesc', 'theme_anomaly');
|
|
|
|
$default = '';
|
|
|
|
$setting = new admin_setting_configtext($name, $title, $description, $default);
|
2013-04-20 22:06:55 +02:00
|
|
|
$setting->set_updatedcallback('theme_reset_all_caches');
|
2013-01-27 20:33:17 +00:00
|
|
|
$settings->add($setting);
|
|
|
|
|
|
|
|
// Custom CSS file
|
|
|
|
$name = 'theme_anomaly/customcss';
|
|
|
|
$title = get_string('customcss','theme_anomaly');
|
|
|
|
$description = get_string('customcssdesc', 'theme_anomaly');
|
|
|
|
$default = '';
|
|
|
|
$setting = new admin_setting_configtextarea($name, $title, $description, $default);
|
2013-04-20 22:06:55 +02:00
|
|
|
$setting->set_updatedcallback('theme_reset_all_caches');
|
2013-01-27 20:33:17 +00:00
|
|
|
$settings->add($setting);
|
|
|
|
|
|
|
|
}
|