forked from pkp/pragma
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkp/pkp-lib#10200 remove editorial team, add editorial masthead and h…
…istory templates
- Loading branch information
1 parent
4d79bc5
commit 5fe4533
Showing
5 changed files
with
182 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* @file less/pages/masthead.less | ||
* | ||
* Copyright (c) 2025 Simon Fraser University | ||
* Copyright (c) 2025 John Willinsky | ||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. | ||
* | ||
* @brief Styles applying to the masthead and editorial history page | ||
* @link templates/frontend/pages/editorialMasthead.tpl | ||
* @link templates/frontend/pages/editorialHistory.tpl | ||
*/ | ||
|
||
.page_masthead { | ||
.user_listing { | ||
list-style-type: none; | ||
padding: 2em 0; | ||
|
||
li { | ||
margin-bottom: 35px; | ||
} | ||
|
||
li > span { | ||
display: block; | ||
} | ||
|
||
.name { | ||
font-weight: bold; | ||
} | ||
|
||
.orcid_icon { | ||
margin-left: 5px; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{** | ||
* templates/frontend/pages/editorialHistory.tpl | ||
* | ||
* Copyright (c) 2025 Simon Fraser University | ||
* Copyright (c) 2025 John Willinsky | ||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. | ||
* | ||
* @brief Display context's editorial history page. | ||
* | ||
*} | ||
{include file="frontend/components/header.tpl" pageTitle="common.editorialHistory"} | ||
|
||
<main class="container main__content page_masthead" id="main"> | ||
<div class="row"> | ||
<div class="offset-md-1 col-md-10 offset-lg-2 col-lg-8"> | ||
<header class="main__header"> | ||
<h1 class="main__title"> | ||
<span>{translate key="common.editorialHistory.page"}</span> | ||
</h1> | ||
</header> | ||
|
||
<p>{translate key="common.editorialHistory.page.description"}</p> | ||
{foreach from=$mastheadRoles item="mastheadRole"} | ||
{if array_key_exists($mastheadRole->id, $mastheadUsers)} | ||
<h2>{$mastheadRole->getLocalizedData('name')|escape}</h2> | ||
<ul class="user_listing" role="list"> | ||
{foreach from=$mastheadUsers[$mastheadRole->id] item="mastheadUser"} | ||
<li> | ||
{strip} | ||
<span class="date_start"> | ||
{foreach name="services" from=$mastheadUser['services'] item="service"} | ||
{translate key="common.fromUntil" from=$service['dateStart'] until=$service['dateEnd']} | ||
{if !$smarty.foreach.services.last}{translate key="common.commaListSeparator"}{/if} | ||
{/foreach} | ||
</span> | ||
<span class="name"> | ||
{$mastheadUser['user']->getFullName()|escape} | ||
{if $mastheadUser['user']->getData('orcid') && $mastheadUser['user']->getData('orcidAccessToken')} | ||
<span class="orcid"> | ||
<a href="{$mastheadUser['user']->getData('orcid')|escape}" target="_blank" aria-label="{translate key="common.editorialHistory.page.orcidLink" name=$mastheadUser['user']->getFullName()|escape}"> | ||
{$orcidIcon} | ||
</a> | ||
</span> | ||
{/if} | ||
</span> | ||
{if !empty($mastheadUser['user']->getLocalizedData('affiliation'))} | ||
<span class="affiliation">{$mastheadUser['user']->getLocalizedData('affiliation')|escape}</span> | ||
{/if} | ||
{/strip} | ||
</li> | ||
{/foreach} | ||
</ul> | ||
{/if} | ||
{/foreach} | ||
</div> | ||
</div> | ||
{include file="frontend/components/editLink.tpl" page="management" op="settings" path="context" anchor="masthead" sectionTitleKey="common.editorialHistory"} | ||
{$currentContext->getLocalizedData('editorialHistory')} | ||
</main> | ||
|
||
{include file="frontend/components/footer.tpl"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
{** | ||
* templates/frontend/pages/editorialMasthead.tpl | ||
* | ||
* Copyright (c) 2025 Simon Fraser University | ||
* Copyright (c) 2025 John Willinsky | ||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. | ||
* | ||
* @brief Display context's editorial masthead page. | ||
* | ||
*} | ||
{include file="frontend/components/header.tpl" pageTitle="common.editorialMasthead"} | ||
|
||
<main class="container main__content page_masthead" id="main"> | ||
<div class="row"> | ||
<div class="offset-md-1 col-md-10 offset-lg-2 col-lg-8"> | ||
<header class="main__header"> | ||
<h1 class="main__title"> | ||
<span>{translate key="common.editorialMasthead"}<span> | ||
</h1> | ||
</header> | ||
|
||
{foreach from=$mastheadRoles item="mastheadRole"} | ||
{if array_key_exists($mastheadRole->id, $mastheadUsers)} | ||
<h2>{$mastheadRole->getLocalizedData('name')|escape}</h2> | ||
<ul class="user_listing" role="list"> | ||
{foreach from=$mastheadUsers[$mastheadRole->id] item="mastheadUser"} | ||
<li> | ||
{strip} | ||
<span class="date_start">{translate key="common.fromUntil" from=$mastheadUser['dateStart'] until=""}</span> | ||
<span class="name"> | ||
{$mastheadUser['user']->getFullName()|escape} | ||
{if $mastheadUser['user']->getData('orcid') && $mastheadUser['user']->getData('orcidAccessToken')} | ||
<span class="orcid"> | ||
<a href="{$mastheadUser['user']->getData('orcid')|escape}" target="_blank" aria-label="{translate key="common.editorialHistory.page.orcidLink" name=$mastheadUser['user']->getFullName()|escape}"> | ||
{$orcidIcon} | ||
</a> | ||
</span> | ||
{/if} | ||
</span> | ||
{if !empty($mastheadUser['user']->getLocalizedData('affiliation'))} | ||
<span class="affiliation">{$mastheadUser['user']->getLocalizedData('affiliation')|escape}</span> | ||
{/if} | ||
{/strip} | ||
</li> | ||
{/foreach} | ||
</ul> | ||
{/if} | ||
{/foreach} | ||
<hr> | ||
<p> | ||
{capture assign=editorialHistoryUrl}{url page="about" op="editorialHistory" router=\PKP\core\PKPApplication::ROUTE_PAGE}{/capture} | ||
{translate key="about.editorialMasthead.linkToEditorialHistory" url=$editorialHistoryUrl} | ||
</p> | ||
|
||
{if $reviewers->count()} | ||
<h2>{translate key="common.editorialMasthead.peerReviewers"}</h2> | ||
<p>{translate key="common.editorialMasthead.peerReviewers.description" year=$previousYear}</p> | ||
<ul class="user_listing" role="list"> | ||
{foreach from=$reviewers item="reviewer"} | ||
<li> | ||
{strip} | ||
<span class="name"> | ||
{$reviewer->getFullName()|escape} | ||
{if $reviewer->getData('orcid') && $reviewer->getData('orcidAccessToken')} | ||
<span class="orcid"> | ||
<a href="{$reviewer->getData('orcid')|escape}" target="_blank" aria-label="{translate key="common.editorialHistory.page.orcidLink" name=$reviewer->getFullName()|escape}"> | ||
{$orcidIcon} | ||
</a> | ||
</span> | ||
{/if} | ||
</span> | ||
{if !empty($reviewer->getLocalizedData('affiliation'))} | ||
<span class="affiliation">{$reviewer->getLocalizedData('affiliation')|escape}</span> | ||
{/if} | ||
{/strip} | ||
</li> | ||
{/foreach} | ||
</ul> | ||
{/if} | ||
</div> | ||
</div> | ||
</main> | ||
|
||
{include file="frontend/components/footer.tpl"} |
This file was deleted.
Oops, something went wrong.