add_field_label = esc_html__( 'Add new field', 'azera-shop' ); if ( ! empty( $args['add_field_label'] ) ) { $this->add_field_label = $args['add_field_label']; } $this->boxtitle = esc_html__( 'Cusomizer Repeater', 'azera-shop' ); if ( ! empty( $args['item_name'] ) ) { $this->boxtitle = $args['item_name']; } elseif ( ! empty( $this->label ) ) { $this->boxtitle = $this->label; } if ( ! empty( $args['azera_shop_image_control'] ) ) { $this->azera_shop_image_control = $args['azera_shop_image_control']; } if ( ! empty( $args['azera_shop_icon_control'] ) ) { $this->azera_shop_icon_control = $args['azera_shop_icon_control']; } if ( ! empty( $args['azera_shop_title_control'] ) ) { $this->azera_shop_title_control = $args['azera_shop_title_control']; } if ( ! empty( $args['azera_shop_subtitle_control'] ) ) { $this->azera_shop_subtitle_control = $args['azera_shop_subtitle_control']; } if ( ! empty( $args['azera_shop_text_control'] ) ) { $this->azera_shop_text_control = $args['azera_shop_text_control']; } if ( ! empty( $args['azera_shop_link_control'] ) ) { $this->azera_shop_link_control = $args['azera_shop_link_control']; } if ( ! empty( $args['azera_shop_shortcode_control'] ) ) { $this->azera_shop_shortcode_control = $args['azera_shop_shortcode_control']; } if ( ! empty( $args['azera_shop_socials_repeater_control'] ) ) { $this->azera_shop_socials_repeater_control = $args['azera_shop_socials_repeater_control']; } if ( ! empty( $id ) ) { $this->id = $id; } if ( file_exists( get_template_directory() . '/inc/customizer-repeater/inc/icons.php' ) ) { $this->azera_shop_icon_container = 'inc/customizer-repeater/inc/icons'; } } /** * Enqueue scripts */ public function enqueue() { wp_enqueue_style( 'azera-shop-font-awesome', azera_shop_get_file( '/css/font-awesome.min.css' ), '4.7' ); wp_enqueue_style( 'azera-shop-admin-stylesheet', azera_shop_get_file( '/inc/customizer-repeater/css/admin-style.css' ), '1.0.0' ); wp_enqueue_script( 'azera-shop-script', azera_shop_get_file( '/inc/customizer-repeater/js/customizer_repeater.js' ), array( 'jquery', 'jquery-ui-draggable' ), '1.0.1', true ); wp_enqueue_script( 'azera-shop-fontawesome-iconpicker', azera_shop_get_file( '/inc/customizer-repeater/js/fontawesome-iconpicker.min.js' ), array( 'jquery' ), '1.0.0', true ); wp_enqueue_style( 'azera-shop-fontawesome-iconpicker-script', azera_shop_get_file( '/inc/customizer-repeater/css/fontawesome-iconpicker.min.css' ) ); } /** * Render function */ public function render_content() { $repeater_content = $this->value(); $values = array(); if ( ! empty( $repeater_content ) ) { $values = $repeater_content; } else { if ( ! empty( $this->setting->default ) ) { $values = $this->setting->default; } } ?> label ); ?>
iterate_array( $valuse_decoded ); ?> link(); ?> class="customizer-repeater-colector" value=""/> iterate_array(); ?> link(); ?> class="customizer-repeater-colector"/>
boxtitle ); ?>
id ) ) { $id = $icon->id; } if ( ! empty( $icon->choice ) ) { $choice = $icon->choice; } if ( ! empty( $icon->image_url ) ) { $image_url = $icon->image_url; } if ( ! empty( $icon->icon_value ) ) { $icon_value = $icon->icon_value; } if ( ! empty( $icon->title ) ) { $title = $icon->title; } if ( ! empty( $icon->subtitle ) ) { $subtitle = $icon->subtitle; } if ( ! empty( $icon->text ) ) { $text = $icon->text; } if ( ! empty( $icon->link ) ) { $link = $icon->link; } if ( ! empty( $icon->shortcode ) ) { $shortcode = $icon->shortcode; } if ( ! empty( $icon->social_repeater ) ) { $repeater = $icon->social_repeater; } if ( $this->azera_shop_image_control == true && $this->azera_shop_icon_control == true ) { $this->icon_type_choice( $choice ); } if ( $this->azera_shop_image_control == true ) { $this->image_control( $image_url, $choice ); } if ( $this->azera_shop_icon_control == true ) { $this->icon_picker_control( $icon_value, $choice ); } if ( $this->azera_shop_title_control == true ) { $this->input_control( array( 'label' => apply_filters( 'repeater_input_labels_filter', esc_html__( 'Title', 'azera-shop' ), $this->id, 'azera_shop_title_control' ), 'class' => 'customizer-repeater-title-control', 'type' => apply_filters( 'repeater_input_types_filter', '', $this->id, 'azera_shop_title_control' ), ), $title ); } if ( $this->azera_shop_subtitle_control == true ) { $this->input_control( array( 'label' => apply_filters( 'repeater_input_labels_filter', esc_html__( 'Subtitle', 'azera-shop' ), $this->id, 'azera_shop_subtitle_control' ), 'class' => 'customizer-repeater-subtitle-control', 'type' => apply_filters( 'repeater_input_types_filter', '', $this->id, 'azera_shop_subtitle_control' ), ), $subtitle ); } if ( $this->azera_shop_text_control == true ) { $this->input_control( array( 'label' => apply_filters( 'repeater_input_labels_filter', esc_html__( 'Text', 'azera-shop' ), $this->id, 'azera_shop_text_control' ), 'class' => 'customizer-repeater-text-control', 'type' => apply_filters( 'repeater_input_types_filter', 'textarea', $this->id, 'azera_shop_text_control' ), ), $text ); } if ( $this->azera_shop_link_control ) { $this->input_control( array( 'label' => apply_filters( 'repeater_input_labels_filter', esc_html__( 'Link', 'azera-shop' ), $this->id, 'azera_shop_link_control' ), 'class' => 'customizer-repeater-link-control', 'sanitize_callback' => 'esc_url_raw', 'type' => apply_filters( 'repeater_input_types_filter', '', $this->id, 'azera_shop_link_control' ), ), $link ); } if ( $this->azera_shop_shortcode_control == true ) { $this->input_control( array( 'label' => apply_filters( 'repeater_input_labels_filter', esc_html__( 'Shortcode', 'azera-shop' ), $this->id, 'azera_shop_shortcode_control' ), 'class' => 'customizer-repeater-shortcode-control', 'type' => apply_filters( 'repeater_input_types_filter', '', $this->id, 'azera_shop_shortcode_control' ), ), $shortcode ); } if ( $this->azera_shop_socials_repeater_control == true ) { $this->repeater_control( $repeater ); } echo ''; ?>
boxtitle ); ?>
azera_shop_image_control == true && $this->azera_shop_icon_control == true ) { $this->icon_type_choice(); } if ( $this->azera_shop_image_control == true ) { $this->image_control(); } if ( $this->azera_shop_icon_control == true ) { $this->icon_picker_control(); } if ( $this->azera_shop_title_control == true ) { $this->input_control( array( 'label' => apply_filters( 'repeater_input_labels_filter', esc_html__( 'Title', 'azera-shop' ), $this->id, 'azera_shop_title_control' ), 'class' => 'customizer-repeater-title-control', 'type' => apply_filters( 'repeater_input_types_filter', '', $this->id, 'azera_shop_title_control' ), ) ); } if ( $this->azera_shop_subtitle_control == true ) { $this->input_control( array( 'label' => apply_filters( 'repeater_input_labels_filter', esc_html__( 'Subtitle', 'azera-shop' ), $this->id, 'azera_shop_subtitle_control' ), 'class' => 'customizer-repeater-subtitle-control', 'type' => apply_filters( 'repeater_input_types_filter', '', $this->id, 'azera_shop_subtitle_control' ), ) ); } if ( $this->azera_shop_text_control == true ) { $this->input_control( array( 'label' => apply_filters( 'repeater_input_labels_filter', esc_html__( 'Text', 'azera-shop' ), $this->id, 'azera_shop_text_control' ), 'class' => 'customizer-repeater-text-control', 'type' => apply_filters( 'repeater_input_types_filter', 'textarea', $this->id, 'azera_shop_text_control' ), ) ); } if ( $this->azera_shop_link_control == true ) { $this->input_control( array( 'label' => apply_filters( 'repeater_input_labels_filter', esc_html__( 'Link', 'azera-shop' ), $this->id, 'azera_shop_link_control' ), 'class' => 'customizer-repeater-link-control', 'type' => apply_filters( 'repeater_input_types_filter', '', $this->id, 'azera_shop_link_control' ), ) ); } if ( $this->azera_shop_shortcode_control == true ) { $this->input_control( array( 'label' => apply_filters( 'repeater_input_labels_filter', esc_html__( 'Shortcode', 'azera-shop' ), $this->id, 'azera_shop_shortcode_control' ), 'class' => 'customizer-repeater-shortcode-control', 'type' => apply_filters( 'repeater_input_types_filter', '', $this->id, 'azera_shop_shortcode_control' ), ) ); } if ( $this->azera_shop_socials_repeater_control == true ) { $this->repeater_control(); } ?>
> %s', esc_html__( 'FontAwesome', 'azera-shop' ) ) ); ?>
'; ?>
azera_shop_icon_container ); ?>
>
'; echo ''; echo '
'; get_template_part( $this->azera_shop_icon_container ); echo ''; echo ''; ?>
'; echo ''; echo '
'; get_template_part( $this->azera_shop_icon_container ); echo ''; echo ''; echo ''; echo '
'; } echo ''; ?>