Advertisement
cyberdev

Untitled

Aug 24th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 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. <style>.g1-secondary-nav-menu .sub-menu{background:#ffffff;}</style>
  17. <?php
  18. $bimber_class = array(
  19. 'g1-row',
  20. 'g1-row-layout-page',
  21. 'g1-preheader',
  22. 'g1-preheader-' . bimber_get_theme_option('header', 'composition' ),
  23. );
  24. ?>
  25. <div class="<?php echo implode( ' ', array_map( 'sanitize_html_class', $bimber_class ) ); ?>">
  26. <div class="g1-row-inner">
  27.  
  28. <div class="g1-column g1-dropable">
  29.  
  30. <!-- BEGIN .g1-secondary-nav -->
  31. <?php
  32. if ( has_nav_menu( 'bimber_secondary_nav' ) ) :
  33. wp_nav_menu( array(
  34. 'theme_location' => 'bimber_secondary_nav',
  35. 'container' => 'nav',
  36. 'container_class' => 'g1-secondary-nav',
  37. 'container_id' => 'g1-secondary-nav',
  38. 'menu_class' => 'g1-secondary-nav-menu',
  39. 'menu_id' => 'g1-secondary-nav-menu',
  40. 'depth' => 0,
  41. 'walker' => new Bimber_Walker_Nav_Menu(),
  42. ) );
  43. endif;
  44. ?>
  45. <!-- END .g1-secondary-nav -->
  46.  
  47. <?php get_template_part( 'template-parts/preheader/element-socials' ); ?>
  48.  
  49. <?php do_action( 'wpml_add_language_selector' ); ?>
  50. </div>
  51.  
  52. </div>
  53.  
  54. <div class="g1-row-background">
  55. </div>
  56. </div><!-- .g1-preheader -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement