/** * Constructor. * @param object $theme the theme we are rendering for. */ public function __construct($theme) { global $CFG; parent::__construct($theme); // Initialise $this->searchpaths. if ($theme->name != 'standardtemplate') { $templatesdir = $theme->dir . '/templates'; if (is_dir($templatesdir)) { $this->searchpaths[] = $templatesdir; } } if (!empty($theme->parent)) { $templatesdir = $CFG->themedir . '/' . $theme->parent . '/templates'; if (is_dir($templatesdir)) { $this->searchpaths[] = $templatesdir; } } $this->searchpaths[] = $CFG->themedir . '/standardtemplate/templates'; }
/** * Constructor. * @param theme_config $theme the theme we are rendering for. */ public function __construct(theme_config $theme) { parent::__construct($theme); // Initialise $this->prefixes. $this->prefixes = $theme->renderer_prefixes(); }
public function standard_renderer_class_for_module($module, $subtype = null) { return parent::standard_renderer_class_for_module($module, $subtype); }