Skip to content

Commit

Permalink
replace custom map settings page with CMB2 settings page #1412
Browse files Browse the repository at this point in the history
  • Loading branch information
hansmorb committed Nov 15, 2023
1 parent 6e0bc89 commit 9edccad
Show file tree
Hide file tree
Showing 7 changed files with 528 additions and 1,652 deletions.
169 changes: 0 additions & 169 deletions assets/map/js/cb-map-marker-upload.js

This file was deleted.

7 changes: 0 additions & 7 deletions includes/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@ function commonsbooking_admin() {
wp_enqueue_style( 'admin-styles', COMMONSBOOKING_PLUGIN_ASSETS_URL . 'admin/css/admin.css', array(), COMMONSBOOKING_VERSION );
wp_enqueue_script( 'cb-scripts-admin', COMMONSBOOKING_PLUGIN_ASSETS_URL . 'admin/js/admin.js', array() );

// Map marker upload scripts
// TODO needs to be evaluated. Maybe not working on all systems
if ( get_current_screen()->id == 'cb_map' ) {
$script_path = COMMONSBOOKING_MAP_ASSETS_URL . 'js/cb-map-marker-upload.js';
wp_enqueue_script( 'cb-map-marker-upload_js', $script_path );
}

// CB 0.X migration
wp_localize_script(
'cb-scripts-admin',
Expand Down
Loading

0 comments on commit 9edccad

Please sign in to comment.