00001 <?php
00002
00017 import('classes.plugins.Plugin');
00018
00019 class ThemePlugin extends Plugin {
00020 function ThemePlugin() {
00021 parent::Plugin();
00022 }
00023
00029 function getName() {
00030 assert(false);
00031 }
00032
00037 function getDisplayName() {
00038 assert(false);
00039 }
00040
00044 function getDescription() {
00045 assert(false);
00046 }
00047
00051 function activate(&$templateMgr) {
00052
00053
00054 if (($stylesheetFilename = $this->getStylesheetFilename()) != null) {
00055 $path = Request::getBaseUrl() . '/' . $this->getPluginPath() . '/' . $stylesheetFilename;
00056 $templateMgr->addStyleSheet($path);
00057 }
00058 }
00059 }
00060
00061 ?>