|
|
|
@ -142,6 +142,49 @@ class Bespokomatic_Ebs {
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function enqueue_common_scripts() { |
|
|
|
|
$js_prefix = $this->plugin_name . '-js'; |
|
|
|
|
$js_booked_prefix = $js_prefix . '-booked'; |
|
|
|
|
|
|
|
|
|
// Booked Scheduler common JS |
|
|
|
|
wp_enqueue_script( $js_booked_prefix . '_jquery', BESPOKOMATIC_EBS_BOOKED_URL . 'scripts/js/jquery-3.3.1.min.js', array(), $this->version, false ); |
|
|
|
|
wp_enqueue_script( $js_booked_prefix . '_jquery_migrate', BESPOKOMATIC_EBS_BOOKED_URL . 'scripts/js/jquery-migrate-3.0.1.min.js', array( $js_booked_prefix . '_jquery' ), $this->version, false ); |
|
|
|
|
wp_enqueue_script( $js_booked_prefix . '_jqueryui', BESPOKOMATIC_EBS_BOOKED_URL . 'scripts/js/jquery-ui.1.12.1.custom.min.js', array( $js_booked_prefix . '_jquery' ), $this->version, false ); |
|
|
|
|
wp_enqueue_script( $js_booked_prefix . '_bootstrap', BESPOKOMATIC_EBS_BOOKED_URL . 'scripts/bootstrap/js/bootstrap.min.js', array( $js_booked_prefix . '_jquery' ), $this->version, false ); |
|
|
|
|
|
|
|
|
|
wp_enqueue_script( $js_booked_prefix . '_jqueryui_timepicker', BESPOKOMATIC_EBS_BOOKED_URL . 'scripts/js/jquery-ui-timepicker-addon.js', array( $js_booked_prefix . '_jqueryui' ), $this->version, false ); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function enqueue_common_styles() { |
|
|
|
|
$css_prefix = $this->plugin_name . '-css'; |
|
|
|
|
$css_booked_prefix = $css_prefix . '-booked'; |
|
|
|
|
|
|
|
|
|
// Booked Scheduler common CSS |
|
|
|
|
wp_enqueue_style( $css_booked_prefix . '_jqueryui', BESPOKOMATIC_EBS_BOOKED_URL . 'scripts/css/smoothness/jquery-ui.1.12.1.custom.min.css', array(), $this->version, 'all' ); |
|
|
|
|
wp_enqueue_style( $css_booked_prefix . '_fontawesome', BESPOKOMATIC_EBS_BOOKED_URL . 'css/font-awesome-4.7.0/css/font-awesome.min.css', array(), $this->version, 'all' ); |
|
|
|
|
wp_enqueue_style( $css_booked_prefix . '_bootstrap', BESPOKOMATIC_EBS_BOOKED_URL . 'scripts/bootstrap/css/bootstrap.css', array(), $this->version, 'all' ); |
|
|
|
|
|
|
|
|
|
wp_enqueue_style( $css_booked_prefix . '_bootstrap_validator', BESPOKOMATIC_EBS_BOOKED_URL . 'css/bootstrapValidator.min.css', array( $css_booked_prefix . '_bootstrap' ), $this->version, 'all' ); |
|
|
|
|
|
|
|
|
|
wp_enqueue_style( $css_booked_prefix . '_bootstrap_editable', BESPOKOMATIC_EBS_BOOKED_URL . 'scripts/js/x-editable/css/bootstrap-editable.css', array( $css_booked_prefix . '_bootstrap' ), $this->version, 'all' ); |
|
|
|
|
wp_enqueue_style( $css_booked_prefix . '_bootstrap_wysihtml5', BESPOKOMATIC_EBS_BOOKED_URL . 'scripts/js/wysihtml5/bootstrap3-wysihtml5.min.css', array( $css_booked_prefix . '_bootstrap' ), $this->version, 'all' ); |
|
|
|
|
|
|
|
|
|
wp_enqueue_style( $css_booked_prefix . '_qtip', BESPOKOMATIC_EBS_BOOKED_URL . 'css/jquery.qtip.min.css', array( $css_booked_prefix . '_jqueryui' ), $this->version, 'all' ); |
|
|
|
|
wp_enqueue_style( $css_booked_prefix . '_owl_base', BESPOKOMATIC_EBS_BOOKED_URL . 'scripts/js/owl-2.2.1/assets/owl.carousel.min.css', array(), $this->version, 'all' ); |
|
|
|
|
wp_enqueue_style( $css_booked_prefix . '_owl_theme', BESPOKOMATIC_EBS_BOOKED_URL . 'scripts/js/owl-2.2.1/assets/owl.theme.default.css', array( $css_booked_prefix . '_owl_base' ), $this->version, 'all' ); |
|
|
|
|
|
|
|
|
|
wp_enqueue_style( $css_booked_prefix . '_select2', BESPOKOMATIC_EBS_BOOKED_URL . 'scripts/css/select2/select2-4.0.5.min.css', array( $css_booked_prefix . '_jqueryui', $css_booked_prefix . '_bootstrap' ), $this->version, 'all' ); |
|
|
|
|
|
|
|
|
|
wp_enqueue_style( $css_booked_prefix . '_fullcalendar', BESPOKOMATIC_EBS_BOOKED_URL . 'scripts/css/fullcalendar.min.css', array(), $this->version, 'all' ); |
|
|
|
|
wp_enqueue_style( $css_booked_prefix . '_fullcalend_print', BESPOKOMATIC_EBS_BOOKED_URL . 'scripts/css/fullcalendar.print.css', array(), $this->version, 'print' ); |
|
|
|
|
|
|
|
|
|
wp_enqueue_style( $css_booked_prefix . '_timepicker', BESPOKOMATIC_EBS_BOOKED_URL . 'scripts/css/timePicker.css', array(), $this->version, 'all' ); |
|
|
|
|
wp_enqueue_style( $css_booked_prefix . '_jqueryui_timepicker', BESPOKOMATIC_EBS_BOOKED_URL . 'scripts/css/jquery-ui-timepicker-addon.css', array( $css_booked_prefix . '_jqueryui' ), $this->version, 'all' ); |
|
|
|
|
|
|
|
|
|
wp_enqueue_style( $css_booked_prefix, BESPOKOMATIC_EBS_BOOKED_URL . 'css/booked.css', array(), $this->version, 'all' ); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Register all of the hooks related to the admin area functionality |
|
|
|
|
* of the plugin. |
|
|
|
@ -153,6 +196,9 @@ class Bespokomatic_Ebs {
|
|
|
|
|
|
|
|
|
|
$plugin_admin = new Bespokomatic_Ebs_Admin( $this->get_plugin_name(), $this->get_version() ); |
|
|
|
|
|
|
|
|
|
$this->loader->add_action( 'admin_enqueue_scripts', $this, 'enqueue_common_styles' ); |
|
|
|
|
$this->loader->add_action( 'admin_enqueue_scripts', $this, 'enqueue_common_scripts' ); |
|
|
|
|
|
|
|
|
|
$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' ); |
|
|
|
|
$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' ); |
|
|
|
|
|
|
|
|
@ -175,6 +221,9 @@ class Bespokomatic_Ebs {
|
|
|
|
|
|
|
|
|
|
$plugin_public = new Bespokomatic_Ebs_Public( $this->get_plugin_name(), $this->get_version() ); |
|
|
|
|
|
|
|
|
|
$this->loader->add_action( 'admin_enqueue_scripts', $this, 'enqueue_common_styles' ); |
|
|
|
|
$this->loader->add_action( 'admin_enqueue_scripts', $this, 'enqueue_common_scripts' ); |
|
|
|
|
|
|
|
|
|
$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' ); |
|
|
|
|
$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' ); |
|
|
|
|
|
|
|
|
|