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' ); ?>
scroll_count ) ? 'data-scroll-count="' . esc_attr( $this->scroll_count ) . '"' : '' ?> readonly ) ) echo 'readonly' ?>>

label ) ?>

readonly ) ) : ?>

item_name ) ?>

create_and_render_sub_fields( $v, $container ); ?>
readonly ) ) : ?>
create_and_render_sub_fields( null, $container, true ); $rpt_fields = ob_get_clean(); $rpt_fields = preg_replace( '/\s+name\s*=\s*/', ' data-name=', $rpt_fields ); ?>