Advertisement
lordaker

Snowbord sidebar.php file edited

Jul 26th, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.85 KB | None | 0 0
  1. <aside class="xf__sidebar">
  2.     <div class="sidebar-area">
  3.  
  4.         <header class="xf__header" itemtype="http://schema.org/WPHeader" itemscope="itemscope">
  5.             <div class="content xf__header-logo">
  6.                 <?php
  7.                 /**
  8.                  * Site Logo/Title
  9.                  */
  10.                 snowbird_site_brand(); ?>
  11.             </div>
  12.  
  13.             <button class="xf__close">
  14.                 <i class="fa fa-close"></i>
  15.                 <span class="screen-reader-text"><?php esc_html_e( 'Hide Sidebar', 'snowbird' ); ?></span>
  16.             </button>
  17.  
  18.             <?php
  19.             /**
  20.              * Site Header Image
  21.              */
  22.             if ( $header_img = snowbird_get_header_image_src()): ?>
  23.                 <div class="background">
  24.                     <?php die(var_dump(snowbird_get_header_image_src())); ?>
  25.                     <img src="<?php echo esc_url( $header_img[0] ); ?>"
  26.                          width="<?php echo esc_attr( $header_img[1] ); ?>"
  27.                          height="<?php echo esc_attr( $header_img[2] ); ?>" alt="">
  28.  
  29.                     <div class="overlay"></div>
  30.                 </div>
  31.             <?php endif; ?>
  32.         </header>
  33.  
  34.         <div class="widget-area">
  35.             <?php
  36.             /**
  37.              * Display Search
  38.              */
  39.             snowbird_display_sidebar_search(); ?>
  40.  
  41.             <?php
  42.             /**
  43.              * Primary Menu
  44.              */
  45.             if ( has_nav_menu( 'primary' ) ) :
  46.  
  47.                 wp_nav_menu( array(
  48.                     'theme_location'  => 'primary',
  49.                     'menu_class'      => 'menu',
  50.                     'container'       => 'nav',
  51.                     'container_class' => 'widget widget_nav_menu main-navigation',
  52.                     'items_wrap'      => '<ul class="%2$s">%3$s</ul>'
  53.                 ) );
  54.  
  55.             endif; ?>
  56.  
  57.             <?php
  58.             /**
  59.              * Show the sidebar widgets
  60.              */
  61.             dynamic_sidebar( 'sidebar-1' ); ?>
  62.  
  63.             <?php
  64.             /**
  65.              * If we've Primary Menu, or Sidebar Widgets- show this
  66.              */
  67.             if ( has_nav_menu( 'primary' ) || is_active_sidebar( 'sidebar-1' ) ) : ?>
  68.                 <a class="xf__top" href="javascript:void(0)"><i
  69.                         class="fa fa-long-arrow-up"></i> <?php esc_html_e( 'Back to Top', 'snowbird' ); ?></a>
  70.             <?php endif; ?>
  71.         </div>
  72.  
  73.     </div>
  74. </aside>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement