Changeset 3174895
- Timestamp:
- 10/24/2024 10:25:50 AM (17 months ago)
- Location:
- fooevents-calendar
- Files:
-
- 147 added
- 1 deleted
- 7 edited
-
tags/1.7.3 (deleted)
-
tags/1.7.7 (added)
-
tags/1.7.7/.gitignore (added)
-
tags/1.7.7/build (added)
-
tags/1.7.7/build/fooevents-calendar-shortcode (added)
-
tags/1.7.7/build/fooevents-calendar-shortcode/block.json (added)
-
tags/1.7.7/build/fooevents-calendar-shortcode/index-rtl.css (added)
-
tags/1.7.7/build/fooevents-calendar-shortcode/index.asset.php (added)
-
tags/1.7.7/build/fooevents-calendar-shortcode/index.css (added)
-
tags/1.7.7/build/fooevents-calendar-shortcode/index.css.map (added)
-
tags/1.7.7/build/fooevents-calendar-shortcode/index.js (added)
-
tags/1.7.7/build/fooevents-calendar-shortcode/index.js.map (added)
-
tags/1.7.7/build/fooevents-calendar-shortcode/style-index-rtl.css (added)
-
tags/1.7.7/build/fooevents-calendar-shortcode/style-index.css (added)
-
tags/1.7.7/build/fooevents-calendar-shortcode/style-index.css.map (added)
-
tags/1.7.7/build/fooevents-calendar-shortcode/view.asset.php (added)
-
tags/1.7.7/build/fooevents-calendar-shortcode/view.js (added)
-
tags/1.7.7/build/fooevents-calendar-shortcode/view.js.map (added)
-
tags/1.7.7/build/images (added)
-
tags/1.7.7/build/images/calendar-block.fa7a1cbd.png (added)
-
tags/1.7.7/class-fooevents-calendar.php (added)
-
tags/1.7.7/classes (added)
-
tags/1.7.7/classes/blocks (added)
-
tags/1.7.7/classes/blocks/class-fooevents-calendar-blocks-calendar.php (added)
-
tags/1.7.7/classes/blocks/class-fooevents-calendar-blocks.php (added)
-
tags/1.7.7/classes/class-fooevents-calendar-widget.php (added)
-
tags/1.7.7/config.php (added)
-
tags/1.7.7/css (added)
-
tags/1.7.7/css/calendar-admin.css (added)
-
tags/1.7.7/css/calendar-tooltip.css (added)
-
tags/1.7.7/css/fooevents-fullcalendar-dark.css (added)
-
tags/1.7.7/css/fooevents-fullcalendar-flat.css (added)
-
tags/1.7.7/css/fooevents-fullcalendar-light.css (added)
-
tags/1.7.7/css/fooevents-fullcalendar-minimalist.css (added)
-
tags/1.7.7/css/fooevents-list-dark-card.css (added)
-
tags/1.7.7/css/fooevents-list-light-card.css (added)
-
tags/1.7.7/css/fullcalendar.css (added)
-
tags/1.7.7/css/fullcalendar.min.css (added)
-
tags/1.7.7/css/fullcalendar.print.css (added)
-
tags/1.7.7/css/fullcalendar.print.min.css (added)
-
tags/1.7.7/css/style.css (added)
-
tags/1.7.7/default.mo (added)
-
tags/1.7.7/default.po (added)
-
tags/1.7.7/fooevents-calendar.php (added)
-
tags/1.7.7/getting-started-readme.txt (added)
-
tags/1.7.7/images (added)
-
tags/1.7.7/images/cal.png (added)
-
tags/1.7.7/images/fooevents-logo.png (added)
-
tags/1.7.7/images/help.png (added)
-
tags/1.7.7/js (added)
-
tags/1.7.7/js/calendar-admin.js (added)
-
tags/1.7.7/js/fullcalendar.js (added)
-
tags/1.7.7/js/fullcalendar.min.js (added)
-
tags/1.7.7/js/gcal.js (added)
-
tags/1.7.7/js/gcal.min.js (added)
-
tags/1.7.7/js/locale-all.js (added)
-
tags/1.7.7/js/moment.js (added)
-
tags/1.7.7/languages (added)
-
tags/1.7.7/languages/fooevents-calendar-af.mo (added)
-
tags/1.7.7/languages/fooevents-calendar-af.po (added)
-
tags/1.7.7/languages/fooevents-calendar-ca.mo (added)
-
tags/1.7.7/languages/fooevents-calendar-ca.po (added)
-
tags/1.7.7/languages/fooevents-calendar-cs_CZ.mo (added)
-
tags/1.7.7/languages/fooevents-calendar-cs_CZ.po (added)
-
tags/1.7.7/languages/fooevents-calendar-de_AT.mo (added)
-
tags/1.7.7/languages/fooevents-calendar-de_AT.po (added)
-
tags/1.7.7/languages/fooevents-calendar-de_CH.mo (added)
-
tags/1.7.7/languages/fooevents-calendar-de_CH.po (added)
-
tags/1.7.7/languages/fooevents-calendar-de_DE.mo (added)
-
tags/1.7.7/languages/fooevents-calendar-de_DE.po (added)
-
tags/1.7.7/languages/fooevents-calendar-es_AR.mo (added)
-
tags/1.7.7/languages/fooevents-calendar-es_AR.po (added)
-
tags/1.7.7/languages/fooevents-calendar-es_CL.mo (added)
-
tags/1.7.7/languages/fooevents-calendar-es_CL.po (added)
-
tags/1.7.7/languages/fooevents-calendar-es_CO.mo (added)
-
tags/1.7.7/languages/fooevents-calendar-es_CO.po (added)
-
tags/1.7.7/languages/fooevents-calendar-es_CR.mo (added)
-
tags/1.7.7/languages/fooevents-calendar-es_CR.po (added)
-
tags/1.7.7/languages/fooevents-calendar-es_DO.mo (added)
-
tags/1.7.7/languages/fooevents-calendar-es_DO.po (added)
-
tags/1.7.7/languages/fooevents-calendar-es_EC.mo (added)
-
tags/1.7.7/languages/fooevents-calendar-es_EC.po (added)
-
tags/1.7.7/languages/fooevents-calendar-es_ES.mo (added)
-
tags/1.7.7/languages/fooevents-calendar-es_ES.po (added)
-
tags/1.7.7/languages/fooevents-calendar-es_GT.mo (added)
-
tags/1.7.7/languages/fooevents-calendar-es_GT.po (added)
-
tags/1.7.7/languages/fooevents-calendar-es_HN.mo (added)
-
tags/1.7.7/languages/fooevents-calendar-es_HN.po (added)
-
tags/1.7.7/languages/fooevents-calendar-es_MX.mo (added)
-
tags/1.7.7/languages/fooevents-calendar-es_MX.po (added)
-
tags/1.7.7/languages/fooevents-calendar-es_PE.mo (added)
-
tags/1.7.7/languages/fooevents-calendar-es_PE.po (added)
-
tags/1.7.7/languages/fooevents-calendar-es_PR.mo (added)
-
tags/1.7.7/languages/fooevents-calendar-es_PR.po (added)
-
tags/1.7.7/languages/fooevents-calendar-es_UY.mo (added)
-
tags/1.7.7/languages/fooevents-calendar-es_UY.po (added)
-
tags/1.7.7/languages/fooevents-calendar-es_VE.mo (added)
-
tags/1.7.7/languages/fooevents-calendar-es_VE.po (added)
-
tags/1.7.7/languages/fooevents-calendar-fr_BE.mo (added)
-
tags/1.7.7/languages/fooevents-calendar-fr_BE.po (added)
-
tags/1.7.7/languages/fooevents-calendar-fr_CA.mo (added)
-
tags/1.7.7/languages/fooevents-calendar-fr_CA.po (added)
-
tags/1.7.7/languages/fooevents-calendar-fr_FR.mo (added)
-
tags/1.7.7/languages/fooevents-calendar-fr_FR.po (added)
-
tags/1.7.7/languages/fooevents-calendar-it_IT.mo (added)
-
tags/1.7.7/languages/fooevents-calendar-it_IT.po (added)
-
tags/1.7.7/languages/fooevents-calendar-nl_BE.mo (added)
-
tags/1.7.7/languages/fooevents-calendar-nl_BE.po (added)
-
tags/1.7.7/languages/fooevents-calendar-nl_NL.mo (added)
-
tags/1.7.7/languages/fooevents-calendar-nl_NL.po (added)
-
tags/1.7.7/languages/fooevents-calendar-pt_BR.mo (added)
-
tags/1.7.7/languages/fooevents-calendar-pt_BR.po (added)
-
tags/1.7.7/languages/fooevents-calendar-pt_PT.mo (added)
-
tags/1.7.7/languages/fooevents-calendar-pt_PT.po (added)
-
tags/1.7.7/languages/readme.txt (added)
-
tags/1.7.7/license.txt (added)
-
tags/1.7.7/package-lock.json (added)
-
tags/1.7.7/package.json (added)
-
tags/1.7.7/readme.txt (added)
-
tags/1.7.7/screenshot-1.png (added)
-
tags/1.7.7/screenshot-2.png (added)
-
tags/1.7.7/screenshot-3.png (added)
-
tags/1.7.7/screenshot-4.png (added)
-
tags/1.7.7/screenshot-5.png (added)
-
tags/1.7.7/screenshot-6.png (added)
-
tags/1.7.7/screenshot-7.png (added)
-
tags/1.7.7/templates (added)
-
tags/1.7.7/templates/calendar-options-eventbrite.php (added)
-
tags/1.7.7/templates/calendar-options-layout.php (added)
-
tags/1.7.7/templates/calendar-options.php (added)
-
tags/1.7.7/templates/calendar.php (added)
-
tags/1.7.7/templates/event.php (added)
-
tags/1.7.7/templates/eventbrite-options.php (added)
-
tags/1.7.7/templates/eventmetabox.php (added)
-
tags/1.7.7/templates/list-of-events.php (added)
-
tags/1.7.7/updatelog.txt (added)
-
tags/1.7.7/vendors (added)
-
tags/1.7.7/vendors/eventbrite (added)
-
tags/1.7.7/vendors/eventbrite/.travis.yml (added)
-
tags/1.7.7/vendors/eventbrite/AccessMethods.php (added)
-
tags/1.7.7/vendors/eventbrite/Authenticate.php (added)
-
tags/1.7.7/vendors/eventbrite/HttpClient.php (added)
-
tags/1.7.7/vendors/eventbrite/README.md (added)
-
tags/1.7.7/vendors/eventbrite/composer.json (added)
-
tags/1.7.7/vendors/eventbrite/phpunit.xml (added)
-
tags/1.7.7/vendors/eventbrite/tests (added)
-
tags/1.7.7/vendors/eventbrite/tests/ClientTest.php (added)
-
tags/1.7.7/vendors/index.php (added)
-
trunk/class-fooevents-calendar.php (modified) (9 diffs)
-
trunk/default.mo (modified) (previous)
-
trunk/default.po (modified) (4 diffs)
-
trunk/fooevents-calendar.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/templates/calendar.php (modified) (1 diff)
-
trunk/updatelog.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
fooevents-calendar/trunk/class-fooevents-calendar.php
r3172946 r3174895 165 165 wp_enqueue_style( 'fooevents-calendar-admin-style', $this->config->stylesPath . 'calendar-admin.css', array(), $this->config->plugin_data['Version'] ); 166 166 167 if ( ( isset( $_GET['post'] ) && isset( $_GET['action'] ) && 'edit' === $_GET['action'] ) || ( isset( $_GET['page'] ) && 'fooevents-event-report' === $_GET['page'] ) || ( isset( $_GET['post_type'] ) ) ) { // phpcs:ignore WordPress.Security.NonceVerification167 // if ( ( isset( $_GET['post'] ) && isset( $_GET['action'] ) && 'edit' === $_GET['action'] ) || ( isset( $_GET['page'] ) && 'fooevents-event-report' === $_GET['page'] ) || ( isset( $_GET['post_type'] ) ) ) { // phpcs:ignore WordPress.Security.NonceVerification 168 168 169 169 wp_enqueue_style( 'fooevents-calendar-jquery', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css', array(), '1.0.0' ); 170 170 171 }171 // } 172 172 173 173 if ( ! is_plugin_active( 'fooevents/fooevents.php' ) ) { … … 212 212 213 213 } 214 215 214 } 216 215 … … 345 344 $global_fooevents_calendar_post_types = get_option( 'globalFooEventsCalendarPostTypes' ); 346 345 346 347 347 if ( empty( $global_fooevents_calendar_post_types ) ) { 348 348 349 $global_fooevents_calendar_post_types = array( );349 $global_fooevents_calendar_post_types = array('post', 'page'); 350 350 351 351 } … … 1770 1770 } 1771 1771 1772 // $events = new WP_Query( $args );1772 // $events = new WP_Query( $args ); 1773 1773 1774 1774 $events = get_posts( $args ); … … 1776 1776 return $events; 1777 1777 1778 1779 1780 //return $events->get_posts(); 1778 // return $events->get_posts(); 1781 1779 } 1782 1780 … … 1793 1791 if ( empty( $calendar_post_types ) ) { 1794 1792 1795 $calendar_post_types = array( 'post' );1793 $calendar_post_types = array( 'post', 'page' ); 1796 1794 1797 1795 } … … 1869 1867 } 1870 1868 1871 $product = wc_get_product( $event->ID ); 1869 $product = ''; 1870 if ( function_exists( 'wc_get_product' ) ) { 1871 1872 $product = wc_get_product( $event->ID ); 1873 1874 } 1875 1872 1876 $stock = ''; 1873 1877 $in_stock = ''; 1874 1875 1878 if ( $product ) { 1876 1879 $stock = $product->get_stock_quantity(); … … 2240 2243 foreach ( $attributes as $key => $attribute ) { 2241 2244 2242 if ( is_string( $attribute) && strpos( $attribute, ':' ) !== false ) {2245 if ( is_string( $attribute ) && strpos( $attribute, ':' ) !== false ) { 2243 2246 2244 2247 $att_ret = array(); … … 3369 3372 public function display_meta_errors() { 3370 3373 3371 if ( ! session_id() ) { 3372 3373 session_start(); 3374 3375 } 3376 3377 if ( ! empty( $_SESSION ) ) { 3378 3379 if ( array_key_exists( 'fooevents_calendar_errors', $_SESSION ) ) { 3380 3381 echo '<div class="error">'; 3382 foreach ( $_SESSION['fooevents_calendar_errors'] as $error ) { 3383 echo '<p>' . esc_attr( $error ) . '</p>'; 3374 if ( ! function_exists( 'is_plugin_active' ) || ! function_exists( 'is_plugin_active_for_network' ) ) { 3375 3376 require_once ABSPATH . '/wp-admin/includes/plugin.php'; 3377 3378 } 3379 3380 if ( is_plugin_active( 'fooevents/fooevents.php' ) && is_plugin_active( 'woocommerce/woocommerce.php' ) ) { 3381 3382 if ( ! session_id() ) { 3383 3384 session_start(); 3385 3386 } 3387 3388 if ( ! empty( $_SESSION ) ) { 3389 3390 if ( array_key_exists( 'fooevents_calendar_errors', $_SESSION ) ) { 3391 3392 echo '<div class="error">'; 3393 foreach ( $_SESSION['fooevents_calendar_errors'] as $error ) { 3394 echo '<p>' . esc_attr( $error ) . '</p>'; 3395 } 3396 echo '</div>'; 3397 3384 3398 } 3385 echo '</div>'; 3386 3387 } 3388 3389 unset( $_SESSION['fooevents_calendar_errors'] ); 3390 3399 3400 unset( $_SESSION['fooevents_calendar_errors'] ); 3401 3402 } 3391 3403 } 3392 3404 } -
fooevents-calendar/trunk/default.po
r3172946 r3174895 2 2 msgstr "" 3 3 "Project-Id-Version: FooEvents Calendar\n" 4 "POT-Creation-Date: 2024-10-2 1 11:38+0200\n"5 "PO-Revision-Date: 2024-10-2 1 11:38+0200\n"4 "POT-Creation-Date: 2024-10-24 12:17+0200\n" 5 "PO-Revision-Date: 2024-10-24 12:17+0200\n" 6 6 "Last-Translator: \n" 7 7 "Language-Team: \n" … … 31 31 msgstr "" 32 32 33 #: class-fooevents-calendar.php:25 5templates/calendar-options-layout.php:1633 #: class-fooevents-calendar.php:254 templates/calendar-options-layout.php:16 34 34 msgid "FooEvents" 35 35 msgstr "" 36 36 37 #: class-fooevents-calendar.php:26 3 class-fooevents-calendar.php:230537 #: class-fooevents-calendar.php:262 class-fooevents-calendar.php:2308 38 38 #: src/fooevents-calendar-shortcode/edit.js:66 39 39 #: templates/calendar-options-layout.php:26 … … 41 41 msgstr "" 42 42 43 #: class-fooevents-calendar.php:29 143 #: class-fooevents-calendar.php:290 44 44 msgid "You do not have sufficient permissions to access this page." 45 45 msgstr "" … … 82 82 msgstr "" 83 83 84 #: class-fooevents-calendar.php:231 184 #: class-fooevents-calendar.php:2314 85 85 msgid "Enable 24 hour time format" 86 86 msgstr "" 87 87 88 #: class-fooevents-calendar.php:231 588 #: class-fooevents-calendar.php:2318 89 89 msgid "Uses 24 hour time format on the calendar." 90 90 msgstr "" 91 91 92 #: class-fooevents-calendar.php:23 1992 #: class-fooevents-calendar.php:2322 93 93 msgid "Only display start day" 94 94 msgstr "" 95 95 96 #: class-fooevents-calendar.php:232 396 #: class-fooevents-calendar.php:2326 97 97 msgid "When multi-day plugin is active only display the event start day" 98 98 msgstr "" 99 99 100 #: class-fooevents-calendar.php:23 27100 #: class-fooevents-calendar.php:2330 101 101 msgid "Enable full day events" 102 102 msgstr "" 103 103 104 #: class-fooevents-calendar.php:233 1104 #: class-fooevents-calendar.php:2334 105 105 msgid "Removes event time from calendar entry titles." 106 106 msgstr "" 107 107 108 #: class-fooevents-calendar.php:233 5templates/calendar-options.php:45108 #: class-fooevents-calendar.php:2338 templates/calendar-options.php:45 109 109 msgid "Calendar theme" 110 110 msgstr "" 111 111 112 #: class-fooevents-calendar.php:234 1 class-fooevents-calendar.php:2357112 #: class-fooevents-calendar.php:2344 class-fooevents-calendar.php:2360 113 113 #: templates/calendar-options.php:48 templates/calendar-options.php:61 114 114 msgid "Default" 115 115 msgstr "" 116 116 117 #: class-fooevents-calendar.php:234 2templates/calendar-options.php:49117 #: class-fooevents-calendar.php:2345 templates/calendar-options.php:49 118 118 msgid "Light" 119 119 msgstr "" 120 120 121 #: class-fooevents-calendar.php:234 3templates/calendar-options.php:50121 #: class-fooevents-calendar.php:2346 templates/calendar-options.php:50 122 122 msgid "Dark" 123 123 msgstr "" 124 124 125 #: class-fooevents-calendar.php:234 4templates/calendar-options.php:51125 #: class-fooevents-calendar.php:2347 templates/calendar-options.php:51 126 126 msgid "Flat" 127 127 msgstr "" 128 128 129 #: class-fooevents-calendar.php:234 5templates/calendar-options.php:52129 #: class-fooevents-calendar.php:2348 templates/calendar-options.php:52 130 130 msgid "Minimalist" 131 131 msgstr "" 132 132 133 #: class-fooevents-calendar.php:23 47133 #: class-fooevents-calendar.php:2350 134 134 msgid "Selects calendar theme to be used on Wordpress frontend." 135 135 msgstr "" 136 136 137 #: class-fooevents-calendar.php:235 1templates/calendar-options.php:58137 #: class-fooevents-calendar.php:2354 templates/calendar-options.php:58 138 138 msgid "Events list theme" 139 139 msgstr "" 140 140 141 #: class-fooevents-calendar.php:23 58templates/calendar-options.php:62141 #: class-fooevents-calendar.php:2361 templates/calendar-options.php:62 142 142 msgid "Light Card" 143 143 msgstr "" 144 144 145 #: class-fooevents-calendar.php:23 59templates/calendar-options.php:63145 #: class-fooevents-calendar.php:2362 templates/calendar-options.php:63 146 146 msgid "Dark Card" 147 147 msgstr "" 148 148 149 #: class-fooevents-calendar.php:236 1149 #: class-fooevents-calendar.php:2364 150 150 msgid "Selects events list theme to be used on Wordpress frontend." 151 151 msgstr "" -
fooevents-calendar/trunk/fooevents-calendar.php
r3172946 r3174895 4 4 * Plugin Name: Events Calendar by FooEvents 5 5 * Description: Display your events in a stylish calendar on your WordPress website using simple short codes and widgets. 6 * Version: 1.7. 66 * Version: 1.7.7 7 7 * Author: FooEvents 8 8 * Plugin URI: https://www.fooevents.com/fooevents-calendar/ -
fooevents-calendar/trunk/readme.txt
r3172946 r3174895 6 6 Tested up to: 6.6 7 7 Requires at least: 6.0 8 Stable tag: 1.7. 68 Stable tag: 1.7.7 9 9 Requires PHP: 7.3 10 10 … … 185 185 == Changelog == 186 186 187 = 1.7.7 = 188 * FIXED: Post type association bug on new installs. * 189 * FIXED: Date picker styling bug when WooCommerce plugin not active. * 190 * FIXED: PHP and SESSION errors on new install. * 191 * FIXED: Various other small bugs. * 192 * TESTED ON: WordPress 6.6.2 and WooCommerce 9.3.3. * 193 187 194 = 1.7.6 = 188 195 * FIXED: Event listing shortcode bug. * -
fooevents-calendar/trunk/templates/calendar.php
r3160868 r3174895 11 11 <div id='<?php echo esc_attr( $calendar_id ); ?>' class="fooevents_calendar" style="clear:both"></div> 12 12 <script> 13 (function($) { 14 var localObj = '<?php echo $local_args['json_events']; ?>'; 15 var settings = JSON.parse(localObj); 16 if( jQuery('#'+settings.id).length ) { 17 jQuery('#'+settings.id).fullCalendar(settings); 18 } 19 })(jQuery); 13 document.addEventListener("DOMContentLoaded", (event) => { 14 (function($) { 15 var localObj = '<?php echo $local_args['json_events']; ?>'; 16 var settings = JSON.parse(localObj); 17 if( jQuery('#'+settings.id).length ) { 18 jQuery('#'+settings.id).fullCalendar(settings); 19 } 20 })(jQuery); 21 }); 20 22 </script> -
fooevents-calendar/trunk/updatelog.txt
r3172946 r3174895 3 3 4 4 ------------------ 5 1.7.7 6 FIXED: Post type association bug on new installs. 7 FIXED: Date picker styling bug when WooCommerce plugin not active. 8 FIXED: PHP and SESSION errors on new install. 9 FIXED: Various other small bugs. 10 TESTED ON: WordPress 6.6.2 and WooCommerce 9.3.3. 11 5 12 1.7.6 6 13 FIXED: Event listing shortcode bug.
Note: See TracChangeset
for help on using the changeset viewer.