Advertisement
Guest User

header-buddypress.php

a guest
Jan 23rd, 2013
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.15 KB | None | 0 0
  1. <?php $content_position = ( $udesign_options['pages_sidebar'] == 'left' ) ? 'grid_16 push_8' : 'grid_16'; ?>
  2. <div id="content-container" class="container_24">
  3. <div id="main-content" class="<?php echo $content_position; ?>">
  4. <div class="main-content-padding">
  5. <div class="post" id="post-<?php the_ID(); ?>">
  6. <div class="entry">
  7. <?php
  8. /**
  9. * @package WordPress
  10. * @subpackage U-Design
  11. */
  12.  
  13. global $udesign_options, $style, $current_slider;
  14. // get the current color scheme subdirectory
  15. $style = ( $udesign_options['color_scheme'] ) ? "style{$udesign_options['color_scheme']}": "style1";
  16. $current_slider = $udesign_options['current_slider'];
  17. ?>
  18. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  19. <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
  20.  
  21. <head profile="http://gmpg.org/xfn/11">
  22. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  23. <meta name="show-menu-auto-arrows" content="<?php echo ($udesign_options['show_menu_auto_arrows']) ? 1 : 0; ?>" />
  24. <meta name="show-menu-drop-shadows" content="<?php echo ($udesign_options['show_menu_drop_shadows']) ? 1 : 0; ?>" />
  25.  
  26.  
  27. <link rel="shortcut icon" href="http://darkdesign.org/wp-content/uploads/2012/12/favicon.png" />
  28. <title><?php wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title>
  29.  
  30. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  31.  
  32. <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
  33.  
  34. <!--[if IE 6]>
  35. <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/scripts/DD_belatedPNG_0.0.8a-min.js"></script>
  36. <script type="text/javascript">
  37. // <![CDATA[
  38. DD_belatedPNG.fix('.pngfix, img, #home-page-content li, #page-content li, #bottom li, #footer li, #recentcomments li span');
  39. // ]]>
  40. </script>
  41. <![endif]-->
  42.  
  43. <?php wp_head(); ?>
  44.  
  45. <link rel="stylesheet" type="text/css" href="http://darkdesign.org/wp-content/themes/u-design/lib/buddypress/bp.css"/>
  46. <link rel="stylesheet" type="text/css" href="http://darkdesign.org/wp-content/themes/u-design/lib/buddypress/bp-admin.css"/>
  47.  
  48.  
  49. <!--[if lte IE 9]>
  50. <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/styles/common-css/ie-all.css" media="screen" type="text/css" />
  51. <![endif]-->
  52. <!--[if lte IE 7]>
  53. <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/styles/common-css/ie6-7.css" media="screen" type="text/css" />
  54. <![endif]-->
  55. <!--[if IE 6]>
  56. <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/styles/common-css/ie6.css" media="screen" type="text/css" />
  57. <style type="text/css">
  58. body{ behavior: url("<?php bloginfo('template_directory'); ?>/scripts/csshover3.htc"); }
  59. </style>
  60. <![endif]-->
  61. <?php echo $udesign_options['google_analytics']; ?>
  62.  
  63. <meta name="google-translate-customization" content="487c23eac4bf59ad-e72d58a86a9203cc-gb83a9ffc53733682-e"></meta>
  64.  
  65. </head>
  66. <?php if(function_exists(updateHeader)) updateHeader(); ?>
  67. <div id="fb-root"></div>
  68. <script>(function(d, s, id) {
  69. var js, fjs = d.getElementsByTagName(s)[0];
  70. if (d.getElementById(id)) return;
  71. js = d.createElement(s); js.id = id;
  72. js.src = "//connect.facebook.net/pl_PL/all.js#xfbml=1&appId=295901897182291";
  73. fjs.parentNode.insertBefore(js, fjs);
  74. }(document, 'script', 'facebook-jssdk'));</script>
  75.  
  76. <body <?php body_class( $udesign_options['enable_cufon'] ); ?>>
  77. <?php
  78. if ($udesign_options['enable_feedback']) : ?>
  79. <div id="feedback"><a href="<?php echo $udesign_options['feedback_url']; ?>" title="<?php esc_attr_e('Feedback', 'udesign'); ?>" class="feedback"></a></div>
  80. <?php
  81. endif;
  82. if ($udesign_options['enable_page_peel']) : ?>
  83. <div id="page-peel">
  84. <a href="<?php echo $udesign_options['page_peel_url']; ?>" title="<?php esc_attr_e('Subscribe', 'udesign'); ?>"><img src="<?php bloginfo('template_directory'); ?>/styles/style1/images/page_peel.png" alt="<?php esc_attr_e('Subscribe', 'udesign'); ?>" /></a>
  85. <div class="msg_block"></div>
  86. </div>
  87.  
  88. <strong></strong>
  89. <?php
  90. endif; ?>
  91. <div id="wrapper-1" class="pngfix">
  92. <div id="top-wrapper">
  93. <div id="top-elements" class="container_24">
  94. <div id="logo" class="grid_14">
  95. <?php if( is_front_page() ) : ?>
  96. <h1><a title="<?php bloginfo('name'); ?>" class="pngfix" href="<?php echo get_bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
  97. <?php else : ?>
  98. <div class="site-name"><a title="<?php bloginfo('name'); ?>" class="pngfix" href="<?php echo get_bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></div>
  99. <?php endif; ?>
  100. </div>
  101. <div id="slogan" class="grid_17"><?php bloginfo('description'); ?></div>
  102. <!-- end logo slogan -->
  103. <?php if ($udesign_options['top_page_phone_number']) : ?>
  104. <div class="phone-number grid_7 prefix_17">
  105. <div class="phone-number-padding">
  106. <?php echo $udesign_options['top_page_phone_number']; ?>
  107. </div><!-- end phone-number-padding -->
  108. </div><!-- end phone-number -->
  109. <?php endif; ?>
  110. <?php if ($udesign_options['enable_search']) : ?>
  111. <div id="search" class="grid_6 prefix_18">
  112. <form action="<?php bloginfo('url'); ?>/" method="get">
  113. <div class="search_box">
  114. <input id="search_field" name="s" type="text" class="inputbox_focus blur pngfix" value="<?php esc_attr_e('Search...', 'udesign'); ?>" />
  115. <input type="submit" value="" class="search-btn pngfix" />
  116. </div>
  117. </form>
  118. </div><!-- end search -->
  119. <?php endif; ?>
  120.  
  121. <?php $top_area_social_media = sidebar_exist_and_active('top-area-social-media');
  122. if ( $top_area_social_media ) : // hide this area if no widgets are active... ?>
  123. <div class="social-media-area grid_9 prefix_15">
  124. <?php echo udesign_get_dynamic_sidebar( 'top-area-social-media' ); ?>
  125. </div><!-- end social-media-area -->
  126. <?php endif; ?>
  127. </div>
  128. <!-- end top-elements -->
  129. <div id="main-menu" class="pngfix">
  130. <div id="dropdown-holder" class="container_24">
  131. <?php udesign_nav(); // this function calls the main menu ?>
  132. </div>
  133. <!-- end dropdown-holder -->
  134. </div>
  135. <!-- end top-main-menu -->
  136. </div>
  137. <!-- end top-wrapper -->
  138.  
  139. <div class="clear"></div>
  140.  
  141. <?php if( is_front_page() ) : ?>
  142.  
  143. <?php
  144. if( $current_slider == '1' ) :
  145. include( 'sliders/flashmo/grid_slider/grid_slider_display.php' );
  146. elseif( $current_slider == '2' ) :
  147. include( 'sliders/piecemaker/piecemaker_display.php' );
  148. elseif( $current_slider == '3' ) :
  149. include( 'sliders/piecemaker_2/piecemaker_display.php' );
  150. elseif ( $current_slider == '4' ) :
  151. include( 'sliders/cycle/cycle1/cycle1_display.php' );
  152. elseif ( $current_slider == '5' ) :
  153. include( 'sliders/cycle/cycle2/cycle2_display.php' );
  154. elseif ( $current_slider == '6' ) :
  155. include( 'sliders/cycle/cycle3/cycle3_display.php' );
  156. elseif ( $current_slider == '7' ) : // no slider ?>
  157. <div id="page-content-title">
  158. <div id="page-content-header" class="container_24">
  159. <div id="page-title">
  160. <?php if ( $udesign_options['no_slider_text'] ) echo '<h2>' . $udesign_options['no_slider_text'] . '</h2>'; ?>
  161. </div>
  162. </div>
  163. <!-- end page-content-header -->
  164. </div>
  165. <!-- end page-content-title -->
  166. <?php endif; ?>
  167.  
  168. <div class="clear"></div>
  169. <?php
  170.  
  171.  
  172. // home-page-before-content Widget Area
  173. $before_cont_1_is_active = sidebar_exist_and_active('home-page-before-content');
  174. if ( $before_cont_1_is_active ) : // hide this area if no widgets are active...
  175. ?>
  176. <div id="before-content">
  177. <div id="before-content-column" class="container_24">
  178. <div class="home-page-divider pngfix"></div>
  179. <?php
  180. if ( $before_cont_1_is_active ) {
  181. echo get_dynamic_column( 'before-cont-box-1', 'column_3_of_3 home-cont-box', 'home-page-before-content' );
  182. } ?>
  183. <div class="home-page-divider pngfix"></div>
  184. </div>
  185. <!-- end before-content-column -->
  186. </div>
  187. <!-- end before-content -->
  188.  
  189. <div class="clear"></div>
  190.  
  191. <?php endif; ?>
  192.  
  193. <div id="home-page-content">
  194.  
  195. <?php else : // NOT front page ?>
  196.  
  197. <div id="page-content-title">
  198. <div id="page-content-header" class="container_24">
  199. <div id="page-title">
  200. <?php $post = $posts[0]; // Hack. Set $post so that the_date() works.
  201. if (is_page()) : ?>
  202. <h1><?php the_title(); ?></h1>
  203. <?php elseif ( is_single() ) : ?>
  204. <h1><?php the_title(); ?></h1>
  205. <?php elseif (is_tax()) : /* If this is a taxonomy archive */
  206. $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); ?>
  207. <h1 class="pagetitle"><?php echo ucwords( $term->taxonomy ) . ': ' . $term->name; ?></h1>
  208. <?php elseif (is_category()) : /* If this is a category archive */ ?>
  209. <?php if ($udesign_options['show_archive_for_string'] == 'yes') : ?>
  210. <h1 class="pagetitle"><?php single_cat_title("", true); ?></h1>
  211. <?php else : ?>
  212. <h1 class="pagetitle"><?php printf( __('Archive for the &#8216;%s&#8217; Category', 'udesign' ), single_cat_title("", false) ); ?></h1>
  213. <?php endif; ?>
  214. <?php elseif (is_search()) : /* If this is a search results page */ ?>
  215. <h1 class="pagetitle"><?php printf( __('Search Results for &#8216;<em>%s</em>&#8217;', 'udesign' ), get_search_query() ); ?></h1>
  216. <?php elseif (is_404()) : /* If this is a 404 page */ ?>
  217. <h1 class="pagetitle"><?php esc_html_e('Page Not Found (Error 404)', 'udesign'); ?></h1>
  218. <?php elseif( is_tag() ) : /* If this is a tag archive */ ?>
  219. <h1 class="pagetitle"><?php printf( __('Posts Tagged &#8216;%s&#8217;', 'udesign' ), single_tag_title("", false) ); ?></h1>
  220. <?php elseif (is_day()) : /* If this is a daily archive */ ?>
  221. <h1 class="pagetitle"><?php printf( __('Archive for %s', 'udesign' ), get_the_date() ); ?></h1>
  222. <?php elseif (is_month()) : /* If this is a monthly archive */ ?>
  223. <h1 class="pagetitle"><?php printf( __('Archive for %s', 'udesign' ), get_the_time('F Y') ); ?></h1>
  224. <?php elseif (is_year()) : /* If this is a yearly archive */ ?>
  225. <h1 class="pagetitle"><?php printf( __('Archive for %s', 'udesign' ), get_the_time('Y') ); ?></h1>
  226. <?php elseif (is_author()) : /* If this is an author archive */ ?>
  227. <h1 class="pagetitle"><?php esc_html_e('Author Archive', 'udesign'); ?></h1>
  228. <?php elseif (isset($_GET['paged']) && !empty($_GET['paged'])) : /* If this is a paged archive */ ?>
  229. <h1 class="pagetitle"><?php esc_html_e('Blog Archives', 'udesign'); ?></h1>
  230. <?php else : // the case when a Title is NOT present the height should be maintained ?>
  231. <div class="no-title-present"></div>
  232. <?php endif; ?>
  233. </div>
  234. <!-- end page-title -->
  235. </div>
  236. <!-- end page-content-header -->
  237. </div>
  238. <!-- end page-content-title -->
  239.  
  240. <div class="clear"></div>
  241.  
  242. <div id="page-content">
  243. <?php // Breadcrumbs
  244. if ( ($udesign_options['show_breadcrumbs'] == 'yes') && class_exists('simple_breadcrumb') ) : ?>
  245. <div class="container_24">
  246. <?php $breadcrumbs_go = new simple_breadcrumb; ?>
  247. </div>
  248. <?php else : ?>
  249. <div class="no-breadcrumbs-padding"></div>
  250. <?php endif; ?>
  251.  
  252.  
  253.  
  254. <?php endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement