- Timestamp:
- 04/20/2020 10:28:24 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/events/1.0/index.php
r9750 r9751 815 815 'date' => $event->date_utc, // TODO: DB stores a local date, not UTC. 816 816 'end_date' => $event->end_date, 817 817 818 'location' => array( 818 819 'location' => $event->location, … … 958 959 return array( 959 960 // WordCamp Asia. 960 'asia' 961 'promo_start' 961 'asia' => array( 962 'promo_start' => strtotime( '2019-12-20 00:00:00' ), 962 963 963 964 'regional_countries' => array_merge( … … 968 969 array( 'RU' ) 969 970 ), 970 'event' => array( 971 972 'event' => array( 971 973 'type' => 'wordcamp', 972 974 'title' => 'WordCamp Asia', … … 976 978 'date' => '2020-02-21 00:00:00', 977 979 'end_date' => '2020-02-23 00:00:00', 978 'location' => array( 980 981 'location' => array( 979 982 'location' => 'Bangkok, Thailand', 980 983 'country' => 'TH', … … 984 987 ), 985 988 ), 989 986 990 // WordCamp Europe. 987 991 'europe' => array( 988 'promo_start' => strtotime( '2020-04-04 00:00:00' ), 992 'promo_start' => strtotime( '2020-04-04 00:00:00' ), 993 989 994 'regional_countries' => array_merge( 990 995 get_iso_3166_2_country_codes( 'africa' ), 991 996 get_iso_3166_2_country_codes( 'europe' ) 992 997 ), 993 'event' => array( 998 999 'event' => array( 994 1000 'type' => 'wordcamp', 995 1001 'title' => 'WordCamp Europe', … … 999 1005 'date' => '2020-06-04 00:00:00', 1000 1006 'end_date' => '2020-06-06 00:00:00', 1007 1001 1008 'location' => array( 1002 1009 'location' => 'Porto, Portugal', … … 1007 1014 ), 1008 1015 ), 1016 1009 1017 // WordCamp US. 1010 'us' 1011 'promo_start' 1018 'us' => array( 1019 'promo_start' => strtotime( '2020-08-27 00:00:00' ), 1012 1020 1013 1021 'regional_countries' => array_merge( … … 1015 1023 get_iso_3166_2_country_codes( 'north america' ) 1016 1024 ), 1017 'event' => array( 1025 1026 'event' => array( 1018 1027 'type' => 'wordcamp', 1019 1028 'title' => 'WordCamp US', … … 1024 1033 'end_date' => '2020-10-29 00:00:00', 1025 1034 1026 'location' 1035 'location' => array( 1027 1036 'location' => 'St. Louis, MO, USA', 1028 1037 'country' => 'US', … … 1127 1136 // Phase 1: Show worldwide for first two weeks. 1128 1137 $regional_wordcamps[] = $data['event']; 1138 1129 1139 } elseif ( is_within_date_range( $current_time, strtotime( '+ 2 weeks', $start ), strtotime( '+ 4 weeks', $start ) ) ) { 1130 1140 // Phase 2: Show within regional countries for next two weeks. … … 1132 1142 $regional_wordcamps[] = $data['event']; 1133 1143 } 1144 1134 1145 } elseif ( is_within_date_range( $current_time, strtotime( '+ 4 weeks', $start ), strtotime( '+ 6 weeks', $start ) ) ) { 1135 1146 // Phase 3: Show only within the event country for the last two weeks.
Note: See TracChangeset
for help on using the changeset viewer.