Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plugins/blocks/browse
10 changes: 5 additions & 5 deletions templates/frontend/pages/catalogCategory.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
{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=$smarty.const.ROUTE_PAGE page="catalog" op="fullSize" type="category" id=$category->getId()}">
<img src="{url router=$smarty.const.ROUTE_PAGE page="catalog" op="thumbnail" type="category" id=$category->getId()}" alt="null" />
<div class="cover" href="{url router=$smarty.const.ROUTE_PAGE page="preprints" op="fullSize" type="category" id=$category->getId()}">
<img src="{url router=$smarty.const.ROUTE_PAGE page="preprints" op="thumbnail" type="category" id=$category->getId()}" alt="null" />
</div>
{/if}
<div class="description">
Expand Down Expand Up @@ -81,12 +81,12 @@

{* Pagination *}
{if $prevPage > 1}
{capture assign=prevUrl}{url router=$smarty.const.ROUTE_PAGE page="catalog" op="category" path=$category->getPath()|to_array:$prevPage}{/capture}
{capture assign=prevUrl}{url router=$smarty.const.ROUTE_PAGE page="preprints" op="category" path=$category->getPath()|to_array:$prevPage}{/capture}
{elseif $prevPage === 1}
{capture assign=prevUrl}{url router=$smarty.const.ROUTE_PAGE page="catalog" op="category" path=$category->getPath()}{/capture}
{capture assign=prevUrl}{url router=$smarty.const.ROUTE_PAGE page="preprints" op="category" path=$category->getPath()}{/capture}
{/if}
{if $nextPage}
{capture assign=nextUrl}{url router=$smarty.const.ROUTE_PAGE page="catalog" op="category" path=$category->getPath()|to_array:$nextPage}{/capture}
{capture assign=nextUrl}{url router=$smarty.const.ROUTE_PAGE page="preprints" op="category" path=$category->getPath()|to_array:$nextPage}{/capture}
{/if}
{include
file="frontend/components/pagination.tpl"
Expand Down
Loading