@@ 588-599 (lines=12) @@ | ||
585 | * @access public |
|
586 | * @return void |
|
587 | */ |
|
588 | private function _load_assests() { |
|
589 | do_action( 'AHEE__EED_Events_Archive_Filters__before_load_assests' ); |
|
590 | add_filter( 'FHEE_load_css', '__return_true' ); |
|
591 | add_filter( 'FHEE_load_EE_Session', '__return_true' ); |
|
592 | add_action('wp_enqueue_scripts', array( $this, 'wp_enqueue_scripts' ), 10 ); |
|
593 | if ( EE_Registry::instance()->CFG->map_settings->use_google_maps ) { |
|
594 | EE_Registry::instance()->load_helper( 'Maps' ); |
|
595 | add_action('wp_enqueue_scripts', array( 'EEH_Maps', 'espresso_google_map_js' ), 11 ); |
|
596 | } |
|
597 | //add_filter( 'the_excerpt', array( $this, 'the_excerpt' ), 999 ); |
|
598 | EE_Registry::instance()->load_helper( 'Event_View' ); |
|
599 | } |
|
600 | ||
601 | ||
602 |
@@ 521-531 (lines=11) @@ | ||
518 | * @access public |
|
519 | * @return void |
|
520 | */ |
|
521 | public function load_event_list_assets() { |
|
522 | do_action( 'AHEE__EED_Events_Archive__before_load_assets' ); |
|
523 | add_filter( 'FHEE_load_EE_Session', '__return_true' ); |
|
524 | add_filter( 'FHEE__EED_Ticket_Selector__load_tckt_slctr_assets', '__return_true' ); |
|
525 | add_action('wp_enqueue_scripts', array( $this, 'wp_enqueue_scripts' ), 10 ); |
|
526 | if ( EE_Registry::instance()->CFG->map_settings->use_google_maps ) { |
|
527 | EE_Registry::instance()->load_helper( 'Maps' ); |
|
528 | add_action('wp_enqueue_scripts', array( 'EEH_Maps', 'espresso_google_map_js' ), 11 ); |
|
529 | } |
|
530 | EE_Registry::instance()->load_helper( 'Event_View' ); |
|
531 | } |
|
532 | ||
533 | ||
534 |