00001 <?php
00002
00015
00016
00017 class ThemePlugin extends Plugin {
00018 function ThemePlugin() {
00019 parent::Plugin();
00020 }
00021
00027 function getName() {
00028
00029 return 'ThemePlugin';
00030 }
00031
00037 function getDisplayName() {
00038
00039
00040 return 'Abstract Theme Plugin';
00041 }
00042
00046 function getDescription() {
00047 return 'This is the ThemePlugin base class. Its functions can be overridden by subclasses to provide theming support.';
00048 }
00049
00053 function activate(&$templateMgr) {
00054
00055
00056 if (($stylesheetFilename = $this->getStylesheetFilename()) != null) {
00057 $path = Request::getBaseUrl() . '/' . $this->getPluginPath() . '/' . $stylesheetFilename;
00058 $templateMgr->addStyleSheet($path);
00059 }
00060 }
00061 }
00062 ?>