validate(); $this->setupTemplate(); $journal = Request::getJournal(); if ($journal == null) { Request::redirect('index'); return; } switch(isset($args[0])?$args[0]:null) { case 'readers': $content = $journal->getLocalizedSetting('readerInformation'); $pageTitle = 'navigation.infoForReaders.long'; $pageCrumbTitle = 'navigation.infoForReaders'; break; case 'authors': $content = $journal->getLocalizedSetting('authorInformation'); $pageTitle = 'navigation.infoForAuthors.long'; $pageCrumbTitle = 'navigation.infoForAuthors'; break; case 'librarians': $content = $journal->getLocalizedSetting('librarianInformation'); $pageTitle = 'navigation.infoForLibrarians.long'; $pageCrumbTitle = 'navigation.infoForLibrarians'; break; case 'competingInterestGuidelines': $content = $journal->getLocalizedSetting('competingInterestGuidelines'); $pageTitle = $pageCrumbTitle = 'navigation.competingInterestGuidelines'; break; case 'sampleCopyrightWording': AppLocale::requireComponents(LOCALE_COMPONENT_OJS_MANAGER); $content = __('manager.setup.authorCopyrightNotice.sample'); $pageTitle = $pageCrumbTitle = 'manager.setup.copyrightNotice'; break; default: Request::redirect($journal->getPath()); return; } $templateMgr =& TemplateManager::getManager(); $templateMgr->assign('pageCrumbTitle', $pageCrumbTitle); $templateMgr->assign('pageTitle', $pageTitle); $templateMgr->assign('content', $content); $templateMgr->display('information/information.tpl'); } function readers() { $this->index(array('readers')); } function authors() { $this->index(array('authors')); } function librarians() { $this->index(array('librarians')); } function competingInterestGuidelines() { $this->index(array('competingInterestGuidelines')); } function sampleCopyrightWording() { $this->index(array('sampleCopyrightWording')); } /** * Initialize the template. */ function setupTemplate() { parent::setupTemplate(); $journal =& Request::getJournal(); $templateMgr =& TemplateManager::getManager(); if (!$journal || !$journal->getSetting('restrictSiteAccess')) { $templateMgr->setCacheability(CACHEABILITY_PUBLIC); } } } ?>