get_main_post_type()); $user_post_count = isset($count_events->publish) ? $count_events->publish : '0'; // user calendar created $count_calendars = wp_count_posts('mec_calendars'); $user_post_count_c = isset($count_calendars->publish) ? $count_calendars->publish : '0'; // mec location $user_location_count_l = wp_count_terms('mec_location', array( 'hide_empty'=>false, 'parent'=>0 )); // mec orgnizer $user_organizer_count_l = wp_count_terms('mec_organizer', array( 'hide_empty'=>false, 'parent'=>0 )); $version = $verify = NULL; if($this->getPRO()) $mec_license_status = get_option( 'mec_license_status'); // MEC Database $db = $this->getDB(); // MEC Settings $settings = $this->get_settings(); // MEC Booking Status $booking_status = ($this->getPRO() and isset($settings['booking_status']) and $settings['booking_status']) ? true : false; // Add ChartJS library if($booking_status) wp_enqueue_script('mec-chartjs-script', $this->asset('js/chartjs.min.js')); // Whether to show dashboard boxes or not! $box_support = apply_filters('mec_dashboard_box_support', true); $box_stats = apply_filters('mec_dashboard_box_stats', true); ?>
'.$user_post_count.'
'.__('Events', 'modern-events-calendar-lite'); ?>'.$user_post_count_c.'
'.__('Shortcodes', 'modern-events-calendar-lite'); ?>'.$user_location_count_l.'
'.__('Locations', 'modern-events-calendar-lite'); ?>'.$user_organizer_count_l.'
'. __('Organizers', 'modern-events-calendar-lite'); ?>