Tree Menu

A simple tree menu with default styling:

<pinp>
  echo ar('html')
    ->menu( 'ul', array( 'class' => 'tree' ) )
    ->style('tree');

  echo ar('html')
    ->menu( 'ul', array( 'class' => 'tree' ) )
    ->tree( array(
        'current'  => $path,
        'top'      => ar('store')->currentSite(),
        'skipTop'  => true, 
        'children' => true, 
        'siblings' => true
    ) );
</pinp>

Output: