Adding multiple template support
-
Hi,
thank you for this great plugin.
I did implement three minor chnages to ics-calendar.php to have multiple templates supported. Beside the month view i did need a list view used in sidebars.
Line 162 changed: include(dirname(__FILE__) . ‘/templates/’.$args[‘template’]);
Line 182 inserted: ‘template’ => ‘calendar-month.php’,
Line 190 inserted: ‘template’ => $template,
With these little changes the plugin now supports multiple templates which can be defined with the new shortcode parameter “template”, which defaults to ‘calendar-month.php’ when left out.
It would be great if you would think about integrating this changes into your plugin.
Thank you
Dieter
PS: If you are interested, i can send you my calendar-list.php template file.
- The topic ‘Adding multiple template support’ is closed to new replies.