Serial Posted August 31, 2015 Share Posted August 31, 2015 Bonjour, Je suis en train de modifier la présentation de ma page "Nos magasins" (stores.tpl). Je n'arrive pas à effacer certains balises "span" dans l'adresse formatée. Le code est le suivant : <div class="address"> {assign value=$store.id_store var="id_store"} {foreach from=$addresses_formated.$id_store.ordered name=adr_loop item=pattern} {assign var=addressKey value=" "|explode:$pattern} {foreach from=$addressKey item=key name="word_loop"} <span {if isset($addresses_style[$key])} class="{$addresses_style[$key]}"{/if}> {$addresses_formated.$id_store.formated[$key|replace:',':'']|escape:'html':'UTF-8'} </span> {/foreach} {/foreach} <br/> {if $store.phone}<br/>{l s='Phone:'} {$store.phone|escape:'html':'UTF-8'}{/if} {if $store.fax}<br/>{l s='Fax:'} {$store.fax|escape:'html':'UTF-8'}{/if} {if $store.email}<br/>{l s='Email:'} {$store.email|escape:'html':'UTF-8'}{/if} {if $store.note}<br/><br/>{$store.note|escape:'html':'UTF-8'|nl2br}{/if} </div> Et sur le front-office, j'ai des balises du genre <span> </span>. Je ne sais pas ce que contient ces balises, on dirait un (ou des) espace(s). J'aimerai donc masquer ces <span> pour pouvoir sauter une ligne entre chaque partie de mon adresse. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now