first commit
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
{**
|
||||
* templates/frontend/components/breadcrumbs_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 a breadcrumb nav item showing the current page. This basic
|
||||
* version is for top-level pages which only need to show the Home link. For
|
||||
* category- and series-specific breadcrumb generation, see
|
||||
* templates/frontend/components/breadcrumbs_catalog.tpl.
|
||||
*
|
||||
* @uses $currentTitle string The title to use for the current page.
|
||||
* @uses $currentTitleKey string Translation key for title of current page.
|
||||
* @uses $issue Issue Issue this article was published in.
|
||||
*}
|
||||
|
||||
<nav class="cmp_breadcrumbs" role="navigation" aria-label="{translate key="navigation.breadcrumbLabel"}">
|
||||
<ol>
|
||||
<li>
|
||||
<a href="{url page="index" router=\PKP\core\PKPApplication::ROUTE_PAGE}">
|
||||
{translate key="common.homepageNavigationLabel"}
|
||||
</a>
|
||||
<span class="separator">{translate key="navigation.breadcrumbSeparator"}</span>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{url router=\PKP\core\PKPApplication::ROUTE_PAGE page="issue" op="archive"}">
|
||||
{translate key="navigation.archives"}
|
||||
</a>
|
||||
<span class="separator">{translate key="navigation.breadcrumbSeparator"}</span>
|
||||
</li>
|
||||
{if $issue}
|
||||
<li>
|
||||
<a href="{url page="issue" op="view" path=$issue->getBestIssueId()}">
|
||||
{$issue->getIssueIdentification()}
|
||||
</a>
|
||||
<span class="separator">{translate key="navigation.breadcrumbSeparator"}</span>
|
||||
</li>
|
||||
{/if}
|
||||
<li class="current" aria-current="page">
|
||||
<span aria-current="page">
|
||||
{if $currentTitleKey}
|
||||
{translate key=$currentTitleKey}
|
||||
{else}
|
||||
{$currentTitle|escape}
|
||||
{/if}
|
||||
</span>
|
||||
</li>
|
||||
</ol>
|
||||
</nav>
|
||||
@@ -0,0 +1,41 @@
|
||||
{**
|
||||
* templates/frontend/components/breadcrumbs_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 breadcrumb nav item showing the current page. This basic
|
||||
* version is for top-level pages which only need to show the Home link. For
|
||||
* category- and series-specific breadcrumb generation, see
|
||||
* templates/frontend/components/breadcrumbs_catalog.tpl.
|
||||
*
|
||||
* @uses $currentTitle string The title to use for the current page.
|
||||
* @uses $currentTitleKey string Translation key for title of current page.
|
||||
*}
|
||||
|
||||
<nav class="cmp_breadcrumbs" role="navigation" aria-label="{translate key="navigation.breadcrumbLabel"}">
|
||||
<ol>
|
||||
<li>
|
||||
<a href="{url page="index" router=\PKP\core\PKPApplication::ROUTE_PAGE}">
|
||||
{translate key="common.homepageNavigationLabel"}
|
||||
</a>
|
||||
<span class="separator">{translate key="navigation.breadcrumbSeparator"}</span>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{url router=\PKP\core\PKPApplication::ROUTE_PAGE page="issue" op="archive"}">
|
||||
{translate key="navigation.archives"}
|
||||
</a>
|
||||
<span class="separator">{translate key="navigation.breadcrumbSeparator"}</span>
|
||||
</li>
|
||||
<li class="current" aria-current="page">
|
||||
<span aria-current="page">
|
||||
{if $currentTitleKey}
|
||||
{translate key=$currentTitleKey}
|
||||
{else}
|
||||
{$currentTitle|escape}
|
||||
{/if}
|
||||
</span>
|
||||
</li>
|
||||
</ol>
|
||||
</nav>
|
||||
@@ -0,0 +1,21 @@
|
||||
{**
|
||||
* templates/frontend/components/notification.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 View of an embedded notification element. Intended to be basic and highly
|
||||
* reusable.
|
||||
*
|
||||
* @uses $type string A class which will be added to the notification element
|
||||
* @uses $message string The notification message
|
||||
* @uses $messageKey string Optional translation key to generate the message
|
||||
*}
|
||||
<div class="cmp_notification {$type|escape|replace:' ':'_'}">
|
||||
{if $messageKey}
|
||||
{translate key=$messageKey}
|
||||
{else}
|
||||
{$message}
|
||||
{/if}
|
||||
</div>
|
||||
@@ -0,0 +1,67 @@
|
||||
{**
|
||||
* templates/frontend/components/primaryNavMenu.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.
|
||||
*
|
||||
* Primary navigation menu list for OJS
|
||||
*}
|
||||
<ul id="navigationPrimary" class="pkp_navigation_primary pkp_nav_list">
|
||||
|
||||
{if $enableAnnouncements}
|
||||
<li>
|
||||
<a href="{url router=\PKP\core\PKPApplication::ROUTE_PAGE page="announcement"}">
|
||||
{translate key="announcement.announcements"}
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
|
||||
{if $currentJournal}
|
||||
|
||||
{if $currentJournal->getData('publishingMode') != \APP\journal\Journal::PUBLISHING_MODE_NONE}
|
||||
<li>
|
||||
<a href="{url router=\PKP\core\PKPApplication::ROUTE_PAGE page="issue" op="current"}">
|
||||
{translate key="navigation.current"}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{url router=\PKP\core\PKPApplication::ROUTE_PAGE page="issue" op="archive"}">
|
||||
{translate key="navigation.archives"}
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
|
||||
<li>
|
||||
<a href="{url router=\PKP\core\PKPApplication::ROUTE_PAGE page="about"}">
|
||||
{translate key="navigation.about"}
|
||||
</a>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{url router=\PKP\core\PKPApplication::ROUTE_PAGE page="about"}">
|
||||
{translate key="about.aboutContext"}
|
||||
</a>
|
||||
</li>
|
||||
{if $currentJournal->getLocalizedData('editorialTeam')}
|
||||
<li>
|
||||
<a href="{url router=\PKP\core\PKPApplication::ROUTE_PAGE page="about" op="editorialTeam"}">
|
||||
{translate key="about.editorialTeam"}
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
<li>
|
||||
<a href="{url router=\PKP\core\PKPApplication::ROUTE_PAGE page="about" op="submissions"}">
|
||||
{translate key="about.submissions"}
|
||||
</a>
|
||||
</li>
|
||||
{if $currentJournal->getData('mailingAddress') || $currentJournal->getData('contactName')}
|
||||
<li>
|
||||
<a href="{url router=\PKP\core\PKPApplication::ROUTE_PAGE page="about" op="contact"}">
|
||||
{translate key="about.contact"}
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
</ul>
|
||||
</li>
|
||||
{/if}
|
||||
</ul>
|
||||
@@ -0,0 +1,26 @@
|
||||
{**
|
||||
* templates/frontend/components/skipLinks.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.
|
||||
*
|
||||
* Skip links to aid navigation when tabbing for screen reader accessibility
|
||||
*}
|
||||
|
||||
<nav class="cmp_skip_to_content" aria-label="{translate key="navigation.skip.description"}">
|
||||
<a href="#pkp_content_main">{translate key="navigation.skip.main"}</a>
|
||||
<a href="#siteNav">{translate key="navigation.skip.nav"}</a>
|
||||
{if !$requestedPage || $requestedPage === 'index'}
|
||||
{if $activeTheme && $activeTheme->getOption('showDescriptionInJournalIndex')}
|
||||
<a href="#homepageAbout">{translate key="navigation.skip.about"}</a>
|
||||
{/if}
|
||||
{if $numAnnouncementsHomepage && $announcements|@count}
|
||||
<a href="#homepageAnnouncements">{translate key="navigation.skip.announcements"}</a>
|
||||
{/if}
|
||||
{if $issue}
|
||||
<a href="#homepageIssue">{translate key="navigation.skip.issue"}</a>
|
||||
{/if}
|
||||
{/if}
|
||||
<a href="#pkp_content_footer">{translate key="navigation.skip.footer"}</a>
|
||||
</nav>
|
||||
@@ -0,0 +1,62 @@
|
||||
{**
|
||||
* templates/frontend/components/subscriptionContact.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 contact details for a journal's subscriptions
|
||||
*
|
||||
* @uses $subscriptionAdditionalInformation string HTML text description
|
||||
* subcription information
|
||||
* @uses $subscriptionMailingAddress string Contact address for subscriptions
|
||||
* @uses $subscriptionName string Contact name for subscriptions
|
||||
* @uses $subscriptionPhone string Contact phone number for subscriptions
|
||||
* @uses $subscriptionEmail string Contact email address for subscriptions
|
||||
*}
|
||||
<div class="cmp_subscription_contact">
|
||||
{if $subscriptionAdditionalInformation}
|
||||
<div class="description">
|
||||
{$subscriptionAdditionalInformation|strip_unsafe_html}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $subscriptionName || $subscriptionPhone || $subscriptionEmail}
|
||||
<div class="contact">
|
||||
<h3>
|
||||
{translate key="about.subscriptionsContact"}
|
||||
</h3>
|
||||
|
||||
{if $subscriptionName}
|
||||
<div class="name">
|
||||
{$subscriptionName|escape}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $subscriptionMailingAddress}
|
||||
<div class="address">
|
||||
{$subscriptionMailingAddress|nl2br|strip_unsafe_html}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $subscriptionPhone}
|
||||
<div class="phone">
|
||||
<span class="label">
|
||||
{translate key="about.contact.phone"}
|
||||
</span>
|
||||
<span class="value">
|
||||
{$subscriptionPhone|escape}
|
||||
</span>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $subscriptionEmail}
|
||||
<div class="email">
|
||||
<a href="mailto:{$subscriptionEmail|escape}">
|
||||
{$subscriptionEmail|escape}
|
||||
</a>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
Reference in New Issue
Block a user