Plugin Directory

Changeset 2770474


Ignore:
Timestamp:
08/15/2022 09:19:37 AM (3 years ago)
Author:
pixelgrade
Message:

Minor updates and ensure compatibility with the latest WP version

Location:
open-hours/trunk
Files:
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • open-hours/trunk/README.txt

    r2098435 r2770474  
    33Tags: restaurant, bar, business hours, currently open, date, hours, opening hours, osteria, overview, shortcode, status, table, time, widget
    44Requires at least: 4.9.0
    5 Tested up to: 5.2.0
    6 Stable tag: 1.0.8
     5Tested up to: 6.0
     6Stable tag: 1.0.9
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2323
    2424== Changelog ==
     25
     26= 1.0.9 =
     27* Better handling of broken schedules
     28* Ensure compatibility with the latest WordPress version (6.0)
    2529
    2630= 1.0.8 =
  • open-hours/trunk/css/open.css

    r1795310 r2770474  
    2020  background-color: #eee;
    2121  opacity: 0;
    22   transform: translateX(-300px);
    23   transition: opacity, transform 0.2s ease-in-out; }
     22  -webkit-transform: translateX(-300px);
     23          transform: translateX(-300px);
     24  -webkit-transition: opacity, -webkit-transform 0.2s ease-in-out;
     25  transition: opacity, -webkit-transform 0.2s ease-in-out;
     26  transition: opacity, transform 0.2s ease-in-out;
     27  transition: opacity, transform 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out; }
    2428  .preview_open_widget,
    2529  .preview_open_widget * {
    26     box-sizing: border-box; }
     30    -webkit-box-sizing: border-box;
     31            box-sizing: border-box; }
    2732  @media screen and (max-width: 1660px) {
    2833    .preview_open_widget {
     
    3035
    3136.wp-full-overlay {
     37  -webkit-transition: .2s margin ease-in-out;
    3238  transition: .2s margin ease-in-out; }
    3339
     
    3743  .wp-full-overlay.is--open-hours-section-expanded .preview_open_widget {
    3844    opacity: 1;
    39     transform: translateX(0); }
     45    -webkit-transform: translateX(0);
     46            transform: translateX(0); }
    4047
    4148.open-preview {
     
    4653  padding: 14px 12px;
    4754  border-bottom: 1px solid #DDDDDD;
    48   box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
     55  -webkit-box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
     56          box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
    4957  color: #585858;
    5058  background-color: #FFFFFF;
     
    5866  .open_overview_shortcode tr {
    5967    border-bottom: 1px solid #DDDDDD;
    60     box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
     68    -webkit-box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
     69            box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
    6170    background-color: #FFFFFF; }
    6271    .open_overview_shortcode tr:last-child {
     
    6675
    6776.open-entry {
     77  display: -webkit-box;
     78  display: -ms-flexbox;
    6879  display: flex;
    69   justify-content: space-between;
    70   align-items: center; }
     80  -webkit-box-pack: justify;
     81      -ms-flex-pack: justify;
     82          justify-content: space-between;
     83  -webkit-box-align: center;
     84      -ms-flex-align: center;
     85          align-items: center; }
    7186
    7287.open-entry__day {
     
    88103  margin-bottom: 10px;
    89104  padding: 6px 8px;
    90   box-sizing: border-box;
     105  -webkit-box-sizing: border-box;
     106          box-sizing: border-box;
    91107  overflow-x: scroll;
    92108  white-space: nowrap;
     
    114130  background-size: auto auto;
    115131  opacity: 0;
     132  -webkit-transition: opacity .3s ease-in-out;
    116133  transition: opacity .3s ease-in-out;
    117134  pointer-events: none; }
     
    124141.ui-autocomplete {
    125142  background-color: #FFFFFF;
    126   box-shadow: inset 0 1px 3px 0 rgba(0, 0, 0, 0.18), 0 2px 10px 0 rgba(0, 0, 0, 0.1);
     143  -webkit-box-shadow: inset 0 1px 3px 0 rgba(0, 0, 0, 0.18), 0 2px 10px 0 rgba(0, 0, 0, 0.1);
     144          box-shadow: inset 0 1px 3px 0 rgba(0, 0, 0, 0.18), 0 2px 10px 0 rgba(0, 0, 0, 0.1);
    127145  border: 1px solid #CACACA; }
    128146
  • open-hours/trunk/includes/Helper/class-Pix_Open_Helper.php

    r1739597 r2770474  
    392392
    393393        $option = json_decode( $option, true );
     394        if ( empty( $option['timeframes'] ) || ! is_array( $option['timeframes'] ) ) {
     395            return false;
     396        }
    394397
    395398        foreach ( $option['timeframes'] as $timeframe ) {
     
    403406        }
    404407
    405         // SOrt the array keys - so they're always be in order
     408        // Sort the array keys - so they're always in order
    406409        ksort( $schedule_array, SORT_ASC );
    407410
     
    425428        }
    426429
    427         if ( ! isset( $schedule[ $next_day ] ) ) {
     430        if ( ! is_array( $schedule ) || ! isset( $schedule[ $next_day ] ) ) {
    428431            return $this->get_next_open_day( $next_day );
    429432        }
     
    447450        $today           = (int) $today;
    448451
    449         if ( ! isset( $schedule[ $today ] ) ) {
     452        if ( ! is_array( $schedule ) || ! isset( $schedule[ $today ] ) ) {
    450453            // dunno what to do here
    451454            return $today;
  • open-hours/trunk/js/HoursParser.js

    r1745560 r2770474  
    11// Copyright 2014 Foursquare Labs Inc. All Rights Reserved.
     2// https://github.com/foursquare/hoursparser.js
    23
    34var fourSq = fourSq || {};
  • open-hours/trunk/open-hours.php

    r2098435 r2770474  
    55Description: An easy to use opening hours WordPress plugin manager for any kind of venue.
    66Author: pixelgrade
    7 Version: 1.0.7
     7Version: 1.0.9
    88Author URI: https://pixelgrade.com
    99Text Domain: open-hours
     
    1414function OpenPlugin() {
    1515    require_once( plugin_dir_path( __FILE__ ) . 'includes/class-open.php' );
    16     $instance = OpenPlugin::instance( __FILE__, '1.0.8' );
     16    $instance = OpenPlugin::instance( __FILE__, '1.0.9' );
    1717
    1818    return $instance;
Note: See TracChangeset for help on using the changeset viewer.