main->get_settings(); // Post Object $post = new stdClass(); $post->ID = 0; // Features $feature_colors = new MEC_feature_colors(); $allday = 0; $start_date = date('Y-m-d', strtotime('Tomorrow')); $start_time_hour = 8; $start_time_minutes = 0; $start_time_ampm = 'AM'; $end_date = $start_date; $end_time_hour = 6; $end_time_minutes = 0; $end_time_ampm = 'PM'; $locations = get_terms('mec_location', array('orderby'=>'name', 'hide_empty'=>'0')); $location_id = 1; $dont_show_map = 1; $organizers = get_terms('mec_organizer', array('orderby'=>'name', 'hide_empty'=>'0')); $organizer_id = 1; $wizard_page = isset($_REQUEST['page']) ? sanitize_text_field($_REQUEST['page']) : ''; $main_page = isset($_REQUEST['post_type']) ? sanitize_text_field($_REQUEST['post_type']) : ''; // This date format used for input type of datepicker. $datepicker_format = (isset($settings['datepicker_format']) and trim($settings['datepicker_format'])) ? $settings['datepicker_format'] : 'Y-m-d'; if(!isset($post_type)) $post_type = NULL; $step = 1; ?>