Header($title,$meta_description,$meta_keywords,$idioma, 1, $Links, 1); $web_footer=$Funcions->Footer($idioma, 1); $sql_query="SELECT wp.*,wpt.Titol,wpt.Intro,wpt.Contingut,wpt.Url_Amigable FROM Noticies AS wp LEFT JOIN Noticies_Traduccio AS wpt ON wpt.Id_Noticia = wp.Id_Noticia AND wpt.Id_Idioma_Traduccio = '2' WHERE wp.Estat = 1 AND wpt.Id_Noticia = wp.Id_Noticia ORDER BY Data DESC LIMIT 2 "; $Noticies=$Funcions->queryToArray($sql_query); $smarty = new Smarty; $smarty->assign("template",DIRECTORI_TEMPLATE); $smarty->assign("idioma",$idioma); $smarty->assign("Noticies",$Noticies); $web_content = $smarty->fetch(WEB_PATH."/templates/".$idioma.$directori_templates."/index.htm"); echo $web_header; echo $web_content; echo $web_footer; ?>