Advertisement
Guest User

CDCG header 3.php

a guest
Aug 30th, 2013
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 7.40 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.  
  5.     <head profile="http://gmpg.org/xfn/11">
  6.                                 <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/_inc/css/footer.css" type="text/css" media="screen" />             
  7.         <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  8.    <?php include (get_template_directory() . '/options.php'); ?>
  9.     <title><?php wp_title( '|', true, 'right' ); bloginfo( 'name' ); ?></title>    
  10.     <?php if($bp_existed == 'true') : ?>
  11.         <?php do_action( 'bp_head' ) ?>
  12.     <?php endif; ?>
  13.                 <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />   
  14.                 <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  15.                 <link rel="icon" href="<?php bloginfo('stylesheet_directory');?>/favicon.ico" type="images/x-icon" />
  16.                 <?php wp_head(); ?>
  17.             <script type="text/javascript">
  18.                 jQuery(document).ready(function() {
  19.                    jQuery.noConflict();
  20.                        
  21.                         var maxHeight = 0;
  22.  
  23.                         jQuery("#members-list li").each(function(){
  24.                            if (jQuery(this).height() > maxHeight) { maxHeight = jQuery(this).height(); }
  25.                         });
  26.  
  27.                         jQuery("#members-list li").height(maxHeight);
  28.                      // Put all your code in your document ready area
  29.                      jQuery(document).ready(function(){
  30.                        // Do jQuery stuff using $
  31.                         jQuery(function(){
  32.                          jQuery("ul.sf-menu").supersubs({
  33.                                     minWidth:    12,   // minimum width of sub-menus in em units
  34.                                     maxWidth:    27,   // maximum width of sub-menus in em units
  35.                                     extraWidth:  1     // extra width can ensure lines don't sometimes turn over
  36.                                                        // due to slight rounding differences and font-family
  37.                                 }).superfish();  // call supersubs first, then superfish, so that subs are
  38.                                                  // not display:none when measuring. Call before initialising
  39.                                                  // containing tabs for same reason.
  40.                         });
  41.                                                
  42.                     });
  43.                 });
  44.             </script>
  45.  
  46.     </head>
  47.  
  48.     <body <?php body_class() ?>>
  49.             <?php   do_action( 'bp_before_header' )  ?>
  50.             <div id="login-wrapper">
  51.                 <div id="login-bar">
  52.                         <div id="search-box">
  53.             <?php
  54.             locate_template( array( '/includes/searchform.php' ), true ); ?>
  55.                 </div>
  56.                     <?php if($bp_existed == 'true') { ?>
  57.                     <div id="login-box">
  58.             <!--       
  59.             <?php
  60.             locate_template( array( '/includes/members-box.php' ), true );
  61.              ?>
  62.              -->
  63.                 <a href="/fine-designer-crafts-show/buy-show-tickets/" class="cdcg-tix-header">Buy Show Tickets</a>
  64.                     </div>
  65.                         <?php do_action( 'bp_search_login_bar' ) ?>
  66.                     <?php } ?>
  67.                 <div class="clear"></div>
  68.             </div>
  69.             </div>
  70.                 <?php if($bp_existed == 'true') { ?>
  71.             <?php do_action( 'bp_after_search_login_bar' ) ?>
  72.                 <?php }   ?>
  73.            
  74.         <div id="header-wrapper">
  75.         <div id="header">
  76.                 <?php
  77.                     $advert = get_option('ne_buddyscholar_header_advert');     
  78.                     $advert_title = get_option('ne_buddyscholar_header_advert_title');
  79.                     $advert_link = get_option('ne_buddyscholar_header_advert_link');
  80.                 ?>
  81.                 <?php
  82.                 if ($advert != "" && $advert_link == ""){
  83.                 ?>
  84.                 <div id="advert">
  85.                     <img src="<?php echo $advert; ?>" alt="<?php bloginfo('name'); ?>"/>
  86.                 </div>
  87.                 <?php
  88.                 }
  89.                 else if ($advert != "" && $advert_link != ""){
  90.                     ?>
  91.                         <div id="advert">
  92.                                 <a href="<?php echo $advert_link ?>" title="<?php echo stripslashes($advert_title); ?>"><img src="<?php echo $advert; ?>" alt="<?php echo stripslashes($advert_title); ?>"></a>
  93.                         </div> 
  94.                     <?php
  95.                 }
  96.                 else {
  97.                    
  98.                 }
  99.                 ?>
  100.             <div id="logo">
  101.             <?php
  102.                 $logo_on = get_option('ne_buddyscholar_header_image');
  103.                 $logo_image = get_option('ne_buddyscholar_header_logo');
  104.                 $description_on = get_option('ne_buddyscholar_header_description_on');
  105.                 $description = get_option('ne_buddyscholar_header_description');
  106.                 $square_logo = get_option('ne_buddyscholar_header_image_square');
  107.                 $square_image = get_option('ne_buddyscholar_header_logo_square');
  108.                 $site_title = get_option('ne_buddyscholar_header_title');
  109.             ?>
  110.             <?php
  111.  
  112.             if($logo_on == "no" && $square_logo == "yes"){
  113.                 ?>
  114.                 <a href="<?php echo home_url(); ?>" title="<?php _e( 'Home', 'bp-scholar' ) ?>"><img src="<?php echo $square_image; ?>" alt="<?php bloginfo('name'); ?>" class="logo-square"/></a>
  115.                 <h1 class="square-header"><a href="<?php echo home_url(); ?>" title="<?php _e( 'Home', 'bp-scholar' ) ?>"><?php echo stripslashes($site_title); ?></a></h1>
  116.             <?php
  117.             }
  118.             else if($logo_on == "yes" && $square_logo == "no"){
  119.                 ?>
  120.                 <a href="<?php echo home_url(); ?>" title="<?php _e( 'Home', 'bp-scholar' ) ?>"><img src="<?php echo $logo_image; ?>" alt="<?php bloginfo('name'); ?>" class="full-logo"/></a>
  121.             <?php
  122.             }
  123.             else{
  124.             ?>
  125.                 <h1><a href="<?php echo home_url(); ?>" title="<?php _e( 'Home', 'bp-scholar' ) ?>"><?php echo stripslashes($site_title); ?></a></h1>
  126.             <?php
  127.             }
  128.  
  129.             ?>
  130.             <?php
  131.  
  132.             if($description_on == "yes"){
  133.                 ?>
  134.         <div class="description"><?php echo stripslashes($description); ?></div>
  135.             <?php
  136.             }
  137.             else{
  138.             ?>
  139.  
  140.             <?php
  141.             }
  142.  
  143.             ?>
  144.             </div>
  145.                 <?php do_action( 'bp_header' ) ?>
  146.                 <div class="clear"></div>
  147.             </div><!-- #header -->
  148.         </div>
  149.         <?php if( $bp_existed == 'true' ) { //check if bp existed ?>
  150.  
  151.         <?php locate_template( array( '/includes/main-navigation.php' ), true ); ?>
  152.  
  153.         <?php } else { // if not bp detected..let go normal ?>
  154.             <div id="navigation-wrapper">
  155.                 <div id="navigation-bar">
  156.                     <div id="navcontainer">
  157.                     <ul class="sf-menu">
  158.                         <li<?php if ( is_front_page()) : ?> class="selected"<?php endif; ?>>
  159.                             <a href="<?php echo site_url() ?>" title="<?php _e( 'Home', 'bp-scholar' ) ?>"><?php _e( 'Home', 'bp-scholar' ) ?></a>
  160.                         </li>
  161.                             <?php
  162.                                 if ( function_exists( 'wp_nav_menu' ) )
  163.                                     wp_nav_menu( array('theme_location' => "primary", 'menu_id' => '', 'container' => '', 'container_id' => '', 'items_wrap' => '%3$s', 'fallback_cb' => create_function('', 'return wp_list_pages("title_li=");')) );
  164.                                 else
  165.                                     wp_list_pages('title_li=');
  166.                             ?>
  167. <!--                            <li><a href="#"><?php _e( 'Categories', 'bp-scholar' ) ?></a>
  168.                                 <ul>
  169.                                     <?php
  170.                                         wp_list_categories('orderby=id&show_count=0&title_li=');
  171.                                     ?>
  172.                                 </ul>
  173.                             </li> -->
  174.                     </ul>
  175.                         </div>      <div class="clear"></div>
  176.                     </div>
  177.                 </div>      <?php } ?>
  178.    
  179.             <div id="info-wrapper">
  180.                 <div id="info-bar">
  181.                         <?php
  182.                             $site_message_show = get_option('ne_buddyscholar_site_message_on');
  183.                             $site_message = get_option('ne_buddyscholar_site_message');    
  184.                         ?>
  185.                     <?php if ($site_message_show == "yes"){?>
  186.                     <h2 class="moveright"><?php echo stripslashes($site_message); ?></h2>
  187.                     <?php }?>
  188.                     <div class="clear"></div>
  189.                 </div>
  190.             </div>
  191.         <?php if($bp_existed == 'true') { ?>
  192.         <?php do_action( 'bp_after_header' ) ?>
  193.         <?php do_action( 'bp_before_container' ) ?>
  194.         <?php } ?>
  195. <div id="container-wrapper">
  196.         <div id="container">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement