Changeset 2745337
- Timestamp:
- 06/20/2022 02:34:15 PM (4 years ago)
- Location:
- fooevents-calendar
- Files:
-
- 65 added
- 1 deleted
- 4 edited
-
tags/1.6.31 (deleted)
-
tags/1.6.38 (added)
-
tags/1.6.38/.gitignore (added)
-
tags/1.6.38/class-fooevents-calendar.php (added)
-
tags/1.6.38/classes (added)
-
tags/1.6.38/classes/class-fooevents-calendar-widget.php (added)
-
tags/1.6.38/config.php (added)
-
tags/1.6.38/css (added)
-
tags/1.6.38/css/calendar-admin.css (added)
-
tags/1.6.38/css/fooevents-fullcalendar-dark.css (added)
-
tags/1.6.38/css/fooevents-fullcalendar-flat.css (added)
-
tags/1.6.38/css/fooevents-fullcalendar-light.css (added)
-
tags/1.6.38/css/fooevents-fullcalendar-minimalist.css (added)
-
tags/1.6.38/css/fooevents-list-dark-card.css (added)
-
tags/1.6.38/css/fooevents-list-light-card.css (added)
-
tags/1.6.38/css/fullcalendar.css (added)
-
tags/1.6.38/css/fullcalendar.min.css (added)
-
tags/1.6.38/css/fullcalendar.print.css (added)
-
tags/1.6.38/css/fullcalendar.print.min.css (added)
-
tags/1.6.38/css/style.css (added)
-
tags/1.6.38/default.mo (added)
-
tags/1.6.38/default.po (added)
-
tags/1.6.38/fooevents-calendar.php (added)
-
tags/1.6.38/getting-started-readme.txt (added)
-
tags/1.6.38/js (added)
-
tags/1.6.38/js/calendar-admin.js (added)
-
tags/1.6.38/js/fullcalendar.js (added)
-
tags/1.6.38/js/fullcalendar.min.js (added)
-
tags/1.6.38/js/gcal.js (added)
-
tags/1.6.38/js/gcal.min.js (added)
-
tags/1.6.38/js/locale-all.js (added)
-
tags/1.6.38/js/moment.js (added)
-
tags/1.6.38/languages (added)
-
tags/1.6.38/languages/fooevents-calendar-zh_TW.po (added)
-
tags/1.6.38/languages/readme.txt (added)
-
tags/1.6.38/license.txt (added)
-
tags/1.6.38/readme.txt (added)
-
tags/1.6.38/screenshot-1.png (added)
-
tags/1.6.38/screenshot-2.png (added)
-
tags/1.6.38/screenshot-3.png (added)
-
tags/1.6.38/screenshot-4.png (added)
-
tags/1.6.38/screenshot-5.png (added)
-
tags/1.6.38/screenshot-6.png (added)
-
tags/1.6.38/templates (added)
-
tags/1.6.38/templates/calendar-options-eventbrite.php (added)
-
tags/1.6.38/templates/calendar-options-layout.php (added)
-
tags/1.6.38/templates/calendar-options.php (added)
-
tags/1.6.38/templates/calendar.php (added)
-
tags/1.6.38/templates/event.php (added)
-
tags/1.6.38/templates/eventbrite-options.php (added)
-
tags/1.6.38/templates/eventmetabox.php (added)
-
tags/1.6.38/templates/list-of-events.php (added)
-
tags/1.6.38/templates/pluginintroduction.php (added)
-
tags/1.6.38/updatelog.txt (added)
-
tags/1.6.38/vendors (added)
-
tags/1.6.38/vendors/eventbrite (added)
-
tags/1.6.38/vendors/eventbrite/.travis.yml (added)
-
tags/1.6.38/vendors/eventbrite/AccessMethods.php (added)
-
tags/1.6.38/vendors/eventbrite/Authenticate.php (added)
-
tags/1.6.38/vendors/eventbrite/HttpClient.php (added)
-
tags/1.6.38/vendors/eventbrite/README.md (added)
-
tags/1.6.38/vendors/eventbrite/composer.json (added)
-
tags/1.6.38/vendors/eventbrite/phpunit.xml (added)
-
tags/1.6.38/vendors/eventbrite/tests (added)
-
tags/1.6.38/vendors/eventbrite/tests/ClientTest.php (added)
-
tags/1.6.38/vendors/index.php (added)
-
trunk/class-fooevents-calendar.php (modified) (11 diffs)
-
trunk/fooevents-calendar.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/updatelog.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
fooevents-calendar/trunk/class-fooevents-calendar.php
r2729449 r2745337 1302 1302 } 1303 1303 1304 $product_ids = ''; 1305 1306 if ( ! empty( $attributes['post'] ) ) { 1307 1308 $product_ids = array_map( 'trim', explode( ',', $attributes['post'] ) ); 1309 1310 } 1311 1304 1312 if ( ! empty( $attributes['include_cat'] ) ) { 1305 1313 1306 $include_cats = explode( ',', $attributes['include_cat']);1314 $include_cats = array_map( 'trim', explode( ',', $attributes['include_cat'] ) ); 1307 1315 1308 1316 } … … 1329 1337 if ( is_plugin_active( 'fooevents/fooevents.php' ) || is_plugin_active_for_network( 'fooevents/fooevents.php' ) ) { 1330 1338 1331 $events = $this->get_events( $include_cats );1339 $events = $this->get_events( $include_cats, $product_ids ); 1332 1340 $events = $this->fetch_events( $events, 'events_list', true ); 1333 1341 … … 1429 1437 1430 1438 $calendar_id = 'fooevents_calendar'; 1439 $product_ids = ''; 1440 1441 if ( ! empty( $attributes['post'] ) ) { 1442 1443 $product_ids = array_map( 'trim', explode( ',', $attributes['post'] ) ); 1444 1445 } 1431 1446 1432 1447 if ( ! empty( $attributes['id'] ) ) { … … 1443 1458 if ( ! empty( $attributes['include_cat'] ) ) { 1444 1459 1445 $include_cats = explode( ',', $attributes['include_cat']);1460 $include_cats = array_map( 'trim', explode( ',', $attributes['include_cat'] ) ); 1446 1461 1447 1462 } … … 1503 1518 if ( is_plugin_active( 'fooevents/fooevents.php' ) || is_plugin_active_for_network( 'fooevents/fooevents.php' ) ) { 1504 1519 1505 $events = $this->get_events( $include_cats );1520 $events = $this->get_events( $include_cats, $product_ids ); 1506 1521 $events = $this->fetch_events( $events, $display_type, false ); 1507 1522 1508 1523 } 1509 1524 1510 $non_product_events = $this->get_non_product_events( $include_cats );1525 $non_product_events = $this->get_non_product_events( $include_cats, $product_ids ); 1511 1526 $non_product_events = $this->fetch_events( $non_product_events, $display_type, false ); 1512 1527 … … 1523 1538 1524 1539 $fooevents_bookings = new FooEvents_Bookings( true ); 1525 $booking_events = $fooevents_bookings->get_bookings_for_calendar( $include_cats );1540 $booking_events = $fooevents_bookings->get_bookings_for_calendar( $include_cats, $product_ids ); 1526 1541 1527 1542 $events = array_merge_recursive( $events, $booking_events ); … … 1683 1698 * @return array 1684 1699 */ 1685 public function get_events( $include_cats = array() ) {1700 public function get_events( $include_cats = array(), $product_ids = array() ) { 1686 1701 1687 1702 $args = array( … … 1712 1727 } 1713 1728 1729 if ( ! empty( $product_ids ) ) { 1730 1731 $args['post__in'] = $product_ids; 1732 1733 } 1734 1714 1735 $events = new WP_Query( $args ); 1715 1736 … … 1724 1745 * @return array 1725 1746 */ 1726 public function get_non_product_events( $include_cats = array() ) {1747 public function get_non_product_events( $include_cats = array(), $product_ids = array() ) { 1727 1748 1728 1749 $calendar_post_types = get_option( 'globalFooEventsCalendarPostTypes' ); … … 1761 1782 1762 1783 } 1784 } 1785 1786 if ( ! empty( $product_ids ) ) { 1787 1788 $args['post__in'] = $product_ids; 1789 1763 1790 } 1764 1791 … … 3113 3140 'Σεπτέμβριος' => 'September', 3114 3141 'Οκτώβριος' => 'October', 3115 'Νοέμβριο ς' => 'November',3142 'Νοέμβριο��' => 'November', 3116 3143 'Δεκέμβριος' => 'December', 3117 3144 -
fooevents-calendar/trunk/fooevents-calendar.php
r2729449 r2745337 4 4 * Plugin Name: Events Calendar for FooEvents 5 5 * Description: Add event information to any post, page or custom post type and display it in a stylish calendar. 6 * Version: 1.6.3 66 * Version: 1.6.38 7 7 * Author: FooEvents 8 8 * Plugin URI: https://www.fooevents.com/fooevents-calendar/ -
fooevents-calendar/trunk/readme.txt
r2729449 r2745337 3 3 Tags: calendar, events calendar, event, booking, tickets 4 4 Requires at least: 5 5 Tested up to: 5.9.36 Stable tag: 1.6.3 65 Tested up to: 6.0.0 6 Stable tag: 1.6.38 7 7 License: GPLv2 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 157 157 158 158 == Changelog == 159 160 = 1.6.38 = 161 * FIXED: Various small bugs * 162 * TESTED ON: WordPress 6.0.0 and WooCommerce 6.6.0 * 163 159 164 = 1.6.36 = 160 165 * UPDATED: Moment.js library * -
fooevents-calendar/trunk/updatelog.txt
r2729449 r2745337 3 3 4 4 ------------------ 5 1.6.38 6 FIXED: Various small bugs 7 TESTED ON: WordPress 6.0.0 and WooCommerce 6.6.0 8 5 9 1.6.36 6 10 UPDATED: Moment.js library
Note: See TracChangeset
for help on using the changeset viewer.