<?php
/**
 * Advanced settings area view for the plugin
 *
 * This file is used for rendering and saving plugin general settings.
 *
 * @link       http://www.wbcomdesigns.com
 * @since      1.0.0
 *
 * @package    Bp_Checkins_Pro
 * @subpackage Bp_Checkins_Pro/admin/partials
 */

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
?>
<div class="wbcom-wrapper-admin">
	<div class="wbcom-admin-title-section">
		<h3><?php esc_html_e( 'Member directory settings', 'bp-check-in' ); ?></h3>
	</div>
	<form method="post" action="options.php">
		<div class="wbcom-admin-option-wrap wbcom-admin-option-wrap-view">
			<div class="form-table">
				<div class="wbcom-settings-section-wrap">
					<div class="wbcom-settings-section-options-heading">
						<label>
							<?php esc_html_e( 'Display map on members directory', 'bp-check-in' ); ?>
						</label>
						<p class="description"><?php esc_html_e( 'Enable this option, if you want to display map on BuddyPress members directory page.', 'bp-check-in' ); ?></p>
					</div>
					<div class="wbcom-settings-section-options">
						<label class="wb-switch">
							<input type="checkbox" class="bpcp-switch-field" name="member_directory_settings[member_directory_map]"
							checked disabled>
							<div class="wb-slider wb-round"></div>
						</label>
					</div>
				</div>
				<div class="wbcom-settings-section-wrap">
					<div class="wbcom-settings-section-options-heading">
						<label>
							<?php esc_html_e( 'Enable proximity search on members directory', 'bp-check-in' ); ?>
						</label>
						<p class="description"><?php esc_html_e( 'Enable this option, if you want to display member proximity search in place of BuddyPress members search.', 'bp-check-in' ); ?></p>
					</div>
					<div class="wbcom-settings-section-options">
						<label class="wb-switch">
							<input type="checkbox" class="bpcp-switch-field" name="member_directory_settings[member_directory_proximity_search]"
							checked disabled>
							<div class="wb-slider wb-round"></div>
						</label>
					</div>
				</div>
				<div class="wbcom-settings-section-wrap">
					<div class="wbcom-settings-section-options-heading">
						<label><?php esc_html_e( 'Distance Units', 'bp-check-in' ); ?></label>
					</div>
					<div class="wbcom-settings-section-options">
						<select class="bpchkpro-distance-units" name="member_directory_settings[distance_units]" disabled>
							<option value="none" selected><?php esc_html_e( 'Miles', 'bp-check-in' ); ?></option>
						</select>
					</div>
				</div>
				<div class="wbcom-settings-section-wrap">
					<div class="wbcom-settings-section-options-heading">
						<label>
							<?php esc_html_e( 'Radius', 'bp-check-in' ); ?>
						</label>
						<p class="description"><?php esc_html_e( 'Enter a single numeric value to be used as the default, or multiple values, comma separated, that will be displayed as a dropdown select box in the search form.', 'bp-check-in' ); ?></p>
					</div>
					<div class="wbcom-settings-section-options">
						<input type="text" name="member_directory_settings[radius]" value="Radius" class="regular-text" disabled>
					</div>
				</div>
				<div class="wbcom-settings-section-wrap">
					<div class="wbcom-settings-section-options-heading">
						<label>
							<?php esc_html_e( 'Hide default search on members directory', 'bp-check-in' ); ?>
						</label>
						<p class="description"><?php esc_html_e( 'Enable this option, if you want to hide default search in members directory.', 'bp-check-in' ); ?></p>
					</div>
					<div class="wbcom-settings-section-options">
						<label class="wb-switch">
							<input type="checkbox" class="bpcp-switch-field" name="member_directory_settings[member_directory_default_search]"
							checked disabled>
							<div class="wb-slider wb-round"></div>
						</label>
					</div>
				</div>
				<div class="wbcom-settings-section-wrap">
					<div class="wbcom-settings-section-options-heading">
						<label>
							<?php esc_html_e( 'Hide member(s) from directory map.', 'bp-check-in' ); ?>
						</label>
						<p class="description"><?php esc_html_e( 'Select those members that you want to hide from members directory google map.', 'bp-check-in' ); ?></p>
					</div>
					<div class="wbcom-settings-section-options">
						<select name="member_directory_settings[bpcp_exclude_member_map][]" id="bpcp_exclude_member_map" class="bupr_excluding_member" disabled>
							<option value="none" selected><?php esc_html_e( 'Andre', 'bp-check-in' ); ?></option>
						</select>
					</div>
				</div>
			</div>
		</div>
	</form>
</div>
	<?php
