$blog_url="news"; $write = Mage::getSingleton('core/resource')->getConnection('core_write'); $readresult=$write->query("SELECT title, created_time, identifier FROM aw_blog WHERE status=1 LIMIT 5"); echo "<ul>"; while ($row = $readresult->fetch() ) { $dat_sp=explode(" ", $row['created_time']); printf ('<li><span class="date">%s</span> <a href="/%s/%s">%s</a></li>', $dat_sp[0], $blog_url, $row['identifier'], $row['title']); } echo "</ul>";
Можно поменять дефисы на точки:
$dat_sp[0]=str_replace('-','.',$dat_sp[0]);
Работает на magento 1.4.1.1 и aw_blog 1.0.19