| @@ 1274-1283 (lines=10) @@ | ||
| 1271 | */ |
|
| 1272 | public function wp_enqueue_scripts() { |
|
| 1273 | // 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' ); |
|
| 1274 | if ( apply_filters( 'FHEE_load_EE_System_scripts', TRUE ) ) { |
|
| 1275 | // 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' ); |
|
| 1276 | if ( apply_filters( 'FHEE_load_jquery_validate', FALSE ) ) { |
|
| 1277 | // register jQuery Validate and additional methods |
|
| 1278 | wp_register_script( 'jquery-validate', EE_GLOBAL_ASSETS_URL . 'scripts/jquery.validate.min.js', array('jquery' ), '1.15.0', TRUE ); |
|
| 1279 | 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 ); |
|
| 1280 | } |
|
| 1281 | wp_register_script( 'select2', EE_GLOBAL_ASSETS_URL . 'scripts/select2.min.js', array(), '4.0.2', true ); |
|
| 1282 | wp_register_style( 'select2', EE_GLOBAL_ASSETS_URL . 'css/select2.min.css', array(), '4.0.2', 'all' ); |
|
| 1283 | } |
|
| 1284 | } |
|
| 1285 | ||
| 1286 | ||
| @@ 550-560 (lines=11) @@ | ||
| 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 |
|
| 552 | wp_register_style('joyride-css', EE_THIRD_PARTY_URL . 'joyride/joyride-2.1.css', array(), '2.1'); |
|
| 553 | wp_register_style('ee-joyride-css', EE_GLOBAL_ASSETS_URL . 'css/ee-joyride-styles.css', array('joyride-css'), EVENT_ESPRESSO_VERSION ); |
|
| 554 | wp_register_script('joyride-modernizr', EE_THIRD_PARTY_URL . 'joyride/modernizr.mq.js', array(), '2.1', TRUE ); |
|
| 555 | //joyride JS |
|
| 556 | wp_register_script('jquery-joyride', EE_THIRD_PARTY_URL . 'joyride/jquery.joyride-2.1.js', array('jquery-cookie', 'joyride-modernizr'), '2.1', TRUE ); |
|
| 557 | // wanna go for a joyride? |
|
| 558 | wp_enqueue_style('ee-joyride-css'); |
|
| 559 | wp_enqueue_script('jquery-joyride'); |
|
| 560 | } |
|
| 561 | //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' ); |
|
| 562 | if ( apply_filters( 'FHEE_load_qtip', FALSE ) ) { |
|
| 563 | EEH_Qtip_Loader::instance()->register_and_enqueue(); |
|