Changeset 2143393
- Timestamp:
- 08/21/2019 10:21:10 PM (7 years ago)
- Location:
- fareharbor
- Files:
-
- 1 added
- 8 edited
-
assets/banner-1544x500.jpg (modified) (previous)
-
assets/banner-772x250.jpg (modified) (previous)
-
assets/icon-128x128.png (modified) (previous)
-
assets/icon-256x256.png (modified) (previous)
-
assets/screenshot-1.png (modified) (previous)
-
assets/screenshot-2.png (modified) (previous)
-
assets/screenshot-3.png (added)
-
trunk/fareharbor.php (modified) (7 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fareharbor/trunk/fareharbor.php
r1785859 r2143393 4 4 Plugin URI: https://fareharbor.com/help/setup/wordpress-plugin/ 5 5 Description: Easily add FareHarbor reservation calendars and buttons to your site 6 Version: 3. 56 Version: 3.6 7 7 Author: FareHarbor 8 8 Author URI: https://fareharbor.com … … 44 44 private function __construct() {} 45 45 46 public static $version = '3. 5';46 public static $version = '3.6'; 47 47 48 48 // Update the saved version number in the wp_options table … … 218 218 'full_items' => self::get_option( 'fh_default_full_items', 'no' ), 219 219 'sheet' => self::get_option( 'fh_default_sheet', '' ), 220 'fallback' => self::get_option( 'fh_default_fallback', '' ), 220 'schedule' => self::get_option( 'fh_default_schedule', '' ), 221 'fallback' => 'simple', 221 222 'flow' => '', 223 'language' => self::get_option( 'fh_default_language', '' ), 222 224 223 225 ); … … 317 319 318 320 // The bookembed url structure is very similar to the simple fallback url structure 319 $is_simple_fallback = ( $args[ 'fallback' ] === ' simple' ) || $is_bookembed;321 $is_simple_fallback = ( $args[ 'fallback' ] === '' ) || ( $args[ 'fallback' ] === 'simple' ) || $is_bookembed; 320 322 321 323 $url = 'https://' . self::url() . '/'; … … 694 696 if ( $args[ 'sheet' ] ) 695 697 $out[ 'sheet' ] = $args[ 'sheet' ]; 698 699 if ( $args[ 'schedule' ] ) 700 $out[ 'schedule' ] = $args[ 'schedule' ]; 701 702 if ( $args[ 'language' ] ) 703 $out[ 'language' ] = $args[ 'language' ]; 696 704 697 705 if ( $include_flow && $args[ 'flow' ] ) … … 864 872 865 873 add_settings_field( 866 'fh_default_fallback',867 'fallback',868 array( __CLASS__, 'render_select_field' ),869 __FILE__,870 'fh_shortcode_defaults_section',871 array(872 'option_name' => 'fh_default_fallback',873 'choices' => array(874 'simple',875 'classic',876 ),877 'description' => 'On certain mobile and touch devices, the book form will open as a new page instead of in a Lightframe. Choose "simple" for this page to mirror the look and feel of the Lightframe. Choose "classic" to take the user to your FareHarbor shortname website (and to the appropriate item on that site, if applicable).',878 )879 );880 881 add_settings_field(882 874 'fh_default_asn', 883 875 'asn', … … 924 916 'option_name' => 'fh_default_sheet', 925 917 'description' => 'The price sheet that should be used while creating bookings.', 918 ) 919 ); 920 921 add_settings_field( 922 'fh_default_schedule', 923 'schedule', 924 array( __CLASS__, 'render_input_field' ), 925 __FILE__, 926 'fh_shortcode_defaults_section', 927 array( 928 'option_name' => 'fh_default_schedule', 929 'description' => 'The price schedule that should be used while creating bookings.', 930 ) 931 ); 932 933 add_settings_field( 934 'fh_default_language', 935 'language', 936 array( __CLASS__, 'render_input_field' ), 937 __FILE__, 938 'fh_shortcode_defaults_section', 939 array( 940 'option_name' => 'fh_default_language', 941 'description' => 'The two letter code for the language that FareHarbor pages should be overridden to, instead of detecting the user\'s language. (Not recommended.)', 926 942 ) 927 943 ); -
fareharbor/trunk/readme.txt
r1785859 r2143393 3 3 Tags: reservations, booking calendar, booking, reservation plugin, reservation calendar, booking system 4 4 Requires at least: 3.0 5 Tested up to: 4.9.15 Tested up to: 5.2.2 6 6 Stable tag: trunk 7 7 License: GPLv2 or later … … 39 39 == Screenshots == 40 40 41 1. Generated embedded reservations calendar 42 2. Lightframe booking overlay: customers book your activity without leaving your website 41 1. Plugin settings 42 2. Generated embedded reservations calendar 43 3. Lightframe booking overlay: customers book your activity without leaving your website 43 44 44 45 == Changelog == 46 47 = 3.6 = 48 * Add support for overriding language selection via `langauge` shortcode option 49 * Add support for setting price schedule via `schedule` shortcode option 50 * Updates output to default to "simple" fallbacks if no value is set 45 51 46 52 = 3.5 =
Note: See TracChangeset
for help on using the changeset viewer.