assign('newsTitle', strip_tags($items['ItemTitle'])." | "); if($items['Abstract'] != "") { $xtpl->assign('newsAbstract', txtAbstract(strip_tags(keephtml($items['ItemText'])), 300)); } else { $xtpl->assign('newsAbstract', txtAbstract(strip_tags(keephtml($items['ItemText'])), 300)); } //$xtpl->assign('catName', getCatName($items['CatId'])); //$xtpl->assign('keyTags', strip_tags(keephtml($items['Tags']))); } $xtpl->parse('main'); $xtpl->out('main'); ?>