Changeset 2360915
- Timestamp:
- 08/14/2020 08:51:11 AM (6 years ago)
- Location:
- shmapper-by-teplitsa
- Files:
-
- 3 edited
-
tags/1.3.6/README.txt (modified) (1 diff)
-
tags/1.3.6/class/ShMapper.class.php (modified) (10 diffs)
-
trunk/class/ShMapper.class.php (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
shmapper-by-teplitsa/tags/1.3.6/README.txt
r2360804 r2360915 5 5 Tags: map, OpenStreetMap, OSM, yandex.map, crowdsourcing, карта, Яндекс.карты, картирование, mapping, crowdsourced mapping, user mapping 6 6 Requires at least: 3.6.1 7 Tested up to: 5. 37 Tested up to: 5.5 8 8 Requires PHP: 5.6 9 9 Stable tag: trunk -
shmapper-by-teplitsa/tags/1.3.6/class/ShMapper.class.php
r2360804 r2360915 198 198 wp_enqueue_style( "ShMapper"); 199 199 //js 200 wp_enqueue_script("jquery-core");201 wp_enqueue_script('jquery-migrate');202 200 wp_register_script("inline", admin_url().'/js/inline-edit-post.js', array()); 203 201 wp_enqueue_script("inline"); 204 wp_register_script("ShMapper", plugins_url( '../assets/js/ShMapper.js', __FILE__ ), array( ));202 wp_register_script("ShMapper", plugins_url( '../assets/js/ShMapper.js', __FILE__ ), array('jquery-migrate')); 205 203 wp_enqueue_script("ShMapper"); 206 204 wp_register_script("ShMapper.admin", plugins_url( '../assets/js/ShMapper.admin.js', __FILE__ ), array()); … … 248 246 wp_enqueue_script("ShMapper.osm"); 249 247 } 250 wp_localize_script( " jquery-core", "map_type", array(static::$options['map_api']) );248 wp_localize_script( "ShMapper", "map_type", array(static::$options['map_api']) ); 251 249 252 250 // load media library scripts … … 254 252 //ajax 255 253 wp_localize_script( 256 ' jquery-core',254 'ShMapper', 257 255 'myajax', 258 256 array( … … 262 260 ); 263 261 wp_localize_script( 264 ' jquery-core',262 'ShMapper', 265 263 'myajax2', 266 264 array( … … 269 267 ); 270 268 271 wp_localize_script( ' jquery-core', 'shm_maps', array() );269 wp_localize_script( 'ShMapper', 'shm_maps', array() ); 272 270 wp_localize_script( 273 ' jquery-core',271 'ShMapper', 274 272 'voc', 275 273 array( … … 289 287 wp_enqueue_style( "ShMapper"); 290 288 291 //js292 wp_enqueue_script("jquery-core");293 wp_enqueue_script('jquery-migrate');294 289 wp_enqueue_script('jquery-ui-core'); 295 290 wp_enqueue_script('jquery-ui-draggable'); 296 291 wp_register_script("touchpunch", plugins_url( '../assets/js/touchpunch.js', __FILE__ ), array()); 297 292 wp_enqueue_script("touchpunch"); 298 wp_register_script("ShMapper", plugins_url( '../assets/js/ShMapper.js', __FILE__ ), array( ));293 wp_register_script("ShMapper", plugins_url( '../assets/js/ShMapper.js', __FILE__ ), array( 'jquery-migrate')); 299 294 wp_enqueue_script("ShMapper"); 300 295 wp_register_style("layerSwitcher", SHM_URLPATH . 'assets/css/layerSwitcher.css', array()); … … 341 336 342 337 } 343 wp_localize_script( ' jquery-core', 'map_type', array( static::$options['map_api'] ) );338 wp_localize_script( 'ShMapper', 'map_type', array( static::$options['map_api'] ) ); 344 339 345 340 // ajax. 346 341 wp_localize_script( 347 ' jquery-core',342 'ShMapper', 348 343 'myajax', 349 344 array( … … 353 348 ); 354 349 wp_localize_script( 355 ' jquery-core',350 'ShMapper', 356 351 'myajax2', 357 352 array( … … 360 355 ); 361 356 wp_localize_script( 362 ' jquery-core',357 'ShMapper', 363 358 'shm_set_req', 364 359 array( … … 366 361 ) 367 362 ); 368 wp_localize_script( ' jquery-core', 'shm_maps', array() );363 wp_localize_script( 'ShMapper', 'shm_maps', array() ); 369 364 wp_localize_script( 370 ' jquery-core',365 'ShMapper', 371 366 'voc', 372 367 array( -
shmapper-by-teplitsa/trunk/class/ShMapper.class.php
r2360804 r2360915 198 198 wp_enqueue_style( "ShMapper"); 199 199 //js 200 wp_enqueue_script("jquery-core");201 wp_enqueue_script('jquery-migrate');202 200 wp_register_script("inline", admin_url().'/js/inline-edit-post.js', array()); 203 201 wp_enqueue_script("inline"); 204 wp_register_script("ShMapper", plugins_url( '../assets/js/ShMapper.js', __FILE__ ), array( ));202 wp_register_script("ShMapper", plugins_url( '../assets/js/ShMapper.js', __FILE__ ), array('jquery-migrate')); 205 203 wp_enqueue_script("ShMapper"); 206 204 wp_register_script("ShMapper.admin", plugins_url( '../assets/js/ShMapper.admin.js', __FILE__ ), array()); … … 248 246 wp_enqueue_script("ShMapper.osm"); 249 247 } 250 wp_localize_script( " jquery-core", "map_type", array(static::$options['map_api']) );248 wp_localize_script( "ShMapper", "map_type", array(static::$options['map_api']) ); 251 249 252 250 // load media library scripts … … 254 252 //ajax 255 253 wp_localize_script( 256 ' jquery-core',254 'ShMapper', 257 255 'myajax', 258 256 array( … … 262 260 ); 263 261 wp_localize_script( 264 ' jquery-core',262 'ShMapper', 265 263 'myajax2', 266 264 array( … … 269 267 ); 270 268 271 wp_localize_script( ' jquery-core', 'shm_maps', array() );269 wp_localize_script( 'ShMapper', 'shm_maps', array() ); 272 270 wp_localize_script( 273 ' jquery-core',271 'ShMapper', 274 272 'voc', 275 273 array( … … 289 287 wp_enqueue_style( "ShMapper"); 290 288 291 //js292 wp_enqueue_script("jquery-core");293 wp_enqueue_script('jquery-migrate');294 289 wp_enqueue_script('jquery-ui-core'); 295 290 wp_enqueue_script('jquery-ui-draggable'); 296 291 wp_register_script("touchpunch", plugins_url( '../assets/js/touchpunch.js', __FILE__ ), array()); 297 292 wp_enqueue_script("touchpunch"); 298 wp_register_script("ShMapper", plugins_url( '../assets/js/ShMapper.js', __FILE__ ), array( ));293 wp_register_script("ShMapper", plugins_url( '../assets/js/ShMapper.js', __FILE__ ), array( 'jquery-migrate')); 299 294 wp_enqueue_script("ShMapper"); 300 295 wp_register_style("layerSwitcher", SHM_URLPATH . 'assets/css/layerSwitcher.css', array()); … … 341 336 342 337 } 343 wp_localize_script( ' jquery-core', 'map_type', array( static::$options['map_api'] ) );338 wp_localize_script( 'ShMapper', 'map_type', array( static::$options['map_api'] ) ); 344 339 345 340 // ajax. 346 341 wp_localize_script( 347 ' jquery-core',342 'ShMapper', 348 343 'myajax', 349 344 array( … … 353 348 ); 354 349 wp_localize_script( 355 ' jquery-core',350 'ShMapper', 356 351 'myajax2', 357 352 array( … … 360 355 ); 361 356 wp_localize_script( 362 ' jquery-core',357 'ShMapper', 363 358 'shm_set_req', 364 359 array( … … 366 361 ) 367 362 ); 368 wp_localize_script( ' jquery-core', 'shm_maps', array() );363 wp_localize_script( 'ShMapper', 'shm_maps', array() ); 369 364 wp_localize_script( 370 ' jquery-core',365 'ShMapper', 371 366 'voc', 372 367 array(
Note: See TracChangeset
for help on using the changeset viewer.