<?php SSYHTML::$menuID = SSY_MENU_NEWS; echo SSYHTML::getBoxTitled($tLang->lang('title'), Module_Assessystem::getInstance()->lang('news_info')); if (count($tVars['news']) === 0) { $tVars['news'] = array(array('news_id' => '0', 'news_date' => '', 'user_name' => '', 'newst_title' => $tLang->lang('title_no_news'), 'newst_message' => $tLang->lang('msg_no_news'))); } ?> <span class="t" style=""> <span class="ssy800v_R ssy_st_out3"><span class="ssy_small_softbox"> <?php echo sprintf('<a href="%snewsletter/subscribe">%s</a>', GWF_WEB_ROOT, $tLang->lang('btn_sign')); echo '<span class="b" style="height: 20px;"></span>'; $iso = GWF_Language::getCurrentISO(); foreach ($tVars['titles'] as $id => $d) { $newsid = $d[0]; $title = $d[1]; $catid = 0; $cat = 'FOO'; // $title = $d[0]; $etitle = Common::urlencodeSEO($title); // $catid = $d[1]; // $cat = 'foo'; // $cat = $d[2];#($catid === 0) ? GWF_HTML::lang('no_category') : $d[2]; // $cat = Common::urlencodeSEO($cat); // $newsid = (int)$d[3]; $url = sprintf(GWF_WEB_ROOT . 'news/%s/%s/%s/%s/%s#newsid_%d', $iso, $catid, $cat, $newsid, $etitle, $newsid); echo sprintf('<a href="%s">%s</a>', $url, GWF_HTML::display($title)); } ?> </span>