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