icon_font = Wpw::inst()->storage()->get('default_icon_font'); $resource = Wpw::inst()->resource(); $this->wrapper_bg = $resource->render('@theme/templates/components/panels-li-background.php'); $this->item_bg = $resource->render('@theme/templates/components/panels-inline-background.php'); } public function end_lvl(&$output, $depth = 0, $args = []) { $indent = str_repeat("\t", $depth); $output .= "$indent\n"; } public function start_lvl(&$output, $depth = 0, $args = []) { $discard_indent = isset($args->item_spacing) && 'discard' === $args->item_spacing; $t = $discard_indent ? '' : "\t"; $n = $discard_indent ? '' : "\n"; $classes = $this->get_lvl_wrapper_classes($depth + 1); $classes .= $this->get_item_wrapper_classes($depth + 1); $back_link_classes = $this->get_back_link_classes($depth); $indent = str_repeat($t, $depth); $output .= "{$n}{$indent}