PATH:
home
/
lab2454c
/
fcxpro.com
/
wp-content
/
plugins
/
qode-framework
/
inc
/
common
/
modules
/
nav-menu
/
core
<?php class QodeFrameworkMenuCustomFieldsWalker extends Walker_Nav_Menu_Edit { /** * Start the element output. * * * @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 - Menu item args. * @param int $id - Nav menu ID. */ function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) { $item_output = ''; parent::start_el( $item_output, $item, $depth, $args, $id ); $output .= preg_replace( // NOTE: Check this regex from time to time! '/(?=<(fieldset|p)[^>]+class="[^"]*field-move)/', $this->get_fields( $item, $depth, $args ), $item_output ); } /** * Get custom fields * * * @param object $item - Menu item data object. * @param int $depth - Depth of menu item. Used for padding. * @param array $args - Menu item args. * @param int $id - Nav menu ID. * * @return string Form fields */ protected function get_fields( $item, $depth, $args = array(), $id = 0 ) { ob_start(); /** * Get menu item custom fields from plugins/themes * * * @param int $item_id - Menu item ID. * @param object $item - Menu item data object. * @param int $depth - Depth of menu item. Used for padding. * @param array $args - Menu item args. * * @return string Custom fields HTML. */ do_action( 'wp_nav_menu_item_custom_fields', $item->ID, $item, $depth, $args ); return ob_get_clean(); } }
[+]
..
[-] class-qodeframeworkoptionsnavmenu.php
[edit]
[-] class-qodeframeworkmenucustomfieldswalker.php
[edit]
[-] class-qodeframeworkpagenavmenu.php
[edit]