'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(); $widget_text = ! empty( $instance['content1'] ) ? $instance['content1'] : ''; $text = apply_filters( 'widget_text', $widget_text, $instance, $this ); $content_bgimage = isset( $instance['content_bgimage'] ) ? $instance['content_bgimage'] : ''; $content_bgimage_m = isset( $instance['content_bgimage_m'] ) ? $instance['content_bgimage_m'] : ''; $auto_play = ( ! empty( $instance['auto_play'] ) ) ? wp_kses_post( $instance['auto_play'] ) : ''; $slider_height = ( ! empty( $instance['slider_height'] ) ) ? $instance['slider_height'] : '80'; $slider_width = ( ! empty( $instance['slider_width'] ) ) ? $instance['slider_width'] : '24'; $slider_height_m = ( ! empty( $instance['slider_height_m'] ) ) ? absint($instance['slider_height_m']): '70'; $letter_weight_cont = ( ! empty( $instance['letter_weight_cont'] ) ) ? absint($instance['letter_weight_cont']): '400'; $letter_weight = ( ! empty( $instance['letter_weight'] ) ) ? absint($instance['letter_weight']): '600'; $slider_conten_p = ( ! empty( $instance['slider_conten_p'] ) ) ? wp_kses_post( $instance['slider_conten_p'] ) : ''; $content_bg_tras = ( ! empty( $instance['content_bg_tras'] ) ) ? wp_kses_post( $instance['content_bg_tras'] ) : ''; $overlay_bg_tras = ( ! empty( $instance['overlay_bg_tras'] ) ) ? wp_kses_post( $instance['overlay_bg_tras'] ) : '0.6'; $new_tab = isset( $instance['new_tab'] ) ? $instance['new_tab'] : false; $content_color = isset( $instance['content_color'] ) ? $instance['content_color'] : '#fff'; $title_color = isset( $instance['title_color'] ) ? $instance['title_color'] : '#fff'; $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.'">';?>
style="background-image: url();" >
'', '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', 'letter_spacing_cont'=>'1', 'slider_speed'=>'300', 'slider_height_m'=>70, 'slider_conten_p'=>'content_center', 'content_bg_tras'=>0.31, 'button_one_style'=> 'regu', 'button_two_style'=>'btn-round', 'title1'=>'Need To Grow Your Creative Site', 'content1'=>'You will save a lot of time. It is easy to purchase and enjoy these wonderful feelings!', 'link_text1'=>'LEARN MORE', 'url1'=>'https://www.themezwp.com/aazeen/', 'content_color' =>'#fff' , 'title_color'=> '#fff', 'letter_weight_cont'=>'400', 'letter_weight' => '600', 'slider_width' =>24, 'bg_color'=>'gradient_6', 'overlay_bg_tras'=>0.6, ); $instance = wp_parse_args( (array) $instance, $defaults ); $new_tab = isset( $instance['new_tab'] ) ? (bool) $instance['new_tab'] : false; ?>

%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').'" />';?>

id="get_field_id( 'new_tab' ); ?>" name="get_field_name( 'new_tab' ); ?>"/>