Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
- <head profile="http://gmpg.org/xfn/11">
- <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
- <meta name="viewport" content="width=device-width" />
- <head>
- <?php include( TEMPLATEPATH . '/options-var.php' ); ?>
- <title>
- <?php if($bp_existed == 'true') { //check if bp existed ?>
- <?php bp_page_title() ?>
- <?php } else { ?>
- <?php
- /*
- * Print the <title> tag based on what is being viewed.
- */
- global $page, $paged;
- wp_title( '|', true, 'right' );
- // Add the blog name.
- bloginfo( 'name' );
- // Add the blog description for the home/front page.
- $site_description = get_bloginfo( 'description', 'display' );
- if ( $site_description && ( is_home() || is_front_page() ) )
- echo " | $site_description";
- // Add a page number if necessary:
- if ( $paged >= 2 || $page >= 2 )
- echo ' | ' . sprintf( __( 'Page %s', 'twentyeleven' ), max( $paged, $page ) );
- ?>
- <?php } ?>
- </title>
- <?php do_action( 'bp_head' ) ?>
- <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="all" />
- <?php if( is_rtl() ): ?>
- <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/_inc/css/rtl.css" type="text/css" media="all" />
- <?php endif; ?>
- <?php if(function_exists('font_show')) { font_show(); } ?>
- <!-- start theme options sync - using php to fetch theme option are deprecated and replace with style sync -->
- <?php print "<style type='text/css' media='screen'>"; ?>
- <?php include( TEMPLATEPATH . '/theme-options.php' ); ?>
- <?php print "</style>"; ?>
- <!-- end theme options sync -->
- <?php //load stuff
- $tn_buddycorp_call_signup_on = get_option('tn_buddycorp_call_signup_on');
- $tn_buddycorp_header_on = get_option('tn_buddycorp_header_on');
- $get_current_scheme = get_option('tn_buddycorp_custom_style');
- ?>
- <?php if(($get_current_scheme == '') || ($get_current_scheme == 'default.css')) { ?>
- <?php } else { ?>
- <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/_inc/preset-styles/<?php echo $get_current_scheme; ?>" type="text/css" media="screen" />
- <?php } ?>
- <?php if($bp_existed == 'true') { ?>
- <?php if( bp_current_component() || bp_is_directory() ) { ?>
- <?php print "<style type=\"text/css\" media=\"all\">"; ?>
- <?php $member_page_layout = get_option('tn_buddycorp_member_page_layout_style');
- if($member_page_layout == '2-column') { ?>
- #custom #userbar { display: none; }
- <?php } else if($member_page_layout == '1-column') { ?>
- #custom #userbar, #custom #profile-right { display: none; }
- #custom #content { width: 96% !important; padding: 2% !important;}
- <?php } else { ?>
- <?php if( !bp_is_directory() ) { //we need this so member/profile did not break ?>
- #custom #content { width: 530px; }
- <?php } ?>
- <?php } ?>
- <?php print "</style>"; ?>
- <?php } ?>
- <?php } ?>
- <?php if($bp_existed == 'true') { //check if bp existed ?>
- <?php if ( function_exists( 'bp_sitewide_activity_feed_link' ) ) : ?>
- <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php _e('Site Wide Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_sitewide_activity_feed_link() ?>" />
- <?php endif; ?>
- <?php if ( function_exists( 'bp_member_activity_feed_link' ) && bp_is_member() ) : ?>
- <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php bp_displayed_user_fullname() ?> | <?php _e( 'Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_member_activity_feed_link() ?>" />
- <?php endif; ?>
- <?php if ( function_exists( 'bp_group_activity_feed_link' ) && bp_is_group() ) : ?>
- <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php bp_current_group_name() ?> | <?php _e( 'Group Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_group_activity_feed_link() ?>" />
- <?php endif; ?>
- <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> <?php _e( 'Blog Posts RSS Feed', 'buddypress' ) ?>" href="<?php bloginfo('rss2_url'); ?>" />
- <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> <?php _e( 'Blog Posts Atom Feed', 'buddypress' ) ?>" href="<?php bloginfo('atom_url'); ?>" />
- <?php } ?>
- <!-- automatic-feed-links in functions.php -->
- <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
- <!--[if lt IE 9]>
- <script src="<?php echo get_template_directory_uri(); ?>/_inc/js/html5.js" type="text/javascript"></script>
- <![endif]-->
- <!-- favicon.ico location -->
- <?php if(file_exists( WP_CONTENT_DIR . '/favicon.ico')) { //put your favicon.ico inside wp-content/ ?>
- <link rel="icon" href="<?php echo WP_CONTENT_URL; ?>/favicon.ico" type="images/x-icon" />
- <?php } elseif(file_exists( WP_CONTENT_DIR . '/favicon.png')) { //put your favicon.png inside wp-content/ ?>
- <link rel="icon" href="<?php echo WP_CONTENT_URL; ?>/favicon.png" type="images/x-icon" />
- <?php } elseif(file_exists( TEMPLATEPATH . '/favicon.ico')) { ?>
- <link rel="icon" href="<?php echo get_template_directory_uri(); ?>/favicon.ico" type="images/x-icon" />
- <?php } elseif(file_exists( TEMPLATEPATH . '/favicon.png')) { ?>
- <link rel="icon" href="<?php echo get_template_directory_uri(); ?>/favicon.png" type="images/x-icon" />
- <?php } ?>
- <?php print "<style type='text/css' media='screen'>";
- if($bp_existed == 'true') { //check if bp existed
- if ((int)get_site_option( 'hide-loggedout-adminbar' ) && !is_user_logged_in() ) { ?>body { padding-top: 0px !important;
- <?php } ?>
- <?php } else { ?>body { padding: 0px !important; margin: 0px !important; }<?php } ?>
- <?php print "</style>"; ?>
- <?php if(function_exists('fbc_display_login_button')) { ?>
- <!-- facebook plugin component css -->
- <style type='text/css' media='screen'>
- #searchbox #user_login, #searchbox #user_pass { width: 90px; }
- </style>
- <!-- end facenook plugin component css -->
- <?php } ?>
- <!--[ if IE 6]>
- <style type="text/css">
- blockquote img { height: auto; width: 100%; }
- #nav, #pnav { behavior: url(<?php echo get_template_directory_uri(); ?>/_inc/js/hover.htc); }
- }
- </style>
- <![endif]-->
- <!-- lets use js from google -->
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
- <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/_inc/js/dropmenu.js"></script>
- <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
- <?php wp_head(); ?>
- <?php if(is_front_page() || is_home()) { ?>
- <?php $home_featured_block_style = get_option('tn_buddycorp_home_featured_block_style'); if($home_featured_block_style == 'slideshow') { ?>
- <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/_inc/js/jquery.nivo.slider.pack.js"></script>
- <script type="text/javascript">
- jQuery.noConflict();
- var $je = jQuery;
- $je(window).load(function() {
- $je('#slider').nivoSlider();
- });
- </script>
- <?php } ?>
- <?php } ?>
- </head>
- <body <?php body_class() ?> id="custom">
- <div id="wrapper"<?php if ( $bp_front_is_activity == "true" ) { ?> class="activity_on_front"<?php } else { ?> class="activity_not_front"<?php } ?>>
- <div id="container">
- <?php do_action( 'bp_before_header' ) ?>
- <div id="top-header">
- <div id="custom-logo">
- <?php
- $tn_buddycorp_header_logo = get_option('tn_buddycorp_header_logo');
- if($tn_buddycorp_header_logo == '') { ?>
- <h1><a href="<?php echo home_url(); ?>"><?php bloginfo('name'); ?></a></h1>
- <p><?php bloginfo('description'); ?></p>
- <?php } else { ?>
- <a href="<?php echo home_url(); ?>" title="<?php _e('Click here to go to the site homepage', TEMPLATE_DOMAIN); ?>">
- <img src="<?php echo stripslashes($tn_buddycorp_header_logo); ?>" alt="<?php bloginfo('name'); ?> <?php _e('homepage', TEMPLATE_DOMAIN); ?>" /></a>
- <?php } ?>
- </div>
- <div id="pg-nav">
- <?php if ( function_exists( 'wp_nav_menu' ) ) { // Added in 3.0 ?>
- <?php wp_nav_menu( array('theme_location' => 'top-nav', 'menu_id' => 'pnav', 'container' => '', 'container_id' => '', 'fallback_cb' => ''));
- ?>
- <?php } ?>
- </div>
- </div>
- <?php do_action( 'bp_after_header' ) ?>
- <div id="navigation">
- <?php if( $bp_existed == 'true' ) { //check if bp existed ?>
- <?php if ( function_exists( 'wp_nav_menu' ) ) { // Added in 3.0 ?>
- <ul id="nav">
- <?php echo bp_wp_custom_nav_menu($get_custom_location='main-nav', $get_default_menu='revert_wp_menu_page'); ?>
- </ul>
- <?php } else { ?>
- <ul id="nav">
- <li<?php if(is_front_page()) { echo " id='home'"; } ?>><a href="<?php echo home_url(); ?>" title="<?php _e('Go back to home', TEMPLATE_DOMAIN); ?>"><?php _e('Home', TEMPLATE_DOMAIN); ?></a></li>
- <?php wp_list_pages('title_li=&depth=0'); ?>
- </ul>
- <?php } ?>
- <?php } else { ?>
- <?php if ( function_exists( 'wp_nav_menu' ) ) { // Added in 3.0 ?>
- <ul id="nav">
- <?php echo bp_wp_custom_nav_menu($get_custom_location='main-nav', $get_default_menu='revert_wp_menu_page'); ?>
- </ul>
- <?php } else { ?>
- <ul id="nav">
- <li<?php if(is_front_page()) { echo " id='home'"; } ?>><a href="<?php echo home_url(); ?>" title="<?php _e('Go back to home', TEMPLATE_DOMAIN); ?>"><?php _e('Home', TEMPLATE_DOMAIN); ?></a></li>
- <?php wp_list_pages('title_li=&depth=0'); ?>
- </ul>
- <?php } ?>
- <?php } ?>
- </div>
- <?php
- if( $tn_buddycorp_header_on == 'enable') { ?>
- <?php if('' != get_header_image() ) { ?>
- <div id="custom-img-header">
- <div class="custom-img-header"><a href="<?php echo home_url(); ?>"><img src="<?php header_image(); ?>" alt="<?php bloginfo('name'); ?>" /></a></div>
- </div>
- <?php } } ?>
- <?php do_action( 'bp_before_search_login_bar' ) ?>
- <?php if($bp_existed == 'true') { //check if bp existed ?>
- <?php if( !bp_is_register_page() ) { ?>
- <div id="searchbox">
- <form action="<?php echo bp_search_form_action() ?>" method="post" id="search-form">
- <input type="text" id="search-terms" name="search-terms" value="" />
- <?php echo bp_search_form_type_select() ?>
- <input type="submit" name="search-submit" id="search-submit" value="<?php _e( 'Search', TEMPLATE_DOMAIN ) ?>" />
- <?php wp_nonce_field( 'bp_search_form' ) ?>
- </form>
- <?php do_action( 'bp_search_login_bar' ) ?>
- <div id="fc_wrap">
- </div>
- </div>
- <?php } //dont show in reg page ?>
- <?php } else { ?>
- <div id="searchbox">
- <?php locate_template( array( 'lib/templates/wp-template/profile.php'), true ); ?>
- </div>
- <?php } ?>
- <?php do_action( 'bp_after_search_login_bar' ) ?>
- <?php if($tn_buddycorp_call_signup_on != ""){ ?>
- <?php } else { ?>
- <?php locate_template( array( 'lib/templates/wp-template/call-signup.php'), true ); ?>
- <?php } ?>
- <?php do_action( 'bp_before_container' ) ?>
- <?php if($bp_existed == 'true') { //check if bp existed ?>
- <div class="content">
- <?php if( !bp_is_blog_page() && bp_current_component() && !bp_is_directory() ) { ?>
- <?php locate_template( array( 'lib/templates/bp-template/userbar.php'), true ); ?>
- <?php } ?>
- <?php do_action( 'bp_before_content' ) ?>
- <?php } else { ?>
- <div class="content">
- <?php do_action( 'bp_before_content' ) ?>
- <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement