$settings Field configuration. * @var mixed $value Current saved value. * @var string $module_id Module ID. * @var Merchant_Field_Sortable_Repeater_Icons $field Field instance. * * @package Merchant * @since 2.3.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } // Resolve icons: use field config override or field class defaults. $allowed_icons = $field->get_allowed_icons(); $icon_library = array(); foreach ( $allowed_icons as $icon_key ) { $icon_library[ $icon_key ] = Merchant_SVG_Icons::get_svg_icon( $icon_key ); } $sorting_disabled = isset( $settings['sorting'] ) && false === $settings['sorting']; $button_label = $settings['button_label'] ?? esc_html__( 'Add new item', 'merchant' ); ?>