'aazeen_slider_widget aazeen_widgtes', 'description' => __( 'You can add use this widgte in any section or page. you can add for custom slider', 'aazeen-extension' ), 'customize_selective_refresh' => true, ); parent::__construct( 'aazeen_slider_widget', __( 'Aazeen - Slider widget', 'aazeen-extension' ), $widget_ops ); $this->alt_option_name = 'aazeen_slider_widget'; } function widget($args, $instance) { extract($args); $custom_testi = isset( $instance['custom_testi'] ) ? $instance['custom_testi'] : array(); $auto_play = ( ! empty( $instance['auto_play'] ) ) ? wp_kses_post( $instance['auto_play'] ) : ''; $slider_height = ( ! empty( $instance['slider_height'] ) ) ? $instance['slider_height'] : '80'; $slider_height_m = ( ! empty( $instance['slider_height_m'] ) ) ? absint($instance['slider_height_m']): '70'; $slider_style = ( ! empty( $instance['slider_style'] ) ) ? wp_kses_post( $instance['slider_style'] ) : ''; $slider_speed = ( ! empty( $instance['slider_speed'] ) ) ? absint( $instance['slider_speed'] ) : '300'; $button1_color_in = isset( $instance['button1_color'] ) ? $instance['button1_color'] : '#e91e63'; $button2_color_in = isset( $instance['button2_color'] ) ? $instance['button2_color'] : '#00bcd4'; echo $before_widget; ?> id; /*----------- button one -----------*/ if ( 225 > ariColor::newColor( $button1_color_in )->luminance ) { // Our background color is dark, so we need to create a light text color. $button1_color_text = '#fff'; } else { // Our background color is light, so we need to create a dark text color $button1_color_text = '#000' ; } if ( 225 > ariColor::newColor( $button2_color_in )->luminance ) { // Our background color is dark, so we need to create a light text color. $button2_color_text = '#fff'; } else { // Our background color is light, so we need to create a dark text color $button2_color_text = '#000' ; } ?> id.'">';?>
'', 'button1_color' => '#e91e63', 'button2_color' => '#00bcd4', 'auto_play'=>'true', 'slider_height'=>80, 'slider_style'=>'style_one', 'title_fontsize'=>32, 'content_fontsize'=>18, 'letter_spacing'=>'1', 'slider_speed'=>'300', 'slider_height_m'=>70, ); $instance = wp_parse_args( (array) $instance, $defaults ); ?>

%5$s
%9$s %11$s
Remove
', $this->get_field_name( 'custom_testi' ), //1 $customtesti_counter, //2 $this->get_field_id('custom_testi').'', //3 $this->get_field_id('custom_add_field').'-repeat', //4 //Title esc_attr( $testi['title'] ), //5 - Title Value __('Title','aazeen-extension'), //6 - Title Placeholder //content wp_kses_post( $testi['content']),//7 - Content Value __('Content','aazeen-extension'), //8 - Content Placeholder //Media !empty($testi['image']) ? '': '', //9 esc_url( $testi['image'] ), //10 - Image Value __('Select Image', 'aazeen-extension'), //11 - Image Placeholder $this->get_field_id('custom_testi').'-mpick', //12 //url one esc_url( $testi['url1'] ), //13 - url1 Value __('URL One','aazeen-extension'), //14 - url1 Placeholder //Title esc_attr( $testi['url_text'] ), //15 - url_text Value __('Button text one','aazeen-extension'), //16 - url_text Placeholder //url two esc_url( $testi['url2'] ), //17 - url two Value __('URL Two','aazeen-extension'), //18 - url two Placeholder //Title esc_attr( $testi['url_text2'] ), //19 - url_text two Value __('Button text two','aazeen-extension') //20 - url_text two Placeholder ); } $customtesti_counter += 1; } echo '
'.__('Sliders','aazeen-extension').'
' . join( $customtesti_html ); ?> get_field_id('custom_add_field').'" data-widget-fieldname="'.$this->get_field_name('custom_testi').'" data-widget-fieldid="'.$this->get_field_id('custom_testi').'" />';?>