2017 © Pedro Peláez
 

library sage-bootstrap4-navwalker

Bootstrap 4 Navbar component navwalker for Sage 9 based themes

image

mwdelaney/sage-bootstrap4-navwalker

Bootstrap 4 Navbar component navwalker for Sage 9 based themes

  • Thursday, May 31, 2018
  • by MWDelaney
  • Repository
  • 2 Watchers
  • 19 Stars
  • 1,980 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 8 Forks
  • 3 Open issues
  • 4 Versions
  • 103 % Grown

The README.md

Sage 9 friendly Bootstrap 4 Navwalker

Sets up a Bootstrap 4 Navwalker for Sage 9-based themes., (*1)

To install, run the following in your Sage9-based theme directory:, (*2)

composer require "mwdelaney/sage-bootstrap4-navwalker"

Include the navwalker in your wp_nav_menu function:, (*3)

In your Controller, probably app.php, (*4)

/**
 * Primary Nav Menu arguments
 * @return array
 */
public function primarymenu() {
  $args = array(
    'theme_location'    => 'primary_navigation',
    'menu_class'        => 'navbar-nav',
    'walker'            => new \App\wp_bootstrap4_navwalker(),
    ...
  );
  return $args;
}

In your Blade file, probably header.blade.php, (*5)

@if (has_nav_menu('primary_navigation'))
  {!! wp_nav_menu($primarymenu) !!}
@endif

Without Controller

If you're not setting up your template data with Controller, you'll need to fully reference the \App\wp_bootstrap4_navwalker(). In your Blade file, probably header.blade.php, (*6)

@if (has_nav_menu('primary_navigation'))
  {!! wp_nav_menu(['theme_location' => 'primary_navigation', 'menu_class' => 'navbar-nav', 'walker' => new \App\wp_bootstrap4_navwalker()]) !!}
@endif

The Versions

31/05 2018

dev-master

9999999-dev https://github.com/MWDelaney/sage-bootstrap4-navwalker

Bootstrap 4 Navbar component navwalker for Sage 9 based themes

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

wordpress navbar bootstrap 4 navwalker

31/05 2018

1.2

1.2.0.0 https://github.com/MWDelaney/sage-bootstrap4-navwalker

Bootstrap 4 Navbar component navwalker for Sage 9 based themes

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

wordpress navbar bootstrap 4 navwalker

13/12 2017

1.1

1.1.0.0 https://github.com/MWDelaney/sage-bootstrap4-navwalker

Bootstrap 4 Navbar component navwalker for Sage 9 based themes

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

wordpress navbar bootstrap 4 navwalker

13/12 2017

1.0

1.0.0.0 https://github.com/MWDelaney/sage-bootstrap4-navwalker

Bootstrap 4 Navbar component navwalker for Sage 9 based themes

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

wordpress navbar bootstrap 4 navwalker