A navigation bar that displays the first level navigation elements of your webpage as a list.
  • PHP 94.2%
  • JavaScript 5.8%
Find a file
2020-02-13 16:41:50 +01:00
doc Updated documentation. 2020-01-26 11:49:23 +01:00
js Updated JavaScript. 2020-01-26 18:22:26 +01:00
module.php Bugfix, again href link adjustment. 2020-02-13 16:41:50 +01:00
README.md Updated image in documentation. 2019-08-19 15:22:34 +02:00

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.

Available CSS selectors