00001 <?php 00002 00015 //$Id$ 00016 00017 import('plugins.BlockPlugin'); 00018 00019 class DevelopedByBlockPlugin extends BlockPlugin { 00020 function register($category, $path) { 00021 $success = parent::register($category, $path); 00022 if ($success) { 00023 $this->addLocaleData(); 00024 } 00025 return $success; 00026 } 00027 00032 function getEnabled() { 00033 if (!Config::getVar('general', 'installed')) return true; 00034 return parent::getEnabled(); 00035 } 00036 00041 function getInstallSitePluginSettingsFile() { 00042 return $this->getPluginPath() . '/settings.xml'; 00043 } 00044 00049 function getNewConferencePluginSettingsFile() { 00050 return $this->getPluginPath() . '/settings.xml'; 00051 } 00052 00058 function getBlockContext() { 00059 if (!Config::getVar('general', 'installed')) return BLOCK_CONTEXT_RIGHT_SIDEBAR; 00060 return parent::getBlockContext(); 00061 } 00062 00067 function getSupportedContexts() { 00068 return array(BLOCK_CONTEXT_LEFT_SIDEBAR, BLOCK_CONTEXT_RIGHT_SIDEBAR); 00069 } 00070 00075 function getSeq() { 00076 if (!Config::getVar('general', 'installed')) return 1; 00077 return parent::getSeq(); 00078 } 00079 00085 function getName() { 00086 return 'DevelopedByBlockPlugin'; 00087 } 00088 00093 function getDisplayName() { 00094 return __('plugins.block.developedBy.displayName'); 00095 } 00096 00100 function getDescription() { 00101 return __('plugins.block.developedBy.description'); 00102 } 00103 } 00104 00105 ?>