update
This commit is contained in:
@@ -218,6 +218,16 @@ class Yacht_Booking {
|
||||
YACHT_BOOKING_VERSION
|
||||
);
|
||||
|
||||
// WP color picker on yacht edit form.
|
||||
if ( isset( $_GET['page'] ) && 'yacht-bookings-add-yacht' === $_GET['page'] ) {
|
||||
wp_enqueue_style( 'wp-color-picker' );
|
||||
wp_enqueue_script( 'wp-color-picker' );
|
||||
wp_add_inline_script(
|
||||
'wp-color-picker',
|
||||
'jQuery(function($){ $(".yacht-color-picker").wpColorPicker(); });'
|
||||
);
|
||||
}
|
||||
|
||||
wp_enqueue_script(
|
||||
'yacht-booking-admin',
|
||||
YACHT_BOOKING_PLUGIN_URL . 'admin/assets/js/admin.js',
|
||||
|
||||
Reference in New Issue
Block a user