meta['title'] ) ) :
- ?> title="meta['title'] ); ?>"meta['lang'] ) ) :
- ?> lang="meta['lang'] ); ?>"meta['dir'] ) ) :
- ?> dir="meta['dir'] ); ?>">href ) . "'>";
+ if ( ! empty( $node->meta['onclick'] ) ) {
+ echo ' onclick="' . esc_js( $node->meta['onclick'] ) . '"';
+ }
+ } else {
+ $attributes = array( 'onclick', 'target', 'title', 'rel', 'lang', 'dir' );
+ echo '
title;
+ foreach ( $attributes as $attribute ) {
+ if ( ! empty( $node->meta[ $attribute ] ) ) {
+ echo " $attribute='" . esc_attr( $node->meta[ $attribute ] ) . '"';
+ }
+ }
- if ( $has_link ) :
- ?>
{$node->title}";
- if ( $is_parent ) :
- ?>
children as $group ) {
- $this->_render_group( $group );
- }
- ?>
';
+ } else {
+ echo '
';
+ }
- if ( ! empty( $node->meta['html'] ) )
- echo $node->meta['html'];
+ if ( $is_parent ) {
+ echo '';
+ foreach ( $node->children as $group ) {
+ $this->_render_group( $group );
+ }
+ echo '
';
+ }
- ?>
-