Plugin Directory

Changeset 1822902


Ignore:
Timestamp:
02/15/2018 05:14:59 PM (8 years ago)
Author:
simplecalendar
Message:

3.1.14 files

Location:
google-calendar-events/trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • google-calendar-events/trunk/assets/css/admin-add-calendar.min.css

    r1816526 r1822902  
    1 /*! Simple Calendar - 3.1.13
     1/*! Simple Calendar - 3.1.14
    22 * https://simplecalendar.io
    33 * Copyright (c) Moonstone Media 2018
  • google-calendar-events/trunk/assets/css/admin.min.css

    r1816526 r1822902  
    1 /*! Simple Calendar - 3.1.13
     1/*! Simple Calendar - 3.1.14
    22 * https://simplecalendar.io
    33 * Copyright (c) Moonstone Media 2018
  • google-calendar-events/trunk/assets/css/default-calendar-grid.min.css

    r1816526 r1822902  
    1 /*! Simple Calendar - 3.1.13
     1/*! Simple Calendar - 3.1.14
    22 * https://simplecalendar.io
    33 * Copyright (c) Moonstone Media 2018
  • google-calendar-events/trunk/assets/css/default-calendar-list.min.css

    r1816526 r1822902  
    1 /*! Simple Calendar - 3.1.13
     1/*! Simple Calendar - 3.1.14
    22 * https://simplecalendar.io
    33 * Copyright (c) Moonstone Media 2018
  • google-calendar-events/trunk/assets/js/admin-add-calendar.min.js

    r1816526 r1822902  
    1 /*! Simple Calendar - 3.1.13
     1/*! Simple Calendar - 3.1.14
    22 * https://simplecalendar.io
    33 * Copyright (c) Moonstone Media 2018
  • google-calendar-events/trunk/assets/js/admin.min.js

    r1816526 r1822902  
    1 /*! Simple Calendar - 3.1.13
     1/*! Simple Calendar - 3.1.14
    22 * https://simplecalendar.io
    33 * Copyright (c) Moonstone Media 2018
  • google-calendar-events/trunk/assets/js/default-calendar.min.js

    r1816526 r1822902  
    1 /*! Simple Calendar - 3.1.13
     1/*! Simple Calendar - 3.1.14
    22 * https://simplecalendar.io
    33 * Copyright (c) Moonstone Media 2018
  • google-calendar-events/trunk/google-calendar-events.php

    r1816526 r1822902  
    66 * Author:      Simple Calendar
    77 * Author URI:  https://simplecalendar.io
    8  * Version:     3.1.13
     8 * Version:     3.1.14
    99 * Text Domain: google-calendar-events
    1010 * Domain Path: /i18n
     
    2222$this_plugin_dir       = plugin_dir_url( __FILE__ );
    2323$this_plugin_constants = array(
    24     'SIMPLE_CALENDAR_VERSION'   => '3.1.13',
     24    'SIMPLE_CALENDAR_VERSION'   => '3.1.14',
    2525    'SIMPLE_CALENDAR_MAIN_FILE' => __FILE__,
    2626    'SIMPLE_CALENDAR_URL'       => $this_plugin_dir,
  • google-calendar-events/trunk/includes/abstracts/calendar.php

    r1793822 r1822902  
    285285            // Set earliest and latest event timestamps.
    286286            if ( $this->events && is_array( $this->events ) ) {
    287                 $this->earliest_event = intval( current( array_keys( $this->events ) ) );
    288                 $this->latest_event   = intval( key( array_slice( $this->events, -1, 1, true ) ) );
     287                $start_event          = current( $this->events );
     288                $start_event_item     = ! empty( $start_event[0]->start ) ? $start_event[0]->start : 0;
     289                $this->earliest_event = intval( $start_event_item );
     290
     291                $last_event         = current( array_slice( $this->events, - 1, 1, true ) );
     292                $last_event_item    = ! empty( $last_event[0]->end ) ? $last_event[0]->end : 0;
     293                $this->latest_event = intval( $last_event_item );
    289294            }
    290295
     
    432437            }
    433438        }
     439
     440        // Sort by end date so that navigation buttons are displayed
     441        // correctly for events spanning multiple days.
     442        uasort( $events, function( $a, $b ) {
     443            return ( $a[0]->end - $b[0]->end );
     444        } );
    434445
    435446        $this->events = $events;
  • google-calendar-events/trunk/readme.txt

    r1816526 r1822902  
    55Requires PHP: 5.3+
    66Tested up to: 4.9
    7 Stable tag: 3.1.13
     7Stable tag: 3.1.14
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9797
    9898== Changelog ==
     99
     100= 3.1.14 - February 15, 2018 =
     101* Fix: Issue where navigation to next month would be disabled when multi-day events extended to future months.
    99102
    100103= 3.1.13 - February 5, 2018 =
Note: See TracChangeset for help on using the changeset viewer.