Display latitude and longitude setting when adding venues

This commit is contained in:
Brian Miyaji
2015-02-13 18:58:22 +11:00
parent ab8f158406
commit 353ac59495

View File

@@ -70,11 +70,17 @@ class SP_Admin_Taxonomies {
<div class="form-field"> <div class="form-field">
<label for="term_meta[sp_address]"><?php _e( 'Address', 'sportspress' ); ?></label> <label for="term_meta[sp_address]"><?php _e( 'Address', 'sportspress' ); ?></label>
<input type="text" class="sp-address" name="term_meta[sp_address]" id="term_meta[sp_address]" value=""> <input type="text" class="sp-address" name="term_meta[sp_address]" id="term_meta[sp_address]" value="">
<input type="hidden" class="sp-latitude" name="term_meta[sp_latitude]" id="term_meta[sp_latitude]" value="<?php echo $latitude; ?>">
<input type="hidden" class="sp-longitude" name="term_meta[sp_longitude]" id="term_meta[sp_longitude]" value="<?php echo $longitude; ?>">
<p><div class="sp-location-picker"></div></p> <p><div class="sp-location-picker"></div></p>
<p><?php _e( "Drag the marker to the venue's location.", 'sportspress' ); ?></p> <p><?php _e( "Drag the marker to the venue's location.", 'sportspress' ); ?></p>
</div> </div>
<div class="form-field">
<label for="term_meta[sp_latitude]"><?php _e( 'Latitude', 'sportspress' ); ?></label>
<input type="text" class="sp-latitude" name="term_meta[sp_latitude]" id="term_meta[sp_latitude]" value="<?php echo $latitude; ?>">
</div>
<div class="form-field">
<label for="term_meta[sp_longitude]"><?php _e( 'Longitude', 'sportspress' ); ?></label>
<input type="text" class="sp-longitude" name="term_meta[sp_longitude]" id="term_meta[sp_longitude]" value="<?php echo $longitude; ?>">
</div>
<?php <?php
} }