'; // Left, Right or Centered if ( strpos($header_items,"%page-right") !== FALSE ) { $page_menu_bar .= '' . "\n"; } } // Category Menu Bar if ( strpos($header_items,'%cats') !== FALSE OR strpos($header_items,'%cat-center') !== FALSE OR strpos($header_items,'%cat-right') !== FALSE ) { $cat_menu_bar = '' . "\n"; } else { $cat_menu_bar .= '' . "\n"; } } // Logo Area if ( strpos($header_items,'%logo') !== FALSE ) { $logo_area = ''; if ( $bfa_ata['show_search_box'] == "Yes" AND ($bfa_ata['show_posts_icon'] == "Yes" OR $bfa_ata['show_email_icon'] == "Yes" OR $bfa_ata['show_comments_icon'] == "Yes") ) { $header_rowspan = 'rowspan="2" '; } else { $header_rowspan = ''; } // Logo Icon for Wordpress and WPMU if ( $bfa_ata['logo'] != "" ) { $logo_area .= ''; } // Blog title and description if ( $bfa_ata['blog_title_show'] == "Yes" OR $bfa_ata['blog_tagline_show'] == "Yes" ) { $logo_area .= ''; } // is any feed icon or link active? if ( $bfa_ata['show_posts_icon'] == "Yes" OR $bfa_ata['show_email_icon'] == "Yes" OR $bfa_ata['show_comments_icon'] == "Yes" ) { $logo_area .= ''; if ( $bfa_ata['show_search_box'] == "Yes" ) { $logo_area .= ''; } } // Search box if ( $bfa_ata['show_search_box'] == "Yes" ) { $logo_area .= ''; } $logo_area .= '
'; if ( $bfa_ata['blog_title_show'] == "Yes" ) { $logo_area .= '' . $bfa_ata['bloginfo_name'] . ''; } if ( $bfa_ata['blog_tagline_show'] == "Yes" ) { $logo_area .= '

' . $bfa_ata['bloginfo_description'] . '

'; } $logo_area .= '
'; } // COMMENT Feed link if ( $bfa_ata['show_comments_icon'] == "Yes" ) { $logo_area .= '' . $bfa_ata['comment_feed_link'] . ''; } // Feedburner Email link if ( $bfa_ata['show_email_icon'] == "Yes" ) { $logo_area .= ''; } // POSTS Feed link if ( $bfa_ata['show_posts_icon'] == "Yes" ) { $logo_area .= '' . $bfa_ata['post_feed_link'] . ''; } if ( $bfa_ata['show_posts_icon'] == "Yes" OR $bfa_ata['show_email_icon'] == "Yes" OR $bfa_ata['show_comments_icon'] == "Yes" ) { $logo_area .= '
'; } // Header Image if ( strpos($header_items,'%image') !== FALSE ) { $bfa_header_images = bfa_rotating_header_images(); $header_image = '
'; $header_image .= ($bfa_ata['header_image_clickable'] == "Yes" ? '
 
' : '' ); if ( $bfa_ata['header_opacity_left'] != 0 AND $bfa_ata['header_opacity_left'] != '' ) { $header_image .= '
 
'; } if ( $bfa_ata['header_opacity_right'] != 0 AND $bfa_ata['header_opacity_right'] != '' ) { $header_image .= '
 
'; } // END: If Header Opacity if ( $bfa_ata['overlay_blog_title'] == "Yes" OR $bfa_ata['overlay_blog_tagline'] == "Yes" ) { $header_image .= '
' . ( $bfa_ata['overlay_blog_title'] == "Yes" ? '' . $bfa_ata['bloginfo_name'] . '' : '' ) . ( $bfa_ata['overlay_blog_tagline'] == "Yes" ? '

' . $bfa_ata['bloginfo_description'] . '

' : '' ) . '
'; } $header_image .= '
'; } // Horizontal bar 1 if ( strpos($header_items,'%bar1') !== FALSE ) { $horizontal_bar1 = '
 
'; } // Horizontal bar 2 if ( strpos($header_items,'%bar2') !== FALSE ) { $horizontal_bar2 = '
 
'; } $header_item_numbers = array( "%pages", "%page-center", "%page-right", "%cats", "%cat-center", "%cat-right", "%logo", "%image", "%bar1", "%bar2" ); $header_output = array( $page_menu_bar, $page_menu_bar, $page_menu_bar, $cat_menu_bar, $cat_menu_bar, $cat_menu_bar, $logo_area, $header_image, $horizontal_bar1, $horizontal_bar2 ); // Parse PHP code if ( strpos($header_items,''.$header_items); $header_items = ob_get_contents(); ob_end_clean(); } $header_items = trim($header_items); #$header_items = str_replace(" ", "", $header_items); $final_header = str_replace($header_item_numbers, $header_output, $header_items); echo $final_header; } ?>