_type = $type; } /** * @see Walker_Nav_Menu::start_el() * * @param string $output * Passed by reference. Used to append additional content. * @param object $item * Menu item data object. * @param int $depth * Depth of menu item. Used for padding. * @param array $args * An array of arguments. @see wp_nav_menu() * @param int $id * Current item ID. */ public function start_el(&$output, $item, $depth = 0, $args = array(), $current_object_id = 0) { $indent = str_repeat("\t", $depth); // prepare ID-attribute content for li $li_id = 'menu-item-' . $item->ID; // prepare class-attribute content for li $li_classes = empty($item->classes) ? array() : array_filter((array)$item->classes); // prepare additional attributes for li $li_attributes = array(); // prepare additional attributes for link $link_attributes = array(); $link_attributes[] = sprintf('href="%s"', $item->url); $link_attributes[] = sprintf('id="menu-item-link-%s"', $item->ID); if (!empty($item->attr_title)) $link_attributes[] = sprintf('title="%s"', $item->attr_title); // prepare title/content for link $link_title = $item->title; // if this is the current active link if ($item->current) { $li_classes[] = 'active'; } // if this element has children if ($this->has_children) { $li_classes[] = 'dropdown'; $li_attributes[] = ''; } // apply filters $li_id = apply_filters('nav_menu_item_id', $li_id, $item, $args); $li_attributes[] = sprintf('id="%s"', $li_id); $li_classes = apply_filters('nav_menu_css_class', $li_classes, $item, $args); $li_attributes[] = sprintf('class="%s"', implode(" ", $li_classes)); $link_title = apply_filters('the_title', $link_title, $item->ID); // render link $link = $args->before; $link .= sprintf('', implode(" ", $link_attributes)); $link .= $args->link_before; $link .= $link_title; $link .= $args->link_after; $link .= "".($this->has_children && $depth == 0?'':'').""; $link .= $args->after; // render li with link $output .= $indent . '
  • ' . $link . "\n"; if ($this->has_children && $depth == 0) { //$output .= $indent . '
    ' . "\n"; } } /** * @see Walker_Nav_Menu::end_el() * * @param string $output * Passed by reference. Used to append additional content. * @param object $item * Page data object. Not used. * @param int $depth * Depth of page. Not Used. * @param array $args * An array of arguments. @see wp_nav_menu() */ function end_el(&$output, $item, $depth = 0, $args = array()) { $indent = str_repeat("\t", $depth); if ($item->classes != '' && in_array('menu-item-has-children', $item->classes) && $depth == 0) { //$output .= $indent . '
    ' . "\n"; } $output .= $indent . '
  • ' . "\n"; } /** * @see Walker_Nav_Menu::start_lvl() * * @param string $output * Passed by reference. Used to append additional content. * @param int $depth * Depth of menu item. Used for padding. * @param array $args * An array of arguments. @see wp_nav_menu() */ public function start_lvl(&$output, $depth = 0, $args = array()) { $indent = str_repeat("\t", $depth); $output .= $indent . '' . "\n"; } } ?> Successfully saved.

    '; } function theme_input_box_callback($args) { $option = get_option($args[0]); echo ''; } function theme_textarea_box_callback($args) { $option = get_option($args[0]); echo ''; } ?> https://pestuae.com/post-sitemap.xml 2026-08-09T11:49:22+00:00 https://pestuae.com/page-sitemap.xml 2026-08-17T19:11:30+00:00 https://pestuae.com/simple_testimonials-sitemap.xml 2026-08-17T18:09:03+00:00 https://pestuae.com/local-sitemap.xml 2025-11-03T17:52:28+00:00