esc_html__( 'Attribute Name', 'dnxte-divi-essential' ), 'link_text' => esc_html__( 'Attribute Value', 'dnxte-divi-essential' ), 'link_cancel' => esc_html__( 'Discard Changes', 'dnxte-divi-essential' ), 'link_save' => esc_html__( 'Save Changes', 'dnxte-divi-essential' ), 'link_settings' => esc_html__( 'Data Attributes', 'dnxte-divi-essential' ), ); $fields = array( 'dnxte_custom_attribute_on_off' => array( 'label' => esc_html__( 'Use Custom Attributes', 'dnxte-divi-essential' ), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array( 'off' => esc_html__( 'No', 'dnxte-divi-essential' ), 'on' => esc_html__( 'Yes', 'dnxte-divi-essential' ), ), 'default' => 'off', 'default_on_front' => 'off', 'tab_slug' => 'custom_css', 'toggle_slug' => 'dnxte_attributes', 'description' => esc_html__( 'Here you can choose whether to use a custom attributes on this module or not.', 'dnxte-divi-essential' ), ), 'dnxte_custom_attribute_add' => array( 'label' => esc_html__( 'Add Attributes To', 'dnxte-divi-essential' ), 'type' => 'select', 'option_category' => 'layout', 'tab_slug' => 'custom_css', 'toggle_slug' => 'dnxte_attributes', 'options' => array( 'wrapper' => esc_html__( 'Wrapper', 'dnxte-divi-essential' ), 'button' => esc_html__( 'Button', 'dnxte-divi-essential' ), 'css' => esc_html__( 'CSS Selector', 'dnxte-divi-essential' ), ), 'default' => 'wrapper', 'default_on_front' => 'wrapper', 'show_if' => array( 'dnxte_custom_attribute_on_off' => 'on', ), ), 'dnxte_custom_attribute_css_selector' => array( 'label' => esc_html__( 'CSS Selector', 'dnxte-divi-essential' ), 'type' => 'text', 'option_category' => 'basic_option', 'description' => esc_html__( 'Input your CSS Selector.', 'dnxte-divi-essential' ), 'tab_slug' => 'custom_css', 'toggle_slug' => 'dnxte_attributes', 'show_if' => array( 'dnxte_custom_attribute_on_off' => 'on', 'dnxte_custom_attribute_add' => 'css', ), ), 'dnxte_attributes_options' => array( 'label' => esc_html__( 'Custom Attributes', 'dnxte-divi-essential' ), 'type' => 'sortable_list', 'checkbox' => true, 'option_category' => 'basic_option', 'tab_slug' => 'custom_css', 'toggle_slug' => 'dnxte_attributes', 'right_actions' => 'link|copy|delete', 'description' => esc_html__( 'Custom attributes will be added to the most relevant HTML node.', 'dnxte-divi-essential' ), 'labels' => $labels, 'show_if' => array( 'dnxte_custom_attribute_on_off' => 'on', ), ), ); return array_merge( $fields, $fields_unprocessed ); } }