boxtitle = __( 'bfastmag','bfastmag' ); if ( ! empty( $args['bfastmag_icon_control'] ) ) { $this->customizer_repeater_icon_control = $args['bfastmag_icon_control']; } if ( ! empty( $args['bfastmag_link_control'] ) ) { $this->customizer_repeater_link_control = $args['bfastmag_link_control']; } if ( ! empty( $args['id'] ) ) { $this->id = $id; } } /** * Enqueue resources for the control */ public function enqueue() { wp_enqueue_style( 'font-awesome', get_template_directory_uri() . '/assets/css/font-awesome.min.css','4.6.3' ); wp_enqueue_style( 'customizer-repeater-admin-stylesheet', get_template_directory_uri() . '/assets/css/admin-style.css','1.0.0' ); wp_enqueue_script( 'customizer-repeater-script', get_template_directory_uri() . '/inc/customizer/customizer-repeater/js/customizer_repeater.js', array( 'jquery', 'jquery-ui-draggable' ), '1.0.1', true ); wp_enqueue_script( 'customizer-repeater-fontawesome-iconpicker', get_template_directory_uri() . '/inc/customizer/customizer-repeater/js/fontawesome-iconpicker.min.js', array( 'jquery' ), '1.0.0', true ); wp_enqueue_style( 'customizer-repeater-fontawesome-iconpicker-script', get_template_directory_uri() . '/inc/customizer/customizer-repeater/css/fontawesome-iconpicker.min.css' ); } /** * The function to render the controler */ public function render_content() { /*Get default options*/ $this_default = json_decode( $this->setting->default ); /*Get values (json format)*/ $values = $this->value(); /*Decode values*/ $json = json_decode( $values ); if ( ! is_array( $json ) ) { $json = array( $values ); } ?> label ); ?>
iterate_array( $this_default ); ?> link(); ?> class="customizer-repeater-colector" value=""/> iterate_array(); ?> link(); ?> class="bfastmag_repeater_colector"/> iterate_array( $json ); ?> link(); ?> class="bfastmag_repeater_colector" value="value() ); ?>"/>
icon_value ) ) { $box_title = $icon->icon_value; }else{ $box_title = $this->boxtitle; } echo esc_html( $box_title ); ?>
id ) ) { $id = $icon->id; } if ( ! empty( $icon->icon_value ) ) { $icon_value = $icon->icon_value; } if ( ! empty( $icon->link ) ) { $link = $icon->link; } if ( $this->customizer_repeater_icon_control == true ) { $this->icon_picker_control( $icon_value, $choice ); } if ( $this->customizer_repeater_link_control ) { $this->input_control(array( 'label' => __( 'Link','bfastmag' ), 'class' => 'bfastmag_link_control', 'sanitize_callback' => 'esc_url', ), $link); } ?>
boxtitle ); ?>
customizer_repeater_icon_control == true ) { $this->icon_picker_control(); } if ( $this->customizer_repeater_link_control == true ) { $this->input_control( array( 'label' => __( 'Link', 'bfastmag' ), 'class' => 'bfastmag_link_control', ) ); } ?>
>