<?php
// Include file for Hours Content Management

?>
<div>
<h2>Clinic Hours Management</h2>
</div>
<?php

	$ampm = $this->get_option( 'ampmcase' );
	$twentyfourhourtime = $this->get_option( 'twentyfourhourtime' );
	$trailing = $this->get_option( 'trailingzero' );
	$separator = $this->get_option( 'custom_separator' );
	$ampmseparator = $this->get_option( 'ampmseparator' );
	
?>

<label for="custom_separator"><strong>Custom Separator:</strong></label>
<br />
<small>You can add spaces in the separator so there is space between the hours.</small>
<br />
<p>4:11PM (separator) 5:00PM</p>
<input id="custom_separator" type="text" name="aow_hub_node_settings[custom_separator]" value="<?php echo $separator; ?>" maxlength="3" placeholder='For example "to"' />
<br /><br />
<label for='ampmseparator'><strong>AM/PM separator</strong></label>
<br />
Do you want a space between the hours and AM/PM?&nbsp; <input type="radio" name="aow_hub_node_settings[ampmseparator]" value='yes' <?php if (isset($ampmseparator) && $ampmseparator == "yes"): ?> checked <?php endif; ?> /> Yes&nbsp; <input type="radio" name="aow_hub_node_settings[ampmseparator]" value="no" <?php if (isset($ampmseparator) && $ampmseparator == "no"): ?> checked <?php endif; ?> /> No
<br /><br />
<label for='twentyfourhourtime'><strong>Display as twenty-four hour time?</strong></label>
<br />
Do you want to display your time as twenty-four hour time?&nbsp; <input type="radio" name='aow_hub_node_settings[twentyfourhourtime]' value='true' <?php if (isset($twentyfourhourtime) && $twentyfourhourtime == "true"): ?> checked <?php endif; ?> /> Yes&nbsp; <input type="radio" name="aow_hub_node_settings[twentyfourhourtime]" value="false" <?php if (isset($twentyfourhourtime) && $twentyfourhourtime == "false"): ?> checked <?php endif; ?> /> No
<br />
<small>For example, 7:00 am or 7:00am.</small>
<br />
<br />
<label for="ampm"><strong>Capitalization</strong></label>
<br />
<p><input type="radio" name="aow_hub_node_settings[ampmcase]" value="lowercase" <?php if ($ampm == "lowercase"):?> checked <?php endif; ?> /> Lowercase 8:00am - 5:00pm</p>
<p><input type="radio" name="aow_hub_node_settings[ampmcase]" value="uppercase" <?php if ($ampm == "uppercase"): ?> checked <?php endif; ?> /> Uppercase 8:00AM - 5:00PM</p>
<br /><label for="trailingzero"><strong>Trailing 0's at the top of the hour.</strong></label><br />
<p><input type="radio" name="aow_hub_node_settings[trailingzero]" value="yes" <?php if ($trailing == "yes"): ?> checked <?php endif; ?> /> 5:00PM (5:30PM)</p>
<p><input type="radio" name="aow_hub_node_settings[trailingzero]" value="no" <?php if ($trailing == "no"): ?> checked <?php endif; ?> />  5PM (5:30PM)</p>