Skip to:
Content

BuddyPress.org

Ticket #3571: header.php

File header.php, 6.6 KB (added by WendellH, 14 years ago)

BuddyBoss header.php file

Line 
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
7                <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
8
9                <title><?php bp_page_title() ?></title>
10
11                <?php do_action( 'bp_head' ) ?>
12
13                <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
14
15                <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
16               
17                <link rel="shortcut icon" href="<?php bloginfo('stylesheet_directory'); ?>/_inc/images/favicon.ico" type="image/x-icon">
18
19                <?php if ( function_exists( 'bp_sitewide_activity_feed_link' ) ) : ?>
20                        <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() ?>" />
21                <?php endif; ?>
22
23                <?php if ( function_exists( 'bp_member_activity_feed_link' ) && bp_is_member() ) : ?>
24                        <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() ?>" />
25                <?php endif; ?>
26
27                <?php if ( function_exists( 'bp_group_activity_feed_link' ) && bp_is_group() ) : ?>
28                        <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() ?>" />
29                <?php endif; ?>
30
31                <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> <?php _e( 'Blog Posts RSS Feed', 'buddypress' ) ?>" href="<?php bloginfo('rss2_url'); ?>" />
32                <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> <?php _e( 'Blog Posts Atom Feed', 'buddypress' ) ?>" href="<?php bloginfo('atom_url'); ?>" />
33
34                <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
35               
36                <?php wp_head(); ?>
37               
38                <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/_inc/js/dropdown.js"></script>
39                <script type="text/javascript">
40
41                // initialise drop-down menu
42                        jQuery(document).ready(function($){
43        $("ul.sf-menu").superfish({
44          delay:        0, // No delay on mouseout. Set to 1000 for one second delay.
45                                        autoArrows:   true, // Set to "false" to disable auto-generation of arrows in drop-downs.
46                                        dropShadows:  true // Set to "false" to disable drop shadows.
47        });
48            });
49
50                </script>
51
52        </head>
53
54        <body <?php body_class() ?> id="bp-default">
55       
56        <!--[if lte IE 6]><script src="<?php bloginfo('stylesheet_directory'); ?>/_inc/js/ie6/warning.js"></script><script>window.onload=function(){e("<?php bloginfo('stylesheet_directory'); ?>/_inc/js/ie6/")}</script><![endif]-->
57
58                <?php do_action( 'bp_before_header' ) ?>
59               
60                <div id="wrapper">
61
62                        <div id="header">
63                       
64                                <div class="padder">
65       
66                                        <?php if (get_option("buddy_boss_custom_logo", FALSE)!= FALSE)
67                                        {
68                                                $logo = get_option("buddy_boss_custom_logo");
69                                               
70                                        }
71                                                else 
72                                                        {
73                                                                $logo = get_bloginfo("template_directory")."/_inc/images/logo.jpg";
74                                                        }
75                                        ?>
76                                        <div id="logo">
77                                                        <a href="<?php echo site_url() ?>" title="<?php _e( 'Home', 'buddypress' )
78                               
79                                         ?>"><img src="<?php echo $logo ?>"/></a>
80                                        </div>
81                                       
82                                        <!--
83                                        <div id="site-name"><a href="<?php echo site_url() ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php bp_site_name() ?></a></div>                                                                                   
84                                        <div id="site-description"><?php bloginfo( 'description' ); ?>
85                                        </div>
86                                        -->
87                                                                                                                       
88                                                <ul class="sf-menu">
89                                               
90                                                        <li<?php if ( bp_is_front_page() ) : ?> class="selected"<?php endif; ?>>
91                                                                <a href="<?php echo site_url() ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php _e( 'Home', 'buddypress' ) ?></a>
92                                                        </li>
93                                                       
94                                                        <?php if ( has_nav_menu( 'primary-menu' ) ) { ?>
95                                                                <?php wp_nav_menu( array( 'theme_location' => 'primary-menu', 'container' => false ) ); ?>
96                                                        <?php } else { ?>
97                                                                <?php wp_list_pages( 'title_li=&depth=3&exclude=' . bp_dtheme_page_on_front() ); ?>
98                                                        <?php   } ?>
99                       
100                                                        <li<?php if ( bp_is_page( BP_MEMBERS_SLUG ) || bp_is_member() ) : ?> class="selected"<?php endif; ?>>
101                                                                <a href="<?php echo site_url() ?>/<?php echo BP_MEMBERS_SLUG ?>/" title="<?php _e( 'Members', 'buddypress' ) ?>"><?php _e( 'Members', 'buddypress' ) ?></a>
102                                                        </li>
103                       
104                                                        <?php if ( bp_is_active( 'groups' ) ) : ?>
105                                                                <li<?php if ( bp_is_page( BP_GROUPS_SLUG ) || bp_is_group() ) : ?> class="selected"<?php endif; ?>>
106                                                                        <a href="<?php echo site_url() ?>/<?php echo BP_GROUPS_SLUG ?>/" title="<?php _e( 'Groups', 'buddypress' ) ?>"><?php _e( 'Groups', 'buddypress' ) ?></a>
107                                                                </li>
108                       
109                                                                <?php if ( bp_is_active( 'forums' ) && ( function_exists( 'bp_forums_is_installed_correctly' ) && !(int) bp_get_option( 'bp-disable-forum-directory' ) ) && bp_forums_is_installed_correctly() ) : ?>
110                                                                        <li<?php if ( bp_is_page( BP_FORUMS_SLUG ) ) : ?> class="selected"<?php endif; ?>>
111                                                                                <a href="<?php echo site_url() ?>/<?php echo BP_FORUMS_SLUG ?>/" title="<?php _e( 'Forums', 'buddypress' ) ?>"><?php _e( 'Forums', 'buddypress' ) ?></a>
112                                                                        </li>
113                                                                <?php endif; ?>
114                                                        <?php endif; ?>
115                       
116                                                        <?php if ( bp_is_active( 'blogs' ) && bp_core_is_multisite() ) : ?>
117                                                                <li<?php if ( bp_is_page( BP_BLOGS_SLUG ) ) : ?> class="selected"<?php endif; ?>>
118                                                                        <a href="<?php echo site_url() ?>/<?php echo BP_BLOGS_SLUG ?>/" title="<?php _e( 'Blogs', 'buddypress' ) ?>"><?php _e( 'Blogs', 'buddypress' ) ?></a>
119                                                                </li>
120                                                        <?php endif; ?>
121                                                       
122                                                        <?php if ( 'activity' != bp_dtheme_page_on_front() && bp_is_active( 'activity' ) ) : ?>
123                                                                <li<?php if ( bp_is_page( BP_ACTIVITY_SLUG ) ) : ?> class="selected"<?php endif; ?>>
124                                                                        <a href="<?php echo site_url() ?>/<?php echo BP_ACTIVITY_SLUG ?>/" title="<?php _e( 'Activity', 'buddypress' ) ?>"><?php _e( 'Activity', 'buddypress' ) ?></a>
125                                                                </li>
126                                                        <?php endif; ?>
127                                                                                                               
128                                                        <?php do_action( 'bp_nav_items' ); ?>
129                                                       
130                                                </ul><!-- #sf-menu -->
131                                                                                                                               
132                                </div><!-- .padder -->
133                                       
134                                <?php do_action( 'bp_header' ) ?>
135       
136                        </div><!-- #header -->
137       
138                        <?php do_action( 'bp_after_header' ) ?>
139                        <?php do_action( 'bp_before_container' ) ?>
140       
141                        <div id="container">