SHARE
TWEET

Header - Bearded Razorback

tmoflash Jun 9th, 2019 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3.  * The header for our theme
  4.  *
  5.  * This is the template that displays all of the <head> section and everything up until <div id="content">
  6.  *
  7.  * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
  8.  *
  9.  * @package WP_Bootstrap_Starter
  10.  */
  11.  
  12. ?><!DOCTYPE html>
  13. <html <?php language_attributes(); ?>>
  14. <head>
  15.     <meta charset="<?php bloginfo( 'charset' ); ?>">
  16.     <meta name="viewport" content="width=device-width, initial-scale=1">
  17.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  18.     <link rel="profile" href="http://gmpg.org/xfn/11">
  19.     <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
  20. <?php wp_head(); ?>
  21. </head>
  22.  
  23. <body <?php body_class(); ?>>
  24. <div id="page" class="site">
  25.     <a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'wp-bootstrap-starter' ); ?></a>
  26.     <?php if(!is_page_template( 'blank-page.php' ) && !is_page_template( 'blank-page-with-container.php' )): ?>
  27.     <header id="masthead" class="site-header navbar-static-top top-nav <?php echo wp_bootstrap_starter_bg_class(); ?>" role="banner">
  28.         <div class="container">
  29.             <nav class="navbar navbar-expand-xl p-0">
  30.                 <div class="navbar-brand">
  31.                     <!--Facebook-->
  32.                     <a href="https://www.facebook.com/profile.php?id=100006583216072" target="_blank" class="fb-ic mr-3" role="button"><i class="fab fa-lg fa-facebook-f"></i></a>
  33.                     <!--Twitter-->
  34.                     <a href="https://twitter.com/beardrazorback"  target="_blank" class="tw-ic mr-3" role="button"><i class="fab fa-lg fa-twitter"></i></a>
  35.                     <!--Instagram-->
  36.                     <a href="https://www.instagram.com/beardedrazorback/"  target="_blank" class="ins-ic mr-3" role="button"><i class="fab fa-lg fa-instagram"></i></a>
  37.                     <!--Youtube-->
  38.                     <a href="https://www.youtube.com/channel/UCZlS9g3wUo1EelJ61bq8zow?view_as=subscriber"  target="_blank" class="yt-ic mr-3" role="button"><i class="fab fa-lg fa-youtube"></i></a>
  39.                     <!--Twitch-->
  40.                     <a href="https://www.twitch.tv/beardedrazorback"  target="_blank" class="yt-ic mr-3" role="button"><i class="fab fa-lg fa-twitch"></i></a>
  41.                     <!--Discord-->
  42.                     <a href="https://discord.gg/xc8pzxH"  target="_blank" class="yt-ic mr-3" role="button"><i class="fab fa-lg fa-discord"></i></a>
  43.                     <!--Steam-->
  44.                     <a href="https://steamcommunity.com/id/tmoflash/"  target="_blank" class="yt-ic mr-3" role="button"><i class="fab fa-lg fa-steam"></i></a>
  45.  
  46.                 </div>
  47.                 <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#main-nav" aria-controls="" aria-expanded="false" aria-label="Toggle navigation">
  48.                     <span class="navbar-toggler-icon"></span>
  49.                 </button>
  50.  
  51.                 <?php
  52.                 wp_nav_menu(array(
  53.                 'theme_location'    => 'primary',
  54.                 'container'         => 'div',
  55.                 'container_id'      => 'main-nav',
  56.                 'container_class'   => 'collapse navbar-collapse justify-content-end',
  57.                 'menu_id'           => false,
  58.                 'menu_class'        => 'navbar-nav',
  59.                 'depth'             => 3,
  60.                 'fallback_cb'       => 'wp_bootstrap_navwalker::fallback',
  61.                 'walker'            => new wp_bootstrap_navwalker()
  62.                 ));
  63.                 ?>
  64.  
  65.             </nav>
  66.         </div>
  67.     </header><!-- #masthead -->
  68.     <?php if(is_front_page() && !get_theme_mod( 'header_banner_visibility' )): ?>
  69.  
  70.        
  71.             <div class="flex-container jumbo-banner">
  72.                 <img class="rounded mx-auto d-block" src="<?php bloginfo("template_url"); ?>/assets/img/logo-badge.png" alt="Beareded Razorback" style="padding: 30px;">
  73.             </div>
  74.  
  75.     <?php endif; ?>
  76.  
  77.                 <?php endif; ?>
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