| @@ 538-548 (lines=11) @@ | ||
| 535 | wp_register_script('jquery-validate', EE_GLOBAL_ASSETS_URL . 'scripts/jquery.validate.min.js', array('jquery'), '1.15.0', TRUE); |
|
| 536 | } |
|
| 537 | //joyride is turned OFF by default, but prior to the admin_enqueue_scripts hook, can be turned back on again vai: add_filter('FHEE_load_joyride', '__return_true' ); |
|
| 538 | if ( apply_filters( 'FHEE_load_joyride', FALSE ) ) { |
|
| 539 | //joyride style |
|
| 540 | wp_register_style('joyride-css', EE_THIRD_PARTY_URL . 'joyride/joyride-2.1.css', array(), '2.1'); |
|
| 541 | wp_register_style('ee-joyride-css', EE_GLOBAL_ASSETS_URL . 'css/ee-joyride-styles.css', array('joyride-css'), EVENT_ESPRESSO_VERSION ); |
|
| 542 | wp_register_script('joyride-modernizr', EE_THIRD_PARTY_URL . 'joyride/modernizr.mq.js', array(), '2.1', TRUE ); |
|
| 543 | //joyride JS |
|
| 544 | wp_register_script('jquery-joyride', EE_THIRD_PARTY_URL . 'joyride/jquery.joyride-2.1.js', array('jquery-cookie', 'joyride-modernizr'), '2.1', TRUE ); |
|
| 545 | // wanna go for a joyride? |
|
| 546 | wp_enqueue_style('ee-joyride-css'); |
|
| 547 | wp_enqueue_script('jquery-joyride'); |
|
| 548 | } |
|
| 549 | //qtip is turned OFF by default, but prior to the admin_enqueue_scripts hook, can be turned back on again via: add_filter('FHEE_load_qtips', '__return_true' ); |
|
| 550 | if ( apply_filters( 'FHEE_load_qtip', FALSE ) ) { |
|
| 551 | EEH_Qtip_Loader::instance()->register_and_enqueue(); |
|
| @@ 1271-1280 (lines=10) @@ | ||
| 1268 | */ |
|
| 1269 | public function wp_enqueue_scripts() { |
|
| 1270 | // unlike other systems, EE_System_scripts loading is turned ON by default, but prior to the init hook, can be turned off via: add_filter( 'FHEE_load_EE_System_scripts', '__return_false' ); |
|
| 1271 | if ( apply_filters( 'FHEE_load_EE_System_scripts', TRUE ) ) { |
|
| 1272 | // jquery_validate loading is turned OFF by default, but prior to the wp_enqueue_scripts hook, can be turned back on again via: add_filter( 'FHEE_load_jquery_validate', '__return_true' ); |
|
| 1273 | if ( apply_filters( 'FHEE_load_jquery_validate', FALSE ) ) { |
|
| 1274 | // register jQuery Validate and additional methods |
|
| 1275 | wp_register_script( 'jquery-validate', EE_GLOBAL_ASSETS_URL . 'scripts/jquery.validate.min.js', array('jquery' ), '1.15.0', TRUE ); |
|
| 1276 | wp_register_script( 'jquery-validate-extra-methods', EE_GLOBAL_ASSETS_URL . 'scripts/jquery.validate.additional-methods.min.js', array( 'jquery', 'jquery-validate' ), '1.15.0', TRUE ); |
|
| 1277 | } |
|
| 1278 | wp_register_script( 'select2', EE_GLOBAL_ASSETS_URL . 'scripts/select2.min.js', array(), '4.0.2', true ); |
|
| 1279 | wp_register_style( 'select2', EE_GLOBAL_ASSETS_URL . 'css/select2.min.css', array(), '4.0.2', 'all' ); |
|
| 1280 | } |
|
| 1281 | } |
|
| 1282 | ||
| 1283 | ||