Get the menu assigned to a menu location. If the given location is primary and there is no custom menu assigned to it, then the default page menu will be shown.

Description

string Atom::app()->getMenu($location, $classes, $fallback)

Example

// display the primary menu location
// fallback to a category menu if empty
echo $app->getMenu('primary', 'slide-left', 'categoryMenu');
         

To change internal arguments use the location_menu context tag.