<?php
/**
 * Defines the structure for all custom navigation menu item fields.
 *
 * @package Sifency
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Returns an array of nav menu field definitions.
 *
 * @return array
 */
function sifency_get_nav_menu_definitions() {
	return array(
		array(
			'id'    => 'menu_icon',
			'type'  => 'text',
			'title' => esc_html__( 'Menu Item Icon', 'sifency-addons' ),
			'desc'  => esc_html__( 'Select an icon class (e.g., "fas fa-home").', 'sifency-addons' ),
		),
		array(
			'id'    => 'menu_class',
			'type'  => 'text',
			'title' => esc_html__( 'Custom CSS Class', 'sifency-addons' ),
			'desc'  => esc_html__( 'Adds a custom class to the menu item <li>.', 'sifency-addons' ),
		),
		array(
			'id'      => 'make_as_a_mega_menu',
			'type'    => 'select',
			'title'   => esc_html__( 'Enable Mega Menu', 'sifency-addons' ),
			'desc'    => esc_html__( 'Enable for top-level items to act as mega menus.', 'sifency-addons' ),
			'options' => array(
				'false' => esc_html__( 'Default', 'sifency-addons' ),
				'true'  => esc_html__( 'Mega Menu', 'sifency-addons' ),
			),
		),
	);
}
