Sindbad~EG File Manager
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Parent theme: boost
*
* @package theme_almondb
* @copyright 2022 ThemesAlmond - http://themesalmond.com
* @author ThemesAlmond - Developer Team
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
// Block 18 info.
$name = 'theme_almondb/block18info';
$heading = get_string('block18info', 'theme_almondb');
$information = get_string('block18infodesc', 'theme_almondb');
$setting = new admin_setting_heading($name, $heading, $information);
$page->add($setting);
// Enable or disable settings.
$name = 'theme_almondb/block18enabled';
$title = get_string('block18enabled', 'theme_almondb');
$description = get_string('block18enableddesc', 'theme_almondb');
$setting = new admin_setting_configcheckbox($name, $title, $description, 1);
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
// Block title.
$name = 'theme_almondb/block18title';
$title = get_string('block18title', 'theme_almondb');
$description = get_string('block18titledesc', 'theme_almondb');
$setting = new admin_setting_configtext($name, $title, $description, '', PARAM_TEXT);
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
// Page caption.
$name = 'theme_almondb/block18caption';
$title = get_string('block18caption', 'theme_almondb');
$description = get_string('block18captiondesc', 'theme_almondb');
$default = '';
$setting = new admin_setting_confightmleditor($name, $title, $description, $default);
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
// Page css link.
$name = 'theme_almondb/block18csslink';
$title = get_string('block18csslink', 'theme_almondb');
$description = get_string('block18csslinkdesc', 'theme_almondb');
$default = '';
$setting = new admin_setting_configtextarea($name, $title, $description, $default, PARAM_RAW, '1', '1');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
// Page css.
$name = 'theme_almondb/block18css';
$title = get_string('block18css', 'theme_almondb');
$description = get_string('block18cssdesc', 'theme_almondb');
$default = '';
$setting = new admin_setting_scsscode($name, $title, $description, $default, PARAM_RAW);
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists