. /** * Section links block * * @package moodlecore * @Author Jason Hardin * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ $numberofsections = array(); for ($i = 1; $i < 53; $i++){ $numberofsections[$i] = $i; } $increments = array(); for ($i = 1; $i < 11; $i++){ $increments[$i] = $i; } if(isset($this->config)){ $config = $this->config; } else{ $config = get_config('blocks/section_links'); } $selected = array(); if (!empty($config->numsections1)) { if (empty($config->incby1)) { $config->incby1 = 2; } $selected[1] = array($config->numsections1, $config->incby1); } else { $selected[1] = array(22, 2); } if (!empty($config->numsections2)) { if (empty($config->incby1)) { $config->incby1 = 5; } $selected[2] = array($config->numsections2, $config->incby2); } else { $selected[2] = array(40, 5); } ?>