File: /var/www/html/elearningbasa.sumar.com.py/theme/almondb/settings/blocks/block20.php
<?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 20 info.
$name = 'theme_almondb/block20info';
$heading = get_string('block20info', 'theme_almondb');
$information = get_string('block20infodesc', 'theme_almondb');
$setting = new admin_setting_heading($name, $heading, $information);
$page->add($setting);
// Enable or disable block 20 settings.
$name = 'theme_almondb/block20enabled';
$title = get_string('block20enabled', 'theme_almondb');
$description = get_string('block20enableddesc', 'theme_almondb');
$setting = new admin_setting_configcheckbox($name, $title, $description, 1);
$page->add($setting);
// Block 20 background color palet.
$name = 'theme_almondb/footerbackgroundcolor';
$title = get_string('footerbackgroundcolor', 'theme_almondb');
$description = get_string('footerbackgroundcolordesc', 'theme_almondb');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
// Block 20 logo select.
$name = 'theme_almondb/block20logo';
$title = get_string('block20logo', 'theme_almondb');
$description = get_string('block20logodesc', 'theme_almondb');
$description = $description.get_string('underline', 'theme_almondb');
$default = "None";
$options = array(
'None' => 'None',
'Logo' => 'Logo',
'Small logo' => 'Small logo',
);
$setting = new admin_setting_configselect($name, $title, $description, $default, $options);
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
// Block 20 col 1 header.
$name = 'theme_almondb/block20col1header';
$title = get_string('block20col1header', 'theme_almondb');
$description = get_string('block20col1headerdesc', 'theme_almondb');
$default = "Site Name";
$setting = new admin_setting_configtext($name, $title, $description, $default, PARAM_TEXT);
$page->add($setting);
// Block 20 col 1 caption.
$name = 'theme_almondb/block20col1caption';
$title = get_string('block20col1caption', 'theme_almondb');
$description = get_string('block20col1captiondesc', 'theme_almondb');
$description = $description.get_string('underline', 'theme_almondb');
$default = get_string('block20col1captiondefault', 'theme_almondb');
$setting = new admin_setting_configtextarea($name, $title, $description, $default, PARAM_RAW, '1', '3');
$page->add($setting);
// Block 20 col 2 header.
$name = 'theme_almondb/block20col2header';
$title = get_string('block20col2header', 'theme_almondb');
$description = get_string('block20col2headerdesc', 'theme_almondb');
$default = "Company";
$setting = new admin_setting_configtext($name, $title, $description, $default, PARAM_TEXT);
$page->add($setting);
// Block 20 col 2 link area.
$name = 'theme_almondb/block20col2link';
$title = get_string('block20col2link', 'theme_almondb');
$description = get_string('block20col2linkdesc', 'theme_almondb');
$description = $description.get_string('underline', 'theme_almondb');
$default = get_string('block20col2linkdefault', 'theme_almondb');
$setting = new admin_setting_configtextarea($name, $title, $description, $default, PARAM_RAW, '1', '6');
$page->add($setting);
// Block 20 col 3 header.
$name = 'theme_almondb/block20col3header';
$title = get_string('block20col3header', 'theme_almondb');
$description = get_string('block20col3headerdesc', 'theme_almondb');
$default = "Help";
$setting = new admin_setting_configtext($name, $title, $description, $default, PARAM_TEXT);
$page->add($setting);
// Block 20 col 3 link area.
$name = 'theme_almondb/block20col3link';
$title = get_string('block20col3link', 'theme_almondb');
$description = get_string('block20col3linkdesc', 'theme_almondb');
$description = $description.get_string('underline', 'theme_almondb');
$default = get_string('block20col3linkdefault', 'theme_almondb');
$setting = new admin_setting_configtextarea($name, $title, $description, $default, PARAM_RAW, '1', '6');
$page->add($setting);
// Block 20 col 4 header.
$name = 'theme_almondb/block20col4header';
$title = get_string('block20col4header', 'theme_almondb');
$description = get_string('block20col4headerdesc', 'theme_almondb');
$default = "Company";
$setting = new admin_setting_configtext($name, $title, $description, $default, PARAM_TEXT);
$page->add($setting);
// Block 20 col 3 caption.
$name = 'theme_almondb/block20col4caption';
$title = get_string('block20col4caption', 'theme_almondb');
$description = get_string('block20col4captiondesc', 'theme_almondb');
$description = $description.get_string('underline', 'theme_almondb');
$default = get_string('block20col4captiondefault', 'theme_almondb');
$setting = new admin_setting_configtextarea($name, $title, $description, $default, PARAM_RAW, '1', '3');
$page->add($setting);
// Block 20 social links.
$name = 'theme_almondb/block20social';
$title = get_string('block20social', 'theme_almondb');
$description = get_string('block20socialdesc', 'theme_almondb');
$description = $description.get_string('underline', 'theme_almondb');
$default = get_string('block20socialdefault', 'theme_almondb');
$setting = new admin_setting_configtextarea($name, $title, $description, $default, PARAM_RAW, '1', '3');
$page->add($setting);
// Block 20 Copyright.
$name = 'theme_almondb/block20copyright';
$title = get_string('block20copyright', 'theme_almondb');
$description = get_string('block20copyrightdesc', 'theme_almondb');
$default = get_string('block20copyrightdefault', 'theme_almondb');
$setting = new admin_setting_configtextarea($name, $title, $description, $default, PARAM_RAW, '1', '2');
$page->add($setting);
// Enable or disable moodle frontpage orjinal button.
$name = 'theme_almondb/block20moodle';
$title = get_string('block20moodle', 'theme_almondb');
$description = get_string('block20moodledesc', 'theme_almondb');
$setting = new admin_setting_configcheckbox($name, $title, $description, 0);
$page->add($setting);