- - +
+
+ ?>
+
diff --git a/soundmap/js/soundmap-admin.js b/soundmap/js/soundmap-admin.js index 7f11fd8..24a7593 100644 --- a/soundmap/js/soundmap-admin.js +++ b/soundmap/js/soundmap-admin.js @@ -172,7 +172,7 @@ jQuery(document).ready(function($) { // Validate number of uploaded files if (uploader.total.uploaded == 0) { // Files in queue upload them first - if (uploader.files.length > 0) { + if (uploader.files.length >= 0) { // When all files are uploaded submit form uploader.bind('UploadProgress', function() { if (uploader.total.uploaded == uploader.files.length) @@ -180,10 +180,12 @@ jQuery(document).ready(function($) { }); uploader.start(); - } else + } else { // alert('You must at least upload one file.'); + + } - e.preventDefault(); + } }); diff --git a/soundmap/js/soundmap-wp.js b/soundmap/js/soundmap-wp.js index 7cee0c2..322683c 100644 --- a/soundmap/js/soundmap-wp.js +++ b/soundmap/js/soundmap-wp.js @@ -31,6 +31,7 @@ jQuery(document).ready(function($) { }; $.post(WP_Params.ajaxurl, data, function(response) { result = $.parseJSON(response); + if (result){ $.each( result, function(i, m) { $('.map_canvas').gmap('addMarker', { 'position': new google.maps.LatLng(m.lat, m.lng) }).data('postid', m.id).click(function(){ id=$(this).data('postid'); @@ -49,6 +50,10 @@ jQuery(document).ready(function($) { }); }) }); + + + + } }); } }); diff --git a/soundmap/soundmap.php b/soundmap/soundmap.php index 38bf056..83822ea 100644 --- a/soundmap/soundmap.php +++ b/soundmap/soundmap.php @@ -35,14 +35,14 @@ function soundmap_init() { 'name' => __('Marks', 'soundmap'), 'singular_name' => __('Mark', 'soundmap'), 'add_new' => _x('Add New', 'marker', 'soundmap'), - 'add_new_item' => __('Add New Marker'), - 'edit_item' => __('Edit Marker'), - 'new_item' => __('New Marker'), - 'all_items' => __('All Markers'), - 'view_item' => __('View Marker'), - 'search_items' => __('Search Markers'), - 'not_found' => __('No markers found'), - 'not_found_in_trash' => __('No markers found in Trash'), + 'add_new_item' => __('Add New Marker', 'soundmap'), + 'edit_item' => __('Edit Marker', 'soundmap'), + 'new_item' => __('New Marker', 'soundmap'), + 'all_items' => __('All Markers', 'soundmap'), + 'view_item' => __('View Marker', 'soundmap'), + 'search_items' => __('Search Markers', 'soundmap'), + 'not_found' => __('No markers found', 'soundmap'), + 'not_found_in_trash' => __('No markers found in Trash', 'soundmap'), 'parent_item_colon' => '', 'menu_name' => 'Markers' ); diff --git a/soundmap/theme/theme_map.css b/soundmap/theme/theme_map.css index 821a861..9e50b6b 100644 --- a/soundmap/theme/theme_map.css +++ b/soundmap/theme/theme_map.css @@ -1,3 +1,50 @@ -#map-page{width:100%; height:100%; position:absolute; top:0; left:0;} -#map{width:100%; height:100%;} -.map_canvas{width:100%; height:100%;} \ No newline at end of file + +#map-page{ + position:absolute; + top:0; + left:0; + background-color: white; + width: 100%; + height: 100%; + min-width: 1200px; + +} + +#map{ + height:100%; + width: 100%; +} + +.map_canvas{width:100%; height:100%;} + +#left{ + height: 100%; + width: 75%; + position: relative; + float: left; + z-index: 100; +} + +#right{ + width: 25%; + height: 100%; + background: white url(img/shadow.png) repeat-y left; + overflow-y: auto; + float: right; + z-index: -1; + min-width: 300px; +} +#map-content{ + padding: 20px 10px; +} + +.logo{ + text-align: center; + height: 50px; + padding-top: 20px; + +} + +.marker-window{ + width:300px; +} diff --git a/soundmap/theme/theme_window.php b/soundmap/theme/theme_window.php index 086b979..9bf5007 100644 --- a/soundmap/theme/theme_window.php +++ b/soundmap/theme/theme_window.php @@ -3,20 +3,22 @@ ?> -
+