first commit
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
{**
|
||||
* templates/frontend/pages/aboutThisPublishingSystem.tpl
|
||||
*
|
||||
* Copyright (c) 2014-2021 Simon Fraser University
|
||||
* Copyright (c) 2003-2021 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* @brief Display the page to view details about the OJS software.
|
||||
*
|
||||
* @uses $currentContext Journal The journal currently being viewed
|
||||
* @uses $appVersion string Current version of OJS
|
||||
* @uses $contactUrl string URL to the journal's contact page
|
||||
*}
|
||||
{include file="frontend/components/header.tpl" pageTitle="about.aboutSoftware"}
|
||||
|
||||
<div class="page page_about_publishing_system">
|
||||
{include file="frontend/components/breadcrumbs.tpl" currentTitleKey="about.aboutSoftware"}
|
||||
<h1>
|
||||
{translate key="about.aboutSoftware"}
|
||||
</h1>
|
||||
|
||||
<p>
|
||||
{if $currentContext}
|
||||
{translate key="about.aboutOJSJournal" ojsVersion=$appVersion contactUrl=$contactUrl}
|
||||
{else}
|
||||
{translate key="about.aboutOJSSite" ojsVersion=$appVersion}
|
||||
{/if}
|
||||
</p>
|
||||
|
||||
</div><!-- .page -->
|
||||
|
||||
{include file="frontend/components/footer.tpl"}
|
||||
@@ -0,0 +1,36 @@
|
||||
{**
|
||||
* templates/frontend/pages/article.tpl
|
||||
*
|
||||
* Copyright (c) 2014-2021 Simon Fraser University
|
||||
* Copyright (c) 2003-2021 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* @brief Display the page to view an article with all of it's details.
|
||||
*
|
||||
* @uses $article Submission This article
|
||||
* @uses $publication Publication The publication being displayed
|
||||
* @uses $firstPublication Publication The first published version of this article
|
||||
* @uses $currentPublication Publication The most recently published version of this article
|
||||
* @uses $issue Issue The issue this article is assigned to
|
||||
* @uses $section Section The journal section this article is assigned to
|
||||
* @uses $journal Journal The journal currently being viewed.
|
||||
* @uses $primaryGalleys array List of article galleys that are not supplementary or dependent
|
||||
* @uses $supplementaryGalleys array List of article galleys that are supplementary
|
||||
*}
|
||||
{include file="frontend/components/header.tpl" pageTitleTranslated=$article->getCurrentPublication()->getLocalizedFullTitle(null, 'html')|strip_unsafe_html}
|
||||
|
||||
<div class="page page_article">
|
||||
{if $section}
|
||||
{include file="frontend/components/breadcrumbs_article.tpl" currentTitle=$section->getLocalizedTitle()}
|
||||
{else}
|
||||
{include file="frontend/components/breadcrumbs_article.tpl" currentTitleKey="common.publication"}
|
||||
{/if}
|
||||
|
||||
{* Show article overview *}
|
||||
{include file="frontend/objects/article_details.tpl"}
|
||||
|
||||
{call_hook name="Templates::Article::Footer::PageFooter"}
|
||||
|
||||
</div><!-- .page -->
|
||||
|
||||
{include file="frontend/components/footer.tpl"}
|
||||
@@ -0,0 +1,103 @@
|
||||
{**
|
||||
* templates/frontend/pages/catalogCategory.tpl
|
||||
*
|
||||
* Copyright (c) 2014-2021 Simon Fraser University
|
||||
* Copyright (c) 2003-2021 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* @brief Display the page to view a category of the catalog.
|
||||
*
|
||||
* @uses $category Category Current category being viewed
|
||||
* @uses $publishedSubmissions array List of published submissions in this category
|
||||
* @uses $parentCategory Category Parent category if one exists
|
||||
* @uses $subcategories array List of subcategories if they exist
|
||||
* @uses $prevPage int The previous page number
|
||||
* @uses $nextPage int The next page number
|
||||
* @uses $showingStart int The number of the first item on this page
|
||||
* @uses $showingEnd int The number of the last item on this page
|
||||
* @uses $total int Count of all published submissions in this category
|
||||
*}
|
||||
{include file="frontend/components/header.tpl" pageTitleTranslated=$category->getLocalizedTitle()|escape}
|
||||
|
||||
<div class="page page_catalog_category">
|
||||
|
||||
{* Breadcrumb *}
|
||||
{include file="frontend/components/breadcrumbs_catalog.tpl" type="category" parent=$parentCategory currentTitle=$category->getLocalizedTitle()|escape}
|
||||
<h1>
|
||||
{$category->getLocalizedTitle()|escape}
|
||||
</h1>
|
||||
|
||||
{* Count of articles in this category *}
|
||||
<div class="article_count">
|
||||
{translate key="catalog.browseTitles" numTitles=$total}
|
||||
</div>
|
||||
|
||||
{* Image and description *}
|
||||
{assign var="image" value=$category->getImage()}
|
||||
{assign var="description" value=$category->getLocalizedDescription()|strip_unsafe_html}
|
||||
<div class="about_section{if $image} has_image{/if}{if $description} has_description{/if}">
|
||||
{if $image}
|
||||
<div class="cover" href="{url router=\PKP\core\PKPApplication::ROUTE_PAGE page="catalog" op="fullSize" type="category" id=$category->getId()}">
|
||||
<img src="{url router=\PKP\core\PKPApplication::ROUTE_PAGE page="catalog" op="thumbnail" type="category" id=$category->getId()}" alt="null" />
|
||||
</div>
|
||||
{/if}
|
||||
<div class="description">
|
||||
{$description|strip_unsafe_html}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if $subcategories|@count}
|
||||
<nav class="subcategories" role="navigation">
|
||||
<h2>
|
||||
{translate key="catalog.category.subcategories"}
|
||||
</h2>
|
||||
<ul>
|
||||
{foreach from=$subcategories item=subcategory}
|
||||
<li>
|
||||
<a href="{url op="category" path=$subcategory->getPath()}">
|
||||
{$subcategory->getLocalizedTitle()|escape}
|
||||
</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</nav>
|
||||
{/if}
|
||||
|
||||
<h2 class="title">
|
||||
{translate key="catalog.category.heading"}
|
||||
</h2>
|
||||
|
||||
{* No published titles in this category *}
|
||||
{if empty($publishedSubmissions)}
|
||||
<p>{translate key="catalog.category.noItems"}</p>
|
||||
{else}
|
||||
<ul class="cmp_article_list articles">
|
||||
{foreach from=$publishedSubmissions item=article}
|
||||
<li>
|
||||
{include file="frontend/objects/article_summary.tpl" article=$article hideGalleys=true heading="h3"}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
|
||||
{* Pagination *}
|
||||
{if $prevPage > 1}
|
||||
{capture assign=prevUrl}{url router=\PKP\core\PKPApplication::ROUTE_PAGE page="catalog" op="category" path=$category->getPath()|to_array:$prevPage}{/capture}
|
||||
{elseif $prevPage === 1}
|
||||
{capture assign=prevUrl}{url router=\PKP\core\PKPApplication::ROUTE_PAGE page="catalog" op="category" path=$category->getPath()}{/capture}
|
||||
{/if}
|
||||
{if $nextPage}
|
||||
{capture assign=nextUrl}{url router=\PKP\core\PKPApplication::ROUTE_PAGE page="catalog" op="category" path=$category->getPath()|to_array:$nextPage}{/capture}
|
||||
{/if}
|
||||
{include
|
||||
file="frontend/components/pagination.tpl"
|
||||
prevUrl=$prevUrl
|
||||
nextUrl=$nextUrl
|
||||
showingStart=$showingStart
|
||||
showingEnd=$showingEnd
|
||||
total=$total
|
||||
}
|
||||
{/if}
|
||||
|
||||
</div><!-- .page -->
|
||||
|
||||
{include file="frontend/components/footer.tpl"}
|
||||
@@ -0,0 +1,67 @@
|
||||
{**
|
||||
* templates/frontend/pages/indexJournal.tpl
|
||||
*
|
||||
* Copyright (c) 2014-2021 Simon Fraser University
|
||||
* Copyright (c) 2003-2021 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* @brief Display the index page for a journal
|
||||
*
|
||||
* @uses $currentJournal Journal This journal
|
||||
* @uses $journalDescription string Journal description from HTML text editor
|
||||
* @uses $homepageImage object Image to be displayed on the homepage
|
||||
* @uses $additionalHomeContent string Arbitrary input from HTML text editor
|
||||
* @uses $announcements array List of announcements
|
||||
* @uses $numAnnouncementsHomepage int Number of announcements to display on the
|
||||
* homepage
|
||||
* @uses $issue Issue Current issue
|
||||
*}
|
||||
{include file="frontend/components/header.tpl" pageTitleTranslated=$currentJournal->getLocalizedName()}
|
||||
|
||||
<div class="page_index_journal">
|
||||
|
||||
{call_hook name="Templates::Index::journal"}
|
||||
|
||||
{if !$activeTheme->getOption('useHomepageImageAsHeader') && $homepageImage}
|
||||
<div class="homepage_image">
|
||||
<img src="{$publicFilesDir}/{$homepageImage.uploadName|escape:"url"}"{if $homepageImage.altText} alt="{$homepageImage.altText|escape}"{/if}>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{* Journal Description *}
|
||||
{if $activeTheme->getOption('showDescriptionInJournalIndex')}
|
||||
<section class="homepage_about">
|
||||
<a id="homepageAbout"></a>
|
||||
<h2>{translate key="about.aboutContext"}</h2>
|
||||
{$currentContext->getLocalizedData('description')}
|
||||
</section>
|
||||
{/if}
|
||||
|
||||
{include file="frontend/objects/announcements_list.tpl" numAnnouncements=$numAnnouncementsHomepage}
|
||||
|
||||
{* Latest issue *}
|
||||
{if $issue}
|
||||
<section class="current_issue">
|
||||
<a id="homepageIssue"></a>
|
||||
<h2>
|
||||
{translate key="journal.currentIssue"}
|
||||
</h2>
|
||||
<div class="current_issue_title">
|
||||
{$issue->getIssueIdentification()|strip_unsafe_html}
|
||||
</div>
|
||||
{include file="frontend/objects/issue_toc.tpl" heading="h3"}
|
||||
<a href="{url router=\PKP\core\PKPApplication::ROUTE_PAGE page="issue" op="archive"}" class="read_more">
|
||||
{translate key="journal.viewAllIssues"}
|
||||
</a>
|
||||
</section>
|
||||
{/if}
|
||||
|
||||
{* Additional Homepage Content *}
|
||||
{if $additionalHomeContent}
|
||||
<div class="additional_content">
|
||||
{$additionalHomeContent}
|
||||
</div>
|
||||
{/if}
|
||||
</div><!-- .page -->
|
||||
|
||||
{include file="frontend/components/footer.tpl"}
|
||||
@@ -0,0 +1,76 @@
|
||||
{**
|
||||
* templates/frontend/pages/indexSite.tpl
|
||||
*
|
||||
* Copyright (c) 2014-2021 Simon Fraser University
|
||||
* Copyright (c) 2003-2021 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* Site index.
|
||||
*
|
||||
*}
|
||||
{include file="frontend/components/header.tpl"}
|
||||
|
||||
<div class="page_index_site">
|
||||
|
||||
{if $about}
|
||||
<div class="about_site">
|
||||
{$about}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{include file="frontend/objects/announcements_list.tpl" numAnnouncements=$numAnnouncementsHomepage}
|
||||
|
||||
<div class="journals">
|
||||
<h2>
|
||||
{translate key="context.contexts"}
|
||||
</h2>
|
||||
{if !$journals|@count}
|
||||
{translate key="site.noJournals"}
|
||||
{else}
|
||||
<ul>
|
||||
{foreach from=$journals item=journal}
|
||||
{capture assign="url"}{url journal=$journal->getPath()}{/capture}
|
||||
{assign var="thumb" value=$journal->getLocalizedData('journalThumbnail')}
|
||||
{assign var="description" value=$journal->getLocalizedDescription()}
|
||||
<li{if $thumb} class="has_thumb"{/if}>
|
||||
{if $thumb}
|
||||
<div class="thumb">
|
||||
<a href="{$url}">
|
||||
<img src="{$journalFilesPath}{$journal->getId()}/{$thumb.uploadName|escape:"url"}"{if $thumb.altText} alt="{$thumb.altText|escape|default:''}"{/if}>
|
||||
</a>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="body">
|
||||
<h3>
|
||||
<a href="{$url}" rel="bookmark">
|
||||
{$journal->getLocalizedName()|escape}
|
||||
</a>
|
||||
</h3>
|
||||
{if $description}
|
||||
<div class="description">
|
||||
{$description}
|
||||
</div>
|
||||
{/if}
|
||||
<ul class="links">
|
||||
<li class="view">
|
||||
<a href="{$url}">
|
||||
{translate key="site.journalView"}
|
||||
</a>
|
||||
</li>
|
||||
<li class="current">
|
||||
<a href="{url journal=$journal->getPath() page="issue" op="current"}">
|
||||
{translate key="site.journalCurrent"}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
</div><!-- .page -->
|
||||
|
||||
{include file="frontend/components/footer.tpl"}
|
||||
@@ -0,0 +1,39 @@
|
||||
{**
|
||||
* templates/frontend/pages/issue.tpl
|
||||
*
|
||||
* Copyright (c) 2014-2021 Simon Fraser University
|
||||
* Copyright (c) 2003-2021 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* @brief Display a landing page for a single issue. It will show the table of contents
|
||||
* (toc) or a cover image, with a click through to the toc.
|
||||
*
|
||||
* @uses $issue Issue The issue
|
||||
* @uses $issueIdentification string Label for this issue, consisting of one or
|
||||
* more of the volume, number, year and title, depending on settings
|
||||
* @uses $issueGalleys array Galleys for the entire issue
|
||||
* @uses $primaryGenreIds array List of file genre IDs for primary types
|
||||
*}
|
||||
{include file="frontend/components/header.tpl" pageTitleTranslated=$issueIdentification}
|
||||
|
||||
<div class="page page_issue">
|
||||
|
||||
{* Display a message if no current issue exists *}
|
||||
{if !$issue}
|
||||
{include file="frontend/components/breadcrumbs_issue.tpl" currentTitleKey="current.noCurrentIssue"}
|
||||
<h1>
|
||||
{translate key="current.noCurrentIssue"}
|
||||
</h1>
|
||||
{include file="frontend/components/notification.tpl" type="warning" messageKey="current.noCurrentIssueDesc"}
|
||||
|
||||
{* Display an issue with the Table of Contents *}
|
||||
{else}
|
||||
{include file="frontend/components/breadcrumbs_issue.tpl" currentTitle=$issueIdentification}
|
||||
<h1>
|
||||
{$issueIdentification|escape}
|
||||
</h1>
|
||||
{include file="frontend/objects/issue_toc.tpl"}
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{include file="frontend/components/footer.tpl"}
|
||||
@@ -0,0 +1,66 @@
|
||||
{**
|
||||
* templates/frontend/pages/issueArchive.tpl
|
||||
*
|
||||
* Copyright (c) 2014-2021 Simon Fraser University
|
||||
* Copyright (c) 2003-2021 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* @brief Display a list of recent issues.
|
||||
*
|
||||
* @uses $issues Array Collection of issues to display
|
||||
* @uses $prevPage int The previous page number
|
||||
* @uses $nextPage int The next page number
|
||||
* @uses $showingStart int The number of the first item on this page
|
||||
* @uses $showingEnd int The number of the last item on this page
|
||||
* @uses $total int Count of all published monographs
|
||||
*}
|
||||
{capture assign="pageTitle"}
|
||||
{if $prevPage}
|
||||
{translate key="archive.archivesPageNumber" pageNumber=$prevPage+1}
|
||||
{else}
|
||||
{translate key="archive.archives"}
|
||||
{/if}
|
||||
{/capture}
|
||||
{include file="frontend/components/header.tpl" pageTitleTranslated=$pageTitle}
|
||||
|
||||
<div class="page page_issue_archive">
|
||||
{include file="frontend/components/breadcrumbs.tpl" currentTitle=$pageTitle}
|
||||
<h1>
|
||||
{$pageTitle|escape}
|
||||
</h1>
|
||||
|
||||
{* No issues have been published *}
|
||||
{if empty($issues)}
|
||||
<p>{translate key="current.noCurrentIssueDesc"}</p>
|
||||
|
||||
{* List issues *}
|
||||
{else}
|
||||
<ul class="issues_archive">
|
||||
{foreach from=$issues item="issue"}
|
||||
<li>
|
||||
{include file="frontend/objects/issue_summary.tpl"}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
|
||||
{* Pagination *}
|
||||
{if $prevPage > 1}
|
||||
{capture assign=prevUrl}{url router=\PKP\core\PKPApplication::ROUTE_PAGE page="issue" op="archive" path=$prevPage}{/capture}
|
||||
{elseif $prevPage === 1}
|
||||
{capture assign=prevUrl}{url router=\PKP\core\PKPApplication::ROUTE_PAGE page="issue" op="archive"}{/capture}
|
||||
{/if}
|
||||
{if $nextPage}
|
||||
{capture assign=nextUrl}{url router=\PKP\core\PKPApplication::ROUTE_PAGE page="issue" op="archive" path=$nextPage}{/capture}
|
||||
{/if}
|
||||
{include
|
||||
file="frontend/components/pagination.tpl"
|
||||
prevUrl=$prevUrl
|
||||
nextUrl=$nextUrl
|
||||
showingStart=$showingStart
|
||||
showingEnd=$showingEnd
|
||||
total=$total
|
||||
}
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{include file="frontend/components/footer.tpl"}
|
||||
@@ -0,0 +1,53 @@
|
||||
{**
|
||||
* templates/frontend/pages/purchaseIndividualSubscription.tpl
|
||||
*
|
||||
* Copyright (c) 2013-2021 Simon Fraser University
|
||||
* Copyright (c) 2003-2021 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* User purchase individual subscription form
|
||||
*
|
||||
*}
|
||||
{include file="frontend/components/header.tpl" pageTitle="user.subscriptions.purchaseIndividualSubscription"}
|
||||
|
||||
<div class="pkp_page_content pkp_page_purchaseIndividualSubscription">
|
||||
<form class="cmp_form purchase_subscription" method="post" id="subscriptionForm" action="{url op="payPurchaseSubscription" path="individual"|to_array:$subscriptionId}">
|
||||
{csrf}
|
||||
|
||||
<fieldset>
|
||||
<legend>
|
||||
{translate key="payment.subscription.purchase"}
|
||||
</legend>
|
||||
<div class="fields">
|
||||
<div class="subscription_type">
|
||||
<label>
|
||||
<span class="label">
|
||||
{translate key="user.subscriptions.form.typeId"}
|
||||
</span>
|
||||
<select name="typeId" id="typeId">
|
||||
{foreach name=types from=$subscriptionTypes key=thisTypeId item=subscriptionType}
|
||||
<option value="{$thisTypeId|escape}"{if $typeId == $thisTypeId} selected{/if}>{$subscriptionType|escape}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
<div class="subscription_membership">
|
||||
<label>
|
||||
<span class="label">
|
||||
{translate key="user.subscriptions.form.membership"}
|
||||
</span>
|
||||
<input type="text" name="membership" id="membership" value="{$membership|escape}">
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<div class="buttons">
|
||||
<button class="submit" type="submit">
|
||||
{translate key="common.save"}
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{include file="frontend/components/footer.tpl"}
|
||||
@@ -0,0 +1,111 @@
|
||||
{**
|
||||
* templates/payments/userInstitutionalSubscriptionForm.tpl
|
||||
*
|
||||
* Copyright (c) 2014-2021 Simon Fraser University
|
||||
* Copyright (c) 2003-2021 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* User purchase institutional subscription form
|
||||
*
|
||||
*}
|
||||
{include file="frontend/components/header.tpl" pageTitle="user.subscriptions.purchaseInstitutionalSubscription"}
|
||||
|
||||
<div class="pkp_page_content pkp_page_purchaseInstitutionalSubscription">
|
||||
<h1 class="page_title">
|
||||
{translate key="user.subscriptions.purchaseInstitutionalSubscription"}
|
||||
</h1>
|
||||
|
||||
{assign var="formPath" value="institutional"}
|
||||
{if $subscriptionId}
|
||||
{assign var="formPath" value="institutional"|to_array:$subscriptionId}
|
||||
{/if}
|
||||
<form class="cmp_form purchase_subscription" method="post" id="subscriptionForm" action="{url op="payPurchaseSubscription" path=$formPath}">
|
||||
{csrf}
|
||||
|
||||
{include file="common/formErrors.tpl"}
|
||||
|
||||
<fieldset>
|
||||
<legend>
|
||||
{translate key="payment.subscription.purchase"}
|
||||
</legend>
|
||||
<div class="fields">
|
||||
<div class="subscription_type">
|
||||
<label>
|
||||
<span class="label">
|
||||
{translate key="user.subscriptions.form.typeId"}
|
||||
<span class="required">*</span>
|
||||
<span class="pkp_screen_reader">
|
||||
{translate key="common.required"}
|
||||
</span>
|
||||
</span>
|
||||
<select name="typeId" id="typeId" required>
|
||||
{foreach name=types from=$subscriptionTypes item=subscriptionType}
|
||||
<option value="{$subscriptionType->getId()}"{if $typeId == $subscriptionType->getId()} selected{/if}>{$subscriptionType->getSummaryString()|escape}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
<div class="subscription_membership">
|
||||
<label>
|
||||
<span class="label">
|
||||
{translate key="user.subscriptions.form.membership"}
|
||||
</span>
|
||||
<input type="text" name="membership" id="membership" value="{$membership|escape}" aria-describedby="subscriptionMembershipDescription">
|
||||
</label>
|
||||
<p class="description" id="subscriptionMembershipDescription">{translate key="user.subscriptions.form.membershipInstructions"}</p>
|
||||
</div>
|
||||
<div class="subscription_institution">
|
||||
<label>
|
||||
<span class="label">
|
||||
{translate key="user.subscriptions.form.institutionName"}
|
||||
</span>
|
||||
<input type="text" name="institutionName" id="institutionName" value="{$institutionName|escape}">
|
||||
</label>
|
||||
</div>
|
||||
<div class="subscription_address">
|
||||
<label>
|
||||
<span class="label">
|
||||
{translate key="user.subscriptions.form.institutionMailingAddress"}
|
||||
</span>
|
||||
<textarea name="institutionMailingAddress" id="institutionMailingAddress">{$institutionMailingAddress|escape}</textarea>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<div class="fields">
|
||||
<div class="subscription_domain">
|
||||
<label>
|
||||
<span class="label">
|
||||
{translate key="user.subscriptions.form.domain"}
|
||||
</span>
|
||||
<input type="text" name="domain" id="domain" value="{$domain|escape}" aria-describedby="subscriptionDomainDescription">
|
||||
</label>
|
||||
<p class="description" id="subscriptionDomainDescription">{translate key="user.subscriptions.form.domainInstructions"}</p>
|
||||
</div>
|
||||
<div class="subscription_ips">
|
||||
<label>
|
||||
<span class="label">
|
||||
{translate key="user.subscriptions.form.ipRange"}
|
||||
</span>
|
||||
<textarea name="ipRanges" id="ipRanges">{$ipRanges|escape}</textarea>
|
||||
</label>
|
||||
<p class="description" id="subscriptionIPDescription">{translate key="user.subscriptions.form.ipRangeInstructions"}</p>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<div class="buttons">
|
||||
<button class="submit" type="submit">
|
||||
{translate key="common.continue"}
|
||||
</button>
|
||||
<a class="cmp_button_link" href="{url page="user" op="subscriptions"}">
|
||||
{translate key="common.cancel"}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{include file="frontend/components/footer.tpl"}
|
||||
@@ -0,0 +1,142 @@
|
||||
{**
|
||||
* templates/frontend/pages/search.tpl
|
||||
*
|
||||
* Copyright (c) 2014-2021 Simon Fraser University
|
||||
* Copyright (c) 2003-2021 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* @brief Display the page to search and view search results.
|
||||
*
|
||||
* @uses $query Value of the primary search query
|
||||
* @uses $authors Value of the authors search filter
|
||||
* @uses $dateFrom Value of the date from search filter (published after).
|
||||
* Value is a single string: YYYY-MM-DD HH:MM:SS
|
||||
* @uses $dateTo Value of the date to search filter (published before).
|
||||
* Value is a single string: YYYY-MM-DD HH:MM:SS
|
||||
* @uses $yearStart Earliest year that can be used in from/to filters
|
||||
* @uses $yearEnd Latest year that can be used in from/to filters
|
||||
*}
|
||||
{include file="frontend/components/header.tpl" pageTitle="common.search"}
|
||||
|
||||
{if !$heading}
|
||||
{assign var="heading" value="h2"}
|
||||
{/if}
|
||||
|
||||
<div class="page page_search">
|
||||
|
||||
{include file="frontend/components/breadcrumbs.tpl" currentTitleKey="common.search"}
|
||||
<h1>
|
||||
{translate key="common.search"}
|
||||
</h1>
|
||||
|
||||
{capture name="searchFormUrl"}{url escape=false}{/capture}
|
||||
{assign var=formUrlParameters value=[]}{* Prevent Smarty warning *}
|
||||
{$smarty.capture.searchFormUrl|parse_url:$smarty.const.PHP_URL_QUERY|default:""|parse_str:$formUrlParameters}
|
||||
<form class="cmp_form" method="get" action="{$smarty.capture.searchFormUrl|strtok:"?"|escape}" role="form">
|
||||
{foreach from=$formUrlParameters key=paramKey item=paramValue}
|
||||
<input type="hidden" name="{$paramKey|escape}" value="{$paramValue|escape}"/>
|
||||
{/foreach}
|
||||
|
||||
{* Repeat the label text just so that screen readers have a clear
|
||||
label/input relationship *}
|
||||
<div class="search_input">
|
||||
<label class="pkp_screen_reader" for="query">
|
||||
{translate key="search.searchFor"}
|
||||
</label>
|
||||
{block name=searchQuery}
|
||||
<input type="text" id="query" name="query" value="{$query|escape}" class="query" placeholder="{translate|escape key="common.search"}">
|
||||
{/block}
|
||||
</div>
|
||||
|
||||
<fieldset class="search_advanced">
|
||||
<legend>
|
||||
{translate key="search.advancedFilters"}
|
||||
</legend>
|
||||
<div class="date_range">
|
||||
<div class="from">
|
||||
{capture assign="dateFromLegend"}{translate key="search.dateFrom"}{/capture}
|
||||
{html_select_date_a11y legend=$dateFromLegend prefix="dateFrom" time=$dateFrom start_year=$yearStart end_year=$yearEnd}
|
||||
</div>
|
||||
<div class="to">
|
||||
{capture assign="dateFromTo"}{translate key="search.dateTo"}{/capture}
|
||||
{html_select_date_a11y legend=$dateFromTo prefix="dateTo" time=$dateTo start_year=$yearStart end_year=$yearEnd}
|
||||
</div>
|
||||
</div>
|
||||
<div class="author">
|
||||
<label class="label" for="authors">
|
||||
{translate key="search.author"}
|
||||
</label>
|
||||
{block name=searchAuthors}
|
||||
<input type="text" id="authors" name="authors" value="{$authors|escape}">
|
||||
{/block}
|
||||
|
||||
{if $searchableContexts}
|
||||
<label class="label label_contexts" for="searchJournal">
|
||||
{translate key="context.context"}
|
||||
</label>
|
||||
<select name="searchJournal" id="searchJournal">
|
||||
<option></option>
|
||||
{foreach from=$searchableContexts item="searchableContext"}
|
||||
<option value="{$searchableContext->id}" {if $searchJournal == $searchableContext->id}selected{/if}>
|
||||
{$searchableContext->name|escape}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
{/if}
|
||||
</div>
|
||||
{call_hook name="Templates::Search::SearchResults::AdditionalFilters"}
|
||||
</fieldset>
|
||||
|
||||
<div class="submit">
|
||||
<button class="submit" type="submit">{translate key="common.search"}</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
{call_hook name="Templates::Search::SearchResults::PreResults"}
|
||||
|
||||
<h2 class="pkp_screen_reader">{translate key="search.searchResults"}</h2>
|
||||
|
||||
{* Results pagination *}
|
||||
{if !$results->wasEmpty()}
|
||||
{assign var="count" value=$results->count}
|
||||
<div class="pkp_screen_reader" role="status">
|
||||
{if $results->count > 1}
|
||||
{translate key="search.searchResults.foundPlural" count=$results->count}
|
||||
{else}
|
||||
{translate key="search.searchResults.foundSingle"}
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{* Search results, finally! *}
|
||||
<ul class="search_results">
|
||||
{iterate from=results item=result}
|
||||
<li>
|
||||
{include file="frontend/objects/article_summary.tpl" article=$result.publishedSubmission journal=$result.journal showDatePublished=true hideGalleys=true heading="h3"}
|
||||
</li>
|
||||
{/iterate}
|
||||
</ul>
|
||||
|
||||
{* No results found *}
|
||||
{if $results->wasEmpty()}
|
||||
<span role="status">
|
||||
{if $error}
|
||||
{include file="frontend/components/notification.tpl" type="error" message=$error|escape}
|
||||
{else}
|
||||
{include file="frontend/components/notification.tpl" type="notice" messageKey="search.noResults"}
|
||||
{/if}
|
||||
</span>
|
||||
|
||||
{* Results pagination *}
|
||||
{else}
|
||||
<div class="cmp_pagination">
|
||||
{page_info iterator=$results}
|
||||
{page_links anchor="results" iterator=$results name="search" query=$query searchJournal=$searchJournal authors=$authors dateFromMonth=$dateFromMonth dateFromDay=$dateFromDay dateFromYear=$dateFromYear dateToMonth=$dateToMonth dateToDay=$dateToDay dateToYear=$dateToYear}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{* Search Syntax Instructions *}
|
||||
{block name=searchSyntaxInstructions}{/block}
|
||||
</div><!-- .page -->
|
||||
|
||||
{include file="frontend/components/footer.tpl"}
|
||||
@@ -0,0 +1,27 @@
|
||||
{**
|
||||
* templates/frontend/pages/submissions.tpl
|
||||
*
|
||||
* Copyright (c) 2014-2023 Simon Fraser University
|
||||
* Copyright (c) 2003-2023 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* @brief Display the page to view information about submissions.
|
||||
*}
|
||||
{capture assign="submissionChecklistAfterContent"}
|
||||
{foreach from=$sections item="section"}
|
||||
{if $section->getLocalizedPolicy()}
|
||||
<div class="section_policy">
|
||||
<h2>{$section->getLocalizedTitle()|escape}</h2>
|
||||
{$section->getLocalizedPolicy()}
|
||||
{if $isUserLoggedIn}
|
||||
{capture assign="sectionSubmissionUrl"}{url page="submission" sectionId=$section->getId()}{/capture}
|
||||
<p>
|
||||
{translate key="about.onlineSubmissions.submitToSection" name=$section->getLocalizedTitle()|escape url=$sectionSubmissionUrl}
|
||||
</p>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/capture}
|
||||
|
||||
{include file="core:frontend/pages/submissions.tpl"}
|
||||
@@ -0,0 +1,94 @@
|
||||
{**
|
||||
* templates/frontend/pages/subscriptions.tpl
|
||||
*
|
||||
* Copyright (c) 2013-2021 Simon Fraser University
|
||||
* Copyright (c) 2003-2021 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* About the Journal Subscriptions.
|
||||
*
|
||||
*}
|
||||
{include file="frontend/components/header.tpl" pageTitle="about.subscriptions"}
|
||||
|
||||
<div class="page page_subscriptions">
|
||||
{include file="frontend/components/breadcrumbs.tpl" currentTitleKey="about.subscriptions"}
|
||||
<h1>
|
||||
{translate key="about.subscriptions"}
|
||||
</h1>
|
||||
{include file="frontend/components/subscriptionContact.tpl"}
|
||||
|
||||
<a name="subscriptionTypes"></a>
|
||||
{if $individualSubscriptionTypes|@count}
|
||||
<div class="subscriptions_institutional">
|
||||
<h3>{translate key="about.subscriptions.individual"}</h3>
|
||||
<p>{translate key="subscriptions.individualDescription"}</p>
|
||||
<table class="cmp_table">
|
||||
<tr>
|
||||
<th>{translate key="about.subscriptionTypes.name"}</th>
|
||||
<th>{translate key="about.subscriptionTypes.format"}</th>
|
||||
<th>{translate key="about.subscriptionTypes.duration"}</th>
|
||||
<th>{translate key="about.subscriptionTypes.cost"}</th>
|
||||
</tr>
|
||||
{foreach from=$individualSubscriptionTypes item=subscriptionType}
|
||||
<tr>
|
||||
<td>
|
||||
<div class="subscription_name">
|
||||
{$subscriptionType->getLocalizedName()|escape}
|
||||
</div>
|
||||
<div class="subscription_description">
|
||||
{$subscriptionType->getLocalizedDescription()|strip_unsafe_html}
|
||||
</div>
|
||||
</td>
|
||||
<td>{translate key=$subscriptionType->getFormatString()}</td>
|
||||
<td>{$subscriptionType->getDurationYearsMonths()|escape}</td>
|
||||
<td>{$subscriptionType->getCost()|string_format:"%.2f"} ({$subscriptionType->getCurrencyStringShort()|escape})</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</div>
|
||||
{if $isUserLoggedIn}
|
||||
<div class="subscriptions_individual_purchase">
|
||||
<a class="action" href="{url page="user" op="purchaseSubscription" path="individual"}">
|
||||
{translate key="user.subscriptions.purchaseNewSubscription"}
|
||||
</a>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{if $institutionalSubscriptionTypes|@count}
|
||||
<h3>{translate key="about.subscriptions.institutional"}</h3>
|
||||
<p>{translate key="subscriptions.institutionalDescription"}</p>
|
||||
<table class="cmp_table">
|
||||
<tr>
|
||||
<th>{translate key="about.subscriptionTypes.name"}</th>
|
||||
<th>{translate key="about.subscriptionTypes.format"}</th>
|
||||
<th>{translate key="about.subscriptionTypes.duration"}</th>
|
||||
<th>{translate key="about.subscriptionTypes.cost"}</th>
|
||||
</tr>
|
||||
{foreach from=$institutionalSubscriptionTypes item=subscriptionType}
|
||||
<tr>
|
||||
<td>
|
||||
<div class="subscription_name">
|
||||
{$subscriptionType->getLocalizedName()|escape}
|
||||
</div>
|
||||
<div class="subscription_description">
|
||||
{$subscriptionType->getLocalizedDescription()|strip_unsafe_html}
|
||||
</div>
|
||||
</td>
|
||||
<td>{translate key=$subscriptionType->getFormatString()}</td>
|
||||
<td>{$subscriptionType->getDurationYearsMonths()|escape}</td>
|
||||
<td>{$subscriptionType->getCost()|string_format:"%.2f"} ({$subscriptionType->getCurrencyStringShort()|escape})</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{if $isUserLoggedIn}
|
||||
<div class="subscriptions_institutional_purchase">
|
||||
<a class="action" href="{url page="user" op="purchaseSubscription" path="institutional"}">
|
||||
{translate key="user.subscriptions.purchaseNewSubscription"}
|
||||
</a>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{include file="frontend/components/footer.tpl"}
|
||||
@@ -0,0 +1,237 @@
|
||||
{**
|
||||
* templates/frontend/pages/userSubscriptions.tpl
|
||||
*
|
||||
* Copyright (c) 2014-2021 Simon Fraser University
|
||||
* Copyright (c) 2003-2021 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* @brief Page where users can view and manage their subscriptions.
|
||||
*
|
||||
* @uses $paymentsEnabled boolean
|
||||
* @uses $individualSubscriptionTypesExist boolean Have any individual
|
||||
* subscription types been created?
|
||||
* @uses $userIndividualSubscription IndividualSubscription
|
||||
* @uses $institutionalSubscriptionTypesExist boolean Have any institutional
|
||||
* subscription types been created?
|
||||
* @uses $userInstitutionalSubscriptions array
|
||||
*}
|
||||
{include file="frontend/components/header.tpl" pageTitle="user.subscriptions.mySubscriptions"}
|
||||
|
||||
<div class="page page_user_subscriptions">
|
||||
{include file="frontend/components/breadcrumbs.tpl" currentTitleKey="user.subscriptions.mySubscriptions"}
|
||||
<h1>
|
||||
{translate key="user.subscriptions.mySubscriptions"}
|
||||
</h1>
|
||||
{include file="frontend/components/subscriptionContact.tpl"}
|
||||
|
||||
{if $paymentsEnabled}
|
||||
<div class="my_subscription_payments">
|
||||
<h3>{translate key="user.subscriptions.subscriptionStatus"}</h3>
|
||||
<p>{translate key="user.subscriptions.statusInformation"}</p>
|
||||
<table class="cmp_table">
|
||||
<tr>
|
||||
<th>{translate key="user.subscriptions.status"}</th>
|
||||
<th>{translate key="user.subscriptions.statusDescription"}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{translate key="subscriptions.status.needsInformation"}</td>
|
||||
<td>{translate key="user.subscriptions.status.needsInformationDescription"}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{translate key="subscriptions.status.needsApproval"}</td>
|
||||
<td>{translate key="user.subscriptions.status.needsApprovalDescription"}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{translate key="subscriptions.status.awaitingManualPayment"}</td>
|
||||
<td>{translate key="user.subscriptions.status.awaitingManualPaymentDescription"}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{translate key="subscriptions.status.awaitingOnlinePayment"}</td>
|
||||
<td>{translate key="user.subscriptions.status.awaitingOnlinePaymentDescription"}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $individualSubscriptionTypesExist}
|
||||
<div class="my_subscription_individual">
|
||||
<h3>{translate key="user.subscriptions.individualSubscriptions"}</h3>
|
||||
<p>{translate key="subscriptions.individualDescription"}</p>
|
||||
{if $userIndividualSubscription}
|
||||
<table class="cmp_table">
|
||||
<tr>
|
||||
<th>{translate key="user.subscriptions.form.typeId"}</th>
|
||||
<th>{translate key="subscriptions.status"}</th>
|
||||
{if $paymentsEnabled}
|
||||
<th></th>
|
||||
{/if}
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$userIndividualSubscription->getSubscriptionTypeName()|escape}</td>
|
||||
<td>
|
||||
{assign var="subscriptionStatus" value=$userIndividualSubscription->getStatus()}
|
||||
{assign var="isNonExpiring" value=$userIndividualSubscription->isNonExpiring()}
|
||||
{if $paymentsEnabled && $subscriptionStatus == \APP\subscription\Subscription::SUBSCRIPTION_STATUS_AWAITING_ONLINE_PAYMENT}
|
||||
<span class="subscription_disabled">
|
||||
{translate key="subscriptions.status.awaitingOnlinePayment"}
|
||||
</span>
|
||||
{elseif $paymentsEnabled && $subscriptionStatus == \APP\subscription\Subscription::SUBSCRIPTION_STATUS_AWAITING_MANUAL_PAYMENT}
|
||||
<span class="subscription_disabled">
|
||||
{translate key="subscriptions.status.awaitingManualPayment"}
|
||||
</span>
|
||||
{elseif $subscriptionStatus != \APP\subscription\Subscription::SUBSCRIPTION_STATUS_ACTIVE}
|
||||
<span class="subscription_disabled">
|
||||
{translate key="subscriptions.inactive"}
|
||||
</span>
|
||||
{else}
|
||||
{if $isNonExpiring}
|
||||
{translate key="subscriptionTypes.nonExpiring"}
|
||||
{else}
|
||||
{assign var="isExpired" value=$userIndividualSubscription->isExpired()}
|
||||
{if $isExpired}
|
||||
<span class="subscription_disabled">
|
||||
{translate key="user.subscriptions.expired" date=$userIndividualSubscription->getDateEnd()|date_format:$dateFormatShort}
|
||||
</span>
|
||||
{else}
|
||||
<span class="subscription_active">
|
||||
{translate key="user.subscriptions.expires" date=$userIndividualSubscription->getDateEnd()|date_format:$dateFormatShort}
|
||||
</span>
|
||||
{/if}
|
||||
{/if}
|
||||
{/if}
|
||||
</td>
|
||||
{if $paymentsEnabled}
|
||||
<td>
|
||||
{if $subscriptionStatus == \APP\subscription\Subscription::SUBSCRIPTION_STATUS_AWAITING_ONLINE_PAYMENT}
|
||||
<a class="cmp_button" href="{url op="completePurchaseSubscription" path="individual"|to_array:$userIndividualSubscription->getId()}">
|
||||
{translate key="user.subscriptions.purchase"}
|
||||
</a>
|
||||
{elseif $subscriptionStatus == \APP\subscription\Subscription::SUBSCRIPTION_STATUS_ACTIVE}
|
||||
{if !$isNonExpiring}
|
||||
<a class="cmp_button" href="{url op="payRenewSubscription" path="individual"|to_array:$userIndividualSubscription->getId()}">
|
||||
{translate key="user.subscriptions.renew"}
|
||||
</a>
|
||||
{/if}
|
||||
<a class="cmp_button" href="{url op="purchaseSubscription" path="individual"|to_array:$userIndividualSubscription->getId()}">
|
||||
{translate key="user.subscriptions.purchase"}
|
||||
</a>
|
||||
{/if}
|
||||
</td>
|
||||
{/if}
|
||||
</tr>
|
||||
</table>
|
||||
{elseif $paymentsEnabled}
|
||||
<p>
|
||||
<a class="action" href="{url op="purchaseSubscription" path="individual"}">
|
||||
{translate key="user.subscriptions.purchaseNewSubscription"}
|
||||
</a>
|
||||
</p>
|
||||
{else}
|
||||
<p>
|
||||
<a href="{url page="about" op="subscriptions" anchor="subscriptionTypes"}">
|
||||
{translate key="user.subscriptions.viewSubscriptionTypes"}
|
||||
</a>
|
||||
</p>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $institutionalSubscriptionTypesExist}
|
||||
<div class="my_subscriptions_institutional">
|
||||
<h3>{translate key="user.subscriptions.institutionalSubscriptions"}</h3>
|
||||
<p>
|
||||
{translate key="subscriptions.institutionalDescription"}
|
||||
{if $paymentsEnabled}
|
||||
{translate key="subscriptions.institutionalOnlinePaymentDescription"}
|
||||
{/if}
|
||||
</p>
|
||||
{if $userInstitutionalSubscriptions}
|
||||
<table class="cmp_table">
|
||||
<tr>
|
||||
<th>{translate key="user.subscriptions.form.typeId"}</th>
|
||||
<th>{translate key="user.subscriptions.form.institutionName"}</th>
|
||||
<th>{translate key="subscriptions.status"}</th>
|
||||
{if $paymentsEnabled}
|
||||
<th></th>
|
||||
{/if}
|
||||
</tr>
|
||||
{iterate from=userInstitutionalSubscriptions item=userInstitutionalSubscription}
|
||||
<tr>
|
||||
<td>{$userInstitutionalSubscription->getSubscriptionTypeName()|escape}</td>
|
||||
<td>{$institutions[$userInstitutionalSubscription->getId()]->getLocalizedName()|escape}</td>
|
||||
<td>
|
||||
{assign var="subscriptionStatus" value=$userInstitutionalSubscription->getStatus()}
|
||||
{assign var="isNonExpiring" value=$userInstitutionalSubscription->isNonExpiring()}
|
||||
{if $paymentsEnabled && $subscriptionStatus == \APP\subscription\Subscription::SUBSCRIPTION_STATUS_AWAITING_ONLINE_PAYMENT}
|
||||
<span class="subscription_disabled">
|
||||
{translate key="subscriptions.status.awaitingOnlinePayment"}
|
||||
</span>
|
||||
{elseif $paymentsEnabled && $subscriptionStatus == \APP\subscription\Subscription::SUBSCRIPTION_STATUS_AWAITING_MANUAL_PAYMENT}
|
||||
<span class="subscription_disabled">
|
||||
{translate key="subscriptions.status.awaitingManualPayment"}
|
||||
</span>
|
||||
{elseif $paymentsEnabled && $subscriptionStatus == \APP\subscription\Subscription::SUBSCRIPTION_STATUS_NEEDS_APPROVAL}
|
||||
<span class="subscription_disabled">
|
||||
{translate key="subscriptions.status.needsApproval"}
|
||||
</span>
|
||||
{elseif $subscriptionStatus != \APP\subscription\Subscription::SUBSCRIPTION_STATUS_ACTIVE}
|
||||
<span class="subscription_disabled">
|
||||
{translate key="subscriptions.inactive"}
|
||||
</span>
|
||||
{else}
|
||||
{if $isNonExpiring}
|
||||
<span class="subscription_active">
|
||||
{translate key="subscriptionTypes.nonExpiring"}
|
||||
</span>
|
||||
{else}
|
||||
{assign var="isExpired" value=$userInstitutionalSubscription->isExpired()}
|
||||
{if $isExpired}
|
||||
<span class="subscription_disabled">
|
||||
{translate key="user.subscriptions.expired" date=$userInstitutionalSubscription->getDateEnd()|date_format:$dateFormatShort}
|
||||
</span>
|
||||
{else}
|
||||
<span class="subscription_enabled">
|
||||
{translate key="user.subscriptions.expires" date=$userInstitutionalSubscription->getDateEnd()|date_format:$dateFormatShort}
|
||||
</span>
|
||||
{/if}
|
||||
{/if}
|
||||
{/if}
|
||||
</td>
|
||||
{if $paymentsEnabled}
|
||||
<td>
|
||||
{if $subscriptionStatus == \APP\subscription\Subscription::SUBSCRIPTION_STATUS_AWAITING_ONLINE_PAYMENT}
|
||||
<a class="cmp_button" href="{url op="completePurchaseSubscription" path="institutional"|to_array:$userInstitutionalSubscription->getId()}">
|
||||
{translate key="user.subscriptions.purchase"}
|
||||
</a>
|
||||
{elseif $subscriptionStatus == \APP\subscription\Subscription::SUBSCRIPTION_STATUS_ACTIVE}
|
||||
{if !$isNonExpiring}
|
||||
<a class="cmp_button" href="{url op="payRenewSubscription" path="institutional"|to_array:$userInstitutionalSubscription->getId()}">
|
||||
{translate key="user.subscriptions.renew"}
|
||||
</a>
|
||||
{/if}
|
||||
<a class="cmp_button" href="{url op="purchaseSubscription" path="institutional"|to_array:$userInstitutionalSubscription->getId()}">
|
||||
{translate key="user.subscriptions.purchase"}
|
||||
</a>
|
||||
{/if}
|
||||
</td>
|
||||
{/if}
|
||||
</tr>
|
||||
{/iterate}
|
||||
</table>
|
||||
{/if}
|
||||
<p>
|
||||
{if $paymentsEnabled}
|
||||
<a class="action" href="{url page="user" op="purchaseSubscription" path="institutional"}">
|
||||
{translate key="user.subscriptions.purchaseNewSubscription"}
|
||||
</a>
|
||||
{else}
|
||||
<a href="{url page="about" op="subscriptions" anchor="subscriptionTypes"}">
|
||||
{translate key="user.subscriptions.viewSubscriptionTypes"}
|
||||
</a>
|
||||
{/if}
|
||||
</p>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{include file="frontend/components/footer.tpl"}
|
||||
Reference in New Issue
Block a user