Skip to content

Commit

Permalink
Update the documentation for Travis.
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Nov 8, 2020
1 parent 54246f2 commit 6b5fda3
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 13 deletions.
24 changes: 22 additions & 2 deletions block_theme_selector.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
/**
* Theme selector block.
*
* @package block
* @subpackage theme_selector
* @package block_theme_selector
* @copyright © 2015-onwards G J Barnard in respect to modifications of original code:
* https://github.com/johntron/moodle-theme-selector-block by John Tron, see:
* https://github.com/johntron/moodle-theme-selector-block/issues/1.
Expand All @@ -27,20 +26,41 @@
*/
defined('MOODLE_INTERNAL') || die;

/**
* Theme selector block class.
*/
class block_theme_selector extends block_base {

/**
* Initialise the block.
*/
public function init() {
$this->title = get_string('pluginname', 'block_theme_selector');
}

/**
* States if the block has a configuration.
*
* @return boolean success.
*/
public function has_config() {
return true;
}

/**
* States if the block can hide the header.
*
* @return boolean success.
*/
public function hide_header() {
return false;
}

/**
* Gets the content of the block.
*
* @return string Markup.
*/
public function get_content() {
if ($this->content !== null) {
return $this->content;
Expand Down
3 changes: 1 addition & 2 deletions db/access.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
/**
* Theme selector block.
*
* @package block
* @subpackage theme_selector
* @package block_theme_selector
* @copyright © 2015-onwards G J Barnard in respect to modifications of original code:
* https://github.com/johntron/moodle-theme-selector-block by John Tron, see:
* https://github.com/johntron/moodle-theme-selector-block/issues/1.
Expand Down
6 changes: 3 additions & 3 deletions db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
/**
* Theme selector block.
*
* @package block
* @subpackage theme_selector
* @package block_theme_selector
* @copyright © 2015-onwards G J Barnard in respect to modifications of original code:
* https://github.com/johntron/moodle-theme-selector-block by John Tron, see:
* https://github.com/johntron/moodle-theme-selector-block/issues/1.
Expand All @@ -31,7 +30,8 @@
/**
* Upgrade code for the theme selector block.
*
* @param int $oldversion
* @param int $oldversion.
* @return boolean success.
*/
function xmldb_block_theme_selector_upgrade($oldversion = 0) {

Expand Down
3 changes: 1 addition & 2 deletions lang/en/block_theme_selector.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
/**
* Theme selector block.
*
* @package block
* @subpackage theme_selector
* @package block_theme_selector
* @copyright © 2015-onwards G J Barnard in respect to modifications of original code:
* https://github.com/johntron/moodle-theme-selector-block by John Tron, see:
* https://github.com/johntron/moodle-theme-selector-block/issues/1.
Expand Down
3 changes: 1 addition & 2 deletions settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
/**
* Theme selector block.
*
* @package block
* @subpackage theme_selector
* @package block_theme_selector
* @copyright © 2015-onwards G J Barnard in respect to modifications of original code:
* https://github.com/johntron/moodle-theme-selector-block by John Tron, see:
* https://github.com/johntron/moodle-theme-selector-block/issues/1.
Expand Down
3 changes: 1 addition & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
/**
* Theme selector block.
*
* @package block
* @subpackage theme_selector
* @package block_theme_selector
* @copyright © 2015-onwards G J Barnard in respect to modifications of original code:
* https://github.com/johntron/moodle-theme-selector-block by John Tron, see:
* https://github.com/johntron/moodle-theme-selector-block/issues/1.
Expand Down

0 comments on commit 6b5fda3

Please sign in to comment.