<?php 
// prevent direct access
if (!isset($options)) {
die('You Can not Access Directly');	
}
?>
		<div class="page-header page-heading">
            <h1><i class="fa fa-paint-brush"></i> Default Theme Options</h1>
        </div>
		<?php if (isset($message)) {echo $message;} ?>
		<form role="form" method="POST" action="">
		  <div class="form-group">
			<label for="site_logo">Site Logo</label>
			<input type="text" name="site_logo" id="site_logo" class="form-control" value="<?php echo $options['site_logo']; ?>" />
		  </div>
		  <div class="form-group">
			<label for="pagination_load">Pagination Load</label>
			<div><input type="radio" name="pagination_load" value="normal" <?php if (!isset($options['pagination_load']) OR $options['pagination_load'] == 'normal') {echo 'CHECKED';} ?> /> Normal</div>
			<div><input type="radio" name="pagination_load" value="ajax" <?php if ($options['pagination_load'] == 'ajax') {echo 'CHECKED';} ?> /> Ajax</div>
		  </div>
		  <div class="form-group">
			<input type="hidden" name="display_featured_slider" value="0" />
			<input type="checkbox" name="display_featured_slider" id="display_featured_slider" value="1" <?php if (isset($options['display_featured_slider']) AND $options['display_featured_slider'] == 1) {echo 'CHECKED';} ?> /> <span class="checkbox-label">Display Featured Slider ?</span>
		  </div>
		  <div id="featured_div">
		  <div class="form-group">
			<label for="featured_content">Featured Slider Content</label>
			<select name="featured_content" id="featured_content" class="form-control">
			<option value="media" <?php if ($options['featured_content'] == 'media') {echo 'SELECTED';} ?>>Most Viewed Media</option>
			<option value="lists" <?php if ($options['featured_content'] == 'lists') {echo 'SELECTED';} ?>>Public Lists</option>
			</select>
		  </div>
		  <div class="form-group">
			<label for="featured_slider_items_number">Featured Slider Items Number</label>
			<select name="featured_slider_items_number" id="featured_slider_items_number" class="form-control">
			<?php for ($r=4;$r<21;$r=$r+4) { ?>
			<option value="<?php echo $r; ?>" <?php if (isset($options['featured_slider_items_number']) AND $options['featured_slider_items_number'] == $r) {echo 'SELECTED';} ?>><?php echo $r; ?></option>
			<?php } ?>
			</select>
		  </div>
		  </div>
		  <div class="form-group">
			<label for="home_media_number">Number Of Media Items In HomePage</label>
			<input type="number" name="home_media_number" id="home_media_number" class="form-control" value="<?php if (isset($options['home_media_number'])) { echo $options['home_media_number']; }  ?>" placeholder="12" />
		  </div>
		  <div class="form-group">
			<label for="category_media_number">Number Of Media Items In Each Category</label>
			<input type="number" name="category_media_number" id="category_media_number" class="form-control" value="<?php if (isset($options['category_media_number'])) { echo $options['category_media_number']; }  ?>" placeholder="12" />
		  </div>
		  <div class="form-group">
			<label for="search_media_number">Number Of Media Items In Each Search results Page</label>
			<input type="number" name="search_media_number" id="search_media_number" class="form-control" value="<?php if (isset($options['search_media_number'])) { echo $options['search_media_number']; } ?>" placeholder="12" />
		  </div>
		  <div class="form-group">
			<label for="related_media_number">Number Of Related Media Items In Media Page</label>
			<input type="number" name="related_media_number" id="related_media_number" class="form-control" value="<?php if (isset($options['related_media_number'])) { echo $options['related_media_number']; } ?>" placeholder="12" />
		  </div>
		  <div class="form-group">
			<label for="public_lists_number">Number Of Lists in Public Lists Page</label>
			<input type="number" name="public_lists_number" id="public_lists_number" class="form-control" value="<?php if (isset($options['public_lists_number'])) { echo $options['public_lists_number']; } ?>" placeholder="12" />
		  </div>
		  <div class="form-group">
			<label for="user_lists_number">Number Of Lists in User's Lists Page</label>
			<input type="number" name="user_lists_number" id="user_lists_number" class="form-control" value="<?php if (isset($options['user_lists_number'])) { echo $options['user_lists_number']; } ?>" placeholder="12" />
		  </div>
		  <div class="form-group">
			<input type="hidden" name="active_instant_search" value="0" />
			<input type="checkbox" name="active_instant_search" id="active_instant_search" value="1" <?php if (isset($options['active_instant_search']) AND $options['active_instant_search'] == 1) {echo 'CHECKED';} ?> /> <span class="checkbox-label">Activate Instant Search ?</span>
		  </div>
		  <div class="form-group">
		  <input type="hidden" name="display_media_video_site" value="0" />
		  <input type="checkbox" name="display_media_video_site" id="display_media_video_site" value="1" <?php if (isset($options['display_media_video_site']) AND $options['display_media_video_site'] == 1) {echo 'CHECKED';} ?> /> <span class="checkbox-label">Display Video Site in Thumbnails ?</span>
		  </div>
		  <button type="submit" name="save" class="btn btn-primary">Save</button>
		</form>