Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ai1ec_init() {
- global $ai1ec_settings,
- $ai1ec_calendar_controller,
- $ai1ec_events_controller, $calendar;
- ob_start();
- $ai1ec_calendar_controller->view();
- $calendar = ob_get_contents();
- ob_end_clean();
- }
- function calendarfunc() {
- $calendar;
- ai1ec_init();
- }
- add_action('wp_head', 'calendarfunc');
- function show_ai1ec($desc='') {
- global $calendar;
- $content .=
- '<div id="ai1ec-container" class="ai1ec-container '.join(' ',get_init_ai1ec_class()).'">'
- . "<h3>boh</h3>"
- . '<p class="schedule_desc">' . $desc . '</p>'
- . $calendar
- . '</div>';
- echo $content; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement