fixed org page broken issue whitout gmap api key
This commit is contained in:
parent
020b878200
commit
56d35e2c6a
|
@ -32,17 +32,19 @@ function mep_org_tax_location_fileds($taxonomy) {
|
|||
<label for="org_country"><?php _e('Country:', 'mage-eventpress'); ?></label>
|
||||
<input type="text" name="org_country" id='org_country' class="postform">
|
||||
</div>
|
||||
|
||||
|
||||
<div class='sec'>
|
||||
<?php
|
||||
$user_api = mep_get_option( 'google-map-api', 'general_setting_sec', '');
|
||||
if($user_api){
|
||||
?>
|
||||
<input id="pac-input" name='location_name' value='<?php //echo $values['location_name'][0]; ?>'/>
|
||||
</div>
|
||||
|
||||
|
||||
<input type="text" class="form-control" style="display: none;" required name="latitude" value="">
|
||||
<input type="text" class="form-control" style="display: none;" required name="longitude" value="">
|
||||
<div id="map"></div>
|
||||
<!-- <div id="map"></div> -->
|
||||
<?php
|
||||
$user_api = mep_get_option( 'google-map-api', 'general_setting_sec', '');
|
||||
if($user_api){
|
||||
|
@ -139,9 +141,10 @@ google.maps.event.addDomListener(window, "load", initMap);
|
|||
</script>
|
||||
<?php
|
||||
}else{
|
||||
echo "<span class=mep_status><span class=err>No Google MAP API Key Found. Please enter API KEY <a href=".get_site_url()."/wp-admin/options-general.php?page=mep_event_settings_page>Here</a></span></span>";
|
||||
// echo "<span class=mep_status><span class=err>No Google MAP API Key Found. Please enter API KEY <a href=".get_site_url()."/wp-admin/options-general.php?page=mep_event_settings_page>Here</a></span></span>";
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
|
@ -244,7 +247,7 @@ if($user_api){
|
|||
|
||||
<input type="text" class="form-control" style="display: none;" required name="latitude" value="<?php echo get_term_meta( $term->term_id, 'latitude', true ); ?>">
|
||||
<input type="text" class="form-control" style="display: none;" required name="longitude" value="<?php echo get_term_meta( $term->term_id, 'longitude', true ); ?>">
|
||||
<div id="map"></div>
|
||||
<!-- <div id="map"></div> -->
|
||||
<?php
|
||||
|
||||
if($user_api){
|
||||
|
@ -347,7 +350,7 @@ google.maps.event.addDomListener(window, "load", initMap);
|
|||
</script>
|
||||
<?php
|
||||
}else{
|
||||
echo "<span class=mep_status><span class=err>No Google MAP API Key Found. Please enter API KEY <a href=".get_site_url()."/wp-admin/options-general.php?page=mep_event_settings_page>Here</a></span></span>";
|
||||
// echo "<span class=mep_status><span class=err>No Google MAP API Key Found. Please enter API KEY <a href=".get_site_url()."/wp-admin/options-general.php?page=mep_event_settings_page>Here</a></span></span>";
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
|
@ -399,6 +402,4 @@ function update_feature_meta( $term_id, $tt_id ){
|
|||
$longitude = strip_tags( $_POST['longitude'] );
|
||||
update_term_meta( $term_id, 'longitude', $longitude );
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -3,7 +3,7 @@
|
|||
* Plugin Name: Woocommerce Events Manager
|
||||
* Plugin URI: http://mage-people.com
|
||||
* Description: A Complete Event Solution for WordPress by MagePeople..
|
||||
* Version: 2.5.0
|
||||
* Version: 2.5.1
|
||||
* Author: MagePeople Team
|
||||
* Author URI: http://www.mage-people.com/
|
||||
* Text Domain: mage-eventpress
|
||||
|
|
Loading…
Reference in New Issue