A navigation bar that displays the first level navigation elements of your webpage as a list.
- PHP 94.2%
- JavaScript 5.8%
| doc | ||
| js | ||
| module.php | ||
| README.md | ||
Lewp module "saundra"
Description
A navigation bar that displays the first level navigation elements of your webpage as a list.
Installation
In the terminal, go either to the global module or site module level of your hierarchy. Then invoke the following command.
git clone git@gitlab.com:lewp/modules-navigation-saundra.git modules/navigation/saundra
Configuration
In your page file, add the following command to add the module to your page.
$this->addModule(
"navigation_saundra",
[
"uri_logo" => "/res/images/your-image-id.jpg",
"show_logo" => true,
"uri_hamburger_icon" => ""
]
);
Available parameters
| Key | Default value | Example value | Description |
|---|---|---|---|
| uri_logo | /res/images/your-logo-id.jpg | The URI of the logo that will be shown. The src attribute of the img tag gets this value. | |
| show_logo | true | true | If set to false, the logo container will not be added to the page. |
| uri_hamburger_icon | /res/icons/svg_hamburger-menu.svg | /res/icons/your-hamburger-icon.svg | Same as the "uri_logo" parameter, but for the hamburger icon. |
| show_hamburger_icon | true | false | If set to true, the hamburger icon is shown. |
Behavior
The following sketch shows the css selectors that are generated by the module.
