The site uses the template Smarty. There is such code:

<div class="coll f-address"> {if $theme_settings.footer_address} {$theme_settings.footer_address} {/if} </div> 

in this variable {$theme_settings.footer_address} data is taken from xml

 ... <setting var="footer_address" control_type="text"> <value>ООО "Дизайн.Решения";city, alabama ;mailz@mail.ru</value> <name locale="en_US">Footer addres</name> <name locale="ru_RU">Адрес в подвале</name> </setting> ... 

this data <value>ООО "Дизайн.Решения";Москва, ;mailz@mail.ru</value> are displayed in one line.
Tell me how you can break this line is valid by a symbol ; and throw in the tag span ?
Tried to do something like this with this template engine:

 <?php $address = {$theme_settings.footer_address}; echo $address; ?> 

but gave nothing

    1 answer 1

     {assign var=footerParts value=";"|explode:$theme_settings.footer_address} {foreach $footerParts as $footerPart} {$footerPart} {/foreach} 
    • super, thank - word
    • it is necessary to prepare the data only not at the level of the template, but at the level of logic - teran