@@ 544-547 (lines=4) @@ | ||
541 | // register cookie script for future dependencies |
|
542 | wp_register_script('jquery-cookie', EE_THIRD_PARTY_URL . 'joyride/jquery.cookie.js', array('jquery'), '2.1', TRUE ); |
|
543 | // 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' ); |
|
544 | if ( apply_filters( 'FHEE_load_jquery_validate', FALSE ) ) { |
|
545 | // register jQuery Validate |
|
546 | wp_register_script('jquery-validate', EE_GLOBAL_ASSETS_URL . 'scripts/jquery.validate.min.js', array('jquery'), '1.11.1', TRUE); |
|
547 | } |
|
548 | //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' ); |
|
549 | if ( apply_filters( 'FHEE_load_joyride', FALSE ) ) { |
|
550 | //joyride style |
@@ 1254-1260 (lines=7) @@ | ||
1251 | */ |
|
1252 | public function wp_enqueue_scripts() { |
|
1253 | // 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' ); |
|
1254 | if ( apply_filters( 'FHEE_load_EE_System_scripts', TRUE ) ) { |
|
1255 | // 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' ); |
|
1256 | if ( apply_filters( 'FHEE_load_jquery_validate', FALSE ) ) { |
|
1257 | // register jQuery Validate |
|
1258 | wp_register_script( 'jquery-validate', EE_GLOBAL_ASSETS_URL . 'scripts/jquery.validate.min.js', array('jquery'), '1.11.1', TRUE ); |
|
1259 | } |
|
1260 | } |
|
1261 | } |
|
1262 | ||
1263 |