function start_el(&$output, $item, $depth = 0, $args = array(), $current_object_id = 0) { $output .= '<li class="' . wptouch_menu_walker_get_classes($item) . '">'; $output .= '<div class="drop-target" data-object-id="' . $item->ID . '">'; $output .= '<img src="' . wptouch_get_menu_icon($item->ID) . '" alt="menu-icon" />'; $output .= '</div>'; $output .= '<div class="menu-enable">'; $output .= '<input class="checkbox" type="checkbox" data-object-id="' . $item->ID . '"'; if (!wptouch_menu_is_disabled($item->ID)) { $output .= " checked "; } $output .= '/></div>'; $this->last_item = $item; }
function start_el(&$output, $item, $depth = 0, $args = array(), $current_object_id = 0) { $this->skipping_item = wptouch_menu_is_disabled($item->ID); if (!$this->skipping_item) { $output .= '<li class="' . wptouch_menu_walker_get_classes($item, $this->show_menu_icons) . '">'; $settings = wptouch_get_settings(); if ($this->show_menu_icons && $settings->enable_menu_icons) { $output .= '<img src="' . wptouch_get_menu_icon($item->ID) . '" alt="menu-icon" />'; } $this->last_item = $item; } }