Current File : /home/honehdyv/readbtooom.com/wp-content/plugins/comic-easel/options/navigation.php
<div id="comiceasel-navigation">
	<form method="post" id="myForm-navigation" enctype="multipart/form-data">
	<?php wp_nonce_field('update-options') ?>
		<?php 
			if (!isset($ceo_options['default_nav_bar_chapter_goes_to_archive'])) $ceo_options['default_nav_bar_chapter_goes_to_archive'] = false;
			if (!isset($ceo_options['enable_comic_nav'])) $ceo_options['enable_comic_nav'] = false;
		?>
		<div class="comiceasel-options">
		
			<table class="widefat">
				<thead>
					<tr>
						<th colspan="3"><?php _e('Navigation Options','comiceasel'); ?></th>
					</tr>
				</thead>
				<tr class="alternate">
					<th scope="row"><label for="click_comic_next"><?php _e('Clicking the comic goes to next comic?','comiceasel'); ?></label></th>
					<td>
						<input id="click_comic_next" name="click_comic_next" type="checkbox" value="1" <?php checked(true, $ceo_options['click_comic_next']); ?> />
					</td>
					<td>
						<?php _e('When this is enabled, when the comic is mouse over and clicked it will go to the next comic in the chapter.','comiceasel'); ?>
					</td>
				</tr>
				<tr>
					<th scope="row"><label for="disable_mininav"><?php _e('Disable the Menubar Mini-navigation? (if implemented)','comiceasel'); ?></label></th>
					<td>
						<input id="disable_mininav" name="disable_mininav" type="checkbox" value="1" <?php checked(true, $ceo_options['disable_mininav']); ?> />
					</td>
					<td>
						<?php _e('Checking this will disable the mini navigation in the menubar if the theme you are using supports it.','comiceasel'); ?>
					</td>
				</tr>
				<tr class="alternate">
					<th scope="row"><label for="enable_chapter_only_random"><?php _e('Random button (both default and widget) jumps only in the same chapter?','comiceasel'); ?></label></th>
					<td>
						<input id="enable_chapter_only_random" name="enable_chapter_only_random" type="checkbox" value="1" <?php checked(true, $ceo_options['enable_chapter_only_random']); ?> />
					</td>
					<td>
						<?php _e('Make the random button only jump to the comics within the same chapter?','comiceasel'); ?>
					</td>
				</tr>
				<tr>
					<th scope="row"><label for="enable_prevnext_chapter_traversing"><?php _e('Traverse comic chapters with the previous/next?','comiceasel'); ?></label></th>
					<td>
						<input id="enable_prevnext_chapter_traversing" name="enable_prevnext_chapter_traversing" type="checkbox" value="1" <?php checked(true, $ceo_options['enable_prevnext_chapter_traversing']); ?> />
					</td>
					<td>
						<?php _e('If at the first or last comic in a chapter, have the previous and next (in chapter) buttons navigate to the beginning or end of the connected in order chapters?','comiceasel'); ?>
					</td>
				</tr>
				<tr class="alternate">
					<th scope="row"><label for="disable_keynav"><?php _e('Disable Keyboard Navigation?','comiceasel'); ?></label></th>
					<td>
						<input id="disable_keynav" name="disable_keynav" type="checkbox" value="1" <?php checked(true, $ceo_options['disable_keynav']); ?> />
					</td>
					<td>
						<?php _e('When checked this disables the keyboard navigation script from being run.','comiceasel'); ?>
					</td>
				</tr>
			</table>
			<br />
			<table class="widefat">
				<thead>
					<tr>
						<th colspan="3"><?php _e('Navigation Widget','comiceasel'); ?></th>
					</tr>
				</thead>
<?php
$current_gnav_directory = $ceo_options['graphic_navigation_directory'];
if (empty($current_gnav_directory)) $current_gnav_directory = 'default';
$dirs_to_search = array_unique(array( stripslashes(ceo_pluginfo('plugin_path')),get_template_directory(),get_stylesheet_directory()));
$gnav_directories = array();
foreach ($dirs_to_search as $gnav_dir) {
	if (is_dir($gnav_dir . '/images/nav')) {
		$thisdir = null;
		$thisdir = array();
		$thisdir = glob($gnav_dir. '/images/nav/*');
		$gnav_directories = array_merge($gnav_directories, $thisdir); 		
	}
}
				?>
				<tr>
					<th scope="row" colspan="2"><label for="graphic_navigation_directory"><?php _e('Graphic Navigation Set','comiceasel'); ?></label>

							<select name="graphic_navigation_directory" id="graphic_navigation_directory">
