<?php global $ci, $ci_defaults, $load_defaults; ?>
<?php if ($load_defaults===TRUE): ?>
<?php

	// Main body
	$ci_defaults['bg_custom_disabled']		= 'enabled';
	$ci_defaults['bg_color']				= '';
	$ci_defaults['bg_image_disable']		= '';
	$ci_defaults['bg_image']				= '';
	$ci_defaults['bg_image_repeat']			= 'repeat';
	$ci_defaults['bg_image_horizontal']		= 'left';
	$ci_defaults['bg_image_vertical']		= 'top';
	$ci_defaults['bg_image_attachment']		= '';
	$ci_defaults['bg_image_size']			= '';
	$ci_defaults['bg_image_size_value']		= '';

	// Header
	$ci_defaults['bg_h_custom_disabled']	= 'enabled';
	$ci_defaults['bg_h_color']				= '';
	$ci_defaults['bg_h_image_disable']		= '';
	$ci_defaults['bg_h_image']				= '';
	$ci_defaults['bg_h_image_repeat']		= 'repeat';
	$ci_defaults['bg_h_image_horizontal']	= 'left';
	$ci_defaults['bg_h_image_vertical']		= 'top';
	$ci_defaults['bg_h_image_attachment']	= '';
	$ci_defaults['bg_h_image_size']			= '';
	$ci_defaults['bg_h_image_size_value']	= '';

	// Footer
	$ci_defaults['bg_f_custom_disabled']	= 'enabled';
	$ci_defaults['bg_f_color']				= '';
	$ci_defaults['bg_f_image_disable']		= '';
	$ci_defaults['bg_f_image']				= '';
	$ci_defaults['bg_f_image_repeat']		= 'repeat';
	$ci_defaults['bg_f_image_horizontal']	= 'left';
	$ci_defaults['bg_f_image_vertical']		= 'top';
	$ci_defaults['bg_f_image_attachment']	= '';
	$ci_defaults['bg_f_image_size']			= '';
	$ci_defaults['bg_f_image_size_value']	= '';

	// 100 is the priority. It's important to be a big number, i.e. low priority.
	// Low priority means it will execute AFTER the other hooks, hence this will override other styles previously set.
	add_action( 'wp_head', 'ci_custom_background', 100 );
	if ( ! function_exists( 'ci_custom_background' ) ) :
		function ci_custom_background() {
			if ( ci_setting( 'bg_custom_disabled' ) != 'enabled' ||
				( ci_setting( 'bg_h_custom_disabled' ) != 'enabled' && get_ci_theme_support( 'custom_header_background' ) ) ||
				( ci_setting( 'bg_f_custom_disabled' ) != 'enabled' && get_ci_theme_support( 'custom_footer_background' ) ) ):
				?>
				<style type="text/css">
					<?php
						if ( ci_setting( 'bg_h_custom_disabled' ) != 'enabled' && get_ci_theme_support( 'custom_header_background' ) ) {
							do_action( 'ci_custom_header_background', apply_filters( 'ci_custom_header_background_options', ci_panel_get_custom_background_values( 'header' ) ) );
						}
						
						if ( ci_setting( 'bg_custom_disabled' ) != 'enabled' ) {
							do_action( 'ci_custom_background', apply_filters( 'ci_custom_background_options', ci_panel_get_custom_background_values( 'body' ) ) );
						}

						if ( ci_setting( 'bg_f_custom_disabled' ) != 'enabled' && get_ci_theme_support( 'custom_footer_background' ) ) {
							do_action( 'ci_custom_footer_background', apply_filters( 'ci_custom_footer_background_options', ci_panel_get_custom_background_values( 'footer' ) ) );
						}
					?>
				</style>
			<?php endif;
		}
	endif;

	if ( ! function_exists( 'ci_panel_get_custom_background_values' ) ) :
		function ci_panel_get_custom_background_values( $position ) {

			$position = in_array( $position, array( 'header', 'footer', 'body' ), true ) ? $position : 'body';

			$infix = '';

			switch ( $position ) {
				case 'header':
					$infix = 'h_';
					break;
				case 'footer':
					$infix = 'f_';
					break;
				case 'body':
				default:
					$infix = '';
					break;
			}

			// Filter 'ci_background_color_value' kept for backward compatibility.
			$bg_color = apply_filters( 'ci_background_color_value', ci_setting( "bg_{$infix}color" ) );

			$bg_color = apply_filters( "ci_custom_{$position}_background_color_value", $bg_color );

			$values = array(
				"bg_{$infix}color"            => $bg_color,
				"bg_{$infix}image"            => ci_setting( "bg_{$infix}image" ),
				"bg_{$infix}image_horizontal" => ci_setting( "bg_{$infix}image_horizontal" ),
				"bg_{$infix}image_vertical"   => ci_setting( "bg_{$infix}image_vertical" ),
				"bg_{$infix}image_attachment" => ci_setting( "bg_{$infix}image_attachment" ),
				"bg_{$infix}image_repeat"     => ci_setting( "bg_{$infix}image_repeat" ),
				"bg_{$infix}image_disable"    => ci_setting( "bg_{$infix}image_disable" ),
				"bg_{$infix}image_size"       => ci_setting( "bg_{$infix}image_size" ) != 'custom' ? ci_setting( "bg_{$infix}image_size" ) : ci_setting( "bg_{$infix}image_size_value" ),
			);
			
			return apply_filters( 'ci_panel_get_custom_background_values', $values, $position );

		}
	endif;

	add_action('ci_custom_header_background', 'ci_custom_header_background_handler');
	// Default handler for custom header background.
	if( !function_exists('ci_custom_header_background_handler')):
	function ci_custom_header_background_handler($options)
	{
		echo apply_filters('ci_custom_header_background_applied_element', '#header');
		echo '{';

		if ($options['bg_h_color']) echo 'background-color: '.$options['bg_h_color'].';';
		if ($options['bg_h_image'])
		{
			echo 'background-image: url('.$options['bg_h_image'].');';
			echo 'background-position: '.$options['bg_h_image_horizontal'].' '.$options['bg_h_image_vertical'].';';
			if($options['bg_h_image_attachment']=='fixed') echo 'background-attachment: fixed;';
			if ( !empty($options['bg_h_image_size']) ) echo 'background-size: '.$options['bg_h_image_size'].';';
		}
		if ($options['bg_h_image_repeat']) echo 'background-repeat: '.$options['bg_h_image_repeat'].';';
		if ($options['bg_h_image_disable']=='enabled') echo 'background-image: none;';

		echo '} ';
	}
	endif;

	add_action('ci_custom_background', 'ci_custom_background_handler');
	// Default handler for custom background.
	if( !function_exists('ci_custom_background_handler')):
	function ci_custom_background_handler($options)
	{
		echo apply_filters('ci_custom_background_applied_element', 'body');
		echo '{';

		if ($options['bg_color']) echo 'background-color: '.$options['bg_color'].';';
		if ($options['bg_image'])
		{
			echo 'background-image: url('.$options['bg_image'].');';
			echo 'background-position: '.$options['bg_image_horizontal'].' '.$options['bg_image_vertical'].';';
			if($options['bg_image_attachment']=='fixed') echo 'background-attachment: fixed;';
			if ( !empty($options['bg_image_size']) ) echo 'background-size: '.$options['bg_image_size'].';';
		}
		if ($options['bg_image_repeat']) echo 'background-repeat: '.$options['bg_image_repeat'].';';
		if ($options['bg_image_disable']=='enabled') echo 'background-image: none;';

		echo '} ';
	}
	endif;

	add_action('ci_custom_footer_background', 'ci_custom_footer_background_handler');
	// Default handler for custom footer background.
	if( !function_exists('ci_custom_footer_background_handler')):
	function ci_custom_footer_background_handler($options)
	{
		echo apply_filters('ci_custom_footer_background_applied_element', '#footer');
		echo '{';

		if ($options['bg_f_color']) echo 'background-color: '.$options['bg_f_color'].';';
		if ($options['bg_f_image'])
		{
			echo 'background-image: url('.$options['bg_f_image'].');';
			echo 'background-position: '.$options['bg_f_image_horizontal'].' '.$options['bg_f_image_vertical'].';';
			if($options['bg_f_image_attachment']=='fixed') echo 'background-attachment: fixed;';
			if ( !empty($options['bg_f_image_size']) ) echo 'background-size: '.$options['bg_f_image_size'].';';
		}
		if ($options['bg_f_image_repeat']) echo 'background-repeat: '.$options['bg_f_image_repeat'].';';
		if ($options['bg_f_image_disable']=='enabled') echo 'background-image: none;';

		echo '} ';
	}
	endif;

	add_filter('ci_background_color_value', 'ci_background_color_value_check_hash');
	// Make sure 3 and 6 digit values start with a #
	if( !function_exists('ci_background_color_value_check_hash')):
	function ci_background_color_value_check_hash($value)
	{
		if( (strlen($value)==3 or strlen($value)==6) and (substr_left($value, 1)!='#') )
			return '#' . $value;
		else
			return $value;
	}
	endif;
	
