| Server IP : 195.134.90.114 / Your IP : 216.73.216.86 Web Server : Apache/2.4.58 System : Linux nepub 6.8.0-88-generic #89-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 01:02:46 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.2.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/html/public_html/plugins/generic/browseBySection/templates/frontend/pages/ |
Upload File : |
{**
* plugins/generic/browseBySection/templates/frontend/pages/section.tpl
*
* Copyright (c) 2017 Simon Fraser University
* Copyright (c) 2017 John Willinsky
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
*
* @brief Display the reader-facing section page.
*
* @uses $section Section
* @uses $sectionPath string The URL path for this section
* @uses $sectionDescription string
* @uses $articles array List of Submission objects
* @uses $issues array List of Issue objects the $articles are published in
* @uses $currentlyShowingStart int 20 in `20-30 of 100 results`
* @uses $currentlyShowingEnd int 30 in `20-30 of 100 results`
* @uses $countMax int 100 in `20-30 of 100 results`
* @uses $currentlyShowingPage int 2 in `2 of 10 pages`
* @uses $countMaxPage int 10 in `2 of 10 pages`.
*}
{include file="frontend/components/header.tpl" pageTitleTranslated=$section->getLocalizedTitle()|escape}
{include file="frontend/components/breadcrumbs.tpl" currentTitle=$section->getLocalizedTitle()|escape}
<div class="page page_section page_section_{$sectionPath|escape}">
<h1 class="page_title">
{$section->getLocalizedTitle()|escape}
</h1>
<div class="section_description">
{$sectionDescription|strip_unsafe_html}
</div>
{if $articleGroups|@count}
{foreach from=$articleGroups item=group}
{if $group.key}
<div class="cmp_article_header" id="browse_by_section_group_{$group.key|escape}">
{$group.key|escape}
</div>
{/if}
<ul class="cmp_article_list">
{foreach from=$group.articles item=article}
<li>
{* TODO remove section=null workaround. article_summary.tpl expects a specific section array. See issue_toc.tpl. *}
{include file="frontend/objects/article_summary.tpl" section=null showDatePublished=true hideGalleys=true}
</li>
{/foreach}
</ul>
{/foreach}
{* Pagination *}
{if $prevPage > 1}
{capture assign="prevUrl"}{url|escape router=$smarty.const.ROUTE_PAGE page="section" op="view" path=$sectionPath|to_array:$prevPage}{/capture}
{elseif $prevPage === 1}
{capture assign="prevUrl"}{url|escape router=$smarty.const.ROUTE_PAGE page="section" op="view" path=$sectionPath}{/capture}
{/if}
{if $nextPage}
{capture assign="nextUrl"}{url|escape router=$smarty.const.ROUTE_PAGE page="section" op="view" path=$sectionPath|to_array:$nextPage}{/capture}
{/if}
{include
file="frontend/components/pagination.tpl"
prevUrl=$prevUrl
nextUrl=$nextUrl
showingStart=$showingStart
showingEnd=$showingEnd
total=$total
}
{else}
<p class="section_empty">
{translate key="plugins.generic.browseBySection.emptySection"}
</p>
{/if}
</div><!-- .page -->
{include file="frontend/components/footer.tpl"}