Changeset 2139559
- Timestamp:
- 08/14/2019 02:36:08 PM (7 years ago)
- Location:
- zovonto/trunk
- Files:
-
- 4 edited
-
bsf.php (modified) (2 diffs)
-
inc/admin/menu/tabs/settings.php (modified) (1 diff)
-
inc/frontend/class-bsf-frontend-assets.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
zovonto/trunk/bsf.php
r2136080 r2139559 4 4 * Plugin Name: Zovonto Bookings and Appointments 5 5 * Description: Zovonto is a free Appointment Booking Plugin which allows you to run an appointment booking system in your WordPress site. 6 * Version: 1. 46 * Version: 1.5 7 7 * Author: Flintop 8 8 * Author URI: https://flintop.com/ … … 27 27 * Version 28 28 * */ 29 private $version = '1. 4' ;29 private $version = '1.5' ; 30 30 31 31 /** -
zovonto/trunk/inc/admin/menu/tabs/settings.php
r2136080 r2139559 114 114 ) ; 115 115 $section_fields[] = array ( 116 'title' => esc_html__ ( 'Booking Form Primary Color' , BSF_LOCALE ) , 117 'type' => 'colorpicker' , 118 'default' => '#000070' , 119 'id' => $this->get_option_key ( 'booking_form_primary_color' ) , 120 ) ; 121 $section_fields[] = array ( 116 122 'title' => esc_html__ ( 'Custom CSS' , BSF_LOCALE ) , 117 123 'type' => 'textarea' , -
zovonto/trunk/inc/frontend/class-bsf-frontend-assets.php
r2136080 r2139559 4 4 * Frontend Assets 5 5 */ 6 if ( ! defined ( 'ABSPATH' ) ) {6 if ( ! defined( 'ABSPATH' ) ) { 7 7 exit ; // Exit if accessed directly. 8 8 } 9 if ( ! class_exists ( 'BSF_Fronend_Assets' ) ) {9 if ( ! class_exists( 'BSF_Fronend_Assets' ) ) { 10 10 11 11 /** … … 19 19 public static function init() { 20 20 21 add_action ( 'wp_enqueue_scripts' , array( __CLASS__ , 'external_js_files' ) ) ;22 add_action ( 'wp_enqueue_scripts' , array( __CLASS__ , 'external_css_files' ) ) ;21 add_action( 'wp_enqueue_scripts' , array( __CLASS__ , 'external_js_files' ) ) ; 22 add_action( 'wp_enqueue_scripts' , array( __CLASS__ , 'external_css_files' ) ) ; 23 23 } 24 24 … … 28 28 public static function external_css_files() { 29 29 30 wp_enqueue_style ( 'font-awesome' , BSF_PLUGIN_URL . '/assets/css/font-awesome.min.css' , array () , BSF_VERSION ) ; 30 wp_enqueue_style( 'font-awesome' , BSF_PLUGIN_URL . '/assets/css/font-awesome.min.css' , array() , BSF_VERSION ) ; 31 32 $form_primary_color = get_option( 'bsf_settings_booking_form_primary_color' , '#000070' ) ; 33 34 $contents = '.bsf_booking_prograss_bar ul.bsf_booking_steps li.active:before{ 35 background:' . $form_primary_color . '!important; 36 } 37 .bsf_booking_prograss_bar ul.bsf_booking_steps li.active:after{ 38 background:' . $form_primary_color . '!important; 39 } 40 .bsf-booking-form-container .bsf-booking-form-inner-container h2{ 41 border-bottom:1px dashed ' . $form_primary_color . ' !important; 42 } 43 .bsf-booking-form-container .bsf-booking-form-inner-container .bsf-booking-form-row 44 .bsf-booking-form-row-checkbox input:checked + .bsf_slider { 45 background-color: ' . $form_primary_color . ' !important; 46 border: 1px solid ' . $form_primary_color . ' !important; 47 } 48 .bsf-booking-form-container .bsf-booking-form-inner-container .bsf-nav-steps button.bsf_booking_step_btn, 49 .bsf-booking-form-inner-container .bsf_coupon_display button{ 50 background: ' . $form_primary_color . ' !important; 51 } 52 ' . get_option( 'bsf_settings_booking_custom_css' , '' ) ; 53 31 54 // custom css 32 wp_register_style ( 'bsf-frontend-custom-styles' , false ) ;33 wp_enqueue_style ( 'bsf-frontend-custom-styles' ) ;34 wp_add_inline_style ( 'bsf-frontend-custom-styles' , get_option ( 'bsf_settings_custom_css' , '' )) ;55 wp_register_style( 'bsf-frontend-custom-styles' , false ) ; 56 wp_enqueue_style( 'bsf-frontend-custom-styles' ) ; 57 wp_add_inline_style( 'bsf-frontend-custom-styles' , $contents ) ; 35 58 } 36 59 … … 40 63 public static function external_js_files() { 41 64 42 wp_register_script ( 'blockUI' , BSF_PLUGIN_URL . '/assets/js/blockUI/jquery.blockUI.js' , array( 'jquery' , 'jquery-ui-datepicker' ) , '2.70.0' ) ;65 wp_register_script( 'blockUI' , BSF_PLUGIN_URL . '/assets/js/blockUI/jquery.blockUI.js' , array( 'jquery' , 'jquery-ui-datepicker' ) , '2.70.0' ) ; 43 66 } 44 67 45 68 } 46 69 47 BSF_Fronend_Assets::init () ;70 BSF_Fronend_Assets::init() ; 48 71 } -
zovonto/trunk/readme.txt
r2136080 r2139559 5 5 Tested up to: 5.2.1 6 6 Requires PHP: 5.6.25 7 Stable tag: 1. 47 Stable tag: 1.5 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0 … … 205 205 == Changelog == 206 206 207 V1.5 208 209 New: Added Booking Form Color option 210 207 211 V1.4 208 212
Note: See TracChangeset
for help on using the changeset viewer.