| @@ 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 | ||
| @@ 498-508 (lines=11) @@ | ||
| 495 | * @access public |
|
| 496 | * @return void |
|
| 497 | */ |
|
| 498 | public function load_event_list_assets() { |
|
| 499 | do_action( 'AHEE__EED_Events_Archive__before_load_assets' ); |
|
| 500 | add_filter( 'FHEE_load_EE_Session', '__return_true' ); |
|
| 501 | add_filter( 'FHEE__EED_Ticket_Selector__load_tckt_slctr_assets', '__return_true' ); |
|
| 502 | add_action('wp_enqueue_scripts', array( $this, 'wp_enqueue_scripts' ), 10 ); |
|
| 503 | if ( EE_Registry::instance()->CFG->map_settings->use_google_maps ) { |
|
| 504 | EE_Registry::instance()->load_helper( 'Maps' ); |
|
| 505 | add_action('wp_enqueue_scripts', array( 'EEH_Maps', 'espresso_google_map_js' ), 11 ); |
|
| 506 | } |
|
| 507 | EE_Registry::instance()->load_helper( 'Event_View' ); |
|
| 508 | } |
|
| 509 | ||
| 510 | ||
| 511 | ||