| @@ 172-182 (lines=11) @@ | ||
| 169 | /** |
|
| 170 | * @inheritdoc |
|
| 171 | */ |
|
| 172 | public function enqueue_scripts() { |
|
| 173 | ||
| 174 | // Enqueue the media scripts to be used for the publisher's logo selection. |
|
| 175 | wp_enqueue_media(); |
|
| 176 | ||
| 177 | // JavaScript required for the settings page. |
|
| 178 | // @todo: try to move to the `wordlift-admin.bundle.js`. |
|
| 179 | wp_enqueue_script( 'wordlift-admin-settings-page', plugin_dir_url( dirname( __FILE__ ) ) . 'admin/js/1/settings.js', array( 'wp-util' ) ); |
|
| 180 | wp_enqueue_style( 'wordlift-admin-settings-page', plugin_dir_url( dirname( __FILE__ ) ) . 'admin/js/1/settings.css' ); |
|
| 181 | ||
| 182 | } |
|
| 183 | ||
| 184 | /** |
|
| 185 | * Configure all the configuration parameters. |
|
| @@ 108-116 (lines=9) @@ | ||
| 105 | * |
|
| 106 | * @return void |
|
| 107 | */ |
|
| 108 | public function enqueue_popup_scripts() { |
|
| 109 | // Bail if we don't have permissions to show the popup. |
|
| 110 | if ( ! $this->has_permission_to_show_popup() ) { |
|
| 111 | return; |
|
| 112 | } |
|
| 113 | ||
| 114 | wp_enqueue_style( 'wordlift-admin-feedback-popup', plugin_dir_url( dirname( __FILE__ ) ) . 'admin/css/wordlift-admin-feedback-popup.css', array() ); |
|
| 115 | wp_enqueue_script( 'wordlift-admin-feedback-popup', plugin_dir_url( dirname( __FILE__ ) ) . 'admin/js/wordlift-admin-feedback-popup.js', array( 'jquery' ) ); |
|
| 116 | } |
|
| 117 | ||
| 118 | /** |
|
| 119 | * Handle the deactivation ajax call |
|