{** * Store page: a CMS page linked to a store in BO > Magasins (module rocketextrastore). * Store data ($cms.store) comes from the store record; editorial text comes from the CMS content. * Changes vs current file: real H1, phone, directions button, per-store map, "Fermé" for empty days, * LocalBusiness JSON-LD (built in override/controllers/front/CmsController.php). *} {extends file='parent:cms/page.tpl'} {block name='page_header_container'}{/block} {block name='head_microdata_special'} {if isset($store_jsonld) && $store_jsonld} {/if} {/block} {block name='cms_content_class'}o-wrapper c-page-cms c-cmsstore u-mt-4{/block} {block name='cms_content'} {if $cms.store} {assign var='store' value=$cms.store}
{if !empty($store.image.bySize.stores_default.sources.avif)} {/if} {if !empty($store.image.bySize.stores_default.sources.webp)} {/if} {if !empty($store.image.legend)}{$store.image.legend}{else}{$store.name}{/if}
{* Was a

: the page had no H1. *}

{l s='Magasin Foot.fr' d='Shop.Theme.Global'} {$store.name}

{$store.address.formatted nofilter}
{if $store.phone}

{$store.phone}

{/if} {if $store.latitude && $store.longitude} {l s='Itinéraire' d='Shop.Theme.Global'} {/if}

{l s='Horaires' d='Shop.Theme.Global'}

{if $store.note}

{$store.note}

{/if} {foreach $store.business_hours as $day} {assign var='isOpen' value=false} {foreach $day.hours as $h}{if $h|trim != ''}{assign var='isOpen' value=true}{/if}{/foreach}
{$day.day} {if $isOpen} {foreach $day.hours as $h name='slots'}{$h}{if !$smarty.foreach.slots.last} / {/if}{/foreach} {else} {l s='Fermé' d='Shop.Theme.Global'} {/if}
{/foreach}
{* Static image per store (img/foot/stores/map-{id}.jpg): no Google Maps iframe, so no cookie before consent. Falls back to the generic foot/map.jpg until the store image is uploaded. *} {if $store.latitude && $store.longitude} {l s= {/if}
{$cms.content nofilter}
{else} {* Linked store is inactive: rocketextrastore still picks this template, show the CMS content only. *} {$cms.content nofilter} {/if} {/block}