?>
</p>
	
			<?php 
        if (has_filter('ci_footer_credits')) {
            ?>
				<?php 
            ci_panel_textarea('ci_footer_credits', __('Footer text', 'ci_theme'));
            ?>
			<?php 
        }
        ?>
	
			<?php 
        if (has_filter('ci_footer_credits_secondary')) {
            ?>
				<?php 
            ci_panel_textarea('ci_footer_credits_secondary', __('Secondary footer text', 'ci_theme'));
            ?>
			<?php 
        }
        ?>
	
		</fieldset>

	<?php 
    }
    ?>

<?php 
}
if ($load_defaults === TRUE) {
    $ci_defaults['buysellads_code'] = '';
    add_action('after_open_body_tag', 'ci_register_bsa_script');
    if (!function_exists('ci_register_bsa_script')) {
        function ci_register_bsa_script()
        {
            // Load Buy Sell Ads code, if available.
            if (ci_setting('buysellads_code')) {
                echo html_entity_decode(ci_setting('buysellads_code'));
            }
        }
    }
} else {
    ?>

	<fieldset id="ci-panel-buysellads" class="set">
		<legend><?php 
    _e('BuySellAds', 'ci_theme');
    ?>
</legend>
		<p class="guide"><?php 
    echo sprintf(__('Paste here your BuySellAds.com <strong>Main Code</strong>, as given by the <a href="%s">BSA website</a>, and it will be automatically included on every page. Then use our BSA Widget for your sidebar code.', 'ci_theme'), 'http://support.buysellads.com/knowledge_base/topics/how-to-install-your-ad-code');
    ?>
</p>
		<?php 
    ci_panel_textarea('buysellads_code', __('BuySellAds.com Main Code', 'ci_theme'));
    ?>
	</fieldset>

<?php 
}
if ($load_defaults === TRUE) {
    $ci_defaults['google_analytics_code'] = '';
    add_action('wp_head', 'ci_output_google_analytics_code');
    if (!function_exists('ci_output_google_analytics_code')) {
        function ci_output_google_analytics_code()
        {
            // Load Google Analytics code, if available.
            if (ci_setting('google_analytics_code')) {
                echo html_entity_decode(ci_setting('google_analytics_code'));
            }
        }
    }
} else {
    ?>

	<fieldset id="ci-panel-google-analytics" class="set">
		<legend><?php 
    _e('Google Analytics', 'ci_theme');
    ?>
</legend>
		<p class="guide"><?php 
    _e('Paste here your Google Analytics Code, as given by the Analytics website (including the <b>&lt;script&gt;</b> and <b>&lt;/script&gt;</b> tags), and it will be automatically included on every page.', 'ci_theme');
    ?>
</p>
		<?php 
    ci_panel_textarea('google_analytics_code', __('Google Analytics Code', 'ci_theme'));
    ?>
	</fieldset>

<?php 
}
    add_action('wp_head', 'ci_custom_css', 110);
    if (!function_exists('ci_custom_css')) {
        function ci_custom_css()
        {
            global $ci;
            $css = $ci['custom_css'];
            if (!empty($css)) {
                $css = "<style type=\"text/css\">\n" . $css . "</style>\n";
                echo html_entity_decode($css);
            }
        }
    }
} else {
    ?>

	<fieldset id="ci-panel-custom-css" class="set">
		<legend><?php 
    _e('Custom CSS', 'ci_theme');
    ?>
</legend>
		<p class="guide"><?php 
    _e('Paste here any custom CSS code you might have.', 'ci_theme');
    ?>
</p>
		<?php 
    ci_panel_textarea('custom_css', __('CSS Code', 'ci_theme'));
    ?>
	</fieldset>

<?php 
}
                add_action('wp_head', 'ci_feedburner_feed');
            } else {
                add_theme_support('automatic-feed-links');
            }
        }
    }
    if (!function_exists('ci_feedburner_feed')) {
        function ci_feedburner_feed()
        {
            echo sprintf('<link rel="alternate" type="application/rss+xml" title="%s RSS Feed" href="%s" />', esc_attr(get_bloginfo('name')), esc_url(ci_setting('feedburner_feed')));
        }
    }
} else {
    ?>

	<fieldset id="ci-panel-feedburner" class="set">
		<legend><?php 
    _e('FeedBurner', 'ci_theme');
    ?>
</legend>
		<p class="guide"><?php 
    _e('By adding your FeedBurner URL here, your main feed will be served by FeedBurner instead of your WordPress site.', 'ci_theme');
    ?>
</p>
		<?php 
    ci_panel_textarea('feedburner_feed', __('FeedBurner Feed URL', 'ci_theme'));
    ?>
	</fieldset>

<?php 
}