Plugin Directory

Changeset 3174895


Ignore:
Timestamp:
10/24/2024 10:25:50 AM (17 months ago)
Author:
fooevents
Message:

Release 1.7.7

Location:
fooevents-calendar
Files:
147 added
1 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • fooevents-calendar/trunk/class-fooevents-calendar.php

    r3172946 r3174895  
    165165        wp_enqueue_style( 'fooevents-calendar-admin-style', $this->config->stylesPath . 'calendar-admin.css', array(), $this->config->plugin_data['Version'] );
    166166
    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.NonceVerification
     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.NonceVerification
    168168
    169169            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' );
    170170
    171         }
     171        // }
    172172
    173173        if ( ! is_plugin_active( 'fooevents/fooevents.php' ) ) {
     
    212212
    213213        }
    214 
    215214    }
    216215
     
    345344        $global_fooevents_calendar_post_types = get_option( 'globalFooEventsCalendarPostTypes' );
    346345
     346
    347347        if ( empty( $global_fooevents_calendar_post_types ) ) {
    348348
    349             $global_fooevents_calendar_post_types = array();
     349            $global_fooevents_calendar_post_types = array('post', 'page');
    350350
    351351        }
     
    17701770        }
    17711771
    1772         //$events = new WP_Query( $args );
     1772        // $events = new WP_Query( $args );
    17731773
    17741774        $events = get_posts( $args );
     
    17761776        return $events;
    17771777
    1778        
    1779 
    1780         //return $events->get_posts();
     1778        // return $events->get_posts();
    17811779    }
    17821780
     
    17931791        if ( empty( $calendar_post_types ) ) {
    17941792
    1795             $calendar_post_types = array( 'post' );
     1793            $calendar_post_types = array( 'post', 'page' );
    17961794
    17971795        }
     
    18691867            }
    18701868
    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
    18721876            $stock    = '';
    18731877            $in_stock = '';
    1874 
    18751878            if ( $product ) {
    18761879                $stock    = $product->get_stock_quantity();
     
    22402243        foreach ( $attributes as $key => $attribute ) {
    22412244
    2242             if ( is_string($attribute) && strpos( $attribute, ':' ) !== false ) {
     2245            if ( is_string( $attribute ) && strpos( $attribute, ':' ) !== false ) {
    22432246
    22442247                $att_ret = array();
     
    33693372    public function display_meta_errors() {
    33703373
    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
    33843398                }
    3385                 echo '</div>';
    3386 
    3387             }
    3388 
    3389             unset( $_SESSION['fooevents_calendar_errors'] );
    3390 
     3399
     3400                unset( $_SESSION['fooevents_calendar_errors'] );
     3401
     3402            }
    33913403        }
    33923404    }
  • fooevents-calendar/trunk/default.po

    r3172946 r3174895  
    22msgstr ""
    33"Project-Id-Version: FooEvents Calendar\n"
    4 "POT-Creation-Date: 2024-10-21 11:38+0200\n"
    5 "PO-Revision-Date: 2024-10-21 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"
    66"Last-Translator: \n"
    77"Language-Team: \n"
     
    3131msgstr ""
    3232
    33 #: class-fooevents-calendar.php:255 templates/calendar-options-layout.php:16
     33#: class-fooevents-calendar.php:254 templates/calendar-options-layout.php:16
    3434msgid "FooEvents"
    3535msgstr ""
    3636
    37 #: class-fooevents-calendar.php:263 class-fooevents-calendar.php:2305
     37#: class-fooevents-calendar.php:262 class-fooevents-calendar.php:2308
    3838#: src/fooevents-calendar-shortcode/edit.js:66
    3939#: templates/calendar-options-layout.php:26
     
    4141msgstr ""
    4242
    43 #: class-fooevents-calendar.php:291
     43#: class-fooevents-calendar.php:290
    4444msgid "You do not have sufficient permissions to access this page."
    4545msgstr ""
     
    8282msgstr ""
    8383
    84 #: class-fooevents-calendar.php:2311
     84#: class-fooevents-calendar.php:2314
    8585msgid "Enable 24 hour time format"
    8686msgstr ""
    8787
    88 #: class-fooevents-calendar.php:2315
     88#: class-fooevents-calendar.php:2318
    8989msgid "Uses 24 hour time format on the calendar."
    9090msgstr ""
    9191
    92 #: class-fooevents-calendar.php:2319
     92#: class-fooevents-calendar.php:2322
    9393msgid "Only display start day"
    9494msgstr ""
    9595
    96 #: class-fooevents-calendar.php:2323
     96#: class-fooevents-calendar.php:2326
    9797msgid "When multi-day plugin is active only display the event start day"
    9898msgstr ""
    9999
    100 #: class-fooevents-calendar.php:2327
     100#: class-fooevents-calendar.php:2330
    101101msgid "Enable full day events"
    102102msgstr ""
    103103
    104 #: class-fooevents-calendar.php:2331
     104#: class-fooevents-calendar.php:2334
    105105msgid "Removes event time from calendar entry titles."
    106106msgstr ""
    107107
    108 #: class-fooevents-calendar.php:2335 templates/calendar-options.php:45
     108#: class-fooevents-calendar.php:2338 templates/calendar-options.php:45
    109109msgid "Calendar theme"
    110110msgstr ""
    111111
    112 #: class-fooevents-calendar.php:2341 class-fooevents-calendar.php:2357
     112#: class-fooevents-calendar.php:2344 class-fooevents-calendar.php:2360
    113113#: templates/calendar-options.php:48 templates/calendar-options.php:61
    114114msgid "Default"
    115115msgstr ""
    116116
    117 #: class-fooevents-calendar.php:2342 templates/calendar-options.php:49
     117#: class-fooevents-calendar.php:2345 templates/calendar-options.php:49
    118118msgid "Light"
    119119msgstr ""
    120120
    121 #: class-fooevents-calendar.php:2343 templates/calendar-options.php:50
     121#: class-fooevents-calendar.php:2346 templates/calendar-options.php:50
    122122msgid "Dark"
    123123msgstr ""
    124124
    125 #: class-fooevents-calendar.php:2344 templates/calendar-options.php:51
     125#: class-fooevents-calendar.php:2347 templates/calendar-options.php:51
    126126msgid "Flat"
    127127msgstr ""
    128128
    129 #: class-fooevents-calendar.php:2345 templates/calendar-options.php:52
     129#: class-fooevents-calendar.php:2348 templates/calendar-options.php:52
    130130msgid "Minimalist"
    131131msgstr ""
    132132
    133 #: class-fooevents-calendar.php:2347
     133#: class-fooevents-calendar.php:2350
    134134msgid "Selects calendar theme to be used on Wordpress frontend."
    135135msgstr ""
    136136
    137 #: class-fooevents-calendar.php:2351 templates/calendar-options.php:58
     137#: class-fooevents-calendar.php:2354 templates/calendar-options.php:58
    138138msgid "Events list theme"
    139139msgstr ""
    140140
    141 #: class-fooevents-calendar.php:2358 templates/calendar-options.php:62
     141#: class-fooevents-calendar.php:2361 templates/calendar-options.php:62
    142142msgid "Light Card"
    143143msgstr ""
    144144
    145 #: class-fooevents-calendar.php:2359 templates/calendar-options.php:63
     145#: class-fooevents-calendar.php:2362 templates/calendar-options.php:63
    146146msgid "Dark Card"
    147147msgstr ""
    148148
    149 #: class-fooevents-calendar.php:2361
     149#: class-fooevents-calendar.php:2364
    150150msgid "Selects events list theme to be used on Wordpress frontend."
    151151msgstr ""
  • fooevents-calendar/trunk/fooevents-calendar.php

    r3172946 r3174895  
    44 * Plugin Name: Events Calendar by FooEvents
    55 * Description: Display your events in a stylish calendar on your WordPress website using simple short codes and widgets.
    6  * Version: 1.7.6
     6 * Version: 1.7.7
    77 * Author: FooEvents
    88 * Plugin URI: https://www.fooevents.com/fooevents-calendar/
  • fooevents-calendar/trunk/readme.txt

    r3172946 r3174895  
    66Tested up to: 6.6
    77Requires at least: 6.0
    8 Stable tag: 1.7.6
     8Stable tag: 1.7.7
    99Requires PHP: 7.3
    1010
     
    185185== Changelog ==
    186186
     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
    187194= 1.7.6 =
    188195* FIXED: Event listing shortcode bug. *
  • fooevents-calendar/trunk/templates/calendar.php

    r3160868 r3174895  
    1111<div id='<?php echo esc_attr( $calendar_id ); ?>' class="fooevents_calendar" style="clear:both"></div>
    1212<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);
     13document.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});
    2022</script>
  • fooevents-calendar/trunk/updatelog.txt

    r3172946 r3174895  
    33
    44------------------
     51.7.7
     6FIXED: Post type association bug on new installs.
     7FIXED: Date picker styling bug when WooCommerce plugin not active.
     8FIXED: PHP and SESSION errors on new install.
     9FIXED: Various other small bugs.
     10TESTED ON: WordPress 6.6.2 and WooCommerce 9.3.3.
     11
    5121.7.6
    613FIXED: Event listing shortcode bug.
Note: See TracChangeset for help on using the changeset viewer.