'; echo ''; // channel required properties echo ''; echo '' . $SEO_title . ''; echo '' . $SEO_canonical . ''; echo '' . $SEO_description . ''; // channel optional properties echo 'es'; // get RSS channel items $home_news_cats_included=implode(',',$home_news_cats); $now = date("Y-m-d H:i:s"); // get current time // configure appropriately to your environment // get news $sql = mysqli_query($conexion,"SELECT module_news.id,created,url,img,name,subname,content FROM module_news LEFT JOIN module_categories2items ON module_news.id=module_categories2items.item WHERE module_categories2items.type='news' AND module_categories2items.cat IN ($home_news_cats_included) AND status='publish' GROUP BY module_news.id ORDER BY created DESC LIMIT $home_news"); while($row=mysqli_fetch_array($sql)){ // pubdate -> configure appropriately to your environment $date = new DateTime($row["created"]); $pubDate = $date->format("D, d M Y H:i:s O"); unset($item_cats_array); $list_categories_item=list_categories_item($row['id'],'news',$tags=0); foreach($list_categories_item as $item_cat){ $item_cats_array[$item_cat['id']]=$item_cat['name']; } echo ''; echo '' . $row['name'] . ''; echo '' .$C_host.'/'.$row['url'] . ''; echo ''; echo '' . $pubDate. ''; echo 'info@aecit.org (AECIT)'; if(is_array($item_cats_array) AND !empty($item_cats_array)){echo '' .implode(', ',$item_cats_array). '';}else{echo 'Sin categoría';} //echo '' . $rss_item['source'] . ''; //echo ''; echo ''; } echo ''; echo ''; ?>