args = $args; $this->row_label = $args['row_label']; $this->add_new_label = $args['add_new_label']; parent::__construct( $manager, $id, $args ); $this->defaults = $this->setting->default; } /** * Enqueue Scripts * */ function enqueue() { wp_enqueue_media(); wp_enqueue_style( 'fontawesome', get_template_directory_uri() . '/assets/lib/fontawesome/css/all.min.css', array(), '5.15.3', 'all' ); wp_enqueue_style( 'bloginwp-wp-repeater', get_template_directory_uri() . '/inc/customizer/custom-controls/repeater/repeater.css', array(), BLOGINWP_VERSION, 'all' ); wp_enqueue_script( 'bloginwp-wp-repeater', get_template_directory_uri() . '/inc/customizer/custom-controls/repeater/repeater.js', array( 'jquery' ), BLOGINWP_VERSION, true ); } /** * For The displaying the structure in Customizer */ public function render_content() { $fields = json_decode( json_encode( $this->args['fields'] ) ); $control_values = $this->value(); $control_values = ( ! empty( $control_values ) ) ? json_decode( $control_values ) : json_decode( json_encode( array( $fields ) ) ); $item_count = 1; ?>
description ) { ?> description ); ?>
$control_value ) : ?>

row_label ); ?>

$field_val ) : if( $field_key != 'item_option' ) { $this->render_control( $field_key, $field_val, $control_value ); } else { echo ''; } endforeach; ?>
link() ); ?> value=""/>
type; $label = isset( $field->label ) ? $field->label : esc_html__( 'Item Label', 'bloginwp' ); $description = isset( $field->description ) ? $field->description : false; $default_value = isset( $field->default ) ? $field->default : ''; // filter the contrrol type parameter switch( $type ) { case 'text' : ?>

$field_key ) : if( wp_get_attachment_image_url( $current_item_value->$field_key ) ) : echo ''; endif; else : echo ''; endif; ?>
get_all_fontawesome_icons(); ?>