function jr_radius_dropdown() {
global $jr_options;
?>
<div class="radius">
<label for="radius"><?php _e('Radius:', APP_TD); ?></label>
<select name="radius" class="radius" id="radius">
<?php
$selected_radius = isset( $_GET['radius'] ) ? absint( $_GET['radius'] ) : 0;
foreach ( array( 0, 5, 10, 25, 50, 100, 200 ) as $radius ) {
if ( ! $radius ) {
$echo_radius = __( 'Auto', APP_TD );
} else {
$echo_radius = number_format_i18n( $radius ) . ' ' . $jr_options->jr_distance_unit;
}
?><option value="<?php echo esc_attr($radius); ?>" <?php selected( $selected_radius, $radius ); ?>><?php echo $echo_radius; ?></option><?php
}
?>
There are currently 1 users browsing this thread. (0 members and 1 guests)