| @@ 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 | ||
| @@ 523-533 (lines=11) @@ | ||
| 520 | * @access public |
|
| 521 | * @return void |
|
| 522 | */ |
|
| 523 | public function load_event_list_assets() { |
|
| 524 | do_action( 'AHEE__EED_Events_Archive__before_load_assets' ); |
|
| 525 | add_filter( 'FHEE_load_EE_Session', '__return_true' ); |
|
| 526 | add_filter( 'FHEE__EED_Ticket_Selector__load_tckt_slctr_assets', '__return_true' ); |
|
| 527 | add_action('wp_enqueue_scripts', array( $this, 'wp_enqueue_scripts' ), 10 ); |
|
| 528 | if ( EE_Registry::instance()->CFG->map_settings->use_google_maps ) { |
|
| 529 | EE_Registry::instance()->load_helper( 'Maps' ); |
|
| 530 | add_action('wp_enqueue_scripts', array( 'EEH_Maps', 'espresso_google_map_js' ), 11 ); |
|
| 531 | } |
|
| 532 | EE_Registry::instance()->load_helper( 'Event_View' ); |
|
| 533 | } |
|
| 534 | ||
| 535 | ||
| 536 | ||