Custom Navigation

Downloads: 332
Category: Plugin
Compatible with: GetSimple 3.3 - 3.3

Last Updated: July 2, 2016
Tags: menu navigation nav custom get_navigation theme function
Author: Serbian
Author Website: https://www.linkedin.com/in/sergio-guastaferro-5826a171

(5) 3 Votes

Plugin Description:

This plugin would revisit the primary theme function 'get_navigation()' for the creation of the navigation of getsimple;

getnavigation() is very comfortable but it is not customizable. The function getnavigation() generate the content with html using the menudata() of the core, and this plugin would offer the right compromise between twice [ getnavigation() and menu_data() ] to create simply a menu that goes in against graphic requirements, specialy for themes that uses framework ( for example Bootstrap )

How it's work??

Like you use getnavigation(), you can call 'customnavigation' in the template.php . If you want print the standard menu generate like getnavigation, you can call simply customnavigation();

Else you can define the tags to use and the associated classes passing an array() like this: array ( 'li', 'classli', 'a', 'classa', 'current_li' ) that print lines like this:

<li class="classli"><a class="classa" href="to/link">textMenuPage</a></li>
...
<li class="classli currentli"><a class="class_a" href="to/link">textMenuPage</a></li>

example: If you want to create a nav in bootstrap, you can call this code in the template.php file : custom_navigation( array('li', 'nav-item', 'a', 'nav-link', 'current active') )

Sorry for my english :)

Install Instructions:

This plugin not require any particular plugin. You can simple extract this archive in the plugin directory of GetSimple.

Free HDTV Channels Residential Solar Panels