ossn.lib.menus.php File Reference

Go to the source code of this file.

Namespaces

 Informatikon\com
 

Functions

 ossn_register_menu_link ($name, $text, $link, $menutype= 'site')
 
 ossn_register_menu_item ($menutype, array $options=array())
 
 ossn_unregister_menu ($menu, $menutype= 'site')
 
 ossn_view_menu ($menu, $custom=false)
 
 ossn_register_sections_menu ($menu, $params)
 
 ossn_view_sections_menu ($menu, $type= 'frontend')
 

Function Documentation

ossn_register_menu_item (   $menutype,
array  $options = array() 
)

Register a menu item

string $name menu name; array $options A link options; string $menutype A menu name

Returns
void

Definition at line 35 of file ossn.lib.menus.php.

ossn_register_menu_link (   $name,
  $text,
  $link,
  $menutype = 'site' 
)

Register a menu; string $name Name of menu; string $text Text for menu; string $link Link for menu;

Returns
void

Definition at line 19 of file ossn.lib.menus.php.

ossn_register_sections_menu (   $menu,
  $params 
)

Register a section base menu; array $params array(type, section, url, text, icon, link)

Parameters
string$menu
Returns
false|null

Definition at line 88 of file ossn.lib.menus.php.

ossn_unregister_menu (   $menu,
  $menutype = 'site' 
)

Unregister menu from system; string $menu Menu name string $menutype MenuType

Returns
void;

Definition at line 54 of file ossn.lib.menus.php.

ossn_view_menu (   $menu,
  $custom = false 
)

View a menu; string $menu Menu name

Note
This will fetch layout from defualt template that how menu should appear; check menu file for more info;
Returns
string

Definition at line 66 of file ossn.lib.menus.php.

ossn_view_sections_menu (   $menu,
  $type = 'frontend' 
)

View section base menu;

Parameters
string$type(frontend or backend(
string$menu
Note
This will fetch layout from defualt template that how menu should appear; check menu file for more info;
Returns
mixed data

Definition at line 124 of file ossn.lib.menus.php.