?>
<?php else: ?>


	<?php if( get_ci_theme_support('custom_header_background') !== false ): ?>
		<fieldset id="ci-panel-custom-header-background" class="set">
			<legend><?php _e('Custom Header Background', 'ci_theme'); ?></legend>
			<p class="guide"><?php _e("Control whether you want to override the theme's header background, by enabling the custom header background option and tweaking the rest as you please.", 'ci_theme'); ?></p>

			<?php ci_panel_checkbox('bg_h_custom_disabled', 'enabled', __('Disable custom header background', 'ci_theme'), array( 'input_class' => 'check toggle-button' )); ?>

			<div class="toggle-pane">
		
				<fieldset class="set">
					<p class="guide"><?php _e("You can set the header's background color of the page here. This option overrides the header's background color set by the Color Scheme Option (if any), so leave it empty if you want the default. You may select a color using the color picker (pops up when you click on the input box), or enter its hex number in the input box (including a leading #).", 'ci_theme'); ?></p>
					<fieldset>
						<?php ci_panel_input('bg_h_color', __("Header's Background Color", 'ci_theme'), array('input_class'=>'colorpckr'));  ?>
					</fieldset>
				</fieldset>
			
				<fieldset class="set">
					<p class="guide"><?php _e("When this option is checked, the header's background image is disabled, whether it's set by the default stylesheets or by you, from the option below.", 'ci_theme'); ?></p>
					<fieldset>
						<?php ci_panel_checkbox('bg_h_image_disable', 'enabled', __("Disable header's background image", 'ci_theme')); ?>
					</fieldset>
				</fieldset>
			
				<fieldset class="set">
					<p class="guide"><?php _e("You can upload/select an image to use as custom header's background for your site. Make sure to select the appropriate size, once you select your image. You can also choose whether you want the image to repeat.", 'ci_theme'); ?></p>
					<?php ci_panel_upload_image('bg_h_image', __("Upload your header's background image", 'ci_theme')); ?>
					<fieldset>
						<?php
							$options = array(
								'no-repeat'	=> __('No Repeat', 'ci_theme'),
								'repeat' 	=> __('Repeat', 'ci_theme'),
								'repeat-x' 	=> __('Repeat X', 'ci_theme'),
								'repeat-y' 	=> __('Repeat Y', 'ci_theme')
							);
							ci_panel_dropdown('bg_h_image_repeat', $options, __("Repeat header's background image", 'ci_theme'));
						?>
					</fieldset>
				</fieldset>
			
				<fieldset class="set">
					<p class="guide"><?php _e("You can select the placement of your image in the header's background.", 'ci_theme'); ?></p>
					<fieldset>
						<?php
							$options = array(
								'left'		=> __('Left', 'ci_theme'),
								'center'	=> __('Center', 'ci_theme'),
								'right'		=> __('Right', 'ci_theme')
							);
							ci_panel_dropdown('bg_h_image_horizontal', $options, __("Header's Background Horizontal Placement", 'ci_theme'));
						?>
					</fieldset>
			
					<fieldset>
						<?php
							$options = array(
								'top'		=> __('Top', 'ci_theme'),
								'center'	=> __('Center', 'ci_theme'),
								'bottom'		=> __('Bottom', 'ci_theme')
							);
							ci_panel_dropdown('bg_h_image_vertical', $options, __("Header's Background Vertical Placement", 'ci_theme'));
						?>
					</fieldset>
				</fieldset>

				<fieldset class="set">
					<p class="guide"><?php echo sprintf(__('You can select the size of your image in the background. For an explanation of the values, please read <a href="%s">this article</a>.', 'ci_theme'), 'http://www.css3.info/preview/background-size/'); ?></p>
					<fieldset>
						<?php
							ci_panel_radio( 'bg_h_image_size', 'bg_image_size_none', '', __( 'Default', 'ci_theme' ) );
							ci_panel_radio( 'bg_h_image_size', 'bg_h_image_size_cover', 'cover', __( 'Cover', 'ci_theme' ) );
							ci_panel_radio( 'bg_h_image_size', 'bg_h_image_size_contain', 'contain', __( 'Contain', 'ci_theme' ) );
							ci_panel_radio( 'bg_h_image_size', 'bg_h_image_size_custom', 'custom', __( 'Custom size (e.g. <em>200px 150px</em>)', 'ci_theme' ) );
							
							$fieldname = 'bg_image_size_value';
							?><input type="text" id="<?php echo esc_attr( $fieldname ); ?>" name="<?php echo esc_attr( THEME_OPTIONS . '[' . $fieldname . ']' ); ?>" value="<?php echo esc_attr( $ci[ $fieldname ] ); ?>"><?php
							$js = "
								if( $('input[id^=\"bg_h_image_size\"]:radio:checked').val() == 'custom' )
									$('#".$fieldname."').show();
								else
									$('#".$fieldname."').hide();
								
								$('body').on('change', 'input[id^=\"bg_h_image_size\"]:radio', function(){
									if( $(this).val() == 'custom' )
										$('#".$fieldname."').slideDown();
									else
										$('#".$fieldname."').slideUp();
								}); ";
							ci_add_inline_js($js, $fieldname);
						?>
					</fieldset>
				</fieldset>
			
				<fieldset class="set">
					<p class="guide"><?php _e("When the fixed background option is checked, the header's background image will not scroll along with the rest of the page.", 'ci_theme'); ?></p>
					<fieldset>
						<?php ci_panel_checkbox('bg_h_image_attachment', 'fixed', __("Fixed header's background", 'ci_theme')); ?>
					</fieldset>
				</fieldset>
		
			</div>
		</fieldset>
	<?php endif; //if get_ci_theme_support('custom_header_background') ?>


	<fieldset id="ci-panel-custom-background" class="set">
		<legend><?php _e('Custom Background', 'ci_theme'); ?></legend>
		<p class="guide"><?php _e("Control whether you want to override the theme's background, by enabling the custom background option and tweaking the rest as you please.", 'ci_theme'); ?></p>

		<?php ci_panel_checkbox('bg_custom_disabled', 'enabled', __('Disable custom background', 'ci_theme'), array( 'input_class' => 'check toggle-button' )); ?>

		<div class="toggle-pane">
	
			<fieldset class="set">
				<p class="guide"><?php _e('You can set the background color of the page here. This option overrides the background color set by the Color Scheme Option (if any), so leave it empty if you want the default. You may select a color using the color picker (pops up when you click on the input box), or enter its hex number in the input box (including a leading #).', 'ci_theme'); ?></p>
				<fieldset>
					<?php ci_panel_input('bg_color', __('Background Color', 'ci_theme'), array('input_class'=>'colorpckr'));  ?>
				</fieldset>
			</fieldset>
		
			<fieldset class="set">
				<p class="guide"><?php _e("When this option is checked, the body background image is disabled, whether it's set by the default stylesheets or by you, from the option below.", 'ci_theme'); ?></p>
				<fieldset>
					<?php ci_panel_checkbox('bg_image_disable', 'enabled', __('Disable background image', 'ci_theme')); ?>
				</fieldset>
			</fieldset>
		
			<fieldset class="set">
				<p class="guide"><?php _e('You can upload/select an image to use as custom background for your site. Make sure to select the appropriate size, once you select your image. You can also choose whether you want the image to repeat.', 'ci_theme'); ?></p>
				<?php ci_panel_upload_image('bg_image', __('Upload your background image', 'ci_theme')); ?>
				<fieldset>
					<?php
						$options = array(
							'no-repeat'	=> __('No Repeat', 'ci_theme'),
							'repeat' 	=> __('Repeat', 'ci_theme'),
							'repeat-x' 	=> __('Repeat X', 'ci_theme'),
							'repeat-y' 	=> __('Repeat Y', 'ci_theme')
						);
						ci_panel_dropdown('bg_image_repeat', $options, __('Repeat background image', 'ci_theme')); 
					?>
				</fieldset>
			</fieldset>
		
			<fieldset class="set">
				<p class="guide"><?php _e('You can select the placement of your image in the background.', 'ci_theme'); ?></p>
				<fieldset>
					<?php
						$options = array(
							'left'		=> __('Left', 'ci_theme'),
							'center'	=> __('Center', 'ci_theme'),
							'right'		=> __('Right', 'ci_theme')
						);
						ci_panel_dropdown('bg_image_horizontal', $options, __('Background Horizontal Placement', 'ci_theme')); 
					?>
				</fieldset>
		
				<fieldset>
					<?php
						$options = array(
							'top'		=> __('Top', 'ci_theme'),
							'center'	=> __('Center', 'ci_theme'),
							'bottom'		=> __('Bottom', 'ci_theme')
						);
						ci_panel_dropdown('bg_image_vertical', $options, __('Background Vertical Placement', 'ci_theme')); 
					?>
				</fieldset>
			</fieldset>

			<fieldset class="set">
				<p class="guide"><?php echo sprintf(__('You can select the size of your image in the background. For an explanation of the values, please read <a href="%s">this article</a>.', 'ci_theme'), 'http://www.css3.info/preview/background-size/'); ?></p>
				<fieldset>
					<?php
						ci_panel_radio('bg_image_size', 'bg_image_size_none', '', __('Default', 'ci_theme'));
						ci_panel_radio('bg_image_size', 'bg_image_size_cover', 'cover', __('Cover', 'ci_theme'));
						ci_panel_radio('bg_image_size', 'bg_image_size_contain', 'contain', __('Contain', 'ci_theme'));
						ci_panel_radio('bg_image_size', 'bg_image_size_custom', 'custom', __('Custom size (e.g. <em>200px 150px</em>)', 'ci_theme'));
						
						$fieldname = 'bg_image_size_value';
						?><input type="text" id="<?php echo esc_attr( $fieldname ); ?>" name="<?php echo esc_attr( THEME_OPTIONS . '[' . $fieldname . ']' ); ?>" value="<?php echo esc_attr( $ci[ $fieldname ] ); ?>"><?php
						$js = "
							if( $('input[id^=\"bg_image_size_\"]:radio:checked').val() == 'custom' )
								$('#".$fieldname."').show();
							else
								$('#".$fieldname."').hide();
							
							$('body').on('change', 'input[id^=\"bg_image_size_\"]:radio', function(){
								if( $(this).val() == 'custom' )
									$('#".$fieldname."').slideDown();
								else
									$('#".$fieldname."').slideUp();
							}); ";
						ci_add_inline_js($js, $fieldname);
					?>
				</fieldset>
			</fieldset>
		
			<fieldset class="set">
				<p class="guide"><?php _e('When the fixed background option is checked, the background image will not scroll along with the rest of the page.', 'ci_theme'); ?></p>
				<fieldset>
					<?php ci_panel_checkbox('bg_image_attachment', 'fixed', __('Fixed background', 'ci_theme')); ?>
				</fieldset>
			</fieldset>
	
		</div>
	</fieldset>

	<?php if( get_ci_theme_support('custom_footer_background') !== false ): ?>
		<fieldset id="ci-panel-custom-footer-background" class="set">
			<legend><?php _e('Custom Footer Background', 'ci_theme'); ?></legend>
			<p class="guide"><?php _e("Control whether you want to override the theme's footer background, by enabling the custom footer background option and tweaking the rest as you please.", 'ci_theme'); ?></p>

			<?php ci_panel_checkbox('bg_f_custom_disabled', 'enabled', __('Disable custom footer background', 'ci_theme'), array( 'input_class' => 'check toggle-button' )); ?>

			<div class="toggle-pane">
		
				<fieldset class="set">
					<p class="guide"><?php _e("You can set the footer's background color of the page here. This option overrides the footer's background color set by the Color Scheme Option (if any), so leave it empty if you want the default. You may select a color using the color picker (pops up when you click on the input box), or enter its hex number in the input box (including a leading #).", 'ci_theme'); ?></p>
					<fieldset>
						<?php ci_panel_input('bg_f_color', __("Footer's Background Color", 'ci_theme'), array('input_class'=>'colorpckr'));  ?>
					</fieldset>
				</fieldset>
			
				<fieldset class="set">
					<p class="guide"><?php _e("When this option is checked, the footer's background image is disabled, whether it's set by the default stylesheets or by you, from the option below.", 'ci_theme'); ?></p>
					<fieldset>
						<?php ci_panel_checkbox('bg_f_image_disable', 'enabled', __("Disable footer's background image", 'ci_theme')); ?>
					</fieldset>
				</fieldset>
			
				<fieldset class="set">
					<p class="guide"><?php _e("You can upload/select an image to use as custom footer's background for your site. Make sure to select the appropriate size, once you select your image. You can also choose whether you want the image to repeat.", 'ci_theme'); ?></p>
					<?php ci_panel_upload_image('bg_f_image', __("Upload your footer's background image", 'ci_theme')); ?>
					<fieldset>
						<?php
							$options = array(
								'no-repeat'	=> __('No Repeat', 'ci_theme'),
								'repeat' 	=> __('Repeat', 'ci_theme'),
								'repeat-x' 	=> __('Repeat X', 'ci_theme'),
								'repeat-y' 	=> __('Repeat Y', 'ci_theme')
							);
							ci_panel_dropdown('bg_f_image_repeat', $options, __("Repeat footer's background image", 'ci_theme'));
						?>
					</fieldset>
				</fieldset>
			
				<fieldset class="set">
					<p class="guide"><?php _e("You can select the placement of your image in the footer's background.", 'ci_theme'); ?></p>
					<fieldset>
						<?php
							$options = array(
								'left'		=> __('Left', 'ci_theme'),
								'center'	=> __('Center', 'ci_theme'),
								'right'		=> __('Right', 'ci_theme')
							);
							ci_panel_dropdown('bg_f_image_horizontal', $options, __("Footer's Background Horizontal Placement", 'ci_theme'));
						?>
					</fieldset>
			
					<fieldset>
						<?php
							$options = array(
								'top'		=> __('Top', 'ci_theme'),
								'center'	=> __('Center', 'ci_theme'),
								'bottom'		=> __('Bottom', 'ci_theme')
							);
							ci_panel_dropdown('bg_f_image_vertical', $options, __("Footer's Background Vertical Placement", 'ci_theme'));
						?>
					</fieldset>
				</fieldset>

				<fieldset class="set">
					<p class="guide"><?php echo sprintf(__('You can select the size of your image in the footer\'s background. For an explanation of the values, please read <a href="%s">this article</a>.', 'ci_theme'), 'http://www.css3.info/preview/background-size/'); ?></p>
					<fieldset>
						<?php
							ci_panel_radio('bg_f_image_size', 'bg_f_image_size_none', '', __('Default', 'ci_theme'));
							ci_panel_radio('bg_f_image_size', 'bg_f_image_size_cover', 'cover', __('Cover', 'ci_theme'));
							ci_panel_radio('bg_f_image_size', 'bg_f_image_size_contain', 'contain', __('Contain', 'ci_theme'));
							ci_panel_radio('bg_f_image_size', 'bg_f_image_size_custom', 'custom', __('Custom size (e.g. <em>200px 150px</em>)', 'ci_theme'));
							
							$fieldname = 'bg_f_image_size_value';
							?><input type="text" id="<?php echo esc_attr( $fieldname ); ?>" name="<?php echo esc_attr( THEME_OPTIONS . '[' . $fieldname . ']' ); ?>" value="<?php echo esc_attr( $ci[ $fieldname ] ); ?>"><?php
							$js = "
								if( $('input[id^=\"bg_f_image_size_\"]:radio:checked').val() == 'custom' )
									$('#".$fieldname."').show();
								else
									$('#".$fieldname."').hide();
								
								$('body').on('change', 'input[id^=\"bg_f_image_size_\"]:radio', function(){
									if( $(this).val() == 'custom' )
										$('#".$fieldname."').slideDown();
									else
										$('#".$fieldname."').slideUp();
								}); ";
							ci_add_inline_js($js, $fieldname);
						?>
					</fieldset>
				</fieldset>
			
				<fieldset class="set">
					<p class="guide"><?php _e("When the fixed background option is checked, the footer's background image will not scroll along with the rest of the page.", 'ci_theme'); ?></p>
					<fieldset>
						<?php ci_panel_checkbox('bg_f_image_attachment', 'fixed', __("Fixed footer's background", 'ci_theme')); ?>
					</fieldset>
				</fieldset>
		
			</div>
		</fieldset>
	<?php endif; //if get_ci_theme_support('custom_footer_background') ?>


<?php endif; ?>