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":321,"date":"2026-07-22T15:42:16","date_gmt":"2026-07-22T07:42:16","guid":{"rendered":"https:\/\/www.huaiyesucheng.com\/?p=321"},"modified":"2026-07-22T15:42:16","modified_gmt":"2026-07-22T07:42:16","slug":"st02","status":"publish","type":"post","link":"https:\/\/www.huaiyesucheng.com\/ar\/st02\/","title":{"rendered":"ST02"},"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
    Input Voltage<\/td>\nAC220V\u00b110% \/ AC110V\u00b110%<\/td>\n<\/tr>\n
    Speed<\/td>\n15 \u2013 164 steps\/min<\/td>\n<\/tr>\n
    Console Display<\/td>\nTime, Distance, Calories, Heart Rate, etc.<\/td>\n<\/tr>\n
    Step Area<\/td>\n530 \u00d7 250 mm<\/td>\n<\/tr>\n
    Product Dimensions<\/td>\n1400 \u00d7 860 \u00d7 2100 mm<\/td>\n<\/tr>\n
    Wooden Crate Size<\/td>\n1350 \u00d7 950 \u00d7 1290 mm<\/td>\n<\/tr>\n
    Max User Weight<\/td>\n180 kg<\/td>\n<\/tr>\n
    Net Weight<\/td>\n166 kg<\/td>\n<\/tr>\n
    Gross Weight<\/td>\n210 kg<\/td>\n<\/tr>\n<\/tbody>\n<\/table>","protected":false},"excerpt":{"rendered":"

    Parameter Specification Input Voltage AC220V\u00b110% \/ AC110V\u00b110% Speed 15 \u2013 164 steps\/min Console Display Time, Distance, Calories, Heart Rate, etc. Step Area 530 \u00d7 250 mm Product Dimensions 1400 \u00d7 860 \u00d7 2100 mm Wooden Crate Size 1350 \u00d7 950 \u00d7 1290 mm Max User Weight 180 kg Net Weight 166 kg Gross Weight 210 […]<\/p>","protected":false},"author":1,"featured_media":315,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[6,2,10],"tags":[],"class_list":["post-321","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aerobic","category-products","category-staircase-machine"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.huaiyesucheng.com\/ar\/wp-json\/wp\/v2\/posts\/321","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=321"}],"version-history":[{"count":1,"href":"https:\/\/www.huaiyesucheng.com\/ar\/wp-json\/wp\/v2\/posts\/321\/revisions"}],"predecessor-version":[{"id":322,"href":"https:\/\/www.huaiyesucheng.com\/ar\/wp-json\/wp\/v2\/posts\/321\/revisions\/322"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.huaiyesucheng.com\/ar\/wp-json\/wp\/v2\/media\/315"}],"wp:attachment":[{"href":"https:\/\/www.huaiyesucheng.com\/ar\/wp-json\/wp\/v2\/media?parent=321"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.huaiyesucheng.com\/ar\/wp-json\/wp\/v2\/categories?post=321"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.huaiyesucheng.com\/ar\/wp-json\/wp\/v2\/tags?post=321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}