get($ec_themeslug.'_single_sidebar');
}
elseif (is_archive()) {
$sidebar = $options->get($ec_themeslug.'_archive_sidebar');
}
elseif (is_404()) {
$sidebar = $options->get($ec_themeslug.'_404_sidebar');
}
elseif (is_search()) {
$sidebar = $options->get($ec_themeslug.'_search_sidebar');
}
elseif (is_page()) {
$sidebar = get_post_meta($post->ID, 'page_sidebar' , true);
}
else {
$sidebar = $options->get($ec_themeslug.'_blog_sidebar');
}
if ($sidebar == 'two-right' OR $sidebar == '3' ) {
echo '';
}
if ($sidebar == 'right-left' OR $sidebar == '2' ) {
echo '';
}
}
add_action( 'wp_head', 'eclipse_content_Layout' );
/* Site Title Color */
function eclipse_add_text_color() {
global $ec_themename, $ec_themeslug, $options;
if ($options->get($ec_themeslug.'_text_color') != "") {
$textcolor = $options->get($ec_themeslug.'_text_color');
echo '';
}
}
add_action( 'wp_head', 'eclipse_add_text_color');
/* Link Color */
function eclipse_add_link_color() {
global $ec_themename, $ec_themeslug, $options;
if ($options->get($ec_themeslug.'_link_color') != '') {
$link = $options->get($ec_themeslug.'_link_color');
echo '';
}
}
add_action( 'wp_head', 'eclipse_add_link_color');
/* Link Hover Color */
function eclipse_add_link_hover_color() {
global $ec_themename, $ec_themeslug, $options;
if ($options->get($ec_themeslug.'_link_hover_color') != '') {
$link = $options->get($ec_themeslug.'_link_hover_color');
echo '';
}
}
add_action( 'wp_head', 'eclipse_add_link_hover_color');
/* Menu Font */
function eclipse_add_menu_font() {
global $ec_themename, $ec_themeslug, $options;
if ($options->get($ec_themeslug.'_menu_font') == "") {
$font = 'Helvetica';
}
else {
$font = $options->get($ec_themeslug.'_menu_font');
}
$fontstrip = ereg_replace("[^A-Za-z0-9]", " ", $font );
echo "";
echo '';
}
add_action( 'wp_head', 'eclipse_add_menu_font');
/* Menu Font */
function eclipse_add_secondary_font() {
global $ec_themename, $ec_themeslug, $options;
if ($options->get($ec_themeslug.'_secondary_font') == "") {
$font = 'Open Sans';
}
else {
$font = $options->get($ec_themeslug.'_secondary_font');
}
$fontstrip = ereg_replace("[^A-Za-z0-9]", " ", $font );
echo "";
echo '';
}
add_action( 'wp_head', 'eclipse_add_secondary_font');
?>