'', 'appear' => 'month' ), $atts) ); $query = new WP_Query( array('posts_per_page' => '-1', 'post_type' => 'event-calendar', 'event_cat' => $category) ); $output = '
'; $output .=''; wp_reset_query(); return $output; } add_shortcode('adv_event', 'adv_event_calendar_shortcode'); function adv_google_calender_detail_shortcode($atts){ extract( shortcode_atts( array( 'test' => '', ), $atts) ); $query = new WP_Query( array('posts_per_page' => '-1', 'post_type' => 'event-calendar') ); $output = '
'; while($query->have_posts()) : $query->the_post(); $ids = get_the_ID(); $content_main = do_shortcode(get_the_content()); $content_autop = wpautop(trim($content_main)); $output .= '
'; endwhile; $output.= '
'; wp_reset_query(); return $output; } add_shortcode('adv_gc_detail', 'adv_google_calender_detail_shortcode'); function adv_google_calender_main_shortcode( $atts, $content = null ) { extract( shortcode_atts( array( 'category' => '' ), $atts ) ); return '' .do_shortcode( '[adv_gc_detail] [adv_event default="'.date('Y').'-'.date('m').'-'.date('d').'" category="'.$category.'"]' ). ''; } add_shortcode('adv_calendar', 'adv_google_calender_main_shortcode'); function adv_events_form_google_calender( $atts, $content = null ) { extract( shortcode_atts( array( 'url' => '', 'api' => 'AIzaSyDdxxqTyzDU-KxrSQGcWFo1qMwblOWVmp4', 'appear' => 'month' ), $atts ) ); global $adv_event_calendar_options; $adv_event_calendar_settings = get_option( 'adv_event_calendar_options', $adv_event_calendar_options ); if($adv_event_calendar_settings['adv_today']) : return '
'; else : return '
'; endif; } add_shortcode('g_calendar', 'adv_events_form_google_calender'); ?>