0 ) { AppLocale::requireComponents(LOCALE_COMPONENT_PKP_COMMON, LOCALE_COMPONENT_APPLICATION_COMMON, LOCALE_COMPONENT_PKP_USER); $journal =& Request::getJournal(); $journalId = $journal?$journal->getId():0; $path = $args[0]; $staticPagesPlugin =& PluginRegistry::getPlugin('generic', STATIC_PAGES_PLUGIN_NAME); $templateMgr =& TemplateManager::getManager(); $staticPagesDao =& DAORegistry::getDAO('StaticPagesDAO'); $staticPage = $staticPagesDao->getStaticPageByPath($journalId, $path); if ( !$staticPage ) { Request::redirect(null, 'index'); } // and assign the template vars needed $templateMgr->assign('title', $staticPage->getStaticPageTitle()); $templateMgr->assign('content', $staticPage->getStaticPageContent()); $templateMgr->display($staticPagesPlugin->getTemplatePath().'content.tpl'); } } } ?>