Advertisement
Guest User

Untitled

a guest
Jun 29th, 2014
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.00 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
  3. <!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]-->
  4. <!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]-->
  5. <!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]-->
  6. <!--[if (gt IE 9)|!(IE)]><!--> <html <?php language_attributes(); ?> class="no-js"> <!--<![endif]-->
  7. <head>
  8. <meta charset="<?php bloginfo( 'charset' ); ?>" />
  9. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  10. <link rel="profile" href="http://gmpg.org/xfn/11">
  11.  
  12. <?php include( TEMPLATEPATH . '/options-var.php' ); ?>
  13.  
  14. <title>
  15. <?php
  16. /*
  17. * Print the <title> tag based on what is being viewed.
  18. */
  19. global $page, $paged;
  20.  
  21. wp_title( '|', true, 'right' );
  22.  
  23. // Add the blog name.
  24. bloginfo( 'name' );
  25.  
  26. // Add the blog description for the home/front page.
  27. $site_description = get_bloginfo( 'description', 'display' );
  28. if ( $site_description && ( is_home() || is_front_page() ) )
  29. echo " | $site_description";
  30.  
  31. // Add a page number if necessary:
  32. if ( $paged >= 2 || $page >= 2 )
  33. echo ' | ' . sprintf( __( 'Page %s', TEMPLATE_DOMAIN ), max( $paged, $page ) );
  34.  
  35. ?>
  36. </title>
  37.  
  38. <?php do_action( 'bp_head' ) ?>
  39.  
  40. <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
  41.  
  42. <?php if( function_exists('font_show')) { font_show(); } ?>
  43.  
  44. <?php if($bp_existed == 'true') { ?>
  45. <?php print "<style type=\"text/css\" media=\"all\">"; ?>
  46.  
  47. <?php if( bp_current_component() || bp_is_directory() ) { ?>
  48. <?php $member_page_layout = get_option('tn_buddycorp_member_page_layout_style');
  49.  
  50. if($member_page_layout == '2-column') { ?>
  51. #custom #userbar { display: none; }
  52. #custom #buddypress { width: 74%; }
  53. <?php } else if($member_page_layout == '1-column') { ?>
  54. #custom #userbar, #custom #profile-right { display: none; }
  55. #custom .content #buddypress { width: 96% !important; padding: 1.6% !important; max-width: 100% !important; }
  56. <?php } else { ?>
  57. <?php if( !bp_is_directory() ) { //we need this so member/profile did not break ?>
  58. #custom #buddypress { width: 53%; }
  59. <?php } ?>
  60. <?php } ?>
  61.  
  62. <?php } ?>
  63.  
  64. <?php if( bp_is_activation_page() || bp_is_register_page() ) { ?>
  65. #custom .content #buddypress { width: 96% !important; padding: 1.6% !important; margin: 20px 0px 0px; max-width: 100% !important; }
  66. #custom #userbar, #custom #profile-right, #call-action { display: none; }
  67. <?php } ?>
  68.  
  69. <?php print "</style>"; ?>
  70. <?php } ?>
  71.  
  72.  
  73. <?php if($bp_existed == 'true') { //check if bp existed ?>
  74. <?php if ( function_exists( 'bp_sitewide_activity_feed_link' ) ) : ?>
  75. <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() ?>" />
  76. <?php endif; ?>
  77. <?php if ( function_exists( 'bp_member_activity_feed_link' ) && bp_is_user() ) : ?>
  78. <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() ?>" />
  79. <?php endif; ?>
  80. <?php if ( function_exists( 'bp_group_activity_feed_link' ) && bp_is_group() ) : ?>
  81. <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() ?>" />
  82. <?php endif; ?>
  83. <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> <?php _e( 'Blog Posts RSS Feed', 'buddypress' ) ?>" href="<?php bloginfo('rss2_url'); ?>" />
  84. <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> <?php _e( 'Blog Posts Atom Feed', 'buddypress' ) ?>" href="<?php bloginfo('atom_url'); ?>" />
  85. <?php } ?>
  86.  
  87. <!-- automatic-feed-links in functions.php -->
  88. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  89.  
  90. <!-- favicon.ico location -->
  91. <?php if(file_exists( WP_CONTENT_DIR . '/favicon.ico')) { //put your favicon.ico inside wp-content/ ?>
  92. <link rel="icon" href="<?php echo WP_CONTENT_URL; ?>/favicon.ico" type="images/x-icon" />
  93. <?php } elseif(file_exists( WP_CONTENT_DIR . '/favicon.png')) { //put your favicon.png inside wp-content/ ?>
  94. <link rel="icon" href="<?php echo WP_CONTENT_URL; ?>/favicon.png" type="images/x-icon" />
  95. <?php } elseif(file_exists( TEMPLATEPATH . '/favicon.ico')) { ?>
  96. <link rel="icon" href="<?php echo get_template_directory_uri(); ?>/favicon.ico" type="images/x-icon" />
  97. <?php } elseif(file_exists( TEMPLATEPATH . '/favicon.png')) { ?>
  98. <link rel="icon" href="<?php echo get_template_directory_uri(); ?>/favicon.png" type="images/x-icon" />
  99. <?php } ?>
  100.  
  101.  
  102. <!--[ if IE 6 ]>
  103. <style type="text/css">
  104. blockquote img { height: auto; width: 100%; }
  105. #nav, #pnav { behavior: url(<?php echo get_template_directory_uri(); ?>/_inc/js/hover.htc); }
  106. </style>
  107. <![endif]-->
  108.  
  109. <!--[if gte IE 9]>
  110. <style type="text/css">
  111. .gradient, #cf .st, .form-submit #submit, #cf .st:hover, .form-submit #submit:hover, .reply a, .reply a:hover, .button, .button:hover {
  112. filter: none;
  113. }
  114. </style>
  115. <![endif]-->
  116.  
  117.  
  118. <?php print "<style type='text/css' media='screen'>";
  119. if($bp_existed == 'true') { //check if bp existed
  120. if ( '1' == get_option( 'hide-loggedout-adminbar' ) && !is_user_logged_in() ) { ?>
  121. body { padding-top: 0px !important;
  122. <?php } ?>
  123. <?php } else { ?>body { padding: 0px !important; margin: 0px !important; }<?php } ?>
  124. <?php print "</style>"; ?>
  125.  
  126.  
  127. <?php if(function_exists('fbc_display_login_button')) { ?>
  128. <!-- facebook plugin component css -->
  129. <style type='text/css' media='screen'>
  130. #searchbox #user_login, #searchbox #user_pass { width: 90px; }
  131. </style>
  132. <!-- end facenook plugin component css -->
  133. <?php } ?>
  134.  
  135.  
  136. <!--[if lt IE 9]>
  137. <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  138. <![endif]-->
  139.  
  140. <?php wp_head(); ?>
  141.  
  142. <?php if( is_front_page() || is_home() ) { ?>
  143. <?php $home_featured_block_style = get_option('tn_buddycorp_home_featured_block_style'); if($home_featured_block_style == 'slideshow') { ?>
  144.  
  145. <script type="text/javascript">
  146. jQuery.noConflict();
  147. var $je = jQuery;
  148. $je(window).load(function() {
  149. $je('#slider').nivoSlider({
  150. effect: 'fade', // Specify sets like: 'fold,fade,sliceDown'
  151. slices: 15, // For slice animations
  152. boxCols: 8, // For box animations
  153. boxRows: 4, // For box animations
  154. animSpeed: 500, // Slide transition speed
  155. pauseTime: 5000, // How long each slide will show
  156. startSlide: 0, // Set starting Slide (0 index)
  157. directionNav: true, // Next & Prev navigation
  158. directionNavHide: true, // Only show on hover
  159. controlNav: true, // 1,2,3... navigation
  160. controlNavThumbs: false, // Use thumbnails for Control Nav
  161. controlNavThumbsFromRel: false, // Use image rel for thumbs
  162. controlNavThumbsSearch: '.jpg', // Replace this with...
  163. controlNavThumbsReplace: '_thumb.jpg', // ...this in thumb Image src
  164. keyboardNav: true, // Use left & right arrows
  165. pauseOnHover: true, // Stop animation while hovering
  166. manualAdvance: false, // Force manual transitions
  167. captionOpacity: 0.8, // Universal caption opacity
  168. prevText: 'Prev', // Prev directionNav text
  169. nextText: 'Next', // Next directionNav text
  170. randomStart: false, // Start on a random slide
  171. beforeChange: function(){}, // Triggers before a slide transition
  172. afterChange: function(){}, // Triggers after a slide transition
  173. slideshowEnd: function(){}, // Triggers after all slides have been shown
  174. lastSlide: function(){}, // Triggers when last slide is shown
  175. afterLoad: function(){} // Triggers when slider has loaded
  176. });
  177. });
  178. </script>
  179.  
  180.  
  181.  
  182. <?php } } ?>
  183.  
  184. <?php if (strstr($_SERVER['REQUEST_URI'], '/wp-signup.php')) { ?>
  185. <?php print "<style type='text/css' media='screen'>"; ?>
  186. #custom div#buddypress {
  187. border: 0px none;
  188. float: left;
  189. padding: 5% !important;
  190. margin: 0;
  191. width: 90% !important;
  192. }
  193. .mu_register h2 {font-size: 20px;}
  194. .mu_register { width: 96% !important; padding: 2% !important; background: #f8f8f8; border: 1px solid #ccc; float:left; }
  195. .mu_register form {padding: 0px !important; background: transparent none !important;}
  196. #setupform p label {
  197. display: inline !important;
  198. }
  199. #setupform input, #setupform textarea, #activateform input {
  200. font-size: 1.2em;
  201. width: auto;
  202. max-width: 400px;
  203. }
  204. #buddypress .mu_register p { margin: 15px 0px 0px; }
  205. <?php print "</style>"; ?>
  206. <?php } ?>
  207.  
  208.  
  209. <?php
  210. $forum_root_slug = get_option('_bbp_forum_slug');
  211. $topic_root_slug = get_option('_bbp_topic_slug');
  212. $reply_root_slug = get_option('_bbp_reply_slug');
  213. if( get_post_type() == 'forum' || get_post_type() == $forum_root_slug || get_post_type() == $topic_root_slug || get_post_type() == $reply_root_slug ) { ?>
  214. <?php print "<style type='text/css' media='screen'>"; ?>
  215.  
  216. <?php if ( !is_active_sidebar( 'bbpress-sidebar' ) ) : ?>
  217. #sidebar, .post-meta { display: none; }
  218. #custom #post-entry { width: 96% !important; padding: 2% !important; border: 0 none !important; }
  219. <?php else: ?>
  220. #container .bb-sidebar { display: inline !important; }
  221. #sidebar, .post-meta { display: none !important; }
  222. <?php endif; ?>
  223.  
  224.  
  225. .bbp-forum-info {width: 40%;}
  226. #buddypress fieldset.bbp-form, #container fieldset.bbp-form, #wrapper fieldset.bbp-form { border: 1px solid #ccc;
  227. padding: 10px 20px;
  228. }
  229. .bbp-forums .even, .bbp-topics .even { background: #f8f8f8; }
  230. #container .post-content {width: 100%;}
  231. .bbp-breadcrumb {margin: 0 0 1em 0;}
  232. #bbp_topic_title { width: 70%; }
  233. .bbp-reply-author {width: 30%;}
  234. .bbp-topic-meta {font-size: 0.875em;}
  235. .bbp-reply-author img {margin: 0 1em 0 0;}
  236. #container .bbp-reply-content,#container .bbp-reply-author {padding: 1.4em 1em;}
  237. .bbp-topics td {padding: 1em;}
  238. <?php print "</style>"; ?>
  239. <?php } else { ?>
  240. <?php print "<style type='text/css' media='screen'>"; ?>
  241. #container .bb-sidebar { display: none !important; }
  242. <?php print "</style>"; ?>
  243. <?php } ?>
  244.  
  245. <!-- start theme options sync - using php to fetch theme option are deprecated and replace with style sync -->
  246. <?php print "<style type='text/css' media='screen'>"; ?>
  247. <?php include( TEMPLATEPATH . '/theme-options.php' ); ?>
  248. <?php print "</style>"; ?>
  249. <!-- end theme options sync -->
  250.  
  251. <?php //load stuff
  252. $tn_buddycorp_call_signup_on = get_option('tn_buddycorp_call_signup_on');
  253. $tn_buddycorp_header_on = get_option('tn_buddycorp_header_on');
  254. $get_current_scheme = get_option('tn_buddycorp_custom_style');
  255. ?>
  256.  
  257. <?php if(($get_current_scheme == '') || ($get_current_scheme == 'default.css')) { ?>
  258. <?php } else { ?>
  259. <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/_inc/preset-styles/<?php echo $get_current_scheme; ?>" type="text/css" media="screen" id="preset-style-css" />
  260. <?php } ?>
  261.  
  262. </head>
  263.  
  264. <body <?php body_class() ?> id="custom">
  265.  
  266. <div id="wrapper"<?php if ( $bp_front_is_activity == "true" ) { ?> class="activity_on_front"<?php } else { ?> class="activity_not_front"<?php } ?>>
  267.  
  268. <div id="container">
  269.  
  270. <?php do_action( 'bp_before_header' ) ?>
  271.  
  272. <div id="top-header">
  273.  
  274. <div id="custom-logo">
  275. <?php
  276. $tn_buddycorp_header_logo = get_option('tn_buddycorp_header_logo');
  277. if($tn_buddycorp_header_logo == '') { ?>
  278. <h1><a href="<?php echo home_url(); ?>"><?php bloginfo('name'); ?></a></h1>
  279. <p><?php bloginfo('description'); ?></p>
  280. <?php } else { ?>
  281. <a href="<?php echo home_url(); ?>" title="<?php _e('Click here to go to the site homepage', TEMPLATE_DOMAIN); ?>">
  282. <img src="<?php echo stripslashes($tn_buddycorp_header_logo); ?>" alt="<?php bloginfo('name'); ?> <?php _e('homepage', TEMPLATE_DOMAIN); ?>" /></a>
  283. <?php } ?>
  284. </div>
  285.  
  286.  
  287. <div id="pg-nav">
  288. <?php if ( function_exists( 'wp_nav_menu' ) ) { // Added in 3.0 ?>
  289. <?php wp_nav_menu( array('theme_location' => 'top-nav', 'menu_id' => 'pnav', 'container' => '', 'container_id' => '', 'fallback_cb' => ''));
  290. ?>
  291. <?php } ?>
  292. </div>
  293.  
  294.  
  295. </div>
  296.  
  297. <?php do_action( 'bp_after_header' ) ?>
  298.  
  299.  
  300. <div id="navigation">
  301. <?php if ( function_exists( 'wp_nav_menu' ) ) { // Added in 3.0 ?>
  302. <ul id="nav">
  303. <?php echo bp_wp_custom_nav_menu($get_custom_location='main-nav', $get_default_menu='revert_wp_menu_page'); ?>
  304. </ul>
  305. <?php } else { ?>
  306. <ul id="nav">
  307. <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>
  308. <?php wp_list_pages('title_li=&depth=0'); ?>
  309. </ul>
  310. <?php } ?>
  311.  
  312.  
  313. </div>
  314.  
  315.  
  316.  
  317.  
  318.  
  319. <?php
  320. if( $tn_buddycorp_header_on == 'enable') { ?>
  321. <?php if('' != get_header_image() ) { ?>
  322. <div id="custom-img-header">
  323. <div class="custom-img-header"><a href="<?php echo home_url(); ?>"><img src="<?php header_image(); ?>" alt="<?php bloginfo('name'); ?>" /></a></div>
  324. </div>
  325. <?php } } ?>
  326.  
  327.  
  328.  
  329. <?php do_action( 'bp_before_search_login_bar' ) ?>
  330.  
  331. <div id="mobile-search">
  332. <?php get_mobile_navigation( $type='top', $nav_name='main-nav' ); ?>
  333. </div>
  334.  
  335. <?php if($bp_existed == 'true') { //check if bp existed ?>
  336.  
  337. <?php if( !bp_is_register_page() ) { ?>
  338.  
  339. <div class="gradient" id="searchbox">
  340.  
  341. <form action="<?php echo bp_search_form_action() ?>" method="post" id="search-form">
  342. <input type="text" id="search-terms" name="search-terms" value="" />
  343. <?php echo bp_search_form_type_select() ?>
  344. <input type="submit" name="search-submit" id="search-submit" value="<?php _e( 'Search', TEMPLATE_DOMAIN ) ?>" />
  345. <?php wp_nonce_field( 'bp_search_form' ) ?>
  346. </form>
  347. <?php do_action( 'bp_search_login_bar' ) ?>
  348.  
  349.  
  350. <div id="fc_wrap">
  351. <?php if ( !is_user_logged_in() ) : ?>
  352.  
  353. <?php do_action( 'bp_before_sidebar_login_form' ) ?>
  354.  
  355. <form name="login-form" class="mylogform" id="login-form" action="<?php echo site_url( '/wp-login.php', 'login' ) ?>" method="post">
  356. <input type="text" name="log" id="user_login" value="<?php _e( 'Username', TEMPLATE_DOMAIN) ?>" onfocus="if (this.value == '<?php _e( 'Username', TEMPLATE_DOMAIN) ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e( 'Username', TEMPLATE_DOMAIN) ?>';}" />
  357. <input type="password" name="pwd" id="user_pass" class="input" value="" />
  358.  
  359. <input type="checkbox" checked="checked" name="rememberme" id="rememberme" value="forever" title="<?php _e( 'Remember Me', TEMPLATE_DOMAIN ) ?>" />
  360.  
  361. <input type="submit" name="wp-submit" id="wp-submit" value="<?php _e( 'Log In', TEMPLATE_DOMAIN) ?>"/>
  362. <?php if ( bp_get_signup_allowed() ) : ?>
  363. <input type="button" name="signup-submit" id="signup-submit" value="<?php _e( 'Sign Up', TEMPLATE_DOMAIN) ?>" onclick="location.href='<?php echo bp_signup_page() ?>'" />
  364. <?php endif; ?>
  365. <input type="hidden" name="testcookie" value="1" />
  366. <?php do_action( 'bp_login_bar_logged_out' ) ?>
  367. </form>
  368.  
  369. <?php do_action( 'bp_after_sidebar_login_form' ) ?>
  370.  
  371. <?php else : ?>
  372.  
  373. <div id="logout-link">
  374. <?php global $bp; bp_loggedin_user_avatar( 'width=20&height=20' ) ?> &nbsp; <a href="<?php bp_loggedin_user_link() ?>"><?php echo $bp->loggedin_user->fullname; ?></a> / <a href="<?php echo wp_logout_url( bp_get_root_domain() ) ?>"><?php _e( 'Log Out', TEMPLATE_DOMAIN ) ?></a>
  375. <?php do_action( 'bp_login_bar_logged_in' ) ?>
  376. </div>
  377.  
  378. <?php endif; ?>
  379.  
  380. </div>
  381. </div>
  382. <?php } //dont show in reg page ?>
  383.  
  384. <?php } else { ?>
  385.  
  386. <div id="searchbox">
  387. <?php locate_template( array( 'lib/templates/wp-template/profile.php'), true ); ?>
  388. </div>
  389.  
  390. <?php } ?>
  391.  
  392.  
  393.  
  394. <?php do_action( 'bp_after_search_login_bar' ) ?>
  395.  
  396.  
  397. <?php if($tn_buddycorp_call_signup_on != "" && !wpmudev_is_customize_preview()){ ?>
  398. <?php } else { ?>
  399. <?php locate_template( array( 'lib/templates/wp-template/call-signup.php'), true ); ?>
  400. <?php } ?>
  401.  
  402.  
  403. <?php do_action( 'bp_before_container' ) ?>
  404.  
  405. <?php if($bp_existed == 'true') { //check if bp existed ?>
  406. <div class="content">
  407. <?php if( !bp_is_blog_page() && bp_current_component() && !bp_is_directory() ) { ?>
  408. <?php locate_template( array( 'lib/templates/bp-template/userbar.php'), true ); ?>
  409. <?php } ?>
  410. <?php do_action( 'bp_before_content' ) ?>
  411.  
  412. <?php } else { ?>
  413. <div class="content">
  414. <?php do_action( 'bp_before_content' ) ?>
  415. <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement