Git Product home page Git Product logo

bonfire_navigationmodule's Introduction

Navigation Module for Bonfire

This is a simple Navigation Module for the Bonfire (http://cibonfire.com/) application.

Install

  • Drop the module into the bonfire/modules folder
  • Run the module Install migration
  • Add the permissions to the required roles
  • Add the helper call to the theme
  • That's it

##Features

  • Navigation Groups
  • Simple Helper to call from the theme template
  • Drag-drop Nav item order
  • Editable in the Content context inside Bonfire

Changes

  • Added setting to wrap list items in a span for for css styling
  • Added setting to change the name of the current active class, defaults to current

Helper

The navigation_helper is very simple to use.

	$attributes['id']     = 'nav';
	$attributes['class']  = 'dropdown dropdown-horizontal';

	$attributes['active'] = 'active'; 
	$attributes['wrap']   = true;

	echo show_navigation('header', TRUE, $attributes);

In this case "header" is the Navigation group defined in the Bonfire admin. "TRUE" tells the helper to display child navigation items. "$attributes" is an array applied to the main div

Documentation

More documentation can be found here http://sean.downey.ie/docs/bonfire-navigation/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.