fields ) || empty( $this->fields ) ) return; $container = array( 'name' => $this->base_name, 'type' => 'repeater' ); $item_label = isset( $this->item_label ) ? $this->item_label : null; if ( ! empty( $item_label ) ) { // convert underscore naming convention to camelCase for javascript and encode as json string $item_label = wp_parse_args( $item_label, array( 'update_event' => 'change', 'value_method' => 'val' ) ); $item_label = siteorigin_widgets_underscores_to_camel_case( $item_label ); $item_label = json_encode( $item_label ); } if( empty( $this->item_name ) ) $this->item_name = __( 'Item', 'so-widgets-bundle' ); ?>