Skip to content

Commit

Permalink
Update the source.
Browse files Browse the repository at this point in the history
  • Loading branch information
vasanthlmsace committed Oct 17, 2024
1 parent 809c8ab commit de170e3
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 6 deletions.
3 changes: 0 additions & 3 deletions classes/template_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,6 @@ public function __construct() {

/**
* Generate title.
*
* @param \stdClass $data
* @return mixed
*/
public function col_title($data) {
return format_string($data->title);
Expand Down
31 changes: 31 additions & 0 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@

require_once($CFG->dirroot. '/course/format/lib.php');


use format_kickstart\output\course_template_list;

/**
* Main class for the Kickstart course format
*
Expand All @@ -44,6 +47,34 @@ public function supports_news() {
return false;
}


/**
* Course-specific information to be output on any course page (usually above navigation bar)
*
* Example of usage:
* define
* class format_FORMATNAME_XXX implements renderable {}
*
* create format renderer in course/format/FORMATNAME/renderer.php, define rendering function:
* class format_FORMATNAME_renderer extends plugin_renderer_base {
* protected function render_format_FORMATNAME_XXX(format_FORMATNAME_XXX $xxx) {
* return html_writer::tag('div', 'This is my header/footer');
* }
* }
*
* Return instance of format_FORMATNAME_XXX in this function, the appropriate method from
* plugin renderer will be called
*
* @return null|\renderable null for no output or object with data for plugin renderer
*/
public function course_header() {
global $CFG;
if (format_kickstart_has_pro()) {
require_once($CFG->dirroot. "/local/kickstart_pro/lib.php");
local_kickstart_pro_redirect_automatictemplate();
}
}

/**
* Definitions of the additional options that this course format uses for course
*
Expand Down
6 changes: 3 additions & 3 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
* Version details
*
* @package format_kickstart
* @copyright 2023 bdecent gmbh <https://bdecent.de>
* @copyright 2021 bdecent gmbh <https://bdecent.de>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2023112703; // The current plugin version (Date: YYYYMMDDXX).
$plugin->requires = 2022041900; // Requires this Moodle version.
$plugin->requires = 2022030300; // Requires this Moodle version.
$plugin->release = 'Version 1.3';
$plugin->component = 'format_kickstart'; // Full name of the plugin (used for diagnostics).
$plugin->supported = [400, 403];
$plugin->supported = [40, 402];
$plugin->maturity = MATURITY_STABLE;

0 comments on commit de170e3

Please sign in to comment.