. // Functions for all formats.... /** * This is the squared theme. * * * The squared theme makes uses a custom version of squared blocks * * @package theme_squared * @copyright 2018 onwards Onlinecampus Virtuelle PH * www.virtuelle-ph.at, David Bogner www.edulabs.org * @author G J Barnard - {@link http://moodle.org/user/profile.php?id=442195} * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ // Requires V2.6.1.3+ of the Collapsed Topics format. if (file_exists("$CFG->dirroot/course/format/topcoll/renderer.php")) { include_once($CFG->dirroot . "/course/format/topcoll/renderer.php"); class theme_squared_format_topcoll_renderer extends format_topcoll_renderer { protected function get_row_class() { return 'row'; } protected function get_column_class($columns) { $colclasses = array( 1 => 'col-sm-12 col-md-12 col-lg-12', 2 => 'col-sm-6 col-md-6 col-lg-6', 3 => 'col-md-4 col-lg-4', 4 => 'col-lg-3'); return $colclasses[$columns]; } } }