Server IP : 103.11.96.170 / Your IP : 3.22.217.190 Web Server : Microsoft-IIS/10.0 System : Windows NT WIN-F6SLGVICLOP 10.0 build 17763 (Windows Server 2016) AMD64 User : elibrary.unsap.ac.id ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF Directory (0777) : D:/localhost/lms/blocks/cocoon_my_courses/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php defined('MOODLE_INTERNAL') || die(); class block_cocoon_my_courses_edit_form extends block_edit_form { protected function specific_definition($mform) { global $CFG; $mform->addElement('header', 'configheader', get_string('blocksettings', 'block')); // Title $mform->addElement('text', 'config_title', get_string('config_title', 'block_cocoon_my_courses')); $mform->setDefault('config_title', 'Related Courses'); $mform->setType('config_title', PARAM_RAW); // Subtitle $mform->addElement('text', 'config_subtitle', get_string('config_subtitle', 'theme_edumy')); $mform->setDefault('config_subtitle', 'Cum doctus civibus efficiantur in imperdiet deterruisCum doctus civibus efficiantur in imperdiet deterruisset.'); $mform->setType('config_subtitle', PARAM_RAW); // Hover text $mform->addElement('text', 'config_hover_text', get_string('config_hover_text', 'block_cocoon_featuredcourses')); $mform->setDefault('config_hover_text', 'Preview Course'); $mform->setType('config_hover_text', PARAM_RAW); // Hover accent $mform->addElement('text', 'config_hover_accent', get_string('config_hover_accent', 'block_cocoon_featuredcourses')); $mform->setDefault('config_hover_accent', 'Top Seller'); $mform->setType('config_hover_accent', PARAM_RAW); $options = array( '0' => 'Hidden', '1' => 'Visible', ); $select = $mform->addElement('select', 'config_course_image', get_string('config_image', 'theme_edumy'), $options); $select->setSelected('1'); // $options = array( // '0' => 'Hidden', // '1' => 'Visible', // ); // $select = $mform->addElement('select', 'config_updated', get_string('config_updated', 'theme_edumy'), $options); // $select->setSelected('1'); // $options = array( // '0' => 'Hidden', // '1' => 'Visible', // ); // $select = $mform->addElement('select', 'config_rating', get_string('config_rating', 'theme_edumy'), $options); // $select->setSelected('1'); $options = array( '0' => 'Hidden', '1' => 'Visible', '2' => 'Visible (max 50 characters)', '3' => 'Visible (max 100 characters)', '4' => 'Visible (max 150 characters)', '5' => 'Visible (max 200 characters)', '6' => 'Visible (max 350 characters)', '7' => 'Visible (max 500 characters)', ); $select = $mform->addElement('select', 'config_description', get_string('config_description', 'theme_edumy'), $options); $select->setSelected('0'); // $options = array( // '0' => 'Hidden', // '1' => 'Visible', // ); // $select = $mform->addElement('select', 'config_enrolments', get_string('config_enrolments', 'theme_edumy'), $options); // $select->setSelected('1'); // $options = array( // '0' => 'Hidden', // '1' => 'Visible', // ); // $select = $mform->addElement('select', 'config_newsitems', get_string('config_newsitems', 'theme_edumy'), $options); // $select->setSelected('1'); $options = array( '0' => 'Hidden', '1' => 'Visible', ); $select = $mform->addElement('select', 'config_price', get_string('config_price', 'theme_edumy'), $options); $select->setSelected('1'); $options = array( '0' => 'Hidden', '1' => 'Visible', ); $select = $mform->addElement('select', 'config_enrol_btn', get_string('config_enrol_btn', 'theme_edumy'), $options); $select->setSelected('0'); $mform->addElement('text', 'config_enrol_btn_text', get_string('config_enrol_btn_text', 'theme_edumy')); $mform->setDefault('config_enrol_btn_text', 'Buy Now'); $mform->setType('config_enrol_btn_text', PARAM_RAW); // $mform->addElement('html', '<a class="btn btn-secondary mt20 mb30 " href="'.$CFG->wwwroot.'/blocks/cocoon_my_courses/cocoon_my_courses.php">Select Featured Courses</a>'); // $mform->addElement('static', 'link', // get_string('editlink', 'block_cocoon_my_courses', // $CFG->wwwroot.'/blocks/cocoon_my_courses/cocoon_my_courses.php')); include($CFG->dirroot . '/theme/edumy/ccn/block_handler/edit.php'); } }