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 ); ?>