{** * plugins/blocks/subscription/block.tpl * * Copyright (c) 2013-2015 Simon Fraser University Library * Copyright (c) 2003-2015 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * Common site sidebar menu -- subscription info. * *}
{translate key="plugins.block.subscription.blockTitle"} {if $individualSubscription} {assign var=individualSubscriptionValid value=$individualSubscription->isValid()} {else} {assign var=individualSubscriptionValid value=false} {/if} {if $individualSubscription && $individualSubscriptionValid} {assign var=subscriptionStatus value=$individualSubscription->getStatus()} {$individualSubscription->getSubscriptionTypeName()|escape} {if $individualSubscription->getMembership()}({$individualSubscription->getMembership()|escape}){/if}
{if $journalPaymentsEnabled && $acceptSubscriptionPayments && $subscriptionStatus == $smarty.const.SUBSCRIPTION_STATUS_AWAITING_ONLINE_PAYMENT} {translate key="subscriptions.status.awaitingOnlinePayment"}
{elseif $journalPaymentsEnabled && $acceptSubscriptionPayments && $subscriptionStatus == $smarty.const.SUBSCRIPTION_STATUS_AWAITING_MANUAL_PAYMENT} {translate key="subscriptions.status.awaitingOnlinePayment"}
{else} {if $individualSubscription->isNonExpiring()} {translate key="subscriptionTypes.nonExpiring"}
{else} {if $individualSubscription->isExpired()}{translate key="user.subscriptions.expired"}: {else}{translate key="plugins.block.subscription.expires"}: {/if}{$individualSubscription->getDateEnd()|date_format:$dateFormatShort}
{/if} {/if} {elseif $institutionalSubscription} {translate key="plugins.block.subscription.providedBy"}: {$institutionalSubscription->getInstitutionName()|escape}
{translate key="plugins.block.subscription.comingFromIP"}: {$userIP|escape}
{elseif $individualSubscription && !$individualSubscriptionValid} {assign var=subscriptionStatus value=$individualSubscription->getStatus()} {$individualSubscription->getSubscriptionTypeName()|escape} {if $individualSubscription->getMembership()}({$individualSubscription->getMembership()|escape}){/if}
{if $journalPaymentsEnabled && $acceptSubscriptionPayments && $subscriptionStatus == $smarty.const.SUBSCRIPTION_STATUS_AWAITING_ONLINE_PAYMENT} {translate key="subscriptions.status.awaitingOnlinePayment"}
{elseif $journalPaymentsEnabled && $acceptSubscriptionPayments && $subscriptionStatus == $smarty.const.SUBSCRIPTION_STATUS_AWAITING_MANUAL_PAYMENT} {translate key="subscriptions.status.awaitingManualPayment"}
{else} {if $individualSubscription->isNonExpiring()} {translate key="subscriptionTypes.nonExpiring"}
{else} {if $individualSubscription->isExpired()}{translate key="user.subscriptions.expired"}: {else}{translate key="plugins.block.subscription.expires"}: {/if}{$individualSubscription->getDateEnd()|date_format:$dateFormatShort}
{/if} {/if} {elseif !$userLoggedIn} {translate key="plugins.block.subscription.loginToVerifySubscription"} {/if} {if $userLoggedIn} {translate key="user.subscriptions.mySubscriptions"} {/if} {if $acceptGiftSubscriptionPayments}
{translate key="gifts.purchaseGiftSubscription"} {/if}