get( 'count' ,'5') ; $rs = $conn->Execute("SELECT id,created,access FROM #__content WHERE published = 4 $access_sql ORDER BY created DESC"); $months=false; $listm=false; //build month array if($rs && $rsa=$rs->GetArray() ) { foreach($rsa as $row) { $tlist=array("date"=>strftime("%B,%Y",$row['created']), "link"=>"&month=".date("m",$row['created'])."&year=".date("Y",$row['created']) ); if(!$listm){ $listm[]=$tlist; $plist=$tlist; continue; } if($plist['date']!=$tlist['date']) { $listm[]=$tlist; $plist=$tlist; } } } if($lm_type=="html" && $listm) { ?>