Skip to content

Commit

Permalink
Fixes pages templates
Browse files Browse the repository at this point in the history
Issue: documentacao-e-tarefas/scielo#631

Signed-off-by: Jhon <jhon@lepidus.com.br>
  • Loading branch information
JhonathanLepidus committed Feb 8, 2024
1 parent e0d724a commit 16f50db
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 176 deletions.
164 changes: 0 additions & 164 deletions templates/common/header.tpl

This file was deleted.

3 changes: 1 addition & 2 deletions templates/frontend/components/archiveHeader.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@
* Archive header containing a search form and a category listing
*}

<section class="archiveHeader">
<section class="archiveHeader">
{* Search *}
<section class="archiveHeader_search">
{include file="frontend/components/searchForm_archive.tpl" className="pkp_search_desktop"}
</section>

</section>
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{**
* templates/frontend/pages/archive.tpl
* templates/frontend/pages/preprints.tpl
*
* Copyright (c) 2014-2020 Simon Fraser University
* Copyright (c) 2003-2020 John Willinsky
* 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 preprints.
Expand All @@ -12,7 +12,7 @@
* @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
* @uses $total int Count of all published preprints
*}
{capture assign="pageTitle"}
{if $prevPage}
Expand All @@ -24,13 +24,14 @@
{include file="frontend/components/header.tpl" pageTitleTranslated=$pageTitle}

<div class="page page_issue_archive">

{* Search and category listing *}
{include file="frontend/components/archiveHeader.tpl"}
{include file="frontend/components/breadcrumbs.tpl" currentTitle=$pageTitle}

<h1>
{$pageTitle|escape}
</h1>

{* Search and category listing *}
{include file="frontend/components/archiveHeader.tpl"}

{* No preprints have been published *}
{if empty($publishedSubmissions)}
Expand Down
6 changes: 3 additions & 3 deletions templates/frontend/pages/sections.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@

{* Pagination *}
{if $prevPage > 1}
{capture assign="prevUrl"}{url|escape router=$smarty.const.ROUTE_PAGE page="preprints" op="section" path=$sectionPath|to_array:$prevPage}{/capture}
{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="preprints" op="section" path=$sectionPath}{/capture}
{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="preprints" op="section" path=$sectionPath|to_array:$nextPage}{/capture}
{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"
Expand Down

0 comments on commit 16f50db

Please sign in to comment.