filter_mobileOKPythia_link_powder) { echo 'The mobileOKPythia filter must be installed and activated before this theme may be used.'; die(); } if (!$mobileOKPythiaForMoodle) { // Include required class definition // TODO: adapt following code require_once(dirname(__FILE__) . '/../../mobileOKPythia/includes/mobileOKPythiaForMoodle.php'); //require_once(dirname(__FILE__) . '/includes/mobileOKPythiaForMoodle.php'); $mobileOKPythiaForMoodle = new mobileOKPythiaForMoodle(); $mobileOKPythiaForMoodle->init(); } // Add POWDER link and make sure POWDER file was created if ($CFG->filter_mobileOKPythia_link_powder) { $mobileOKPythiaForMoodle->addPowderLink($CFG->filter_mobileOKPythia_powder_file); } if ($CFG->filter_mobileOKPythia_switch_template) { $CFG->theme = 'standardwhite'; theme_setup($CFG->theme, array('forceconfig='.$CFG->theme)); } echo ''; ?> <?php echo $title; ?>