コード例 #1
0
 /**
  * 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';
 }
コード例 #2
0
ファイル: outputfactories.php プロジェクト: evltuma/moodle
 /**
  * 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();
 }
コード例 #3
0
ファイル: testoutputlib.php プロジェクト: ajv/Offline-Caching
 public function standard_renderer_class_for_module($module, $subtype = null)
 {
     return parent::standard_renderer_class_for_module($module, $subtype);
 }