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_firstname); ?>

'.($this->getPRO() ? __('Modern Events Calendar', 'modern-events-calendar-lite') : __('Modern Events Calendar (Lite)', 'modern-events-calendar-lite')).''); ?>
get_styling(); $darkadmin_mode = ( isset($styling['dark_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; ?>
(function(){ var version = parseInt(Math.random()*10000); var webformKey = "8dd552ab6041bd25d23d8a8467819f701f9196106be0e25edc6870c9cc922bdc_"+version; var loaderHTML = "
"; var containerHTML = "
"; var scriptTag = document.currentScript || document.getElementById("fs_8dd552ab6041bd25d23d8a8467819f701f9196106be0e25edc6870c9cc922bdc") || document.getElementById("fswebforms") || document.getElementById("formservjs"); var docHook = scriptTag.parentElement; var content = document.createElement("div"); scriptTag.id = webformKey; docHook.appendChild(content); content.innerHTML = loaderHTML+containerHTML; var webformOptions = { key: "8dd552ab6041bd25d23d8a8467819f701f9196106be0e25edc6870c9cc922bdc", url: "https://webform.freshsales.io/assets/webforms/8dd552ab6041bd25d23d8a8467819f701f9196106be0e25edc6870c9cc922bdc/10", domainURL: "https://webnus.freshsales.io", format: "js", version: version, formVersion: 10 }; if(window.WebFormQueue){ WebFormQueue.add(webformOptions); } else { var script = document.createElement("script"); script.src = "https://assets.freshsales.io/assets/webform-6a8bd10d9118645b79d2d3b3a3112e0901bf1beb.js"; script.onload = function(){ WebFormQueue.add(webformOptions); }; var webformContainer = document.getElementById("fs-webform-container_"+webformKey); webformContainer.appendChild(script); } })() '; ?>
getPRO()): ?>

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

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

getPRO()) : ?>

'.$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'); ?>

getRender(); echo $render->skin('list', array ( 'sk-options'=>array('list'=>array ( 'style'=>'minimal', 'start_date_type'=>'today', 'load_more_button'=>'0', 'limit'=>'6', 'month_divider'=>'0' )) )); ?>
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 .= '"'.$gateway->title().'",'; $data .= ((int) $result['count']).','; $bg_colors .= "'".$gateway->color()."',"; } echo ''; echo ''; ?>
widget_total_bookings(); ?> getPRO()) echo (new MEC_feature_mec())->widget_print(); ?>