Done !
| Server IP : 46.105.57.169 / Your IP : 216.73.216.67 Web Server : Apache System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaumee ( 152031) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaumee/blueversion/wp-content/plugins/apus-frame/classes/ |
Upload File : |
<?php
/**
* widget base for apus frame
*
* @package apus-frame
* @author Team Apusthemes <apusthemes@gmail.com >
* @license GNU General Public License, version 3
* @copyright 2015-2016 Apus Frame
*/
if (!class_exists('Apus_Frame_Megamenu_Config')) {
class Apus_Frame_Megamenu_Config extends Walker_Nav_Menu_Edit {
public function start_lvl( &$output, $depth = 0, $args = array() ) {}
public function end_lvl( &$output, $depth = 0, $args = array() ) {}
public function start_el(&$output, $item, $depth=0, $args=array(),$current_object_id=0) {
$item_output = '';
parent::start_el( $item_output, $item, $depth, $args, $current_object_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
);
}
protected function get_fields( $item, $depth, $args = array(), $id = 0 ) {
ob_start();
/**
* Get menu item custom fields from plugins/themes
*
* @since 0.1.0
* @since 1.0.0 Pass correct parameters.
*
* @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.
* @param int $id Nav menu ID.
*
* @return string Custom fields HTML.
*/
if( $depth == 0 ) {
do_action('apus_megamenu_item_config_toplevel', $item->ID, $item, $depth, $args, $id );
}
do_action('apus_megamenu_item_config', $item->ID, $item, $depth, $args, $id );
return ob_get_clean();
}
}
}