<?php
foreach ($gnav_directories as $gnav_dirs) {
	if (is_dir($gnav_dirs)) {
											$gnav_dir_name = basename($gnav_dirs); ?>
											<option class="level-0" value="<?php echo $gnav_dir_name; ?>" <?php selected($current_gnav_directory, $gnav_dir_name); ?>><?php echo $gnav_dir_name; ?></option>
	<?php }
}
								?>
							</select>
					</th>
					<td>
						<?php _e('Choose a directory to get the graphic navigation styling from. To create your own custom graphic navigation menu buttons just create a directory under <i>images/nav/</i> in your child theme and place your image files and navstyle.css file inside of it to determine the style of your navigation display.','comiceasel'); ?>
						<?php if ($ceo_options['disable_style_sheet']) { echo '<br /><strong>'; _e('The navstyle.css is disable via the option in the general tab of this config section, this will have no effect.','comiceasel'); ?></strong><br /><?php } ?>
					</td>
				</tr>
			</table>
			<br />
			<table class="widefat">
				<thead>
					<tr>
						<th colspan="3"><?php _e('Default Navigation','comiceasel'); ?></th>
					</tr>
				</thead>
				<tr class="alternate">
					<th scope="row"><label for="disable_default_nav"><?php _e('Disable default navigation?','comiceasel'); ?></label></th>
					<td>
						<input id="disable_default_nav" name="disable_default_nav" type="checkbox" value="1" <?php checked(true, $ceo_options['disable_default_nav']); ?> />
					</td>
					<td>
						<?php _e('Checking this will disable the default navigation, you could use and skin the navigation widget.','comiceasel'); ?>
					</td>
				</tr>
				<tr>
					<th scope="row"><label for="enable_nav_above_comic"><?php _e('Enable Default Navigation above comic?','comiceasel'); ?></label></th>
					<td>
						<input id="enable_nav_above_comic" name="enable_nav_above_comic" type="checkbox" value="1" <?php checked(true, $ceo_options['enable_nav_above_comic']); ?> />
					</td>
					<td>
						<?php _e('Check this to enable the default navigation to appear above the comic.','comiceasel'); ?>
					</td>
				</tr>
				<tr class="alternate">
					<th scope="row"><label for="navigate_only_chapters"><?php _e('Navigate through only the chapters and not all comics?','comiceasel'); ?></label></th>
					<td>
						<input id="navigate_only_chapters" name="navigate_only_chapters" type="checkbox" value="1" <?php checked(true, $ceo_options['navigate_only_chapters']); ?> />
					</td>
					<td>
						<?php _e('Enabling this make the navigation only navigate through individual chapters with the default navigation.','comiceasel'); ?>
					</td>
				</tr>				
				<tr>
					<th scope="row"><label for="enable_chapter_nav"><?php _e('Enable the chapter navigation drop down in the comic navigation?','comiceasel'); ?></label></th>
					<td>
						<input id="enable_chapter_nav" name="enable_chapter_nav" type="checkbox" value="1" <?php checked(true, $ceo_options['enable_chapter_nav']); ?> />
					</td>
					<td>
						<?php _e('When this is enabled, a drop down archive box will appear in the navigation that lets you go to the start of each chapter','comiceasel'); ?>
					</td>
				</tr>
				<tr>
					<th scope="row"><label for="default_nav_bar_chapter_goes_to_archive"><?php _e('Chapter navigation jumps to the archive/landing page?','comiceasel'); ?></label></th>
					<td>
						<input id="default_nav_bar_chapter_goes_to_archive" name="default_nav_bar_chapter_goes_to_archive" type="checkbox" value="1" <?php checked(true, $ceo_options['default_nav_bar_chapter_goes_to_archive']); ?> />
					</td>
					<td>
						<?php _e('default goes to first comic in the chapter, this option makes it go to the landing page/archive.','comiceasel'); ?>
					</td>
				</tr>
				<tr class="alternate">
					<th scope="row"><label for="enable_comic_nav"><?php _e('Enable the comic navigation for the current chapter drop down in the comic navigation?','comiceasel'); ?></label></th>
					<td>
						<input id="enable_comic_nav" name="enable_comic_nav" type="checkbox" value="1" <?php checked(true, $ceo_options['enable_comic_nav']); ?> />
					</td>
					<td>
						<?php _e('When this is enabled, a drop down list box will appear in the navigation that lets you go to the any of the comics of the current chapter','comiceasel'); ?>
					</td>
				</tr>
				<tr>
					<th scope="row"><label for="enable_random_nav"><?php _e('Enable the random comic link in the comic navigation?','comiceasel'); ?></label></th>
					<td>
						<input id="enable_random_nav" name="enable_random_nav" type="checkbox" value="1" <?php checked(true, $ceo_options['enable_random_nav']); ?> />
					</td>
					<td>
						<?php _e('When this is enabled, a link will appear in the navigation that lets you go to a random comic in all chapters.','comiceasel'); ?>
					</td>
				</tr>
				<tr class="alternate">
					<th scope="row"><label for="enable_comment_nav"><?php _e('Enable the comment link in the comic navigation?','comiceasel'); ?></label></th>
					<td>
						<input id="enable_comment_nav" name="enable_comment_nav" type="checkbox" value="1" <?php checked(true, $ceo_options['enable_comment_nav']); ?> />
					</td>
					<td>
						<?php _e('When this is enabled, a link will appear in the navigation that lets you go to the comments section of the current post, it also shows how many comments there currently are.','comiceasel'); ?>
					</td>
				</tr>
				<tr>
					<th scope="row"><label for="enable_embed_nav"><?php _e('Enable the "embed this comic" textarea in the comic navigation?','comiceasel'); ?></label></th>
					<td>
						<input id="enable_embed_nav" name="enable_embed_nav" type="checkbox" value="1" <?php checked(true, $ceo_options['enable_embed_nav']); ?> />
					</td>
					<td>
						<?php _e('When this is enabled, a textarea will appear under the navigation with the href and image link to have users embed this comic on their site.','comiceasel'); ?>
					</td>
				</tr>				
			</table>
			<br />
		</div>
		
		<br />
		<div class="ceo-options-save">
			<div class="ceo-major-publishing-actions">
				<div class="ceo-publishing-action">
					<input name="ceo_save_config" type="submit" class="button-primary" value="<?php _e('Save Settings', 'comiceasel'); ?>" />
					<input type="hidden" name="action" value="ceo_save_navigation" />
				</div>
				<div class="clear"></div>
			</div>
		</div>

	</form>

</div>