<?php
ct_add_custom_widget(
array(
'name' => 'ct_menu_item',
'title' => esc_html__('Case Menu Item', 'itfirm'),
'icon' => 'eicon-columns',
'categories' => array(Case_Theme_Core::CT_CATEGORY_NAME),
'params' => array(
'sections' => array(
array(
'name' => 'section_list',
'label' => esc_html__('Content', 'itfirm'),
'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
'controls' => array(
array(
'name' => 'menu_item',
'label' => esc_html__('Item', 'itfirm'),
'type' => \Elementor\Controls_Manager::REPEATER,
'controls' => array(
array(
'name' => 'ct_icon',
'label' => esc_html__('Icon', 'itfirm' ),
'type' => \Elementor\Controls_Manager::ICONS,
'fa4compatibility' => 'icon',
),
array(
'name' => 'text',
'label' => esc_html__('Text', 'itfirm'),
'type' => \Elementor\Controls_Manager::TEXT,
'label_block' => true,
),
array(
'name' => 'label',
'label' => esc_html__('Label', 'itfirm'),
'type' => \Elementor\Controls_Manager::TEXT,
'label_block' => true,
),
array(
'name' => 'link',
'label' => esc_html__('Link', 'itfirm'),
'type' => \Elementor\Controls_Manager::URL,
'label_block' => true,
),
),
'title_field' => '{{{ text }}}',
),
array(
'name' => 'style',
'label' => esc_html__('Style', 'itfirm' ),
'type' => \Elementor\Controls_Manager::SELECT,
'options' => [
'style-default' => 'Default',
'style-box' => 'Box',
],
'default' => 'style-default',
),
array(
'name' => 'ct_animate',
'label' => esc_html__('Case Animate', 'itfirm' ),
'type' => \Elementor\Controls_Manager::SELECT,
'options' => itfirm_animate(),
'default' => '',
),
),
),
),
),
),
get_template_directory() . '/elementor/core/widgets/'
);