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":310,"date":"2026-07-22T15:36:24","date_gmt":"2026-07-22T07:36:24","guid":{"rendered":"https:\/\/www.huaiyesucheng.com\/?p=310"},"modified":"2026-07-22T15:36:24","modified_gmt":"2026-07-22T07:36:24","slug":"v11","status":"publish","type":"post","link":"https:\/\/www.huaiyesucheng.com\/ar\/v11\/","title":{"rendered":"V11"},"content":{"rendered":"

    \"\"<\/p>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
    Parameter<\/th>\nSpecification<\/th>\n<\/tr>\n<\/thead>\n
    Driving Mode<\/td>\nMotor driving<\/td>\n<\/tr>\n
    Input Voltage<\/td>\nAC220V\u00b110% \/ AC110V\u00b110%<\/td>\n<\/tr>\n
    Speed<\/td>\n15 \u2013 164 steps\/min<\/td>\n<\/tr>\n
    Step Area<\/td>\n560 \u00d7 250 mm<\/td>\n<\/tr>\n
    Console Display<\/td>\nTime, Climbing Height, Calories, Steps, Heart Rate<\/td>\n<\/tr>\n
    Product Dimensions<\/td>\n1470 \u00d7 800 \u00d7 2000 mm<\/td>\n<\/tr>\n
    Packing Size<\/td>\n1355 \u00d7 950 \u00d7 1235 mm<\/td>\n<\/tr>\n
    Net Weight<\/td>\n190 kg<\/td>\n<\/tr>\n
    Gross Weight<\/td>\n221 kg<\/td>\n<\/tr>\n
    Max User Weight<\/td>\n160 kg<\/td>\n<\/tr>\n<\/tbody>\n<\/table>","protected":false},"excerpt":{"rendered":"

    Parameter Specification Driving Mode Motor driving Input Voltage AC220V\u00b110% \/ AC110V\u00b110% Speed 15 \u2013 164 steps\/min Step Area 560 \u00d7 250 mm Console Display Time, Climbing Height, Calories, Steps, Heart Rate Product Dimensions 1470 \u00d7 800 \u00d7 2000 mm Packing Size 1355 \u00d7 950 \u00d7 1235 mm Net Weight 190 kg Gross Weight 221 kg […]<\/p>","protected":false},"author":1,"featured_media":312,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[6,2,10,1],"tags":[],"class_list":["post-310","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aerobic","category-products","category-staircase-machine","category-uncategorized"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.huaiyesucheng.com\/ar\/wp-json\/wp\/v2\/posts\/310","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=310"}],"version-history":[{"count":1,"href":"https:\/\/www.huaiyesucheng.com\/ar\/wp-json\/wp\/v2\/posts\/310\/revisions"}],"predecessor-version":[{"id":316,"href":"https:\/\/www.huaiyesucheng.com\/ar\/wp-json\/wp\/v2\/posts\/310\/revisions\/316"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.huaiyesucheng.com\/ar\/wp-json\/wp\/v2\/media\/312"}],"wp:attachment":[{"href":"https:\/\/www.huaiyesucheng.com\/ar\/wp-json\/wp\/v2\/media?parent=310"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.huaiyesucheng.com\/ar\/wp-json\/wp\/v2\/categories?post=310"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.huaiyesucheng.com\/ar\/wp-json\/wp\/v2\/tags?post=310"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}