00001 <?php
00002
00015
00016
00017
00018 class ThemePlugin extends Plugin {
00024 function getName() {
00025
00026 return 'ThemePlugin';
00027 }
00028
00034 function getDisplayName() {
00035
00036
00037 return 'Abstract Theme Plugin';
00038 }
00039
00043 function getDescription() {
00044 return 'This is the ThemePlugin base class. Its functions can be overridden by subclasses to provide theming support.';
00045 }
00046
00050 function activate(&$templateMgr) {
00051
00052
00053 if (($stylesheetFilename = $this->getStylesheetFilename()) != null) {
00054 $path = Request::getBaseUrl() . '/' . $this->getPluginPath() . '/' . $stylesheetFilename;
00055 $templateMgr->addStyleSheet($path);
00056 }
00057 }
00058 }
00059 ?>