Plugin Directory

Changeset 2462242


Ignore:
Timestamp:
01/25/2021 12:46:14 PM (5 years ago)
Author:
fooevents
Message:

Release 1.6.7

Location:
fooevents-calendar
Files:
64 added
2 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • fooevents-calendar/trunk/default.po

    r2438934 r2462242  
    22msgstr ""
    33"Project-Id-Version: FooEvents Calendar\n"
    4 "POT-Creation-Date: 2020-12-14 10:33+0200\n"
    5 "PO-Revision-Date: 2020-12-14 10:33+0200\n"
     4"POT-Creation-Date: 2021-01-25 09:03+0200\n"
     5"PO-Revision-Date: 2021-01-25 09:03+0200\n"
    66"Last-Translator: \n"
    77"Language-Team: \n"
     
    5959msgstr ""
    6060
    61 #: fooevents-calendar.php:184 fooevents-calendar.php:1318
     61#: fooevents-calendar.php:184 fooevents-calendar.php:1321
    6262msgid "Today"
    6363msgstr ""
     
    9999msgstr ""
    100100
    101 #: fooevents-calendar.php:1020
     101#: fooevents-calendar.php:1023
    102102#, php-format
    103103msgid "%d events added. %d events updated."
    104104msgstr ""
    105105
    106 #: fooevents-calendar.php:1083 fooevents-calendar.php:1234
     106#: fooevents-calendar.php:1086 fooevents-calendar.php:1237
    107107msgid "Book ticket"
    108108msgstr ""
    109109
    110 #: fooevents-calendar.php:1990
     110#: fooevents-calendar.php:2017
    111111msgid "Calendar Settings"
    112112msgstr ""
    113113
    114 #: fooevents-calendar.php:1996
     114#: fooevents-calendar.php:2023
    115115msgid "Enable 24 hour time format"
    116116msgstr ""
    117117
    118 #: fooevents-calendar.php:2000
     118#: fooevents-calendar.php:2027
    119119msgid "Uses 24 hour time format on the calendar."
    120120msgstr ""
    121121
    122 #: fooevents-calendar.php:2005 templates/calendar-options.php:16
     122#: fooevents-calendar.php:2032 templates/calendar-options.php:16
    123123msgid "Only display start day"
    124124msgstr ""
    125125
    126 #: fooevents-calendar.php:2009
     126#: fooevents-calendar.php:2036
    127127msgid "When multi-day plugin is active only display the event start day"
    128128msgstr ""
    129129
    130 #: fooevents-calendar.php:2013
     130#: fooevents-calendar.php:2040
    131131msgid "Enable full day events"
    132132msgstr ""
    133133
    134 #: fooevents-calendar.php:2017
     134#: fooevents-calendar.php:2044
    135135msgid "Removes event time from calendar entry titles."
    136136msgstr ""
    137137
    138 #: fooevents-calendar.php:2021 templates/calendar-options.php:30
     138#: fooevents-calendar.php:2048 templates/calendar-options.php:30
    139139msgid "Calendar theme"
    140140msgstr ""
    141141
    142 #: fooevents-calendar.php:2027 fooevents-calendar.php:2043
     142#: fooevents-calendar.php:2054 fooevents-calendar.php:2070
    143143msgid "Default"
    144144msgstr ""
    145145
    146 #: fooevents-calendar.php:2028
     146#: fooevents-calendar.php:2055
    147147msgid "Light"
    148148msgstr ""
    149149
    150 #: fooevents-calendar.php:2029
     150#: fooevents-calendar.php:2056
    151151msgid "Dark"
    152152msgstr ""
    153153
    154 #: fooevents-calendar.php:2030
     154#: fooevents-calendar.php:2057
    155155msgid "Flat"
    156156msgstr ""
    157157
    158 #: fooevents-calendar.php:2031
     158#: fooevents-calendar.php:2058
    159159msgid "Minimalist"
    160160msgstr ""
    161161
    162 #: fooevents-calendar.php:2033
     162#: fooevents-calendar.php:2060
    163163msgid "Selects calendar theme to be used on Wordpress frontend."
    164164msgstr ""
    165165
    166 #: fooevents-calendar.php:2037 templates/calendar-options.php:43
     166#: fooevents-calendar.php:2064 templates/calendar-options.php:43
    167167msgid "Events list theme"
    168168msgstr ""
    169169
    170 #: fooevents-calendar.php:2044
     170#: fooevents-calendar.php:2071
    171171msgid "Light Card"
    172172msgstr ""
    173173
    174 #: fooevents-calendar.php:2045
     174#: fooevents-calendar.php:2072
    175175msgid "Dark Card"
    176176msgstr ""
    177177
    178 #: fooevents-calendar.php:2047
     178#: fooevents-calendar.php:2074
    179179msgid "Selects events list theme to be used on Wordpress frontend."
    180180msgstr ""
  • fooevents-calendar/trunk/fooevents-calendar.php

    r2438934 r2462242  
    33 * Plugin Name: FooEvents Calendar
    44 * Description: Add event information to any post, page or custom post type and display it in a stylish calendar.
    5  * Version: 1.6.3
     5 * Version: 1.6.7
    66 * Author: FooEvents
    77 * Plugin URI: https://www.fooevents.com/fooevents-calendar/
     
    4242        add_action('save_post', array($this, 'save_posts_meta_box'));
    4343        add_action('admin_menu', array($this, 'add_admin_menu'), 12);       
    44         add_action('admin_init', array($this, 'display_meta_errors'));     
     44        add_action('admin_notices', array($this, 'display_meta_errors'));     
    4545        add_action('activated_plugin', array($this, 'activate_plugin'));
    4646        add_action('admin_menu', array( $this, 'add_intro_menu_item'));     
     
    784784            $_SESSION['fooevents_calendar_errors'] = $errors;
    785785            session_write_close();
     786           
    786787            return;
    787788        }
     
    896897            $_SESSION['fooevents_calendar_errors'] = $errors;
    897898            session_write_close();
     899           
    898900            return;
    899901        }
    900902       
     903        session_write_close();
    901904       
    902905    }
     
    11771180
    11781181            $FooEvents_Bookings = new FooEvents_Bookings();
    1179             $booking_events = $FooEvents_Bookings->get_bookings_for_calendar();
     1182            $booking_events = $FooEvents_Bookings->get_bookings_for_calendar($include_cats);
    11801183
    11811184            $events = array_merge_recursive($events, $booking_events);
     
    11831186        }
    11841187       
    1185         $non_product_events = $this->get_non_product_events();
     1188        $non_product_events = $this->get_non_product_events($include_cats);
    11861189        $non_product_events = $this->fetch_events($non_product_events, 'events_list', true);
    11871190       
     
    13341337           
    13351338        }
    1336 
     1339       
     1340        if($display_type == 'listWeek' || $display_type == 'listMonth') {
     1341           
     1342            $attributes['displayEventEnd'] = false;
     1343           
     1344        }
     1345       
    13371346        $events = array();
    13381347        $non_product_events = array();
     
    13451354        }
    13461355
    1347         $non_product_events = $this->get_non_product_events();
     1356        $non_product_events = $this->get_non_product_events($include_cats);
    13481357        $non_product_events = $this->fetch_events($non_product_events, $display_type, false);
    13491358
     
    13601369
    13611370            $FooEvents_Bookings = new FooEvents_Bookings();
    1362             $booking_events = $FooEvents_Bookings->get_bookings_for_calendar();
     1371            $booking_events = $FooEvents_Bookings->get_bookings_for_calendar($include_cats);
    13631372
    13641373            $events = array_merge_recursive($events, $booking_events);
     
    15701579     * @return array
    15711580     */
    1572     public function get_non_product_events() {
     1581    public function get_non_product_events($include_cats = array()) {
    15731582       
    15741583        $globalFooEventsCalendarPostTypes = get_option('globalFooEventsCalendarPostTypes');
    15751584
     1585
    15761586        if(empty($globalFooEventsCalendarPostTypes)) {
    15771587           
     
    15811591       
    15821592        array_push($globalFooEventsCalendarPostTypes, 'fe_eventbrite_event');
    1583        
     1593
    15841594        $args = array (
    15851595        'post_type' => $globalFooEventsCalendarPostTypes,   
     
    15931603            ),
    15941604        );
     1605
     1606        if(!empty($include_cats)) {
     1607
     1608            $args['tax_query'] = array('relation' => 'OR');
     1609           
     1610            foreach($include_cats as $include_cat) {
     1611               
     1612                $args['tax_query'][] = array(
     1613                    'taxonomy' => 'category',
     1614                    'field' => 'slug',
     1615                    'terms' => $include_cat
     1616                );
     1617               
     1618            }
     1619           
     1620        }
    15951621       
    15961622        $events = new WP_Query($args);
    1597        
     1623
     1624   
    15981625        return $events->get_posts();
    15991626       
     
    30813108        }
    30823109       
    3083        
     3110        //session_write_close();
    30843111       
    30853112    }
  • fooevents-calendar/trunk/readme.txt

    r2438941 r2462242  
    44Requires at least: 5
    55Tested up to: 5.6
    6 Stable tag: 1.6.3
     6Stable tag: 1.6.7
    77License: GPLv2
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • fooevents-calendar/trunk/updatelog.txt

    r2438934 r2462242  
    33
    44------------------
     51.6.7
     6FIXED: SESSION warning
     7FIXED: listWeek end time bug
     8FIXED: Various other small bugs
     9TESTED ON: WordPress 5.6 and WooCommerce 4.9.1
     10
    5111.6.3
    612FIXED: Bookings on events list
Note: See TracChangeset for help on using the changeset viewer.