public function start_el(&$output, $item, $depth = 0, $args = null, $id = 0) { if (isset($args->item_spacing) && 'discard' === $args->item_spacing) { $t = ''; $n = ''; } else { $t = "\t"; $n = "\n"; } $indent = ($depth) ? str_repeat($t, $depth) : ''; $classes = empty($item->classes) ? array() : (array) $item->classes; $classes[] = 'nav-item'; $classes[] = 'menu-item-' . $item->ID; // 处理下拉菜单 if (in_array('menu-item-has-children', $classes)) { $classes[] = 'dropdown'; $classes[] = 'dmenu'; // 如果是三级菜单,添加子菜单类 if ($depth == 1) { $classes[] = 'dropdown-submenu'; } } /** * Filters the arguments for a single nav menu item. * * @since 4.4.0 * * @param stdClass $args An object of wp_nav_menu() arguments. * @param WP_Post $item Menu item data object. * @param int $depth Depth of menu item. Used for padding. */ $args = apply_filters('nav_menu_item_args', $args, $item, $depth); /** * Filters the CSS classes applied to a menu item's list item element. * * @since 3.0.0 * @since 4.1.0 The `$depth` parameter was added. * * @param array $classes The CSS classes that are applied to the menu item's `
  • ` element. * @param WP_Post $item The current menu item. * @param stdClass $args An object of wp_nav_menu() arguments. * @param int $depth Depth of menu item. Used for padding. */ $class_names = join(' ', apply_filters('nav_menu_css_class', array_filter($classes), $item, $args, $depth)); $class_names = $class_names ? ' class="' . esc_attr($class_names) . '"' : ''; /** * Filters the ID applied to a menu item's list item element. * * @since 3.0.1 * @since 4.1.0 The `$depth` parameter was added. * * @param string $menu_id The ID that is applied to the menu item's `
  • ` element. * @param WP_Post $item The current menu item. * @param stdClass $args An object of wp_nav_menu() arguments. * @param int $depth Depth of menu item. Used for padding. */ $id = apply_filters('nav_menu_item_id', 'menu-item-' . $item->ID, $item, $args, $depth); $id = $id ? ' id="' . esc_attr($id) . '"' : ''; $output .= $indent . ''; $atts = array(); $atts['title'] = !empty($item->attr_title) ? $item->attr_title : ''; $atts['target'] = !empty($item->target) ? $item->target : ''; $atts['rel'] = !empty($item->xfn) ? $item->xfn : ''; $atts['href'] = !empty($item->url) ? $item->url : ''; $atts['class'] = 'nav-link'; // 处理下拉菜单链接 if (in_array('menu-item-has-children', $item->classes)) { $atts['class'] .= ' dropdown-toggle'; $atts['data-toggle'] = 'dropdown'; $atts['role'] = 'button'; $atts['aria-haspopup'] = 'true'; $atts['aria-expanded'] = 'false'; } /** * Filters the HTML attributes applied to a menu item's anchor element. * * @since 3.6.0 * @since 4.1.0 The `$depth` parameter was added. * * @param array $atts { * The HTML attributes applied to the menu item's `` element, empty strings are ignored. * * @type string $title Title attribute. * @type string $target Target attribute. * @type string $rel The rel attribute. * @type string $href The href attribute. * } * @param WP_Post $item The current menu item. * @param stdClass $args An object of wp_nav_menu() arguments. * @param int $depth Depth of menu item. Used for padding. */ $atts = apply_filters('nav_menu_link_attributes', $atts, $item, $args, $depth); $attributes = ''; foreach ($atts as $attr => $value) { if (is_scalar($value) && '' !== $value && false !== $value) { $value = ('href' === $attr) ? esc_url($value) : esc_attr($value); $attributes .= ' ' . $attr . '="' . $value . '"'; } } /** This filter is documented in wp-includes/post-template.php */ $title = apply_filters('the_title', $item->title, $item->ID); /** * Filters a menu item's title. * * @since 4.4.0 * * @param string $title The menu item's title. * @param WP_Post $item The current menu item. * @param stdClass $args An object of wp_nav_menu() arguments. * @param int $depth Depth of menu item. Used for padding. */ $title = apply_filters('nav_menu_item_title', $title, $item, $args, $depth); $item_output = $args->before; $item_output .= ''; $item_output .= $args->link_before . $title . $args->link_after; $item_output .= ''; $item_output .= $args->after; /** * Filters a menu item's starting output. * * The menu item's starting output only includes `$args->before`, the opening ``, * the menu item's title, the closing ``, and `$args->after`. Currently, there is * no filter for modifying the opening and closing `
  • ` for a menu item. * * @since 3.0.0 * * @param string $item_output The menu item's starting HTML output. * @param WP_Post $item Menu item data object. * @param int $depth Depth of menu item. Used for padding. * @param stdClass $args An object of wp_nav_menu() arguments. */ $output .= apply_filters('walker_nav_menu_start_el', $item_output, $item, $depth, $args); }
    Warning: Cannot modify header information - headers already sent by (output started at /www/wwwroot/huaiyesucheng/wp-content/themes/fitnessequipment/inc/class-wp-bootstrap-navwalker.php:1) in /www/wwwroot/huaiyesucheng/wp-includes/rest-api/class-wp-rest-server.php on line 1896

    Warning: Cannot modify header information - headers already sent by (output started at /www/wwwroot/huaiyesucheng/wp-content/themes/fitnessequipment/inc/class-wp-bootstrap-navwalker.php:1) in /www/wwwroot/huaiyesucheng/wp-includes/rest-api/class-wp-rest-server.php on line 1896

    Warning: Cannot modify header information - headers already sent by (output started at /www/wwwroot/huaiyesucheng/wp-content/themes/fitnessequipment/inc/class-wp-bootstrap-navwalker.php:1) in /www/wwwroot/huaiyesucheng/wp-includes/rest-api/class-wp-rest-server.php on line 1896

    Warning: Cannot modify header information - headers already sent by (output started at /www/wwwroot/huaiyesucheng/wp-content/themes/fitnessequipment/inc/class-wp-bootstrap-navwalker.php:1) in /www/wwwroot/huaiyesucheng/wp-includes/rest-api/class-wp-rest-server.php on line 1896

    Warning: Cannot modify header information - headers already sent by (output started at /www/wwwroot/huaiyesucheng/wp-content/themes/fitnessequipment/inc/class-wp-bootstrap-navwalker.php:1) in /www/wwwroot/huaiyesucheng/wp-includes/rest-api/class-wp-rest-server.php on line 1896

    Warning: Cannot modify header information - headers already sent by (output started at /www/wwwroot/huaiyesucheng/wp-content/themes/fitnessequipment/inc/class-wp-bootstrap-navwalker.php:1) in /www/wwwroot/huaiyesucheng/wp-includes/rest-api/class-wp-rest-server.php on line 1896

    Warning: Cannot modify header information - headers already sent by (output started at /www/wwwroot/huaiyesucheng/wp-content/themes/fitnessequipment/inc/class-wp-bootstrap-navwalker.php:1) in /www/wwwroot/huaiyesucheng/wp-includes/rest-api/class-wp-rest-server.php on line 1896

    Warning: Cannot modify header information - headers already sent by (output started at /www/wwwroot/huaiyesucheng/wp-content/themes/fitnessequipment/inc/class-wp-bootstrap-navwalker.php:1) in /www/wwwroot/huaiyesucheng/wp-includes/rest-api/class-wp-rest-server.php on line 1896
    {"id":339,"date":"2026-07-22T16:09:37","date_gmt":"2026-07-22T08:09:37","guid":{"rendered":"https:\/\/www.huaiyesucheng.com\/?p=339"},"modified":"2026-07-22T16:09:37","modified_gmt":"2026-07-22T08:09:37","slug":"t06","status":"publish","type":"post","link":"https:\/\/www.huaiyesucheng.com\/ar\/t06\/","title":{"rendered":"T06"},"content":{"rendered":"

    \"\"<\/p>\n\n\n\n\n\n\n\n\n\n\n\n\n\n
    Parameter<\/th>\nSpecification<\/th>\n<\/tr>\n<\/thead>\n
    Sport Mode<\/td>\n1st \u2013 8th gear<\/td>\n<\/tr>\n
    Running Belt<\/td>\nNylon \/ Aluminium<\/td>\n<\/tr>\n
    Driving Mode<\/td>\nGravity action<\/td>\n<\/tr>\n
    Running Area<\/td>\n1600 \u00d7 480 mm<\/td>\n<\/tr>\n
    Product Dimensions<\/td>\n1850 \u00d7 860 \u00d7 1580 mm<\/td>\n<\/tr>\n
    Wooden Crate Size<\/td>\n1900 \u00d7 910 \u00d7 600 mm<\/td>\n<\/tr>\n
    Max User Weight<\/td>\n180 kg<\/td>\n<\/tr>\n
    Net Weight<\/td>\n155 kg<\/td>\n<\/tr>\n
    Gross Weight<\/td>\n175 kg<\/td>\n<\/tr>\n<\/tbody>\n<\/table>","protected":false},"excerpt":{"rendered":"

    Parameter Specification Sport Mode 1st \u2013 8th gear Running Belt Nylon \/ Aluminium Driving Mode Gravity action Running Area 1600 \u00d7 480 mm Product Dimensions 1850 \u00d7 860 \u00d7 1580 mm Wooden Crate Size 1900 \u00d7 910 \u00d7 600 mm Max User Weight 180 kg Net Weight 155 kg Gross Weight 175 kg<\/p>","protected":false},"author":1,"featured_media":324,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[6,2,11],"tags":[],"class_list":["post-339","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aerobic","category-products","category-unpowered-treadmill"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.huaiyesucheng.com\/ar\/wp-json\/wp\/v2\/posts\/339","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.huaiyesucheng.com\/ar\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.huaiyesucheng.com\/ar\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.huaiyesucheng.com\/ar\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.huaiyesucheng.com\/ar\/wp-json\/wp\/v2\/comments?post=339"}],"version-history":[{"count":1,"href":"https:\/\/www.huaiyesucheng.com\/ar\/wp-json\/wp\/v2\/posts\/339\/revisions"}],"predecessor-version":[{"id":340,"href":"https:\/\/www.huaiyesucheng.com\/ar\/wp-json\/wp\/v2\/posts\/339\/revisions\/340"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.huaiyesucheng.com\/ar\/wp-json\/wp\/v2\/media\/324"}],"wp:attachment":[{"href":"https:\/\/www.huaiyesucheng.com\/ar\/wp-json\/wp\/v2\/media?parent=339"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.huaiyesucheng.com\/ar\/wp-json\/wp\/v2\/categories?post=339"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.huaiyesucheng.com\/ar\/wp-json\/wp\/v2\/tags?post=339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}