get_main_post_type()); $user_post_count = $count_events->publish ?? '0'; // user calendar created $count_calendars = wp_count_posts('mec_calendars'); $user_post_count_c = $count_calendars->publish ?? '0'; // mec location $user_location_count_l = wp_count_terms('mec_location', array( 'hide_empty' => false, 'parent' => 0 )); // mec organizer $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']); // Add ChartJS library if ($booking_status) wp_enqueue_script('mec-chartjs-script'); // 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_firstname); ?>

' . ($this->getPRO() ? esc_html__('Modern Events Calendar', 'modern-events-calendar-lite') : esc_html__('Modern Events Calendar (Lite)', 'modern-events-calendar-lite')) . ''); ?>
get_styling(); $darkadmin_mode = $styling['dark_mode'] ?? ''; if ($darkadmin_mode == 1): $darklogo = plugin_dir_url(__FILE__) . '../../../assets/img/mec-logo-w2.png'; else: $darklogo = plugin_dir_url(__FILE__) . '../../../assets/img/mec-logo-w.png'; endif; ?>
getPRO()): ?>

' . esc_html__('lite', 'modern-events-calendar-lite') . ''); ?>

mec_custom_msg_2('yes', 'yes')); ?> mec_custom_msg('yes', 'yes')); ?>
getPRO() && has_action('addons_activation')) : ?>

getPRO()) : ?>

' . esc_html__('Troubleshooting', 'modern-events-calendar-lite') . ''; ?>

' . esc_html($user_post_count) . '

' . esc_html__('Events', 'modern-events-calendar-lite'); ?>

' . esc_html($user_post_count_c) . '

' . esc_html__('Shortcodes', 'modern-events-calendar-lite'); ?>

' . esc_html($user_location_count_l) . '

' . esc_html__('Locations', 'modern-events-calendar-lite'); ?>

' . esc_html($user_organizer_count_l) . '

' . esc_html__('Organizers', 'modern-events-calendar-lite'); ?>

getRender(); echo MEC_kses::full($render->skin('list', array( 'sk-options' => array('list' => array( 'style' => 'minimal', 'start_date_type' => 'today', 'pagination_method' => '0', 'limit' => '6', 'month_divider' => '0', 'load_more_button' => false, 'ignore_js' => true )) ))); ?>
select("SELECT COUNT(`meta_id`) AS count, `meta_value` AS gateway FROM `#__postmeta` WHERE `meta_key`='mec_gateway' GROUP BY `meta_value`", 'loadAssocList'); $labels = ''; $data = ''; $bg_colors = ''; foreach ($results as $result) { if (!class_exists($result['gateway'])) { continue; } $gateway = new $result['gateway']; $stats[] = array('label' => $gateway->title(), 'count' => $result['count']); $labels .= '"' . esc_html($gateway->title()) . '",'; $data .= ((int) $result['count']) . ','; $bg_colors .= "'" . $gateway->color() . "',"; } echo ''; $this->getFactory()->params('footer', ''); ?>
widget_total_bookings(); ?> getPRO()) (new MEC_feature_mec())->widget_print(); ?>