Changeset 3455440
- Timestamp:
- 02/06/2026 01:53:12 PM (5 weeks ago)
- Location:
- wp-event-aggregator
- Files:
-
- 32 edited
- 1 copied
-
tags/1.9.0 (copied) (copied from wp-event-aggregator/trunk)
-
tags/1.9.0/includes/class-wp-event-aggregator-aioec.php (modified) (1 diff)
-
tags/1.9.0/includes/class-wp-event-aggregator-cpt.php (modified) (2 diffs)
-
tags/1.9.0/includes/class-wp-event-aggregator-ee4.php (modified) (1 diff)
-
tags/1.9.0/includes/class-wp-event-aggregator-em.php (modified) (1 diff)
-
tags/1.9.0/includes/class-wp-event-aggregator-event_organizer.php (modified) (1 diff)
-
tags/1.9.0/includes/class-wp-event-aggregator-eventon.php (modified) (1 diff)
-
tags/1.9.0/includes/class-wp-event-aggregator-eventprime.php (modified) (1 diff)
-
tags/1.9.0/includes/class-wp-event-aggregator-facebook.php (modified) (2 diffs)
-
tags/1.9.0/includes/class-wp-event-aggregator-fb-authorize.php (modified) (1 diff)
-
tags/1.9.0/includes/class-wp-event-aggregator-ical_parser.php (modified) (1 diff)
-
tags/1.9.0/includes/class-wp-event-aggregator-ical_parser_aioec.php (modified) (1 diff)
-
tags/1.9.0/includes/class-wp-event-aggregator-my-calendar.php (modified) (1 diff)
-
tags/1.9.0/includes/class-wp-event-aggregator-tec.php (modified) (2 diffs)
-
tags/1.9.0/includes/class-wp-event-aggregator-wpea.php (modified) (1 diff)
-
tags/1.9.0/languages/wp-event-aggregator.pot (modified) (5 diffs)
-
tags/1.9.0/wp-event-aggregator.php (modified) (4 diffs)
-
trunk/includes/class-wp-event-aggregator-aioec.php (modified) (1 diff)
-
trunk/includes/class-wp-event-aggregator-cpt.php (modified) (2 diffs)
-
trunk/includes/class-wp-event-aggregator-ee4.php (modified) (1 diff)
-
trunk/includes/class-wp-event-aggregator-em.php (modified) (1 diff)
-
trunk/includes/class-wp-event-aggregator-event_organizer.php (modified) (1 diff)
-
trunk/includes/class-wp-event-aggregator-eventon.php (modified) (1 diff)
-
trunk/includes/class-wp-event-aggregator-eventprime.php (modified) (1 diff)
-
trunk/includes/class-wp-event-aggregator-facebook.php (modified) (2 diffs)
-
trunk/includes/class-wp-event-aggregator-fb-authorize.php (modified) (1 diff)
-
trunk/includes/class-wp-event-aggregator-ical_parser.php (modified) (1 diff)
-
trunk/includes/class-wp-event-aggregator-ical_parser_aioec.php (modified) (1 diff)
-
trunk/includes/class-wp-event-aggregator-my-calendar.php (modified) (1 diff)
-
trunk/includes/class-wp-event-aggregator-tec.php (modified) (2 diffs)
-
trunk/includes/class-wp-event-aggregator-wpea.php (modified) (1 diff)
-
trunk/languages/wp-event-aggregator.pot (modified) (5 diffs)
-
trunk/wp-event-aggregator.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-event-aggregator/tags/1.9.0/includes/class-wp-event-aggregator-aioec.php
r3440818 r3455440 168 168 169 169 // Assign Featured images 170 $event_image = $centralize_array['image_url']; 170 $event_image = $centralize_array['image_url'] ?? ''; 171 $url = $centralize_array['url'] ?? ''; 172 $match = 'https://www.facebook.com/events/'; 173 174 if ( 175 empty($event_image) && 176 strpos($url, $match) !== false && 177 ( $event_args['import_origin'] ?? '' ) === 'ical' && 178 isset($importevents->common_pro) && 179 is_object($importevents->common_pro) && 180 method_exists($importevents->common_pro, 'wpea_get_facebook_event_url') 181 ) { 182 $event_image = $importevents->common_pro->wpea_get_facebook_event_url($origin_event_id); 183 } 184 171 185 if ( ! empty( $event_image ) ) { 172 186 $importevents->common->wpea_set_feature_image_logic( $inserted_event_id, $event_image, $event_args ); -
wp-event-aggregator/tags/1.9.0/includes/class-wp-event-aggregator-cpt.php
r3440818 r3455440 567 567 public function wp_events_archive( $atts = array() ){ 568 568 //[wp_events col='2' layout="style2" posts_per_page='12' category="cat1,cat2" past_events="yes" order="desc" orderby="" start_date="" end_date="" ] 569 $atts = (array) $atts; 570 /* integers */ 571 $atts['paged'] = isset($atts['paged']) ? absint($atts['paged']) : 1; 572 $atts['posts_per_page'] = isset($atts['posts_per_page']) ? absint($atts['posts_per_page']) : ''; 573 $atts['col'] = isset($atts['col']) ? absint($atts['col']) : '2'; 574 575 /* yes/no flags */ 576 $atts['ajaxpagi'] = (isset($atts['ajaxpagi']) && $atts['ajaxpagi'] === 'yes') ? 'yes' : 'no'; 577 $atts['past_events'] = (isset($atts['past_events']) && ($atts['past_events'] === 'yes' || $atts['past_events'] === true)) ? 'yes' : ''; 578 579 /* layout whitelist */ 580 $allowed_layouts = array( 'style1', 'style2', 'style3', 'style4' ); 581 $atts['layout'] = (isset($atts['layout']) && in_array($atts['layout'], $allowed_layouts, true)) ? $atts['layout'] : 'style1'; 582 583 /* order */ 584 $atts['order'] = (isset($atts['order']) && strtoupper($atts['order']) === 'DESC') ? 'DESC' : 'ASC'; 585 586 /* orderby whitelist */ 587 $allowed_orderby = array( 'post_title', 'meta_value', 'event_start_date' ); 588 $atts['orderby'] = (isset($atts['orderby']) && in_array($atts['orderby'], $allowed_orderby, true)) ? $atts['orderby'] : ''; 589 590 /* category */ 591 $category_str = isset( $atts['category'] ) ? urldecode( $atts['category'] ) : ''; 592 if (!empty($category_str)) { 593 $cats = array_map( 'trim', explode( ',', $category_str ) ); 594 $clean = array(); 595 foreach ($cats as $c) { 596 $clean[] = is_numeric($c) ? absint($c) : sanitize_title($c); 597 } 598 $atts['category'] = implode(',', $clean); 599 } 600 601 /* dates */ 602 $atts['start_date'] = isset( $atts['start_date'] ) ? sanitize_text_field( $atts['start_date'] ) : ''; 603 $atts['end_date'] = isset( $atts['end_date'] ) ? sanitize_text_field( $atts['end_date'] ) : ''; 604 569 605 $current_date = current_time('timestamp'); 570 606 $ajaxpagi = isset( $atts['ajaxpagi'] ) ? $atts['ajaxpagi'] : ''; … … 759 795 ob_start(); 760 796 ?> 761 <div class="row_grid wpea_frontend_archive" data-paged="<?php echo esc_attr( $paged ); ?>" data-shortcode= '<?php echo wp_json_encode( $atts ); ?>'>797 <div class="row_grid wpea_frontend_archive" data-paged="<?php echo esc_attr( $paged ); ?>" data-shortcode="<?php echo esc_attr( wp_json_encode($atts, JSON_HEX_TAG|JSON_HEX_AMP|JSON_HEX_APOS|JSON_HEX_QUOT) ); ?>" > 762 798 <?php 763 799 $template_args = array(); -
wp-event-aggregator/tags/1.9.0/includes/class-wp-event-aggregator-ee4.php
r3440818 r3455440 156 156 157 157 // Assign Featured images 158 $event_image = $centralize_array['image_url']; 158 $event_image = $centralize_array['image_url'] ?? ''; 159 $url = $centralize_array['url'] ?? ''; 160 $match = 'https://www.facebook.com/events/'; 161 162 if ( 163 empty($event_image) && 164 strpos($url, $match) !== false && 165 ( $event_args['import_origin'] ?? '' ) === 'ical' && 166 isset($importevents->common_pro) && 167 is_object($importevents->common_pro) && 168 method_exists($importevents->common_pro, 'wpea_get_facebook_event_url') 169 ) { 170 $event_image = $importevents->common_pro->wpea_get_facebook_event_url($origin_event_id); 171 } 172 159 173 if ( ! empty( $event_image ) ) { 160 174 $importevents->common->wpea_set_feature_image_logic( $inserted_event_id, $event_image, $event_args ); -
wp-event-aggregator/tags/1.9.0/includes/class-wp-event-aggregator-em.php
r3435004 r3455440 168 168 169 169 // Assign Featured images 170 $event_image = $centralize_array['image_url']; 170 $event_image = $centralize_array['image_url'] ?? ''; 171 $url = $centralize_array['url'] ?? ''; 172 $match = 'https://www.facebook.com/events/'; 173 174 if ( 175 empty($event_image) && 176 strpos($url, $match) !== false && 177 ( $event_args['import_origin'] ?? '' ) === 'ical' && 178 isset($importevents->common_pro) && 179 is_object($importevents->common_pro) && 180 method_exists($importevents->common_pro, 'wpea_get_facebook_event_url') 181 ) { 182 $event_image = $importevents->common_pro->wpea_get_facebook_event_url($origin_event_id); 183 } 184 171 185 if ( ! empty( $event_image ) ) { 172 186 $importevents->common->wpea_set_feature_image_logic( $inserted_event_id, $event_image, $event_args ); -
wp-event-aggregator/tags/1.9.0/includes/class-wp-event-aggregator-event_organizer.php
r3440818 r3455440 165 165 166 166 // Assign Featured images 167 $event_image = $centralize_array['image_url']; 167 $event_image = $centralize_array['image_url'] ?? ''; 168 $url = $centralize_array['url'] ?? ''; 169 $match = 'https://www.facebook.com/events/'; 170 171 if ( 172 empty($event_image) && 173 strpos($url, $match) !== false && 174 ( $event_args['import_origin'] ?? '' ) === 'ical' && 175 isset($importevents->common_pro) && 176 is_object($importevents->common_pro) && 177 method_exists($importevents->common_pro, 'wpea_get_facebook_event_url') 178 ) { 179 $event_image = $importevents->common_pro->wpea_get_facebook_event_url($origin_event_id); 180 } 181 168 182 if ( ! empty( $event_image ) ) { 169 183 $importevents->common->wpea_set_feature_image_logic( $inserted_event_id, $event_image, $event_args ); -
wp-event-aggregator/tags/1.9.0/includes/class-wp-event-aggregator-eventon.php
r3435004 r3455440 180 180 181 181 // Assign Featured images 182 $event_image = $centralize_array['image_url']; 182 $event_image = $centralize_array['image_url'] ?? ''; 183 $url = $centralize_array['url'] ?? ''; 184 $match = 'https://www.facebook.com/events/'; 185 186 if ( 187 empty($event_image) && 188 strpos($url, $match) !== false && 189 ( $event_args['import_origin'] ?? '' ) === 'ical' && 190 isset($importevents->common_pro) && 191 is_object($importevents->common_pro) && 192 method_exists($importevents->common_pro, 'wpea_get_facebook_event_url') 193 ) { 194 $event_image = $importevents->common_pro->wpea_get_facebook_event_url($origin_event_id); 195 } 196 183 197 if ( ! empty( $event_image ) ) { 184 198 $importevents->common->wpea_set_feature_image_logic( $inserted_event_id, $event_image, $event_args ); -
wp-event-aggregator/tags/1.9.0/includes/class-wp-event-aggregator-eventprime.php
r3435004 r3455440 151 151 152 152 // Assign Featured images 153 $event_image = $centralize_array['image_url']; 153 $event_image = $centralize_array['image_url'] ?? ''; 154 $url = $centralize_array['url'] ?? ''; 155 $match = 'https://www.facebook.com/events/'; 156 157 if ( 158 empty($event_image) && 159 strpos($url, $match) !== false && 160 ( $event_args['import_origin'] ?? '' ) === 'ical' && 161 isset($importevents->common_pro) && 162 is_object($importevents->common_pro) && 163 method_exists($importevents->common_pro, 'wpea_get_facebook_event_url') 164 ) { 165 $event_image = $importevents->common_pro->wpea_get_facebook_event_url($origin_event_id); 166 } 167 154 168 if ( ! empty( $event_image ) ) { 155 169 $importevents->common->wpea_set_feature_image_logic( $inserted_event_id, $event_image, $event_args ); -
wp-event-aggregator/tags/1.9.0/includes/class-wp-event-aggregator-facebook.php
r3435004 r3455440 252 252 * @since 1.0.0 253 253 */ 254 public function generate_facebook_api_url( $path = '', $query_args = array() ) {254 public function generate_facebook_api_url( $path = '', $query_args = array(), $access_token = '' ) { 255 255 $query_args = array_merge( $query_args, array( 'access_token' => $this->get_access_token() ) ); 256 256 if ( ! empty( $access_token ) ) { 257 $query_args['access_token'] = $access_token; 258 } 257 259 $url = add_query_arg( $query_args, $this->fb_graph_url . $path ); 258 260 … … 512 514 * @return array 513 515 */ 514 public function get_organizer_name_by_id( $organizer_id ) { 516 public function get_organizer_name_by_id( $organizer_id, $full_data = false ) { 517 if( !$organizer_id || empty( $organizer_id ) ){ 518 return; 519 } 520 521 $organizer_raw_data = $this->get_facebook_response_data( $organizer_id, array() ); 522 if( isset( $organizer_raw_data->error->message ) ){ 523 return false; 524 } 525 526 if( ! isset( $organizer_raw_data->name ) ){ 527 return false; 528 } 515 529 516 if( !$organizer_id || $organizer_id == '' ){ 517 return; 518 } 519 520 $organizer_raw_data = $this->get_facebook_response_data( $organizer_id, array() ); 521 if( ! isset( $organizer_raw_data->name ) ){ 522 return ''; 523 } 524 530 if ( $full_data ) { 531 return $organizer_raw_data; 532 } 525 533 $oraganizer_name = isset( $organizer_raw_data->name ) ? $organizer_raw_data->name : ''; 526 534 return $oraganizer_name; -
wp-event-aggregator/tags/1.9.0/includes/class-wp-event-aggregator-fb-authorize.php
r3440818 r3455440 103 103 104 104 update_option('wpea_fb_authorize_user', $wpea_fb_authorize_user ); 105 106 //getting page token 107 $args = array( 'timeout' => 15 ); 108 $accounts_call = wp_remote_get( 'https://graph.facebook.com/' . $api_version . "/me/accounts?access_token=$access_token&limit=100&offset=0", $args ); 109 $accounts = wp_remote_retrieve_body( $accounts_call ); 110 $accounts = json_decode( $accounts ); 111 $accounts = isset( $accounts->data ) ? $accounts->data : array(); 112 if ( ! empty( $accounts ) ) { 113 $pages = array(); 114 foreach ( $accounts as $account ) { 115 $pages[ $account->id ] = array( 116 'id' => $account->id, 117 'name' => $account->name, 118 'access_token' => $account->access_token, 119 ); 120 } 121 update_option( 'wpea_fb_user_pages', $pages ); 122 } 123 105 124 $redirect_url = admin_url('admin.php?page=import_events&tab=settings&wauthorize=1'); 106 125 wp_safe_redirect($redirect_url); -
wp-event-aggregator/tags/1.9.0/includes/class-wp-event-aggregator-ical_parser.php
r3435004 r3455440 339 339 $start_time = strtotime( $cwt_start['date_format'] ); 340 340 $end_time = strtotime( $cwt_end['date_format'] ); 341 342 if ( isset( $importevents->common_pro ) && is_object($importevents->common_pro) && method_exists( $importevents->common_pro, 'wpea_get_facebook_event_url' ) ) {343 $event_image = $importevents->common_pro->wpea_get_facebook_event_url( $uid );344 }345 341 } 346 342 -
wp-event-aggregator/tags/1.9.0/includes/class-wp-event-aggregator-ical_parser_aioec.php
r3435004 r3455440 364 364 $end_time = strtotime( $cwt_end['date_format'] ); 365 365 366 if ( isset( $importevents->common_pro ) && is_object($importevents->common_pro) && method_exists( $importevents->common_pro, 'wpea_get_facebook_event_url' ) ) {367 $event_image = $importevents->common_pro->wpea_get_facebook_event_url( $uid );368 }369 366 } 370 367 -
wp-event-aggregator/tags/1.9.0/includes/class-wp-event-aggregator-my-calendar.php
r3440818 r3455440 146 146 147 147 // Assign Featured images 148 $event_image = $centralize_array['image_url']; 148 $event_image = $centralize_array['image_url'] ?? ''; 149 $url = $centralize_array['url'] ?? ''; 150 $match = 'https://www.facebook.com/events/'; 151 152 if ( 153 empty($event_image) && 154 strpos($url, $match) !== false && 155 ( $event_args['import_origin'] ?? '' ) === 'ical' && 156 isset($importevents->common_pro) && 157 is_object($importevents->common_pro) && 158 method_exists($importevents->common_pro, 'wpea_get_facebook_event_url') 159 ) { 160 $event_image = $importevents->common_pro->wpea_get_facebook_event_url($origin_event_id); 161 } 162 149 163 if ( ! empty( $event_image ) ) { 150 164 $importevents->common->wpea_set_feature_image_logic( $inserted_event_id, $event_image, $event_args ); -
wp-event-aggregator/tags/1.9.0/includes/class-wp-event-aggregator-tec.php
r3435004 r3455440 212 212 213 213 // Assign Featured images 214 $event_image = $centralize_array['image_url']; 214 $event_image = $centralize_array['image_url'] ?? ''; 215 $url = $centralize_array['url'] ?? ''; 216 $match = 'https://www.facebook.com/events/'; 217 218 if ( 219 empty($event_image) && 220 strpos($url, $match) !== false && 221 ( $event_args['import_origin'] ?? '' ) === 'ical' && 222 isset($importevents->common_pro) && 223 is_object($importevents->common_pro) && 224 method_exists($importevents->common_pro, 'wpea_get_facebook_event_url') 225 ) { 226 $event_image = $importevents->common_pro->wpea_get_facebook_event_url($origin_event_id); 227 } 228 215 229 if ( ! empty( $event_image ) ) { 216 230 $importevents->common->wpea_set_feature_image_logic( $new_event_id, $event_image, $event_args ); … … 347 361 348 362 // Assign Featured images 349 $event_image = $centralize_array['image_url']; 363 $event_image = $centralize_array['image_url'] ?? ''; 364 $url = $centralize_array['url'] ?? ''; 365 $match = 'https://www.facebook.com/events/'; 366 367 if ( 368 empty($event_image) && 369 strpos($url, $match) !== false && 370 ( $event_args['import_origin'] ?? '' ) === 'ical' && 371 isset($importevents->common_pro) && 372 is_object($importevents->common_pro) && 373 method_exists($importevents->common_pro, 'wpea_get_facebook_event_url') 374 ) { 375 $event_image = $importevents->common_pro->wpea_get_facebook_event_url($origin_event_id); 376 } 377 350 378 if ( ! empty( $event_image ) ) { 351 379 $importevents->common->wpea_set_feature_image_logic( $update_event_id, $event_image, $event_args ); -
wp-event-aggregator/tags/1.9.0/includes/class-wp-event-aggregator-wpea.php
r3435004 r3455440 152 152 153 153 // Assign Featured images 154 $event_image = $centralize_array['image_url']; 154 $event_image = $centralize_array['image_url'] ?? ''; 155 $url = $centralize_array['url'] ?? ''; 156 $match = 'https://www.facebook.com/events/'; 157 158 if ( 159 empty($event_image) && 160 strpos($url, $match) !== false && 161 ( $event_args['import_origin'] ?? '' ) === 'ical' && 162 isset($importevents->common_pro) && 163 is_object($importevents->common_pro) && 164 method_exists($importevents->common_pro, 'wpea_get_facebook_event_url') 165 ) { 166 $event_image = $importevents->common_pro->wpea_get_facebook_event_url($origin_event_id); 167 } 168 155 169 if ( ! empty( $event_image ) ) { 156 170 $importevents->common->wpea_set_feature_image_logic( $inserted_event_id, $event_image, $event_args ); -
wp-event-aggregator/tags/1.9.0/languages/wp-event-aggregator.pot
r3440818 r3455440 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WP Event Aggregator 1. 8.9\n"5 "Project-Id-Version: WP Event Aggregator 1.9.0\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-event-aggregator\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2026-0 1-16T08:05:29+00:00\n"12 "POT-Creation-Date: 2026-02-06T13:45:10+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.12.0\n" … … 835 835 msgstr "" 836 836 837 #: includes/class-wp-event-aggregator-cpt.php: 788837 #: includes/class-wp-event-aggregator-cpt.php:824 838 838 msgid "Next Events »" 839 839 msgstr "" 840 840 841 #: includes/class-wp-event-aggregator-cpt.php: 793841 #: includes/class-wp-event-aggregator-cpt.php:829 842 842 msgid "« Previous Events" 843 843 msgstr "" 844 844 845 #: includes/class-wp-event-aggregator-cpt.php:8 17845 #: includes/class-wp-event-aggregator-cpt.php:853 846 846 msgid "No Events are found." 847 847 msgstr "" … … 853 853 #: includes/class-wp-event-aggregator-eventbrite_api.php:76 854 854 #: includes/class-wp-event-aggregator-eventbrite_api.php:109 855 #: includes/class-wp-event-aggregator-tec.php:2 54856 #: includes/class-wp-event-aggregator-tec.php: 393855 #: includes/class-wp-event-aggregator-tec.php:268 856 #: includes/class-wp-event-aggregator-tec.php:421 857 857 msgid "Something went wrong, please try again." 858 858 msgstr "" … … 912 912 913 913 #: includes/class-wp-event-aggregator-fb-authorize.php:50 914 #: includes/class-wp-event-aggregator-fb-authorize.php:1 17914 #: includes/class-wp-event-aggregator-fb-authorize.php:136 915 915 msgid "Please insert Facebook App ID and Secret." 916 916 msgstr "" 917 917 918 918 #: includes/class-wp-event-aggregator-fb-authorize.php:54 919 #: includes/class-wp-event-aggregator-fb-authorize.php:1 21919 #: includes/class-wp-event-aggregator-fb-authorize.php:140 920 920 #: includes/class-wp-event-aggregator-meetup-authorize.php:46 921 921 #: includes/class-wp-event-aggregator-meetup-authorize.php:129 -
wp-event-aggregator/tags/1.9.0/wp-event-aggregator.php
r3440818 r3455440 4 4 * Plugin URI: http://xylusthemes.com/plugins/wp-event-aggregator/ 5 5 * Description: Import Events from anywhere - Facebook, Eventbrite, Meetup, iCalendar and ICS into your WordPress site. 6 * Version: 1. 8.96 * Version: 1.9.0 7 7 * Author: Xylus Themes 8 8 * Author URL: http://xylusthemes.com … … 102 102 * @since 1.0.0 103 103 */ 104 public function __clone() { _doing_it_wrong( __FUNCTION__, esc_attr__( 'Cheatin’ huh?', 'wp-event-aggregator' ), '1. 8.9' ); }104 public function __clone() { _doing_it_wrong( __FUNCTION__, esc_attr__( 'Cheatin’ huh?', 'wp-event-aggregator' ), '1.9.0' ); } 105 105 106 106 /** … … 109 109 * @since 1.0.0 110 110 */ 111 public function __wakeup() { _doing_it_wrong( __FUNCTION__, esc_attr__( 'Cheatin’ huh?', 'wp-event-aggregator' ), '1. 8.9' ); }111 public function __wakeup() { _doing_it_wrong( __FUNCTION__, esc_attr__( 'Cheatin’ huh?', 'wp-event-aggregator' ), '1.9.0' ); } 112 112 113 113 … … 123 123 // Plugin version. 124 124 if( ! defined( 'WPEA_VERSION' ) ){ 125 define( 'WPEA_VERSION', '1. 8.9' );125 define( 'WPEA_VERSION', '1.9.0' ); 126 126 } 127 127 128 128 // Minimum Pro plugin version. 129 129 if( ! defined( 'WPEA_MIN_PRO_VERSION' ) ){ 130 define( 'WPEA_MIN_PRO_VERSION', '1.8. 3' );130 define( 'WPEA_MIN_PRO_VERSION', '1.8.4' ); 131 131 } 132 132 -
wp-event-aggregator/trunk/includes/class-wp-event-aggregator-aioec.php
r3440818 r3455440 168 168 169 169 // Assign Featured images 170 $event_image = $centralize_array['image_url']; 170 $event_image = $centralize_array['image_url'] ?? ''; 171 $url = $centralize_array['url'] ?? ''; 172 $match = 'https://www.facebook.com/events/'; 173 174 if ( 175 empty($event_image) && 176 strpos($url, $match) !== false && 177 ( $event_args['import_origin'] ?? '' ) === 'ical' && 178 isset($importevents->common_pro) && 179 is_object($importevents->common_pro) && 180 method_exists($importevents->common_pro, 'wpea_get_facebook_event_url') 181 ) { 182 $event_image = $importevents->common_pro->wpea_get_facebook_event_url($origin_event_id); 183 } 184 171 185 if ( ! empty( $event_image ) ) { 172 186 $importevents->common->wpea_set_feature_image_logic( $inserted_event_id, $event_image, $event_args ); -
wp-event-aggregator/trunk/includes/class-wp-event-aggregator-cpt.php
r3440818 r3455440 567 567 public function wp_events_archive( $atts = array() ){ 568 568 //[wp_events col='2' layout="style2" posts_per_page='12' category="cat1,cat2" past_events="yes" order="desc" orderby="" start_date="" end_date="" ] 569 $atts = (array) $atts; 570 /* integers */ 571 $atts['paged'] = isset($atts['paged']) ? absint($atts['paged']) : 1; 572 $atts['posts_per_page'] = isset($atts['posts_per_page']) ? absint($atts['posts_per_page']) : ''; 573 $atts['col'] = isset($atts['col']) ? absint($atts['col']) : '2'; 574 575 /* yes/no flags */ 576 $atts['ajaxpagi'] = (isset($atts['ajaxpagi']) && $atts['ajaxpagi'] === 'yes') ? 'yes' : 'no'; 577 $atts['past_events'] = (isset($atts['past_events']) && ($atts['past_events'] === 'yes' || $atts['past_events'] === true)) ? 'yes' : ''; 578 579 /* layout whitelist */ 580 $allowed_layouts = array( 'style1', 'style2', 'style3', 'style4' ); 581 $atts['layout'] = (isset($atts['layout']) && in_array($atts['layout'], $allowed_layouts, true)) ? $atts['layout'] : 'style1'; 582 583 /* order */ 584 $atts['order'] = (isset($atts['order']) && strtoupper($atts['order']) === 'DESC') ? 'DESC' : 'ASC'; 585 586 /* orderby whitelist */ 587 $allowed_orderby = array( 'post_title', 'meta_value', 'event_start_date' ); 588 $atts['orderby'] = (isset($atts['orderby']) && in_array($atts['orderby'], $allowed_orderby, true)) ? $atts['orderby'] : ''; 589 590 /* category */ 591 $category_str = isset( $atts['category'] ) ? urldecode( $atts['category'] ) : ''; 592 if (!empty($category_str)) { 593 $cats = array_map( 'trim', explode( ',', $category_str ) ); 594 $clean = array(); 595 foreach ($cats as $c) { 596 $clean[] = is_numeric($c) ? absint($c) : sanitize_title($c); 597 } 598 $atts['category'] = implode(',', $clean); 599 } 600 601 /* dates */ 602 $atts['start_date'] = isset( $atts['start_date'] ) ? sanitize_text_field( $atts['start_date'] ) : ''; 603 $atts['end_date'] = isset( $atts['end_date'] ) ? sanitize_text_field( $atts['end_date'] ) : ''; 604 569 605 $current_date = current_time('timestamp'); 570 606 $ajaxpagi = isset( $atts['ajaxpagi'] ) ? $atts['ajaxpagi'] : ''; … … 759 795 ob_start(); 760 796 ?> 761 <div class="row_grid wpea_frontend_archive" data-paged="<?php echo esc_attr( $paged ); ?>" data-shortcode= '<?php echo wp_json_encode( $atts ); ?>'>797 <div class="row_grid wpea_frontend_archive" data-paged="<?php echo esc_attr( $paged ); ?>" data-shortcode="<?php echo esc_attr( wp_json_encode($atts, JSON_HEX_TAG|JSON_HEX_AMP|JSON_HEX_APOS|JSON_HEX_QUOT) ); ?>" > 762 798 <?php 763 799 $template_args = array(); -
wp-event-aggregator/trunk/includes/class-wp-event-aggregator-ee4.php
r3440818 r3455440 156 156 157 157 // Assign Featured images 158 $event_image = $centralize_array['image_url']; 158 $event_image = $centralize_array['image_url'] ?? ''; 159 $url = $centralize_array['url'] ?? ''; 160 $match = 'https://www.facebook.com/events/'; 161 162 if ( 163 empty($event_image) && 164 strpos($url, $match) !== false && 165 ( $event_args['import_origin'] ?? '' ) === 'ical' && 166 isset($importevents->common_pro) && 167 is_object($importevents->common_pro) && 168 method_exists($importevents->common_pro, 'wpea_get_facebook_event_url') 169 ) { 170 $event_image = $importevents->common_pro->wpea_get_facebook_event_url($origin_event_id); 171 } 172 159 173 if ( ! empty( $event_image ) ) { 160 174 $importevents->common->wpea_set_feature_image_logic( $inserted_event_id, $event_image, $event_args ); -
wp-event-aggregator/trunk/includes/class-wp-event-aggregator-em.php
r3435004 r3455440 168 168 169 169 // Assign Featured images 170 $event_image = $centralize_array['image_url']; 170 $event_image = $centralize_array['image_url'] ?? ''; 171 $url = $centralize_array['url'] ?? ''; 172 $match = 'https://www.facebook.com/events/'; 173 174 if ( 175 empty($event_image) && 176 strpos($url, $match) !== false && 177 ( $event_args['import_origin'] ?? '' ) === 'ical' && 178 isset($importevents->common_pro) && 179 is_object($importevents->common_pro) && 180 method_exists($importevents->common_pro, 'wpea_get_facebook_event_url') 181 ) { 182 $event_image = $importevents->common_pro->wpea_get_facebook_event_url($origin_event_id); 183 } 184 171 185 if ( ! empty( $event_image ) ) { 172 186 $importevents->common->wpea_set_feature_image_logic( $inserted_event_id, $event_image, $event_args ); -
wp-event-aggregator/trunk/includes/class-wp-event-aggregator-event_organizer.php
r3440818 r3455440 165 165 166 166 // Assign Featured images 167 $event_image = $centralize_array['image_url']; 167 $event_image = $centralize_array['image_url'] ?? ''; 168 $url = $centralize_array['url'] ?? ''; 169 $match = 'https://www.facebook.com/events/'; 170 171 if ( 172 empty($event_image) && 173 strpos($url, $match) !== false && 174 ( $event_args['import_origin'] ?? '' ) === 'ical' && 175 isset($importevents->common_pro) && 176 is_object($importevents->common_pro) && 177 method_exists($importevents->common_pro, 'wpea_get_facebook_event_url') 178 ) { 179 $event_image = $importevents->common_pro->wpea_get_facebook_event_url($origin_event_id); 180 } 181 168 182 if ( ! empty( $event_image ) ) { 169 183 $importevents->common->wpea_set_feature_image_logic( $inserted_event_id, $event_image, $event_args ); -
wp-event-aggregator/trunk/includes/class-wp-event-aggregator-eventon.php
r3435004 r3455440 180 180 181 181 // Assign Featured images 182 $event_image = $centralize_array['image_url']; 182 $event_image = $centralize_array['image_url'] ?? ''; 183 $url = $centralize_array['url'] ?? ''; 184 $match = 'https://www.facebook.com/events/'; 185 186 if ( 187 empty($event_image) && 188 strpos($url, $match) !== false && 189 ( $event_args['import_origin'] ?? '' ) === 'ical' && 190 isset($importevents->common_pro) && 191 is_object($importevents->common_pro) && 192 method_exists($importevents->common_pro, 'wpea_get_facebook_event_url') 193 ) { 194 $event_image = $importevents->common_pro->wpea_get_facebook_event_url($origin_event_id); 195 } 196 183 197 if ( ! empty( $event_image ) ) { 184 198 $importevents->common->wpea_set_feature_image_logic( $inserted_event_id, $event_image, $event_args ); -
wp-event-aggregator/trunk/includes/class-wp-event-aggregator-eventprime.php
r3435004 r3455440 151 151 152 152 // Assign Featured images 153 $event_image = $centralize_array['image_url']; 153 $event_image = $centralize_array['image_url'] ?? ''; 154 $url = $centralize_array['url'] ?? ''; 155 $match = 'https://www.facebook.com/events/'; 156 157 if ( 158 empty($event_image) && 159 strpos($url, $match) !== false && 160 ( $event_args['import_origin'] ?? '' ) === 'ical' && 161 isset($importevents->common_pro) && 162 is_object($importevents->common_pro) && 163 method_exists($importevents->common_pro, 'wpea_get_facebook_event_url') 164 ) { 165 $event_image = $importevents->common_pro->wpea_get_facebook_event_url($origin_event_id); 166 } 167 154 168 if ( ! empty( $event_image ) ) { 155 169 $importevents->common->wpea_set_feature_image_logic( $inserted_event_id, $event_image, $event_args ); -
wp-event-aggregator/trunk/includes/class-wp-event-aggregator-facebook.php
r3435004 r3455440 252 252 * @since 1.0.0 253 253 */ 254 public function generate_facebook_api_url( $path = '', $query_args = array() ) {254 public function generate_facebook_api_url( $path = '', $query_args = array(), $access_token = '' ) { 255 255 $query_args = array_merge( $query_args, array( 'access_token' => $this->get_access_token() ) ); 256 256 if ( ! empty( $access_token ) ) { 257 $query_args['access_token'] = $access_token; 258 } 257 259 $url = add_query_arg( $query_args, $this->fb_graph_url . $path ); 258 260 … … 512 514 * @return array 513 515 */ 514 public function get_organizer_name_by_id( $organizer_id ) { 516 public function get_organizer_name_by_id( $organizer_id, $full_data = false ) { 517 if( !$organizer_id || empty( $organizer_id ) ){ 518 return; 519 } 520 521 $organizer_raw_data = $this->get_facebook_response_data( $organizer_id, array() ); 522 if( isset( $organizer_raw_data->error->message ) ){ 523 return false; 524 } 525 526 if( ! isset( $organizer_raw_data->name ) ){ 527 return false; 528 } 515 529 516 if( !$organizer_id || $organizer_id == '' ){ 517 return; 518 } 519 520 $organizer_raw_data = $this->get_facebook_response_data( $organizer_id, array() ); 521 if( ! isset( $organizer_raw_data->name ) ){ 522 return ''; 523 } 524 530 if ( $full_data ) { 531 return $organizer_raw_data; 532 } 525 533 $oraganizer_name = isset( $organizer_raw_data->name ) ? $organizer_raw_data->name : ''; 526 534 return $oraganizer_name; -
wp-event-aggregator/trunk/includes/class-wp-event-aggregator-fb-authorize.php
r3440818 r3455440 103 103 104 104 update_option('wpea_fb_authorize_user', $wpea_fb_authorize_user ); 105 106 //getting page token 107 $args = array( 'timeout' => 15 ); 108 $accounts_call = wp_remote_get( 'https://graph.facebook.com/' . $api_version . "/me/accounts?access_token=$access_token&limit=100&offset=0", $args ); 109 $accounts = wp_remote_retrieve_body( $accounts_call ); 110 $accounts = json_decode( $accounts ); 111 $accounts = isset( $accounts->data ) ? $accounts->data : array(); 112 if ( ! empty( $accounts ) ) { 113 $pages = array(); 114 foreach ( $accounts as $account ) { 115 $pages[ $account->id ] = array( 116 'id' => $account->id, 117 'name' => $account->name, 118 'access_token' => $account->access_token, 119 ); 120 } 121 update_option( 'wpea_fb_user_pages', $pages ); 122 } 123 105 124 $redirect_url = admin_url('admin.php?page=import_events&tab=settings&wauthorize=1'); 106 125 wp_safe_redirect($redirect_url); -
wp-event-aggregator/trunk/includes/class-wp-event-aggregator-ical_parser.php
r3435004 r3455440 339 339 $start_time = strtotime( $cwt_start['date_format'] ); 340 340 $end_time = strtotime( $cwt_end['date_format'] ); 341 342 if ( isset( $importevents->common_pro ) && is_object($importevents->common_pro) && method_exists( $importevents->common_pro, 'wpea_get_facebook_event_url' ) ) {343 $event_image = $importevents->common_pro->wpea_get_facebook_event_url( $uid );344 }345 341 } 346 342 -
wp-event-aggregator/trunk/includes/class-wp-event-aggregator-ical_parser_aioec.php
r3435004 r3455440 364 364 $end_time = strtotime( $cwt_end['date_format'] ); 365 365 366 if ( isset( $importevents->common_pro ) && is_object($importevents->common_pro) && method_exists( $importevents->common_pro, 'wpea_get_facebook_event_url' ) ) {367 $event_image = $importevents->common_pro->wpea_get_facebook_event_url( $uid );368 }369 366 } 370 367 -
wp-event-aggregator/trunk/includes/class-wp-event-aggregator-my-calendar.php
r3440818 r3455440 146 146 147 147 // Assign Featured images 148 $event_image = $centralize_array['image_url']; 148 $event_image = $centralize_array['image_url'] ?? ''; 149 $url = $centralize_array['url'] ?? ''; 150 $match = 'https://www.facebook.com/events/'; 151 152 if ( 153 empty($event_image) && 154 strpos($url, $match) !== false && 155 ( $event_args['import_origin'] ?? '' ) === 'ical' && 156 isset($importevents->common_pro) && 157 is_object($importevents->common_pro) && 158 method_exists($importevents->common_pro, 'wpea_get_facebook_event_url') 159 ) { 160 $event_image = $importevents->common_pro->wpea_get_facebook_event_url($origin_event_id); 161 } 162 149 163 if ( ! empty( $event_image ) ) { 150 164 $importevents->common->wpea_set_feature_image_logic( $inserted_event_id, $event_image, $event_args ); -
wp-event-aggregator/trunk/includes/class-wp-event-aggregator-tec.php
r3435004 r3455440 212 212 213 213 // Assign Featured images 214 $event_image = $centralize_array['image_url']; 214 $event_image = $centralize_array['image_url'] ?? ''; 215 $url = $centralize_array['url'] ?? ''; 216 $match = 'https://www.facebook.com/events/'; 217 218 if ( 219 empty($event_image) && 220 strpos($url, $match) !== false && 221 ( $event_args['import_origin'] ?? '' ) === 'ical' && 222 isset($importevents->common_pro) && 223 is_object($importevents->common_pro) && 224 method_exists($importevents->common_pro, 'wpea_get_facebook_event_url') 225 ) { 226 $event_image = $importevents->common_pro->wpea_get_facebook_event_url($origin_event_id); 227 } 228 215 229 if ( ! empty( $event_image ) ) { 216 230 $importevents->common->wpea_set_feature_image_logic( $new_event_id, $event_image, $event_args ); … … 347 361 348 362 // Assign Featured images 349 $event_image = $centralize_array['image_url']; 363 $event_image = $centralize_array['image_url'] ?? ''; 364 $url = $centralize_array['url'] ?? ''; 365 $match = 'https://www.facebook.com/events/'; 366 367 if ( 368 empty($event_image) && 369 strpos($url, $match) !== false && 370 ( $event_args['import_origin'] ?? '' ) === 'ical' && 371 isset($importevents->common_pro) && 372 is_object($importevents->common_pro) && 373 method_exists($importevents->common_pro, 'wpea_get_facebook_event_url') 374 ) { 375 $event_image = $importevents->common_pro->wpea_get_facebook_event_url($origin_event_id); 376 } 377 350 378 if ( ! empty( $event_image ) ) { 351 379 $importevents->common->wpea_set_feature_image_logic( $update_event_id, $event_image, $event_args ); -
wp-event-aggregator/trunk/includes/class-wp-event-aggregator-wpea.php
r3435004 r3455440 152 152 153 153 // Assign Featured images 154 $event_image = $centralize_array['image_url']; 154 $event_image = $centralize_array['image_url'] ?? ''; 155 $url = $centralize_array['url'] ?? ''; 156 $match = 'https://www.facebook.com/events/'; 157 158 if ( 159 empty($event_image) && 160 strpos($url, $match) !== false && 161 ( $event_args['import_origin'] ?? '' ) === 'ical' && 162 isset($importevents->common_pro) && 163 is_object($importevents->common_pro) && 164 method_exists($importevents->common_pro, 'wpea_get_facebook_event_url') 165 ) { 166 $event_image = $importevents->common_pro->wpea_get_facebook_event_url($origin_event_id); 167 } 168 155 169 if ( ! empty( $event_image ) ) { 156 170 $importevents->common->wpea_set_feature_image_logic( $inserted_event_id, $event_image, $event_args ); -
wp-event-aggregator/trunk/languages/wp-event-aggregator.pot
r3440818 r3455440 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WP Event Aggregator 1. 8.9\n"5 "Project-Id-Version: WP Event Aggregator 1.9.0\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-event-aggregator\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2026-0 1-16T08:05:29+00:00\n"12 "POT-Creation-Date: 2026-02-06T13:45:10+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.12.0\n" … … 835 835 msgstr "" 836 836 837 #: includes/class-wp-event-aggregator-cpt.php: 788837 #: includes/class-wp-event-aggregator-cpt.php:824 838 838 msgid "Next Events »" 839 839 msgstr "" 840 840 841 #: includes/class-wp-event-aggregator-cpt.php: 793841 #: includes/class-wp-event-aggregator-cpt.php:829 842 842 msgid "« Previous Events" 843 843 msgstr "" 844 844 845 #: includes/class-wp-event-aggregator-cpt.php:8 17845 #: includes/class-wp-event-aggregator-cpt.php:853 846 846 msgid "No Events are found." 847 847 msgstr "" … … 853 853 #: includes/class-wp-event-aggregator-eventbrite_api.php:76 854 854 #: includes/class-wp-event-aggregator-eventbrite_api.php:109 855 #: includes/class-wp-event-aggregator-tec.php:2 54856 #: includes/class-wp-event-aggregator-tec.php: 393855 #: includes/class-wp-event-aggregator-tec.php:268 856 #: includes/class-wp-event-aggregator-tec.php:421 857 857 msgid "Something went wrong, please try again." 858 858 msgstr "" … … 912 912 913 913 #: includes/class-wp-event-aggregator-fb-authorize.php:50 914 #: includes/class-wp-event-aggregator-fb-authorize.php:1 17914 #: includes/class-wp-event-aggregator-fb-authorize.php:136 915 915 msgid "Please insert Facebook App ID and Secret." 916 916 msgstr "" 917 917 918 918 #: includes/class-wp-event-aggregator-fb-authorize.php:54 919 #: includes/class-wp-event-aggregator-fb-authorize.php:1 21919 #: includes/class-wp-event-aggregator-fb-authorize.php:140 920 920 #: includes/class-wp-event-aggregator-meetup-authorize.php:46 921 921 #: includes/class-wp-event-aggregator-meetup-authorize.php:129 -
wp-event-aggregator/trunk/wp-event-aggregator.php
r3440818 r3455440 4 4 * Plugin URI: http://xylusthemes.com/plugins/wp-event-aggregator/ 5 5 * Description: Import Events from anywhere - Facebook, Eventbrite, Meetup, iCalendar and ICS into your WordPress site. 6 * Version: 1. 8.96 * Version: 1.9.0 7 7 * Author: Xylus Themes 8 8 * Author URL: http://xylusthemes.com … … 102 102 * @since 1.0.0 103 103 */ 104 public function __clone() { _doing_it_wrong( __FUNCTION__, esc_attr__( 'Cheatin’ huh?', 'wp-event-aggregator' ), '1. 8.9' ); }104 public function __clone() { _doing_it_wrong( __FUNCTION__, esc_attr__( 'Cheatin’ huh?', 'wp-event-aggregator' ), '1.9.0' ); } 105 105 106 106 /** … … 109 109 * @since 1.0.0 110 110 */ 111 public function __wakeup() { _doing_it_wrong( __FUNCTION__, esc_attr__( 'Cheatin’ huh?', 'wp-event-aggregator' ), '1. 8.9' ); }111 public function __wakeup() { _doing_it_wrong( __FUNCTION__, esc_attr__( 'Cheatin’ huh?', 'wp-event-aggregator' ), '1.9.0' ); } 112 112 113 113 … … 123 123 // Plugin version. 124 124 if( ! defined( 'WPEA_VERSION' ) ){ 125 define( 'WPEA_VERSION', '1. 8.9' );125 define( 'WPEA_VERSION', '1.9.0' ); 126 126 } 127 127 128 128 // Minimum Pro plugin version. 129 129 if( ! defined( 'WPEA_MIN_PRO_VERSION' ) ){ 130 define( 'WPEA_MIN_PRO_VERSION', '1.8. 3' );130 define( 'WPEA_MIN_PRO_VERSION', '1.8.4' ); 131 131 } 132 132
Note: See TracChangeset
for help on using the changeset viewer.