@@ 545-548 (lines=4) @@ | ||
542 | // register cookie script for future dependencies |
|
543 | wp_register_script('jquery-cookie', EE_THIRD_PARTY_URL . 'joyride/jquery.cookie.js', array('jquery'), '2.1', TRUE ); |
|
544 | // jquery_validate loading is turned OFF by default, but prior to the admin_enqueue_scripts hook, can be turned back on again via: add_filter( 'FHEE_load_jquery_validate', '__return_true' ); |
|
545 | if ( apply_filters( 'FHEE_load_jquery_validate', FALSE ) ) { |
|
546 | // register jQuery Validate |
|
547 | wp_register_script('jquery-validate', EE_GLOBAL_ASSETS_URL . 'scripts/jquery.validate.min.js', array('jquery'), '1.15.0', TRUE); |
|
548 | } |
|
549 | //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' ); |
|
550 | if ( apply_filters( 'FHEE_load_joyride', FALSE ) ) { |
|
551 | //joyride style |
@@ 1277-1283 (lines=7) @@ | ||
1274 | */ |
|
1275 | public function wp_enqueue_scripts() { |
|
1276 | // 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' ); |
|
1277 | if ( apply_filters( 'FHEE_load_EE_System_scripts', TRUE ) ) { |
|
1278 | // 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' ); |
|
1279 | if ( apply_filters( 'FHEE_load_jquery_validate', FALSE ) ) { |
|
1280 | // register jQuery Validate |
|
1281 | wp_register_script( 'jquery-validate', EE_GLOBAL_ASSETS_URL . 'scripts/jquery.validate.min.js', array('jquery'), '1.15.0', TRUE ); |
|
1282 | } |
|
1283 | } |
|
1284 | } |
|
1285 | ||
1286 |