Pages

Tuesday, November 30, 2010

Meta data and general settings unified into internationalised event UI

keywords META tag as a setting in the event list



Which means you can edit as any other event and internationalise accordingly.





function getPageMetaHTML($category)
{
$sql='select id from events where token="meta" and fenabled=1 and category="'.$category.'"';
if(($result=getDB()->query($sql))==false)
return "";

if($result->num_rows==0){
if($category!="index"){
return getPageMetaHTML("index");
}else
return "";
}
$res="";
while($r=$result->fetch_assoc()){
getEventLocaleFields(&$r);
$res.='<meta name="'.$r{"title"}.'" content="'.$r{"event"}.'">';
}
return $res;
}




--
My Emacs Files At GitHub

No comments:

Post a Comment