Advertisement
carletto0282

calendar functions

Nov 13th, 2011
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.57 KB | None | 0 0
  1. function ai1ec_init() {
  2. global $ai1ec_settings,
  3. $ai1ec_calendar_controller,
  4. $ai1ec_events_controller, $calendar;
  5. ob_start();
  6. $ai1ec_calendar_controller->view();
  7. $calendar = ob_get_contents();
  8. ob_end_clean();
  9. }
  10.  
  11. function calendarfunc() {
  12.     $calendar;
  13.     ai1ec_init();
  14. }
  15.  
  16. add_action('wp_head', 'calendarfunc');
  17.  
  18. function show_ai1ec($desc='') {
  19. global $calendar;
  20. $content .=
  21. '<div id="ai1ec-container" class="ai1ec-container '.join(' ',get_init_ai1ec_class()).'">'
  22. . "<h3>boh</h3>"
  23. . '<p class="schedule_desc">' . $desc . '</p>'
  24. . $calendar
  25. . '</div>';
  26. echo $content; }
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement