23 lines
934 B
PHP
23 lines
934 B
PHP
<ul>
|
|
<?php
|
|
$param = ( is_null( $this -> _param ) )
|
|
? 0
|
|
: $this -> _param;
|
|
|
|
foreach ( $this -> _data[ $param ] as $nav_array )
|
|
{
|
|
extract ( $nav_array );
|
|
?><li><a <?php echo ( in_array( ${$this -> _prefix . '_navId'} , $this -> _navpath ) ) ? ' class="active"' : ''; ?> href="<?php echo ( ${$this -> _prefix . '_navType'} === 'html' ) ? ${$this -> _prefix . '_navTarget'} : 'javascript:void( 0 );'; ?>"<?php echo ( ${$this -> _prefix . '_navType'} === 'js' ) ? 'onclick="' . ${$this -> _prefix . '_navTarget'} . ';"' : ''; ?>><?php echo ${$this -> _prefix . '_navName'}; ?></a>
|
|
<?php
|
|
if ( isset ( $this -> _data[ ${$this -> _prefix . '_navId'} ] ) )
|
|
{
|
|
$navi_main = clone( $this );
|
|
$navi_main -> setTemplate ( 'navi' );
|
|
$navi_main -> setData ( $this -> _data , ${$this -> _prefix . '_navId'} );
|
|
echo $navi_main -> output ( );
|
|
}
|
|
?>
|
|
</li><?php
|
|
}
|
|
?>
|
|
</ul>
|