Advertisement
Guest User

Untitled

a guest
May 29th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.29 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <!--[if !IE]><!-->
  3. <html <?php language_attributes(); ?> class="no-js">
  4. <!--<![endif]-->
  5. <!--[if IE 9]>
  6. <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?> class="no-js ie9">
  7. <![endif]-->
  8. <head>
  9. <?php require( ghostpool_inc . 'options.php' ); ?>
  10. <meta charset="<?php bloginfo( 'charset' ); ?>">
  11. <?php global $dirname, $gp_settings; if ( get_option( $dirname . '_responsive' ) == '0' ) { ?>
  12. <meta name="viewport" content="width=device-width, initial-scale=1">
  13. <?php } else { ?>
  14. <meta name="viewport" content="width=1230">
  15. <?php } ?>
  16. <link rel="profile" href="http://gmpg.org/xfn/11" />
  17. <link rel="pingback" href="<?php esc_url( bloginfo( 'pingback_url' ) ); ?>" />
  18. <?php wp_head(); ?>
  19. </head>
  20.  
  21. <body <?php body_class(); ?> itemscope itemtype="http://schema.org/WebPage">
  22.  
  23. <?php if ( ! is_page_template( 'blank-page.php' ) ) { ?>
  24.  
  25. <div id="page-wrapper">
  26.  
  27. <header id="header" itemscope itemtype="http://schema.org/WPHeader">
  28.  
  29. <<?php if ( $gp_settings['title'] == 'Show' ) { ?>div<?php } else { ?>h1<?php } ?> id="logo" style="<?php if ( get_option( $dirname . '_logo_top' ) ) { ?> margin-top: <?php echo get_option( $dirname . '_logo_top' ); ?>px;<?php } ?><?php if ( get_option( $dirname . '_logo_right' ) ) { ?> margin-right: <?php echo get_option( $dirname . '_logo_right' ); ?>px;<?php } ?><?php if ( get_option( $dirname . '_logo_bottom' ) ) { ?> margin-bottom: <?php echo get_option( $dirname . '_logo_bottom' ); ?>px;<?php } ?><?php if ( get_option( $dirname . '_logo_left' ) ) { ?> margin-left: <?php echo get_option( $dirname . '_logo_left' ); ?>px;<?php } ?>"<?php if ( ! get_option( $dirname . '_logo' ) ) { ?> class="default-logo"<?php } ?>>
  30.  
  31. <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php bloginfo( 'name' ); ?>">
  32. <img src="<?php if ( get_option( $dirname . '_logo' ) ) { echo( get_option( $dirname . '_logo' ) ); } else { echo ghostpool_images; ?>logo.png<?php } ?>" width="<?php if ( get_option( $dirname . '_logo_width' ) ) { echo get_option( $dirname . '_logo_width' ); } else { echo '108'; } ?>" height="<?php if ( get_option( $dirname . '_logo_height' ) ) { echo get_option( $dirname . '_logo_height' ); } else { echo '25'; } ?>" alt="<?php bloginfo( 'name' ); ?>" />
  33. </a>
  34.  
  35. </<?php if ( $gp_settings['title'] == 'Show' ) { ?>div<?php } else { ?>h1<?php } ?>>
  36.  
  37. <nav id="nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
  38.  
  39. <?php if ( has_nav_menu( 'main-nav' ) ) { ?>
  40. <?php wp_nav_menu( array( 'theme_location' => 'main-nav', 'sort_column' => 'menu_order', 'container' => 'ul', 'fallback_cb' => 'null' ) ); ?>
  41. <?php } ?>
  42.  
  43. <?php if ( get_option( $dirname . '_bp_buttons' ) == '0' ) { ?>
  44.  
  45. <div id="bp-buttons">
  46.  
  47. <?php if ( is_user_logged_in() ) { ?>
  48.  
  49. <?php if ( get_option( $dirname . '_profile_button' ) !== 'gp-profile-disabled' ) {
  50.  
  51. $gp_current_user = wp_get_current_user();
  52. $gp_username = $gp_current_user->display_name;
  53. $gp_limit = apply_filters( 'gp_truncate_bp_username', 15 );
  54. if ( strlen( $gp_username ) > $gp_limit ) {
  55. $gp_username = substr( $gp_username, 0, $gp_limit ) . '...';
  56. }
  57.  
  58. ?>
  59.  
  60. <a href="<?php if ( function_exists( 'bp_is_active' ) ) { global $bp; echo $bp->loggedin_user->domain; } else { get_current_user(); echo get_author_posts_url( $gp_current_user->ID ); } ?>" class="bp-button" id="gp-profile-desktop-button"><?php echo $gp_username; ?></a>
  61. <a href="<?php if ( function_exists( 'bp_is_active' ) ) { global $bp; echo $bp->loggedin_user->domain; } else { get_current_user(); echo get_author_posts_url( $gp_current_user->ID ); } ?>" class="bp-button" id="gp-profile-mobile-button"></a>
  62. <?php } ?>
  63.  
  64. <a href="<?php echo wp_logout_url( esc_url( $_SERVER['REQUEST_URI'] ) ); ?>" class="bp-button login-button"><?php esc_html_e( 'Logout', 'buddy' ); ?></a>
  65.  
  66. <?php } else { ?>
  67.  
  68. <a href="<?php if ( get_option( $dirname . '_login_url' ) ) { echo esc_url( get_option( $dirname . '_login_url' ) ); } else { echo esc_url( wp_login_url() ); } ?>" class="bp-button login-button"><?php esc_html_e( 'Login', 'buddy' ); ?></a>
  69.  
  70. <?php if ( get_option( 'users_can_register' ) ) { ?><a href="<?php if ( function_exists( 'bp_is_active' ) ) { echo esc_url( bp_get_signup_page( false ) ); } elseif ( get_option( $dirname . '_register_url' ) ) { echo esc_url( get_option( $dirname . '_register_url' ) ); } ?>" class="bp-button signup-button"><?php esc_html_e( 'Sign Up', 'buddy' ); ?></a><?php } ?>
  71.  
  72. <?php } ?>
  73.  
  74. </div>
  75.  
  76. <?php } ?>
  77.  
  78. <?php if ( has_nav_menu( 'main-nav' ) ) { ?>
  79. <a id="mobile-nav-button"><i class="fa fa-bars"></i></a>
  80. <?php } ?>
  81.  
  82. </nav>
  83.  
  84. <nav id="mobile-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
  85.  
  86. <?php if ( get_option( $dirname . '_bp_buttons' ) == '0' ) { ?>
  87.  
  88. <div id="mobile-bp-buttons">
  89.  
  90. <?php if ( is_user_logged_in() ) { ?>
  91.  
  92. <a href="<?php echo esc_url( wp_logout_url( $_SERVER['REQUEST_URI'] ) ); ?>" class="bp-button login-button"><?php esc_html_e( 'Logout', 'buddy' ); ?></a>
  93.  
  94. <?php } else { ?>
  95.  
  96. <a href="<?php if ( get_option( $dirname . '_login_url' ) ) { echo esc_url( get_option( $dirname . '_login_url' ) ); } else { echo esc_url( wp_login_url() ); } ?>" class="bp-button login-button"><?php esc_html_e( 'Login', 'buddy' ); ?></a>
  97.  
  98. <?php if ( get_option( 'users_can_register' ) ) { ?><a href="<?php if ( function_exists( 'bp_is_active' ) ) { echo esc_url( bp_get_signup_page( false ) ); } elseif ( get_option( $dirname . '_register_url' ) ) { echo esc_url( get_option( $dirname . '_register_url' ) ); } ?>" class="bp-button signup-button"><?php esc_html_e( 'Sign Up', 'buddy' ); ?></a><?php } ?>
  99.  
  100. <?php } ?>
  101.  
  102. </div>
  103.  
  104. <?php } ?>
  105.  
  106. <?php wp_nav_menu( array( 'theme_location' => 'main-nav', 'sort_column' => 'menu_order', 'container' => '', 'items_wrap' => '<ul class="menu">%3$s</ul>', 'fallback_cb' => 'null' ) ); ?>
  107.  
  108. </nav>
  109.  
  110. </header>
  111.  
  112. <div id="gp-fixed-padding"></div>
  113.  
  114. <div id="content-wrapper">
  115.  
  116. <div id="left-content-wrapper">
  117.  
  118. <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement