Commit 6717c8a5 authored by Oyvind.Gjesdal's avatar Oyvind.Gjesdal
Browse files iterate... iterate construct seems to not work well in the new smarty, using foreach loop instead
parent 92a8af88
...@@ -23,15 +23,14 @@ ...@@ -23,15 +23,14 @@
<div class="site-journals"> <div class="site-journals">
<h2 class="sr-only">{translate key="journal.journals"}</h2> <h2 class="sr-only">{translate key="journal.journals"}</h2>
{if !count($journals)} {if !count($journals)}
<p>{translate key="site.noJournals"}</p> <p>{translate key="site.noJournals" s}</p>
{else} {else}
<div class="row row-eq-height align-items-start"> <div class="row row-eq-height align-items-start">
{iterate from=journals item=journal} {foreach $journals as $journal}
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-4"> <div class="col-xs-12 col-sm-6 col-md-6 col-lg-4">
{capture assign="url"}{url journal=$journal->getPath()}{/capture} {capture assign="url"}{url journal=$journal->getPath()}{/capture}
{assign var="thumb" value=$journal->getLocalizedSetting('journalThumbnail')} {assign var="thumb" value=$journal->getLocalizedSetting('journalThumbnail')}
{assign var="description" value=$journal->getLocalizedDescription()} {assign var="description" value=$journal->getLocalizedDescription()}
<div class="site-journal"> <div class="site-journal">
{if $thumb} {if $thumb}
<a class="site-journal-img" href="{$url|escape}"> <a class="site-journal-img" href="{$url|escape}">
...@@ -67,7 +66,7 @@ ...@@ -67,7 +66,7 @@
</div> </div>
</div> </div>
{/iterate} {/foreach}
</div> </div>
{if $journals->getPageCount() > 0} {if $journals->getPageCount() > 0}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment