Skip to content

Commit

Permalink
Code checker!
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Jun 3, 2024
1 parent 5e63ea1 commit ca53690
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 0 deletions.
6 changes: 6 additions & 0 deletions classes/output/courseformat/content/cm.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@
*/
class cm extends \core_courseformat\output\local\content\cm {

/**
* Get the name of the template to use for this templatable.
*
* @param \renderer_base $renderer The renderer requesting the template name
* @return string
*/
public function get_template_name(\renderer_base $renderer): string {
return 'format_vsf/local/content/section/cm';
}
Expand Down
6 changes: 6 additions & 0 deletions classes/output/courseformat/content/section/cmitem.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@
*/
class cmitem extends \core_courseformat\output\local\content\section\cmitem {

/**
* Get the name of the template to use for this templatable.
*
* @param \renderer_base $renderer The renderer requesting the template name
* @return string
*/
public function get_template_name(\renderer_base $renderer): string {
return 'format_vsf/local/content/section/cmitem';
}
Expand Down
6 changes: 6 additions & 0 deletions classes/output/courseformat/content/section/cmlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@
*/
class cmlist extends \core_courseformat\output\local\content\section\cmlist {

/**
* Get the name of the template to use for this templatable.
*
* @param \renderer_base $renderer The renderer requesting the template name
* @return string
*/
public function get_template_name(\renderer_base $renderer): string {
return 'format_vsf/local/content/section/cmlist';
}
Expand Down
5 changes: 5 additions & 0 deletions classes/output/courseformat/content/sectionselector.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ public function export_for_template(\renderer_base $output): stdClass {
return $this->data;
}

/**
* Get the nav data.
*
* @return stdClass
*/
public function get_nav_data() {
return $this->navdata;
}
Expand Down
15 changes: 15 additions & 0 deletions classes/output/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,11 @@ protected function section_activity_summary($section, $course, $mods) {
}
}

/**
* Get the navigation link icons.
*
* @return array
*/
public function vsf_get_nav_link_icons() {
return [
'next' => 'fa fa-arrow-circle-o-right',
Expand Down Expand Up @@ -838,10 +843,20 @@ public function multiple_section_page($course) {
return $content;
}

/**
* Get the row class.
*
* @return string.
*/
protected function get_row_class() {
return 'row';
}

/**
* Get the column class.
*
* @return string.
*/
protected function get_column_class($columns) {
if (($columns == 1) || ($this->editing)) {
return '';
Expand Down

0 comments on commit ca53690

Please sign in to comment.