Esempio n. 1
0
 /**
  * Constructor.
  * @param object $theme the theme we are rendering for.
  */
 public function __construct($theme)
 {
     global $CFG;
     parent::__construct($theme);
     // Initialise $this->prefixes.
     $renderersfile = $theme->dir . '/renderers.php';
     if (is_readable($renderersfile)) {
         include_once $renderersfile;
         $this->prefixes[] = $theme->name . '_';
     }
     if (!empty($theme->parent)) {
         $renderersfile = $CFG->themedir . '/' . $theme->parent . '/renderers.php';
         if (is_readable($renderersfile)) {
             include_once $renderersfile;
             $this->prefixes[] = $theme->parent . '_';
         }
     }
 }
Esempio n. 2
0
 public function __construct($theme)
 {
     parent::__construct($theme);
     global $CFG;
     require_once $CFG->themedir . '/custom_corners/renderers.php';
 }