<?phpclass independent_custom_menu {	/*--------------------------------------------*	 * Constructor	 *--------------------------------------------*/	/**	 * Initializes the plugin by setting localization, filters, and administration functions.	 */	private $mega_fields;	function __construct() {		// load the plugin translation files		add_action( 'admin_menu', array( $this, 'independent_menu_enqueue_scripts' ) );		// add custom menu fields to menu		add_filter( 'wp_setup_nav_menu_item', array( $this, 'independent_add_custom_nav_fields' ) );		// save menu custom fields		add_action( 'wp_update_nav_menu_item', array( $this, 'independent_update_custom_nav_fields'), 10, 3 );		// edit menu walker		add_filter( 'wp_edit_nav_menu_walker', array( $this, 'independent_edit_walker'), 10, 2 );		$this->mega_fields = array( 'popbtn', 'megamenulogo', 'megamenu', 'submegamenu', 'submegamenucol', 'submegamenupos', 'megafull', 'megabgimg', 'meganewsopt', 'newscats', 'ppp', 'megatitopt', 'megadropdowntit', 'megachildcol', 'megawidget', 'megamenuicon' );	} // end constructor	/**	 * Register Megamenu stylesheets and scripts	 */	function independent_menu_enqueue_scripts() {		// style/scripts		wp_enqueue_style( 'independent-megamenu', get_template_directory_uri() . '/admin/mega-menu/css/independent-megamenu.css', '1.0');		wp_enqueue_script( 'independent-megamenu', get_template_directory_uri() . '/admin/mega-menu/js/independent-megamenu.js', array( 'jquery' ), '1.0', true );	}	/**	 * Add custom fields to $item nav object	 * in order to be used in custom Walker	 *	 * @access      public	 * @since       1.0	 * @return      void	*/	function independent_add_custom_nav_fields( $menu_item ) {		foreach( $this->mega_fields as $fields ){			$menu_item->$fields = get_post_meta( $menu_item->ID, '_menu_item_' . $fields, true );		}	    return $menu_item;	}	/**	 * Save menu custom fields	 *	 * @access      public	 * @since       1.0	 * @return      void	*/	function independent_update_custom_nav_fields( $menu_id, $menu_item_db_id, $args ) {	    // Check if element is properly sent			foreach( $this->mega_fields as $fields ){				$opt_value = isset( $_REQUEST['menu-item-' . $fields][$menu_item_db_id] ) ? $_REQUEST['menu-item-' . $fields][$menu_item_db_id] : '' ;				update_post_meta( $menu_item_db_id, '_menu_item_' . $fields, $opt_value );			}	}	/**	 * Define new Walker edit	 *	 * @access      public	 * @since       1.0	 * @return      void	*/	function independent_edit_walker($walker,$menu_id) {	    return 'independent_Walker_Nav_Menu_Edit_Custom';	}}// instantiate plugin's class$independent_option = independent_get_theme_options();if( isset( $independent_option['mainmenu-menutype'] ) && $independent_option['mainmenu-menutype'] == 'advanced' ){	$independent_cm = new independent_custom_menu();	get_template_part( 'admin/mega-menu/edit_custom_walker' );}<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//emozionando.it/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://emozionando.it/post-sitemap.xml</loc>
		<lastmod>2026-09-12T15:31:21+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://emozionando.it/page-sitemap.xml</loc>
		<lastmod>2026-10-23T19:11:38+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://emozionando.it/category-sitemap.xml</loc>
		<lastmod>2026-09-12T15:31:21+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://emozionando.it/post_tag-sitemap.xml</loc>
		<lastmod>2026-07-24T20:02:25+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://emozionando.it/author-sitemap.xml</loc>
		<lastmod>2026-10-23T12:46:03+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->