Skip to content

Commit

Permalink
#5 [Library] Add Open Street Map
Browse files Browse the repository at this point in the history
  • Loading branch information
eoxia-amandine committed Mar 12, 2024
1 parent 9a8d650 commit f5ace58
Show file tree
Hide file tree
Showing 24 changed files with 1,065 additions and 176 deletions.
2 changes: 1 addition & 1 deletion annonces.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Annonces
* Plugin URI:
* Description: Add all type of announces you need to display in a large map.
* Version: 2.3.0
* Version: 2.4.0
* Author: Eoxia <[email protected]>
* Author URI: http://www.eoxia.com/
* License: AGPLv3
Expand Down
6 changes: 5 additions & 1 deletion core/action/core.action.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,15 @@ public function callback_admin_enqueue_scripts() {
* @return void nothing
*/
public function callback_front_enqueue_scripts() {
/** Leaflet for OpenStreetMap */
wp_enqueue_style( 'annonces-leaflet-css', ANNONCES_URL . 'core/asset/css/inc/leaflet.css' );
wp_enqueue_script( 'annonces-leaflet-script', ANNONCES_URL . 'core/asset/js/inc/leaflet.js' );

wp_enqueue_style( 'annonces-frontend-style', ANNONCES_URL . 'core/asset/css/style.css' );

/** URl of module in javascipt */
wp_register_script( 'annonces-frontend-script', ANNONCES_URL . 'core/asset/js/backend.min.js', 'jquery' );
wp_localize_script( 'annonces-frontend-script', 'annonces_data', array( 'url' => ANNONCES_URL ) );
wp_localize_script( 'annonces-frontend-script', 'annonces_data', array( 'url' => ANNONCES_URL, 'library' => get_option( 'annonces_library' ) ) );
wp_enqueue_script( 'annonces-frontend-script' );

/** Aller chercher la clé entrée dans les options de configuration */
Expand Down
Binary file added core/asset/css/inc/images/layers-2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/asset/css/inc/images/layers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/asset/css/inc/images/marker-icon-2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/asset/css/inc/images/marker-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/asset/css/inc/images/marker-shadow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit f5ace58

Please sign in to comment.