Skip to content

Commit

Permalink
Aplica regra para exibição de botões PDF e XML na página do artigo. #90
Browse files Browse the repository at this point in the history
  • Loading branch information
Lívia Gouvêa committed Feb 9, 2023
1 parent 9321ea3 commit 7911aa3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions templates/frontend/components/aside.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,23 @@
{if $supplementaryGalleys}
{foreach from=$supplementaryGalleys item=galley}
{if $galley->getLocale() == $navigationLocale}
{assign var="fileLocaleExist" value=$fileLocaleExist+1}
{include file="frontend/objects/galley_link.tpl" parent=$article isSupplementary="1"}
{/if}
{/foreach}
{if !$fileLocaleExist}
{foreach from=$supplementaryGalleys item=galley}
{if $galley->getLocale() == 'en_US'}
{assign var="fileLocaleExist" value=$fileLocaleExist+1}
{include file="frontend/objects/galley_link.tpl" parent=$article isSupplementary="1"}
{/if}
{/foreach}
{/if}
{if !$fileLocaleExist}
{foreach from=$supplementaryGalleys item=galley}
{include file="frontend/objects/galley_link.tpl" parent=$article isSupplementary="1"}
{/foreach}
{/if}
{/if}
</div>
{/if}
Expand Down

0 comments on commit 7911aa3

Please sign in to comment.