@@ 23-40 (lines=18) @@ | ||
20 | /** |
|
21 | * enqueues css and js, so that this can be called statically |
|
22 | */ |
|
23 | public static function enqueue_styles_and_scripts() |
|
24 | { |
|
25 | wp_register_style( |
|
26 | 'checkbox_dropdown_selector', |
|
27 | EE_GLOBAL_ASSETS_URL . 'css/checkbox_dropdown_selector.css', |
|
28 | array('espresso_default'), |
|
29 | EVENT_ESPRESSO_VERSION |
|
30 | ); |
|
31 | wp_enqueue_style('checkbox_dropdown_selector'); |
|
32 | wp_register_script( |
|
33 | 'checkbox_dropdown_selector', |
|
34 | EE_GLOBAL_ASSETS_URL . 'scripts/checkbox_dropdown_selector.js', |
|
35 | array('jquery'), |
|
36 | EVENT_ESPRESSO_VERSION, |
|
37 | true |
|
38 | ); |
|
39 | wp_enqueue_script('checkbox_dropdown_selector'); |
|
40 | } |
|
41 | ||
42 | ||
43 |
@@ 590-609 (lines=20) @@ | ||
587 | /** |
|
588 | * Enqueuing scripts and styles specific to this view |
|
589 | */ |
|
590 | public function load_scripts_styles_edit() |
|
591 | { |
|
592 | //styles |
|
593 | wp_enqueue_style('espresso-ui-theme'); |
|
594 | wp_register_style( |
|
595 | 'event-editor-css', |
|
596 | EVENTS_ASSETS_URL . 'event-editor.css', |
|
597 | array('ee-admin-css'), |
|
598 | EVENT_ESPRESSO_VERSION |
|
599 | ); |
|
600 | wp_enqueue_style('event-editor-css'); |
|
601 | //scripts |
|
602 | wp_register_script( |
|
603 | 'event-datetime-metabox', |
|
604 | EVENTS_ASSETS_URL . 'event-datetime-metabox.js', |
|
605 | array('event_editor_js', 'ee-datepicker'), |
|
606 | EVENT_ESPRESSO_VERSION |
|
607 | ); |
|
608 | wp_enqueue_script('event-datetime-metabox'); |
|
609 | } |
|
610 | ||
611 | ||
612 | /** |
@@ 667-678 (lines=12) @@ | ||
664 | } |
|
665 | ||
666 | ||
667 | public function load_scripts_styles() |
|
668 | { |
|
669 | //style |
|
670 | wp_register_style( |
|
671 | 'espresso_reg', |
|
672 | REG_ASSETS_URL . 'espresso_registrations_admin.css', |
|
673 | array('ee-admin-css'), |
|
674 | EVENT_ESPRESSO_VERSION |
|
675 | ); |
|
676 | wp_enqueue_style('espresso_reg'); |
|
677 | //script |
|
678 | wp_register_script( |
|
679 | 'espresso_reg', |
|
680 | REG_ASSETS_URL . 'espresso_registrations_admin.js', |
|
681 | array('jquery-ui-datepicker', 'jquery-ui-draggable', 'ee_admin_js'), |