00001 <?php 00002 00017 import('lib.pkp.classes.plugins.BlockPlugin'); 00018 00019 class DevelopedByBlockPlugin extends BlockPlugin { 00024 function getEnabled() { 00025 if (!Config::getVar('general', 'installed')) return true; 00026 return parent::getEnabled(); 00027 } 00028 00033 function getInstallSitePluginSettingsFile() { 00034 return $this->getPluginPath() . '/settings.xml'; 00035 } 00036 00041 function getContextSpecificPluginSettingsFile() { 00042 return $this->getPluginPath() . '/settings.xml'; 00043 } 00044 00050 function getBlockContext() { 00051 if (!Config::getVar('general', 'installed')) return BLOCK_CONTEXT_LEFT_SIDEBAR; 00052 return parent::getBlockContext(); 00053 } 00054 00059 function getSeq() { 00060 if (!Config::getVar('general', 'installed')) return 1; 00061 return parent::getSeq(); 00062 } 00063 00068 function getDisplayName() { 00069 return __('plugins.block.developedBy.displayName'); 00070 } 00071 00075 function getDescription() { 00076 return __('plugins.block.developedBy.description'); 00077 } 00078 } 00079 00080 ?>
1.7.1