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