% css = if ((defined?(apply_css) && apply_css) || !defined?(apply_css)) and (classes = css_for_menu_branch(menu_branch, menu_branch_counter, sibling_count||=nil)).any? "class='#{classes.join(' ')}'" end dom_id = ("id='item_#{menu_branch_counter}'" if menu_branch.parent_id.nil? and menu_branch.title.present?) hide_children = (defined?(hide_children) && hide_children) children = hide_children ? [] : collection.select { |p| p.parent_id == menu_branch.id && p.in_menu? } -%>