????JFIF??x?x????'
Server IP : 104.21.64.1 / Your IP : 216.73.216.145 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/tempvsty/pontiacques.org/wp-content/plugins/event-calendar-wd/includes/ |
Upload File : |
<?php /** * Shortcodes */ /** * [ecwd_calendar] shortcode */ include_once(ABSPATH . 'wp-admin/includes/plugin.php'); function ecwd_shortcode($attr) { global $wp; if ( !empty($wp->query_vars['rest_route']) ) { return ""; } if ( get_post_type() == "ecwd_event" ) { return ""; } extract(shortcode_atts(array( 'id' => null, 'page_items' => '5', 'event_search' => 'yes', 'display' => 'full', 'displays' => null, 'filters' => null, 'calendar_start_date' => null ), $attr, ECWD_PLUGIN_PREFIX.'_calendar')); // If no ID is specified then return if ( empty($attr['id']) ) { return; } $type = (isset($attr['type']) && $attr['type'] === 'mini') ? 'mini' : 'full'; $ecwd_displays_list = array('none',$type,"list","week","day"); if ( $type === 'mini' ) { $displays = str_replace('full', 'mini', $displays); } else { $displays = str_replace('mini', 'full', $displays); } $ecwd_displays = explode(",",$displays); $display = $ecwd_displays[0]; foreach ( $ecwd_displays as $ecwd_key => $ecwd_display_name ) { if ( !in_array($ecwd_display_name ,$ecwd_displays_list) ) { $ecwd_displays[$ecwd_key] = $type; } } $displays = implode(",",$ecwd_displays); $args = array('displays'=>$displays, 'filters'=>$filters, 'page_items'=>$page_items, 'event_search'=>$event_search); if ( isset($calendar_start_date) ) { $calendar_start_date = strtotime($calendar_start_date); if($calendar_start_date === false || $calendar_start_date === -1){ $calendar_start_date = null; } } if ( isset($calendar_start_date) ) { $args['date'] = ECWD::ecwd_date('Y-m-d',$calendar_start_date); } $calendar_ids = explode(',', str_replace(' ', '', $id)); $result = ecwd_print_calendar($calendar_ids, $display, $args); return $result; } add_shortcode(ECWD_PLUGIN_PREFIX, ECWD_PLUGIN_PREFIX.'_shortcode');