First,
Susan- It’s great to see you on here again. Missed you.
Soshite- was the problem that the cache folder needed write permissions?
proto- That does seem quite interesting. There are a few ways yo could do it.
1. Output everything into one long list. Then use js to make seperate calendars from each month in the list.
2. loop through each month from the simplepie feed, and create a new template for each one.
3. Maybe we could call the calendar snippet multiple times.
I think #2 would be best. If anyone wants to think through what parameters are needed etc. I recommend you fork it in github. Im really busy the next 2 weeks so probably wont have much time to do this.
I think multiple calendars one one page are a great idea. I would create a parameter for how many calendars to show. Loop through the events as
<?php
$cal_dates = array();
for ($i = 0; $i < sizeof($gcalendar_data) ; $i++){
$startDate = $item->get_start_time();
$endDate = $item->get_end_time();
$calName = $item->get_name();
$month = date('n', $startDate - $offset);
$cal_dates[$month][] = array(
//the array stuff here
);
$i++;
}
$output = '';
foreach ($cal_dates as $month) {
$cal = new Calendar_Events ($year, $month);
//cal output stuff here
$output .= $cal;
}
echo $output;
?>
That’s rough, but that’s how I would do it i think. Simplepie already gets the max amount of feeds for all months. And it’s cached.