{{if empty( $nodes )}}
{lang="no_results"}
{{else}}
{{foreach $nodes as $node}}
{{if ( $permCheck === NULL or $node->can( $permCheck ) ) and ( $disabledCallback === NULL or call_user_func( $disabledCallback, $node ) ) and !in_array( $node->_id, $disabledArray )}}
TRUE, 'escape' => TRUE ) ) : $val->_title; }, iterator_to_array( $node->parents() ) ) ) )"}' {{if $togglePerm AND $node->can( $togglePerm ) AND count( $toggleIds )}}data-control="toggle" data-toggles="{expression="implode( ',', $toggleIds )"}"{{endif}} {{if $autoPopulate AND isset( $children[ $node->_id ] )}}data-childrenloaded="true"{{endif}}> {{if $node->hasChildren( NULL, NULL, FALSE, $where )}}
{{endif}}
{$node->_title}
{{if $autoPopulate AND isset( $children[ $node->_id ] ) and get_class( $node ) == ltrim( $nodeClass, '\\' )}}
{template="nodeCascade" app="core" group="forms" location="global" params="$children[ $node->_id ], FALSE, $permCheck, $subnodes, $togglePerm, $toggleIds, $disabledCallback, FALSE, $children, $nodeClass, $where, $disabledArray"}
{{endif}} {{else}} {{if $disabledCallback === NULL or call_user_func( $disabledCallback, $node ) !== NULL}}
TRUE, 'escape' => TRUE ) ) : $val->_title; }, iterator_to_array( $node->parents() ) ) ) )"}' {{if $autoPopulate AND isset( $children[ $node->_id ] )}}data-childrenloaded="true"{{endif}}> {{if $node->hasChildren( NULL, NULL, $subnodes, $where )}}
{{endif}}
{$node->_title}
{{if $autoPopulate AND isset( $children[ $node->_id ] )}}
{template="nodeCascade" app="core" group="forms" location="global" params="$children[ $node->_id ], FALSE, $permCheck, $subnodes, $togglePerm, $toggleIds, $disabledCallback, $autoPopulate, $children, $nodeClass, $where, $disabledArray"}
{{endif}} {{endif}} {{endif}}
{{endforeach}} {{if $noParentNodesTitle and count( $noParentNodes )}}
{lang="$noParentNodesTitle"}
{{if $autoPopulate}}
{template="nodeCascade" app="core" group="forms" location="global" params="$noParentNodes, FALSE, $permCheck, $subnodes, $togglePerm, $toggleIds, $disabledCallback, $autoPopulate, $children, $nodeClass, $where, $disabledArray"}
{{endif}}
{{endif}}
{{endif}}