Plugin Directory

Changeset 1388198


Ignore:
Timestamp:
04/06/2016 01:07:59 PM (10 years ago)
Author:
wpicalavailability
Message:

Several tweaks and tested up to 4.5

Location:
wp-ical-availability
Files:
325 added
5 edited

Legend:

Unmodified
Added
Removed
  • wp-ical-availability/trunk/include/calendarCore.php

    r1370585 r1388198  
    2323        if($events) foreach($events as $event){
    2424            //print_r($event);
    25             $start = strtotime($event['DTSTART']);
    26             $end = strtotime($event['DTEND']) - 60;
     25            $start = strtotime(wpia_fixDate($event['DTSTART']));
     26            $end = strtotime(wpia_fixDate($event['DTEND'])) - 60;
    2727            for($i = $start; $i<= $end; $i = $i + 60*60*24){
    2828                $calendarData[date('Y',$i)][date('n',$i)][date('j',$i)] = 'booked';
  • wp-ical-availability/trunk/include/calendarFunctions.php

    r1370585 r1388198  
    8686}
    8787
    88 
     88function wpia_fixDate($date){
     89    $date = str_replace('TZ','T000000Z',$date);
     90    return $date;
     91}
    8992
    9093
  • wp-ical-availability/trunk/include/pluginWidget.php

    r1363945 r1388198  
    11<?php
    22class wpia_widget extends WP_Widget {
    3     function wpia_widget() {
     3    public function __construct() {
    44        parent::__construct(false, $name = 'WP iCalendar Feed', array(
    55            'description' => 'WP iCalendar Feed Widget'
  • wp-ical-availability/trunk/readme.txt

    r1381900 r1388198  
    33Tags: ical calendar, ical, calendar, booking calendar, vr calendar, vr, vacation rental, vacation rental calendar, sync, syncing, sync calendar, syncing calendar, feed, feed calendar, ical availability, availability calendar, airbnb, flipkey, homeaway, booking.com
    44Requires at least: 3.0
    5 Tested up to: 4.4.2
    6 Stable tag: 0.4
     5Tested up to: 4.5
     6Stable tag: 0.5
    77
    88This calendar imports an iCal feed from an external website, like Airbnb, and shows the availability based on that feed.
     
    6767== Changelog ==
    6868
     69= 0.5 =
     70* Fixed a bug when the timezone is missing in the .ics file.
     71* Improved compatibility with PHP7.
     72
    6973= 0.4 =
    7074* Fixed a compatibility issue with Google Calendar
     
    8286== Upgrade Notice ==
    8387
     88= 0.5 =
     89* Fixed a bug when the timezone is missing in the .ics file.
     90* Improved compatibility with PHP7.
     91
    8492= 0.4 =
    8593* Fixed a compatibility issue with Google Calendar
  • wp-ical-availability/trunk/wp-ical-availability.php

    r1381900 r1388198  
    44 * Plugin URI:  http://www.wpicalavailability.com
    55 * Description: WP iCal Availability
    6  * Version:     0.4
     6 * Version:     0.5
    77 * Author:      WP iCal Availability
    88 * Author URI:  http://www.wpicalavailability.com
Note: See TracChangeset for help on using the changeset viewer.