settings = $settings;
}
public function start_lvl( &$output, $depth = 0, $args = array() ) {
if ($depth == 0)
{
$output .= '
';
}
if ($depth == 1)
{
$output .= '
';
}
}
public function end_lvl( &$output, $depth = 0, $args = array() ) {
if (($depth == 0)||($depth == 1))
{
$output .= '
';
}
}
public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
$this->tabind++;
if ($depth == 0)
$this->ind++;
$item_output = "";
switch ($depth)
{
case 0 :
$output .= ($this->ind <= $this->settings['num_per_first_part']) ?
'
' : '';
$output .= (($this->ind > $this->settings['num_per_first_part'])&&($this->ind <= $this->settings['num_per_first_part'] + $this->settings['num_per_second_part'])) ?
'
' : '';
break;
case 1 :
$output .= '';
break;
case 2 :
$output .= '';
break;
}
switch ($depth)
{
case 0 :
if ($this->ind <= $this->settings['num_per_first_part'] + $this->settings['num_per_second_part'])
{
$output .= (!empty($item->url)) ?
'
'.$item->title.'' :
'
';
}
break;
case 1 :
$output .= '';
break;
case 2 :
$output .= '';
break;
}
}
public function end_el( &$output, $item, $depth = 0, $args = array()) {
switch ($depth)
{
case 0 :
if ($this->ind <= $this->settings['num_per_first_part'] + $this->settings['num_per_second_part'])
$output .=
'
';
break;
case 1 :
$output .= '';
break;
case 2 :
$output .= '';
break;
}
}
}
}
?>