Changeset 2770474
- Timestamp:
- 08/15/2022 09:19:37 AM (3 years ago)
- Location:
- open-hours/trunk
- Files:
-
- 1 deleted
- 5 edited
-
README.md (deleted)
-
README.txt (modified) (2 diffs)
-
css/open.css (modified) (9 diffs)
-
includes/Helper/class-Pix_Open_Helper.php (modified) (4 diffs)
-
js/HoursParser.js (modified) (1 diff)
-
open-hours.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
open-hours/trunk/README.txt
r2098435 r2770474 3 3 Tags: restaurant, bar, business hours, currently open, date, hours, opening hours, osteria, overview, shortcode, status, table, time, widget 4 4 Requires at least: 4.9.0 5 Tested up to: 5.2.06 Stable tag: 1.0. 85 Tested up to: 6.0 6 Stable tag: 1.0.9 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 23 23 24 24 == Changelog == 25 26 = 1.0.9 = 27 * Better handling of broken schedules 28 * Ensure compatibility with the latest WordPress version (6.0) 25 29 26 30 = 1.0.8 = -
open-hours/trunk/css/open.css
r1795310 r2770474 20 20 background-color: #eee; 21 21 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; } 24 28 .preview_open_widget, 25 29 .preview_open_widget * { 26 box-sizing: border-box; } 30 -webkit-box-sizing: border-box; 31 box-sizing: border-box; } 27 32 @media screen and (max-width: 1660px) { 28 33 .preview_open_widget { … … 30 35 31 36 .wp-full-overlay { 37 -webkit-transition: .2s margin ease-in-out; 32 38 transition: .2s margin ease-in-out; } 33 39 … … 37 43 .wp-full-overlay.is--open-hours-section-expanded .preview_open_widget { 38 44 opacity: 1; 39 transform: translateX(0); } 45 -webkit-transform: translateX(0); 46 transform: translateX(0); } 40 47 41 48 .open-preview { … … 46 53 padding: 14px 12px; 47 54 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); 49 57 color: #585858; 50 58 background-color: #FFFFFF; … … 58 66 .open_overview_shortcode tr { 59 67 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); 61 70 background-color: #FFFFFF; } 62 71 .open_overview_shortcode tr:last-child { … … 66 75 67 76 .open-entry { 77 display: -webkit-box; 78 display: -ms-flexbox; 68 79 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; } 71 86 72 87 .open-entry__day { … … 88 103 margin-bottom: 10px; 89 104 padding: 6px 8px; 90 box-sizing: border-box; 105 -webkit-box-sizing: border-box; 106 box-sizing: border-box; 91 107 overflow-x: scroll; 92 108 white-space: nowrap; … … 114 130 background-size: auto auto; 115 131 opacity: 0; 132 -webkit-transition: opacity .3s ease-in-out; 116 133 transition: opacity .3s ease-in-out; 117 134 pointer-events: none; } … … 124 141 .ui-autocomplete { 125 142 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); 127 145 border: 1px solid #CACACA; } 128 146 -
open-hours/trunk/includes/Helper/class-Pix_Open_Helper.php
r1739597 r2770474 392 392 393 393 $option = json_decode( $option, true ); 394 if ( empty( $option['timeframes'] ) || ! is_array( $option['timeframes'] ) ) { 395 return false; 396 } 394 397 395 398 foreach ( $option['timeframes'] as $timeframe ) { … … 403 406 } 404 407 405 // S Ort the array keys - so they're always bein order408 // Sort the array keys - so they're always in order 406 409 ksort( $schedule_array, SORT_ASC ); 407 410 … … 425 428 } 426 429 427 if ( ! is set( $schedule[ $next_day ] ) ) {430 if ( ! is_array( $schedule ) || ! isset( $schedule[ $next_day ] ) ) { 428 431 return $this->get_next_open_day( $next_day ); 429 432 } … … 447 450 $today = (int) $today; 448 451 449 if ( ! is set( $schedule[ $today ] ) ) {452 if ( ! is_array( $schedule ) || ! isset( $schedule[ $today ] ) ) { 450 453 // dunno what to do here 451 454 return $today; -
open-hours/trunk/js/HoursParser.js
r1745560 r2770474 1 1 // Copyright 2014 Foursquare Labs Inc. All Rights Reserved. 2 // https://github.com/foursquare/hoursparser.js 2 3 3 4 var fourSq = fourSq || {}; -
open-hours/trunk/open-hours.php
r2098435 r2770474 5 5 Description: An easy to use opening hours WordPress plugin manager for any kind of venue. 6 6 Author: pixelgrade 7 Version: 1.0. 77 Version: 1.0.9 8 8 Author URI: https://pixelgrade.com 9 9 Text Domain: open-hours … … 14 14 function OpenPlugin() { 15 15 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' ); 17 17 18 18 return $instance;
Note: See TracChangeset
for help on using the changeset viewer.