Advertisement
Guest User

header

a guest
Apr 6th, 2013
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.77 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2.  
  3. <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
  4.     <head profile="http://gmpg.org/xfn/11">
  5.         <meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" />
  6.         <?php if ( current_theme_supports( 'bp-default-responsive' ) ) : ?><meta name="viewport" content="width=device-width, initial-scale=1.0" /><?php endif; ?>
  7.         <title><?php wp_title( '|', true, 'right' ); bloginfo( 'name' ); ?></title>
  8.     <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
  9.         <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  10.         <link rel="shortcut icon" href="<?php bloginfo('stylesheet_directory'); ?>/_inc/images/favicon.ico" type="image/x-icon">
  11.  
  12.         <?php wp_head(); // @see bp_head(); ?>
  13.  
  14.         <?php if (is_page('activity-streams') ): // page 1 ?>
  15.         <style type="text/css">
  16.             div#content{width:70%;  margin-left:250px;  margin-top:-350px;}
  17.                     </style>
  18.         <?php elseif (is_page('page2') ):  // page 2?>
  19.     <style type="text/css">
  20.     body {background-color:#238842;}
  21.     </style>
  22.     <?php endif; // end the if, no images for other other categories ?>
  23.  
  24.     </head>
  25.  
  26.     <body <?php body_class(); ?> id="bp-default">
  27.     <!--[if lte IE 6]><script src="<?php bloginfo('template_directory'); ?>/_inc/js/ie6/warning.js"></script><script>window.onload=function(){e("<?php bloginfo('stylesheet_directory'); ?>/_inc/js/ie6/")}</script><![endif]-->
  28.  
  29.         <?php do_action( 'bp_before_header' ); ?>
  30.  
  31.         <div id="wrapper">
  32.  
  33.         <div id="header">
  34.             <div class="padder">
  35.  
  36.                         <?php if (get_option("buddy_boss_custom_logo", FALSE)!= FALSE) {
  37.                             $logo = get_option("buddy_boss_custom_logo");
  38.  
  39.                             } else {
  40.                                         $logo = get_bloginfo("template_directory")."/_inc/images/logo.jpg";
  41.                             } ?>
  42.  
  43.                         <div id="logo">
  44.                                 <a href="<?php echo site_url() ?>" title="<?php _e( 'Home', 'buddypress' )
  45.  
  46.                          ?>"><img src="<?php echo $logo ?>"/></a>
  47.                         </div>
  48.                         <?php if (is_user_logged_in()) :?>
  49.                         <div class="menu-bg"></div>
  50.                         <ul class="sf-menu">
  51.                             <?php if ( has_nav_menu( 'primary-menu' ) ) { ?>
  52.                                 <?php wp_nav_menu( array( 'container' => false, 'menu_id' => 'nav', 'theme_location' => 'primary-menu', 'items_wrap' => '%3$s' ) ); ?>
  53.                             <?php } else { ?>
  54.                                 <?php wp_list_pages( 'title_li=&depth=3&exclude=538,543' . bp_dtheme_page_on_front() ); ?>
  55.                             <?php   } ?>
  56.                         </ul>
  57.                     <?php endif; ?>
  58.  
  59.                 </div><!-- .padder -->
  60.  
  61.             <?php do_action( 'bp_header' ); ?>
  62.         </div><!-- #header -->
  63.  
  64.         <?php do_action( 'bp_after_header'     ); ?>
  65.         <?php do_action( 'bp_before_container' ); ?>
  66.  
  67.         <div id="container">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement