daily pastebin goal
25%
SHARE
TWEET

BP-Corporate-Child Go Healthy

a guest Dec 21st, 2011 61 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
  3. <head profile="http://gmpg.org/xfn/11">
  4. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  5. <meta name="viewport" content="width=device-width" />
  6.  
  7. <head>
  8. <?php include( TEMPLATEPATH . '/options-var.php' ); ?>
  9.  
  10. <title>
  11. <?php if($bp_existed == 'true') { //check if bp existed ?>
  12. <?php bp_page_title() ?>
  13. <?php } else { ?>
  14. <?php
  15.         /*
  16.          * Print the <title> tag based on what is being viewed.
  17.          */
  18.         global $page, $paged;
  19.  
  20.         wp_title( '|', true, 'right' );
  21.  
  22.         // Add the blog name.
  23.         bloginfo( 'name' );
  24.  
  25.         // Add the blog description for the home/front page.
  26.         $site_description = get_bloginfo( 'description', 'display' );
  27.         if ( $site_description && ( is_home() || is_front_page() ) )
  28.                 echo " | $site_description";
  29.  
  30.         // Add a page number if necessary:
  31.         if ( $paged >= 2 || $page >= 2 )
  32.                 echo ' | ' . sprintf( __( 'Page %s', 'twentyeleven' ), max( $paged, $page ) );
  33.  
  34.         ?>
  35. <?php } ?>
  36. </title>
  37.  
  38. <?php do_action( 'bp_head' ) ?>
  39.  
  40. <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="all" />
  41.  
  42.  
  43. <?php if( is_rtl() ): ?>
  44. <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/_inc/css/rtl.css" type="text/css" media="all" />
  45. <?php endif; ?>
  46.  
  47.  
  48. <?php if(function_exists('font_show')) { font_show(); } ?>
  49.  
  50. <!-- start theme options sync - using php to fetch theme option are deprecated and replace with style sync -->
  51. <?php print "<style type='text/css' media='screen'>"; ?>
  52. <?php include( TEMPLATEPATH . '/theme-options.php' ); ?>
  53. <?php print "</style>"; ?>
  54. <!-- end theme options sync -->
  55.  
  56. <?php //load stuff
  57. $tn_buddycorp_call_signup_on = get_option('tn_buddycorp_call_signup_on');
  58. $tn_buddycorp_header_on = get_option('tn_buddycorp_header_on');
  59. $get_current_scheme = get_option('tn_buddycorp_custom_style');
  60. ?>
  61.  
  62. <?php if(($get_current_scheme == '') || ($get_current_scheme == 'default.css')) { ?>
  63. <?php } else { ?>
  64. <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/_inc/preset-styles/<?php echo $get_current_scheme; ?>" type="text/css" media="screen" />
  65. <?php } ?>
  66.  
  67.  
  68. <?php if($bp_existed == 'true') { ?>
  69. <?php if( bp_current_component() || bp_is_directory() ) { ?>
  70. <?php print "<style type=\"text/css\" media=\"all\">"; ?>
  71. <?php $member_page_layout = get_option('tn_buddycorp_member_page_layout_style');
  72.  
  73. if($member_page_layout == '2-column') { ?>
  74. #custom #userbar { display: none; }
  75. <?php } else if($member_page_layout == '1-column') { ?>
  76. #custom #userbar, #custom #profile-right { display: none; }
  77. #custom #content { width: 96% !important; padding: 2% !important;}
  78. <?php } else { ?>
  79. <?php if( !bp_is_directory() ) { //we need this so member/profile did not break ?>
  80. #custom #content { width: 530px; }
  81. <?php } ?>
  82. <?php } ?>
  83. <?php print "</style>"; ?>
  84. <?php }  ?>
  85.  
  86. <?php }  ?>
  87.  
  88.  
  89. <?php if($bp_existed == 'true') { //check if bp existed ?>
  90. <?php if ( function_exists( 'bp_sitewide_activity_feed_link' ) ) : ?>
  91. <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() ?>" />
  92. <?php endif; ?>
  93. <?php if ( function_exists( 'bp_member_activity_feed_link' ) && bp_is_member() ) : ?>
  94. <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() ?>" />
  95. <?php endif; ?>
  96. <?php if ( function_exists( 'bp_group_activity_feed_link' ) && bp_is_group() ) : ?>
  97. <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() ?>" />
  98. <?php endif; ?>
  99. <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> <?php _e( 'Blog Posts RSS Feed', 'buddypress' ) ?>" href="<?php bloginfo('rss2_url'); ?>" />
  100. <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> <?php _e( 'Blog Posts Atom Feed', 'buddypress' ) ?>" href="<?php bloginfo('atom_url'); ?>" />
  101. <?php } ?>
  102.  
  103. <!-- automatic-feed-links in functions.php -->
  104. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  105.  
  106. <!--[if lt IE 9]>
  107. <script src="<?php echo get_template_directory_uri(); ?>/_inc/js/html5.js" type="text/javascript"></script>
  108. <![endif]-->
  109.  
  110. <!-- favicon.ico location -->
  111. <?php if(file_exists( WP_CONTENT_DIR . '/favicon.ico')) { //put your favicon.ico inside wp-content/ ?>
  112. <link rel="icon" href="<?php echo WP_CONTENT_URL; ?>/favicon.ico" type="images/x-icon" />
  113. <?php } elseif(file_exists( WP_CONTENT_DIR . '/favicon.png')) { //put your favicon.png inside wp-content/ ?>
  114. <link rel="icon" href="<?php echo WP_CONTENT_URL; ?>/favicon.png" type="images/x-icon" />
  115. <?php } elseif(file_exists( TEMPLATEPATH . '/favicon.ico')) { ?>
  116. <link rel="icon" href="<?php echo get_template_directory_uri(); ?>/favicon.ico" type="images/x-icon" />
  117. <?php } elseif(file_exists( TEMPLATEPATH . '/favicon.png')) { ?>
  118. <link rel="icon" href="<?php echo get_template_directory_uri(); ?>/favicon.png" type="images/x-icon" />
  119. <?php } ?>
  120.  
  121.  
  122. <?php print "<style type='text/css' media='screen'>";
  123. if($bp_existed == 'true') { //check if bp existed
  124. if ((int)get_site_option( 'hide-loggedout-adminbar' ) && !is_user_logged_in() ) {  ?>body { padding-top: 0px !important;
  125. <?php } ?>
  126. <?php } else { ?>body { padding: 0px !important; margin: 0px !important; }<?php } ?>
  127. <?php print "</style>"; ?>
  128.  
  129.  
  130. <?php if(function_exists('fbc_display_login_button')) { ?>
  131. <!-- facebook plugin component css -->
  132. <style type='text/css' media='screen'>
  133. #searchbox #user_login, #searchbox #user_pass { width: 90px; }
  134. </style>
  135. <!-- end facenook plugin component css -->
  136. <?php } ?>
  137.  
  138.  
  139. <!--[ if IE 6]>
  140. <style type="text/css">
  141. blockquote img { height: auto; width: 100%; }
  142. #nav, #pnav { behavior: url(<?php echo get_template_directory_uri(); ?>/_inc/js/hover.htc); }
  143. }
  144. </style>
  145. <![endif]-->
  146.  
  147.  
  148. <!-- lets use js from google -->
  149. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
  150. <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/_inc/js/dropmenu.js"></script>
  151.  
  152. <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
  153. <?php wp_head(); ?>
  154.  
  155. <?php if(is_front_page() || is_home()) { ?>
  156. <?php $home_featured_block_style = get_option('tn_buddycorp_home_featured_block_style'); if($home_featured_block_style == 'slideshow') { ?>
  157. <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/_inc/js/jquery.nivo.slider.pack.js"></script>
  158. <script type="text/javascript">
  159. jQuery.noConflict();
  160. var $je = jQuery;
  161.  $je(window).load(function() {
  162.         $je('#slider').nivoSlider();
  163.     });
  164. </script>
  165. <?php } ?>
  166. <?php } ?>
  167.  
  168. </head>
  169.  
  170. <body <?php body_class() ?> id="custom">
  171.  
  172. <div id="wrapper"<?php if ( $bp_front_is_activity == "true" )  { ?> class="activity_on_front"<?php } else { ?> class="activity_not_front"<?php } ?>>
  173.  
  174. <div id="container">
  175.  
  176. <?php do_action( 'bp_before_header' ) ?>
  177.  
  178. <div id="top-header">
  179.  
  180. <div id="custom-logo">
  181. <?php
  182. $tn_buddycorp_header_logo = get_option('tn_buddycorp_header_logo');
  183. if($tn_buddycorp_header_logo == '') { ?>
  184. <h1><a href="<?php echo home_url(); ?>"><?php bloginfo('name'); ?></a></h1>
  185. <p><?php bloginfo('description'); ?></p>
  186. <?php } else { ?>
  187. <a href="<?php echo home_url(); ?>" title="<?php _e('Click here to go to the site homepage', TEMPLATE_DOMAIN); ?>">
  188. <img src="<?php echo stripslashes($tn_buddycorp_header_logo); ?>" alt="<?php bloginfo('name'); ?> <?php _e('homepage', TEMPLATE_DOMAIN); ?>" /></a>
  189. <?php } ?>
  190. </div>
  191.  
  192.  
  193. <div id="pg-nav">
  194. <?php if ( function_exists( 'wp_nav_menu' ) ) { // Added in 3.0 ?>
  195. <?php wp_nav_menu( array('theme_location' => 'top-nav', 'menu_id' => 'pnav', 'container' => '', 'container_id' => '', 'fallback_cb' => ''));
  196. ?>
  197. <?php } ?>
  198. </div>
  199.  
  200.  
  201. </div>
  202.  
  203. <?php do_action( 'bp_after_header' ) ?>
  204.  
  205.  
  206. <div id="navigation">
  207. <?php if( $bp_existed == 'true' ) { //check if bp existed ?>
  208. <?php if ( function_exists( 'wp_nav_menu' ) ) { // Added in 3.0 ?>
  209. <ul id="nav">
  210. <?php echo bp_wp_custom_nav_menu($get_custom_location='main-nav', $get_default_menu='revert_wp_menu_page'); ?>
  211. </ul>
  212. <?php } else { ?>
  213. <ul id="nav">
  214. <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>
  215. <?php wp_list_pages('title_li=&depth=0'); ?>
  216. </ul>
  217. <?php } ?>
  218.  
  219. <?php } else { ?>
  220.  
  221. <?php if ( function_exists( 'wp_nav_menu' ) ) { // Added in 3.0 ?>
  222. <ul id="nav">
  223. <?php echo bp_wp_custom_nav_menu($get_custom_location='main-nav', $get_default_menu='revert_wp_menu_page'); ?>
  224. </ul>
  225. <?php } else { ?>
  226. <ul id="nav">
  227. <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>
  228. <?php wp_list_pages('title_li=&depth=0'); ?>
  229. </ul>
  230. <?php } ?>
  231.  
  232. <?php } ?>
  233. </div>
  234.  
  235.  
  236.  
  237.  
  238.  
  239. <?php
  240. if( $tn_buddycorp_header_on == 'enable') { ?>
  241. <?php if('' != get_header_image() ) { ?>
  242. <div id="custom-img-header">
  243. <div class="custom-img-header"><a href="<?php echo home_url(); ?>"><img src="<?php header_image(); ?>" alt="<?php bloginfo('name'); ?>" /></a></div>
  244. </div>
  245. <?php } } ?>
  246.  
  247.  
  248.  
  249. <?php do_action( 'bp_before_search_login_bar' ) ?>
  250.  
  251. <?php if($bp_existed == 'true') { //check if bp existed ?>
  252.  
  253. <?php if( !bp_is_register_page() ) { ?>
  254.  
  255. <div id="searchbox">
  256.  
  257. <form action="<?php echo bp_search_form_action() ?>" method="post" id="search-form">
  258. <input type="text" id="search-terms" name="search-terms" value="" />
  259. <?php echo bp_search_form_type_select() ?>
  260. <input type="submit" name="search-submit" id="search-submit" value="<?php _e( 'Search', TEMPLATE_DOMAIN ) ?>" />
  261. <?php wp_nonce_field( 'bp_search_form' ) ?>
  262. </form>
  263. <?php do_action( 'bp_search_login_bar' ) ?>
  264.  
  265.  
  266. <div id="fc_wrap">
  267.  
  268.  
  269. </div>
  270. </div>
  271. <?php } //dont show in reg page ?>
  272.  
  273. <?php } else { ?>
  274.  
  275. <div id="searchbox">
  276. <?php locate_template( array( 'lib/templates/wp-template/profile.php'), true ); ?>
  277. </div>
  278.  
  279. <?php } ?>
  280.  
  281.  
  282.  
  283. <?php do_action( 'bp_after_search_login_bar' ) ?>
  284.  
  285.  
  286. <?php if($tn_buddycorp_call_signup_on != ""){ ?>
  287. <?php } else { ?>
  288. <?php locate_template( array( 'lib/templates/wp-template/call-signup.php'), true ); ?>
  289. <?php } ?>
  290.  
  291.  
  292. <?php do_action( 'bp_before_container' ) ?>
  293.  
  294. <?php if($bp_existed == 'true') { //check if bp existed ?>
  295. <div class="content">
  296. <?php if( !bp_is_blog_page() && bp_current_component() && !bp_is_directory() ) { ?>
  297. <?php locate_template( array( 'lib/templates/bp-template/userbar.php'), true ); ?>
  298. <?php } ?>
  299. <?php do_action( 'bp_before_content' ) ?>
  300.  
  301. <?php } else { ?>
  302. <div class="content">
  303. <?php do_action( 'bp_before_content' ) ?>
  304. <?php } ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top