Changeset 1398764
- Timestamp:
- 04/19/2016 01:57:39 AM (10 years ago)
- Location:
- fareharbor/trunk
- Files:
-
- 2 edited
-
fareharbor.php (modified) (6 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
fareharbor/trunk/fareharbor.php
r1398596 r1398764 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.0 6 Version: 3.0.1 7 7 Author: FareHarbor 8 8 Author URI: https://fareharbor.com … … 43 43 44 44 45 // Add init hook 46 // ----------------------------------------------- 47 48 add_action( 'init', array( 'fareharbor', 'init' ) ); 49 45 50 // Global functions for potential backwards compatability 46 51 // ----------------------------------------------- … … 67 72 private function __construct() {} 68 73 74 public static $version = '3.0.1'; 75 76 // Update the saved version number in the wp_options table 77 // =============================================== 78 79 public static function init() { 80 81 if ( is_admin() && ( !defined( 'DOING_AJAX' ) || !DOING_AJAX ) ) 82 update_option( 'fareharbor_version', self::$version ); 83 84 } 69 85 70 86 // Script source … … 151 167 self::$bookembed_defaults[ 'fallback' ] = ''; 152 168 153 self::$calendar_defaults = array( 154 155 'type' => 'calendar-small', 156 157 ); 169 self::$calendar_defaults = array(); 170 171 if ( self::get_option( 'fh_responsive_calendars', false ) ) 172 self::$calendar_defaults[ 'type' ] = 'calendar'; 173 else 174 self::$calendar_defaults[ 'type' ] = 'calendar-small'; 158 175 159 176 self::$partners_defaults = array( … … 380 397 if ( $type === 'small' ) 381 398 $type = 'calendar-small'; 382 elseif ( $type === 'large' )399 elseif ( $type === 'large' || $type === 'responsive' ) 383 400 $type = 'calendar'; 384 401 … … 761 778 762 779 add_settings_field( 780 'fh_responsive_calendars', 781 'Responsive Calendars', 782 array( __CLASS__, 'render_input_field' ), 783 __FILE__, 784 'fh_shortcode_defaults_section', 785 array( 786 'option_name' => 'fh_responsive_calendars', 787 'type' => 'checkbox', 788 'label' => 'Use responsive calendars by default.', 789 'description' => 'This is the same as [fareharbor type="responsive"].', 790 ) 791 ); 792 793 add_settings_field( 763 794 'fh_default_fallback', 764 795 'fallback', -
fareharbor/trunk/readme.txt
r1398596 r1398764 44 44 == Changelog == 45 45 46 = 3.0.1 = 47 * Add type="responsive" option to [fareharbor] shortcode 48 46 49 = 3.0 = 47 50 * Add support for [itemgrid] shortcode
Note: See TracChangeset
for help on using the changeset viewer.