Plugin Directory

Changeset 2139559


Ignore:
Timestamp:
08/14/2019 02:36:08 PM (7 years ago)
Author:
fpin
Message:

Version 1.5

Location:
zovonto/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • zovonto/trunk/bsf.php

    r2136080 r2139559  
    44 * Plugin Name: Zovonto Bookings and Appointments
    55 * Description: Zovonto is a free Appointment Booking Plugin which allows you to run an appointment booking system in your WordPress site.
    6  * Version: 1.4
     6 * Version: 1.5
    77 * Author: Flintop
    88 * Author URI: https://flintop.com/
     
    2727         * Version
    2828         * */
    29         private $version = '1.4' ;
     29        private $version = '1.5' ;
    3030
    3131        /**
  • zovonto/trunk/inc/admin/menu/tabs/settings.php

    r2136080 r2139559  
    114114                ) ;
    115115        $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 (
    116122            'title'   => esc_html__ ( 'Custom CSS' , BSF_LOCALE ) ,
    117123            'type'    => 'textarea' ,
  • zovonto/trunk/inc/frontend/class-bsf-frontend-assets.php

    r2136080 r2139559  
    44 * Frontend Assets
    55 */
    6 if ( ! defined ( 'ABSPATH' ) ) {
     6if ( ! defined( 'ABSPATH' ) ) {
    77    exit ; // Exit if accessed directly.
    88}
    9 if ( ! class_exists ( 'BSF_Fronend_Assets' ) ) {
     9if ( ! class_exists( 'BSF_Fronend_Assets' ) ) {
    1010
    1111    /**
     
    1919        public static function init() {
    2020
    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' ) ) ;
    2323        }
    2424
     
    2828        public static function external_css_files() {
    2929
    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
    3154            // 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 ) ;
    3558        }
    3659
     
    4063        public static function external_js_files() {
    4164
    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' ) ;
    4366        }
    4467
    4568    }
    4669
    47     BSF_Fronend_Assets::init () ;
     70    BSF_Fronend_Assets::init() ;
    4871}
  • zovonto/trunk/readme.txt

    r2136080 r2139559  
    55Tested up to: 5.2.1
    66Requires PHP: 5.6.25
    7 Stable tag: 1.4
     7Stable tag: 1.5
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0
     
    205205== Changelog ==
    206206
     207V1.5
     208
     209New: Added Booking Form Color option
     210
    207211V1.4
    208212
Note: See TracChangeset for help on using the changeset viewer.