setupTemplate($request); $journal = $request->getJournal(); $subscriptionTypeDao =& DAORegistry::getDAO('SubscriptionTypeDAO'); if ($journal) { $paymentManager = \Application::getPaymentManager($journal); if (!($journal->getSetting('paymentsEnabled') && $paymentManager->isConfigured())) { $request->redirect(null, 'index'); } } $templateMgr->assign(array( 'subscriptionAdditionalInformation' => $journal->getLocalizedSetting('subscriptionAdditionalInformation'), 'subscriptionMailingAddress' => $journal->getSetting('subscriptionMailingAddress'), 'subscriptionName' => $journal->getSetting('subscriptionName'), 'subscriptionPhone' => $journal->getSetting('subscriptionPhone'), 'subscriptionEmail' => $journal->getSetting('subscriptionEmail'), 'individualSubscriptionTypes' => $subscriptionTypeDao->getByInstitutional($journal->getId(), false, false), 'institutionalSubscriptionTypes' => $subscriptionTypeDao->getByInstitutional($journal->getId(), true, false), )); $templateMgr->display('frontend/pages/subscriptions.tpl'); } } ?>