From 1f8cb9ce46f0134a23b5fdd33a677838c47e0465 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=ADvia=20Gouv=C3=AAa?= Date: Thu, 9 Feb 2023 12:51:25 -0300 Subject: [PATCH] =?UTF-8?q?Aplica=20regra=20para=20exibi=C3=A7=C3=A3o=20de?= =?UTF-8?q?=20bot=C3=B5es=20PDF=20e=20XML=20na=20p=C3=A1gina=20do=20artigo?= =?UTF-8?q?.=20#90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/frontend/components/aside.tpl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/templates/frontend/components/aside.tpl b/templates/frontend/components/aside.tpl index 3633899..fe0731a 100644 --- a/templates/frontend/components/aside.tpl +++ b/templates/frontend/components/aside.tpl @@ -74,9 +74,23 @@ {if $supplementaryGalleys} {foreach from=$supplementaryGalleys item=galley} {if $galley->getLocale() == $navigationLocale} + {$fileLocaleExist++} {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'} + {$fileLocaleExist++} + {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} {/if}