var $linklist; //this variable will be an array that contains all the links of the month
function getDateLink($day, $month, $year) //this function is called from getMonthView(month,year) to get the link of the given day
{ //if this function returns nothing (""), then getMonthView wont put a link on that day
$link = "";
if(strlen($month)<2)
$month = '0'.$month;
if(strlen($day)<2)
$day = '0'.$day;
$date= $year . $month . $day;
if(isset($this->linklist[$date])){
$link=$this->linklist[$date] . $Itemid; //$this->linklist[$date] was set for every date in the foreach bucle at lines 50-83
}
return $link;
}
Time to create page: 0.055 seconds