00001 <?php
00002
00015
00016
00017
00018 import('plugins.BlockPlugin');
00019
00020 class NavigationBlockPlugin extends BlockPlugin {
00021 function register($category, $path) {
00022 $success = parent::register($category, $path);
00023 if ($success) {
00024 $this->addLocaleData();
00025 }
00026 return $success;
00027 }
00028
00033 function getSupportedContexts() {
00034 return array(BLOCK_CONTEXT_LEFT_SIDEBAR, BLOCK_CONTEXT_RIGHT_SIDEBAR);
00035 }
00036
00042 function getName() {
00043 return 'NavigationBlockPlugin';
00044 }
00045
00050 function getInstallSitePluginSettingsFile() {
00051 return $this->getPluginPath() . '/settings.xml';
00052 }
00053
00058 function getNewJournalPluginSettingsFile() {
00059 return $this->getPluginPath() . '/settings.xml';
00060 }
00061
00066 function getDisplayName() {
00067 return Locale::translate('plugins.block.navigation.displayName');
00068 }
00069
00073 function getDescription() {
00074 return Locale::translate('plugins.block.navigation.description');
00075 }
00076
00082 function getContents(&$templateMgr) {
00083 $templateMgr->assign('articleSearchByOptions', array(
00084 '' => 'search.allFields',
00085 ARTICLE_SEARCH_AUTHOR => 'search.author',
00086 ARTICLE_SEARCH_TITLE => 'article.title',
00087 ARTICLE_SEARCH_ABSTRACT => 'search.abstract',
00088 ARTICLE_SEARCH_INDEX_TERMS => 'search.indexTerms',
00089 ARTICLE_SEARCH_GALLEY_FILE => 'search.fullText'
00090 ));
00091 return parent::getContents($templateMgr);
00092 }
00093 }
00094
00095 ?>