| 1 | 
           efrain | 
           1 | 
           <?php
  | 
        
        
            | 
            | 
           2 | 
           // This file is part of Moodle - http://moodle.org/
  | 
        
        
            | 
            | 
           3 | 
           //
  | 
        
        
            | 
            | 
           4 | 
           // Moodle is free software: you can redistribute it and/or modify
  | 
        
        
            | 
            | 
           5 | 
           // it under the terms of the GNU General Public License as published by
  | 
        
        
            | 
            | 
           6 | 
           // the Free Software Foundation, either version 3 of the License, or
  | 
        
        
            | 
            | 
           7 | 
           // (at your option) any later version.
  | 
        
        
            | 
            | 
           8 | 
           //
  | 
        
        
            | 
            | 
           9 | 
           // Moodle is distributed in the hope that it will be useful,
  | 
        
        
            | 
            | 
           10 | 
           // but WITHOUT ANY WARRANTY; without even the implied warranty of
  | 
        
        
            | 
            | 
           11 | 
           // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  | 
        
        
            | 
            | 
           12 | 
           // GNU General Public License for more details.
  | 
        
        
            | 
            | 
           13 | 
           //
  | 
        
        
            | 
            | 
           14 | 
           // You should have received a copy of the GNU General Public License
  | 
        
        
            | 
            | 
           15 | 
           // along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
  | 
        
        
            | 
            | 
           16 | 
              | 
        
        
            | 
            | 
           17 | 
           /**
  | 
        
        
            | 
            | 
           18 | 
            *
  | 
        
        
            | 
            | 
           19 | 
            * @package   theme_universe
  | 
        
        
            | 
            | 
           20 | 
            * @copyright 2023 Marcin Czaja (https://rosea.io)
  | 
        
        
            | 
            | 
           21 | 
            * @license   Commercial https://themeforest.net/licenses
  | 
        
        
            | 
            | 
           22 | 
            *
  | 
        
        
            | 
            | 
           23 | 
            */
  | 
        
        
            | 
            | 
           24 | 
              | 
        
        
            | 
            | 
           25 | 
              | 
        
        
            | 
            | 
           26 | 
           defined('MOODLE_INTERNAL') || die();
  | 
        
        
            | 
            | 
           27 | 
              | 
        
        
            | 
            | 
           28 | 
           $page = new admin_settingpage('theme_universe_block5', get_string('settingsblock5', 'theme_universe'));
  | 
        
        
            | 
            | 
           29 | 
              | 
        
        
            | 
            | 
           30 | 
           $name = 'theme_universe/displayblock5';
  | 
        
        
            | 
            | 
           31 | 
           $title = get_string('turnon', 'theme_universe');
  | 
        
        
            | 
            | 
           32 | 
           $description = get_string('displayblock5_desc', 'theme_universe');
  | 
        
        
            | 
            | 
           33 | 
           $default = 0;
  | 
        
        
            | 
            | 
           34 | 
           $setting = new admin_setting_configcheckbox($name, $title .
  | 
        
        
            | 
            | 
           35 | 
           '<span class="badge badge-sq badge-dark ml-2">Block #5</span>', $description, $default);
  | 
        
        
            | 
            | 
           36 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           37 | 
              | 
        
        
            | 
            | 
           38 | 
           $name = 'theme_universe/displayhrblock5';
  | 
        
        
            | 
            | 
           39 | 
           $title = get_string('displayblockhr', 'theme_universe');
  | 
        
        
            | 
            | 
           40 | 
           $description = get_string('displayblockhr_desc', 'theme_universe');
  | 
        
        
            | 
            | 
           41 | 
           $default = 1;
  | 
        
        
            | 
            | 
           42 | 
           $setting = new admin_setting_configcheckbox($name, $title, $description, $default);
  | 
        
        
            | 
            | 
           43 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           44 | 
              | 
        
        
            | 
            | 
           45 | 
           $name = 'theme_universe/block5id';
  | 
        
        
            | 
            | 
           46 | 
           $title = get_string('additionalid', 'theme_universe');
  | 
        
        
            | 
            | 
           47 | 
           $description = get_string('additionalid_desc', 'theme_universe');
  | 
        
        
            | 
            | 
           48 | 
           $default = '';
  | 
        
        
            | 
            | 
           49 | 
           $setting = new admin_setting_configtext($name, $title, $description, $default);
  | 
        
        
            | 
            | 
           50 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           51 | 
              | 
        
        
            | 
            | 
           52 | 
           $name = 'theme_universe/block5class';
  | 
        
        
            | 
            | 
           53 | 
           $title = get_string('additionalclass', 'theme_universe');
  | 
        
        
            | 
            | 
           54 | 
           $description = get_string('additionalclass_desc', 'theme_universe');
  | 
        
        
            | 
            | 
           55 | 
           $default = '';
  | 
        
        
            | 
            | 
           56 | 
           $setting = new admin_setting_configtext($name, $title, $description, $default);
  | 
        
        
            | 
            | 
           57 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           58 | 
              | 
        
        
            | 
            | 
           59 | 
           $name = 'theme_universe/block5introsubtitle';
  | 
        
        
            | 
            | 
           60 | 
           $title = get_string('blockintrosubtitle', 'theme_universe');
  | 
        
        
            | 
            | 
           61 | 
           $description = get_string('blockintrosubtitle_desc', 'theme_universe');
  | 
        
        
            | 
            | 
           62 | 
           $default = '';
  | 
        
        
            | 
            | 
           63 | 
           $setting = new admin_setting_configtextarea($name, $title, $description, $default);
  | 
        
        
            | 
            | 
           64 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           65 | 
              | 
        
        
            | 
            | 
           66 | 
           $name = 'theme_universe/block5introtitle';
  | 
        
        
            | 
            | 
           67 | 
           $title = get_string('blockintrotitle', 'theme_universe');
  | 
        
        
            | 
            | 
           68 | 
           $description = get_string('blockintrotitle_desc', 'theme_universe');
  | 
        
        
            | 
            | 
           69 | 
           $default = '';
  | 
        
        
            | 
            | 
           70 | 
           $setting = new admin_setting_configtextarea($name, $title, $description, $default);
  | 
        
        
            | 
            | 
           71 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           72 | 
              | 
        
        
            | 
            | 
           73 | 
           $name = 'theme_universe/block5introcontent';
  | 
        
        
            | 
            | 
           74 | 
           $title = get_string('blockintrocontent', 'theme_universe');
  | 
        
        
            | 
            | 
           75 | 
           $description = get_string('blockintrocontent_desc', 'theme_universe');
  | 
        
        
            | 
            | 
           76 | 
           $default = '';
  | 
        
        
            | 
            | 
           77 | 
           $setting = new admin_setting_configtextarea($name, $title, $description, $default);
  | 
        
        
            | 
            | 
           78 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           79 | 
              | 
        
        
            | 
            | 
           80 | 
           $name = 'theme_universe/block5htmlcontent';
  | 
        
        
            | 
            | 
           81 | 
           $title = get_string('blockhtmlcontent', 'theme_universe');
  | 
        
        
            | 
            | 
           82 | 
           $description = get_string('blockhtmlcontent_desc', 'theme_universe');
  | 
        
        
            | 
            | 
           83 | 
           $default = '<!-- Start - Block -->
  | 
        
        
            | 
            | 
           84 | 
           <div class="row row-cols-1 row-cols-md-2 row-cols-lg-4">
  | 
        
        
            | 
            | 
           85 | 
           <!-- Start item -->
  | 
        
        
            | 
            | 
           86 | 
           <div class="rui-card-item rui-img-rounded--lg col mb-4">
  | 
        
        
            | 
            | 
           87 | 
           <img src="https://assets.rosea.io/universe/demo/pattern.jpg" alt="Moodle - Dark Mode" width="800" height="800" class="img-fluid">
  | 
        
        
            | 
            | 
           88 | 
           <div class="rui-color-card rui-rounded--lg">
  | 
        
        
            | 
            | 
           89 | 
           <div class="rui-card-body">
  | 
        
        
            | 
            | 
           90 | 
           <h3 class="rui-card-title">Activities</h3>
  | 
        
        
            | 
            | 
           91 | 
           <p class="rui-card-text">An activity is a general name for a group of features in a Moodle course.</p>
  | 
        
        
            | 
            | 
           92 | 
           </div>
  | 
        
        
            | 
            | 
           93 | 
           </div>
  | 
        
        
            | 
            | 
           94 | 
           </div>
  | 
        
        
            | 
            | 
           95 | 
           <!-- End item -->
  | 
        
        
            | 
            | 
           96 | 
              | 
        
        
            | 
            | 
           97 | 
           <!-- Start item -->
  | 
        
        
            | 
            | 
           98 | 
           <div class="rui-card-item rui-img-rounded--lg col mb-4">
  | 
        
        
            | 
            | 
           99 | 
           <img src="https://assets.rosea.io/universe/demo/pattern.jpg" alt="unsplash" width="800" height="800" class="img-fluid">
  | 
        
        
            | 
            | 
           100 | 
           <div class="rui-color-card rui-rounded--lg">
  | 
        
        
            | 
            | 
           101 | 
           <div class="rui-card-body">
  | 
        
        
            | 
            | 
           102 | 
           <h3 class="rui-card-title">Quizzes</h3>
  | 
        
        
            | 
            | 
           103 | 
           <p class="rui-card-text">Just look how nice, simple, and easy the new quiz UI is. Completely redesigned.</p>
  | 
        
        
            | 
            | 
           104 | 
           </div>
  | 
        
        
            | 
            | 
           105 | 
           </div>
  | 
        
        
            | 
            | 
           106 | 
           </div>
  | 
        
        
            | 
            | 
           107 | 
           <!-- End item -->
  | 
        
        
            | 
            | 
           108 | 
              | 
        
        
            | 
            | 
           109 | 
           <!-- Start item -->
  | 
        
        
            | 
            | 
           110 | 
           <div class="rui-card-item rui-img-rounded--lg col mb-4">
  | 
        
        
            | 
            | 
           111 | 
           <img src="https://assets.rosea.io/universe/demo/pattern.jpg" alt="Unsplash" width="800" height="800" class="img-fluid">
  | 
        
        
            | 
            | 
           112 | 
           <div class="rui-color-card rui-rounded--lg">
  | 
        
        
            | 
            | 
           113 | 
           <div class="rui-card-body">
  | 
        
        
            | 
            | 
           114 | 
           <h3 class="rui-card-title">Forums</h3>
  | 
        
        
            | 
            | 
           115 | 
           <p class="rui-card-text">The Forum activity allows students and teachers to exchange ideas by posting</p>
  | 
        
        
            | 
            | 
           116 | 
           </div>
  | 
        
        
            | 
            | 
           117 | 
           </div>
  | 
        
        
            | 
            | 
           118 | 
           </div>
  | 
        
        
            | 
            | 
           119 | 
           <!-- End item -->
  | 
        
        
            | 
            | 
           120 | 
              | 
        
        
            | 
            | 
           121 | 
           <!-- Start item -->
  | 
        
        
            | 
            | 
           122 | 
           <div class="rui-card-item rui-img-rounded--lg col mb-4">
  | 
        
        
            | 
            | 
           123 | 
           <img src="https://assets.rosea.io/universe/demo/pattern.jpg" alt="Unsplash" width="800" height="800" class="img-fluid">
  | 
        
        
            | 
            | 
           124 | 
           <div class="rui-color-card rui-rounded--lg">
  | 
        
        
            | 
            | 
           125 | 
           <div class="rui-card-body">
  | 
        
        
            | 
            | 
           126 | 
           <h3 class="rui-card-title">Assignments</h3>
  | 
        
        
            | 
            | 
           127 | 
           <p class="rui-card-text">Assignments allow students to submit work to their teacher for grading.</p>
  | 
        
        
            | 
            | 
           128 | 
           </div>
  | 
        
        
            | 
            | 
           129 | 
           </div>
  | 
        
        
            | 
            | 
           130 | 
           </div>
  | 
        
        
            | 
            | 
           131 | 
           <!-- End item -->
  | 
        
        
            | 
            | 
           132 | 
              | 
        
        
            | 
            | 
           133 | 
           </div>
  | 
        
        
            | 
            | 
           134 | 
           <!-- End - Block -->';
  | 
        
        
            | 
            | 
           135 | 
           $setting = new universe_setting_confightmleditor($name, $title, $description, $default);
  | 
        
        
            | 
            | 
           136 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           137 | 
              | 
        
        
            | 
            | 
           138 | 
           $name = 'theme_universe/block5footercontent';
  | 
        
        
            | 
            | 
           139 | 
           $title = get_string('blockfootercontent', 'theme_universe');
  | 
        
        
            | 
            | 
           140 | 
           $description = get_string('blockfootercontent_desc', 'theme_universe');
  | 
        
        
            | 
            | 
           141 | 
           $default = '';
  | 
        
        
            | 
            | 
           142 | 
           $setting = new admin_setting_configtextarea($name, $title, $description, $default);
  | 
        
        
            | 
            | 
           143 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           144 | 
              | 
        
        
            | 
            | 
           145 | 
           $name = 'theme_universe/block5customcss';
  | 
        
        
            | 
            | 
           146 | 
           $title = get_string('blockcustomcss', 'theme_universe');
  | 
        
        
            | 
            | 
           147 | 
           $description = get_string('blockcustomcss_desc', 'theme_universe');
  | 
        
        
            | 
            | 
           148 | 
           $default = '';
  | 
        
        
            | 
            | 
           149 | 
           $setting = new admin_setting_configtextarea($name, $title, $description, $default);
  | 
        
        
            | 
            | 
           150 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           151 | 
              | 
        
        
            | 
            | 
           152 | 
           $settings->add($page);
  |