settings = $settings; } /** * 当前处理的菜单项是否为 Mega Menu 容器 * @var bool */ private $is_mega_menu = false; /** * Mega Menu 列数 * @var int */ private $mega_columns = 3; /** * Start level: open submenu with appropriate class based on style. */ public function start_lvl(&$output, $depth = 0, $args = null): void { $indent = str_repeat("\t", $depth); if ($this->is_mega_menu && $depth === 0) { // Mega Menu 子菜单容器 $output .= "\n{$indent}