Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function register_scripts_and_styles() {
- $uitheme = $this->jckwdsSettings['datesettings_datesettings_setup_uitheme'];
- if ( is_admin() ) {
- } else {
- if($uitheme != 'none' && is_checkout()){
- wp_enqueue_style(
- $this->slug . 'admin-ui-css',
- 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/themes/'.$uitheme.'/jquery-ui.css',
- false,
- $this->version,
- false
- );
- }
- $this->load_file( $this->slug . '-script', '/assets/frontend/js/jckwds-scripts.min.js', true, array('jquery-ui-datepicker'), true );
- $this->load_file( $this->slug . '-style', '/assets/frontend/css/jckwds-styles.min.css' );
- $current_language = ICL_LANGUAGE_CODE;
- if ( function_exists( 'icl_register_string' ) && ICL_LANGUAGE_CODE == $current_language && ICL_LANGUAGE_CODE !== 'en') {
- wp_register_script('jquery.ui.datepicker-'.$current_language.'', plugins_url('jck_woo_deliveryslots/assets/options/jck-settings-framework/js/datepicker/di18n/jquery.ui.datepicker-'.$current_language.'.js', dirname(__FILE__)));
- wp_enqueue_script('jquery.ui.datepicker-'.$current_language.'');
- }
- wp_enqueue_style( $this->slug . '-dynamic-style', admin_url('admin-ajax.php').'?action='.$this->slug . '-dynamic-style' );
- } // end if/else
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement