| @@ 117-123 (lines=7) @@ | ||
| 114 | wp_register_script('geodirectory-leaflet-geo-script', geodir_plugin_url() . '/geodirectory-assets/leaflet/osm.geocode.js', array(), GEODIRECTORY_VERSION);
|
|
| 115 | wp_enqueue_script('geodirectory-leaflet-geo-script');
|
|
| 116 | ||
| 117 | if ($is_detail_page) {
|
|
| 118 | wp_register_style('geodirectory-leaflet-routing-style', geodir_plugin_url() . '/geodirectory-assets/leaflet/routing/leaflet-routing-machine.css', array(), GEODIRECTORY_VERSION);
|
|
| 119 | wp_enqueue_style('geodirectory-leaflet-routing-style');
|
|
| 120 | ||
| 121 | wp_register_script('geodirectory-leaflet-routing-script', geodir_plugin_url() . '/geodirectory-assets/leaflet/routing/leaflet-routing-machine.js', array(), GEODIRECTORY_VERSION);
|
|
| 122 | wp_enqueue_script('geodirectory-leaflet-routing-script');
|
|
| 123 | } |
|
| 124 | } |
|
| 125 | wp_enqueue_script( 'jquery-ui-autocomplete' ); |
|
| 126 | ||
| @@ 200-206 (lines=7) @@ | ||
| 197 | } |
|
| 198 | ||
| 199 | // font awesome rating script |
|
| 200 | if (get_option('geodir_reviewrating_enable_font_awesome')) {
|
|
| 201 | wp_register_script('geodir-barrating-js', geodir_plugin_url() . '/geodirectory-assets/js/jquery.barrating.min.js', array(), GEODIRECTORY_VERSION, true);
|
|
| 202 | wp_enqueue_script('geodir-barrating-js');
|
|
| 203 | } else { // default rating script
|
|
| 204 | wp_register_script('geodir-jRating-js', geodir_plugin_url() . '/geodirectory-assets/js/jRating.jquery.min.js', array(), GEODIRECTORY_VERSION, true);
|
|
| 205 | wp_enqueue_script('geodir-jRating-js');
|
|
| 206 | } |
|
| 207 | ||
| 208 | wp_register_script('geodir-on-document-load', geodir_plugin_url() . '/geodirectory-assets/js/on_document_load.js#asyncload', array(), GEODIRECTORY_VERSION, true);
|
|
| 209 | wp_enqueue_script('geodir-on-document-load');
|
|
| @@ 137-143 (lines=7) @@ | ||
| 134 | wp_enqueue_script('geodirectory-goMap-script');
|
|
| 135 | ||
| 136 | // font awesome rating script |
|
| 137 | if (get_option('geodir_reviewrating_enable_font_awesome')) {
|
|
| 138 | wp_register_script('geodir-barrating-js', geodir_plugin_url() . '/geodirectory-assets/js/jquery.barrating.min.js', array(), GEODIRECTORY_VERSION);
|
|
| 139 | wp_enqueue_script('geodir-barrating-js');
|
|
| 140 | } else { // default rating script
|
|
| 141 | wp_register_script('geodir-jRating-js', geodir_plugin_url() . '/geodirectory-assets/js/jRating.jquery.js', array(), GEODIRECTORY_VERSION);
|
|
| 142 | wp_enqueue_script('geodir-jRating-js');
|
|
| 143 | } |
|
| 144 | ||
| 145 | wp_register_script('geodir-on-document-load', geodir_plugin_url() . '/geodirectory-assets/js/on_document_load.js', array(), GEODIRECTORY_VERSION);
|
|
| 146 | wp_enqueue_script('geodir-on-document-load');
|
|