query("NotiziaModel", array('$and'=>array(array("status"=>NotiziaModel::STATUS_ACCEPTED),array("category"=>$category))), array("sort"=>array("about.data"=>-1),"limit"=>10) ); if (sizeof($notizie)>0){ $notizie = array_map(function($ele){$ele->testo = strip_tags($ele->testo);$ele->sottotitolo = strip_tags($ele->sottotitolo); return $ele; }, $notizie); } } else{ GUIHandler::redirect("index.php"); } }catch(GUIException $ex){ $error = $ex->getMessage(); }catch (Exception $exec){ $msg = LogModel::fromException($exec); GlobalVariables::get("dao")->save($msg); GUIHandler::redirect("index.php"); } ?>
titolo) > 103) ? substr($notizia->titolo,0,100).'...' : $notizia->titolo; $stringSottotitolo = (strlen($notizia->sottotitolo) > 73) ? substr($notizia->sottotitolo,0,70).'...' : $notizia->sottotitolo; $stringTesto = (strlen($notizia->testo) > 33) ? substr($notizia->testo,0,30).'...' : $notizia->testo; $media = DaoMediaHandler::getMainMediaFromModel($notizia); ?>
renderMedia(array("size"=>MediaRenderer::SIZE_SMALL)):"" ;?>