Advertisement
cyberdev

Untitled

Aug 24th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. <?php
  2. /**
  3. * The Preheader.
  4. *
  5. * @license For the full license information, please view the Licensing folder
  6. * that was distributed with this source code.
  7. *
  8. * @package Bimber_Theme 4.10
  9. */
  10.  
  11. // Prevent direct script access.
  12. if ( ! defined( 'ABSPATH' ) ) {
  13. die( 'No direct script access allowed' );
  14. }
  15. ?>
  16. <?php
  17. $bimber_class = array(
  18. 'g1-row',
  19. 'g1-row-layout-page',
  20. 'g1-preheader',
  21. 'g1-preheader-' . bimber_get_theme_option('header', 'composition' ),
  22. );
  23. ?>
  24. <div class="<?php echo implode( ' ', array_map( 'sanitize_html_class', $bimber_class ) ); ?>">
  25. <div class="g1-row-inner">
  26.  
  27. <div class="g1-column g1-dropable">
  28.  
  29. <!-- BEGIN .g1-secondary-nav -->
  30. <?php
  31. if ( has_nav_menu( 'bimber_secondary_nav' ) ) :
  32. wp_nav_menu( array(
  33. 'theme_location' => 'bimber_secondary_nav',
  34. 'container' => 'nav',
  35. 'container_class' => 'g1-secondary-nav',
  36. 'container_id' => 'g1-secondary-nav',
  37. 'menu_class' => 'g1-secondary-nav-menu',
  38. 'menu_id' => 'g1-secondary-nav-menu',
  39. 'depth' => 0,
  40. 'walker' => new Bimber_Walker_Nav_Menu(),
  41. ) );
  42. endif;
  43. ?>
  44. <!-- END .g1-secondary-nav -->
  45.  
  46. <?php get_template_part( 'template-parts/preheader/element-socials' ); ?>
  47.  
  48. <?php do_action( 'wpml_add_language_selector' ); ?>
  49. </div>
  50.  
  51. </div>
  52.  
  53. <div class="g1-row-background">
  54. </div>
  55. </div><!-- .g1-preheader -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement