[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
Backup
/
14082024
/
Data
/
htdocs
/
htdocs
/
ojs
/
248
/
pages
/
information
/
[
Home
]
File: InformationHandler.inc.php
<?php /** * @file pages/information/InformationHandler.inc.php * * Copyright (c) 2013-2019 Simon Fraser University * Copyright (c) 2003-2019 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * @class InformationHandler * @ingroup pages_information * * @brief Display journal information. */ import('classes.handler.Handler'); class InformationHandler extends Handler { /** * Constructor **/ function InformationHandler() { parent::Handler(); } /** * Display the information page for the journal.. */ function index($args) { $this->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); } } } ?>