protected static function wrapChildren($item, $children){
        if((is_string($item['child_wrap']) || is_array($item['child_wrap'])) && !empty($item['child_wrap'])){
            return (is_array($item['child_wrap']) ? '<'.$item['child_wrap'][0].' class="'.$item['child_wrap'][1].'">' : '<'.$item['child_wrap'].'>').$children.(is_array($item['child_wrap']) ? '</'.$item['child_wrap'][0].'>' : '</'.$item['child_wrap'].'>');
        }
        return $children;
    }
protected static function wrapChildren($item, $children){
        if((is_string($item['child_wrap']) || is_array($item['child_wrap'])) && !empty($item['child_wrap'])){
            return (is_array($item['child_wrap']) ? '<'.$item['child_wrap'][0].' class="'.$item['child_wrap'][1].'">' : '<'.$item['child_wrap'].'>').$children.(is_array($item['child_wrap']) ? '</'.$item['child_wrap'][0].'>' : '</'.$item['child_wrap'].'>');
        }
        return $children;
    }
protected static function wrapChildren ( $ item , $ children ) { if ( ( is_string ( $ item [ 'child_wrap' ] ) || is_array ( $ item [ 'child_wrap' ] ) ) && ! empty ( $ item [ 'child_wrap' ] ) ) { return ( is_array ( $ item [ 'child_wrap' ] ) ? '<' . $ item [ 'child_wrap' ] [ 0 ] . ' class="' . $ item [ 'child_wrap' ] [ 1 ] . '">' : '<' . $ item [ 'child_wrap' ] . '>' ) . $ children . ( is_array ( $ item [ 'child_wrap' ] ) ? '</' . $ item [ 'child_wrap' ] [ 0 ] . '>' : '</' . $ item [ 'child_wrap' ] . '>' ) ; } return $ children ; }
Wrap any child elements in a given element
@param array $item This should be the menu item
@param string $children This should be a string of any child elements
@return string Will return the child elements in the wrapped element if required
Wrap any child elements in a given element