if (!empty($row['Links'])) { $row['LinksExtern'] = array(); $links = explode("\r\n", $row['Links']); foreach ($links as $m) { $det = explode(';', $m); $row['LinksExtern'][$det[0]] = $det[1]; } } $news[] = $row;
{if $articles.LinksExtern} <div data-block="item" data-title="Сми о нас"> <p> <ul> {foreach from=$articles.LinksExtern key=k item=a} <li><a href="{$k}">{$a}</a></li> {/foreach} </ul> </p> </div> {/if}