'aazeen_slider_widget', 'description' => __( 'You can add use this widgte in any section or page. you can add for custom slider', 'aazeen-extension' ), ); parent::__construct( 'aazeen_slider_widget', __( 'Aazeen - Slider widget', 'aazeen-extension' ), $widget_ops ); $this->alt_option_name = 'aazeen_slider_widget'; add_action('wp_enqueue_scripts', array(&$this, 'aazeen_extension_slider_widget_style')); } function widget($args, $instance) { extract($args); $bg_color = isset( $instance['bg_color'] ) ? $instance['bg_color'] : '#BCBDD4'; $content_bgimage = isset( $instance['content_bgimage'] ) ? $instance['content_bgimage'] : ''; $fixed_bg = isset( $instance['fixed_bg'] ) ? $instance['fixed_bg'] : false; $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'] : ''; $slider_style = ( ! empty( $instance['slider_style'] ) ) ? wp_kses_post( $instance['slider_style'] ) : ''; $title_fontsize = ( ! empty( $instance['title_fontsize'] ) ) ? absint( $instance['title_fontsize'] ) : ''; $content_fontsize = ( ! empty( $instance['content_fontsize'] ) ) ? absint( $instance['content_fontsize'] ) : ''; echo $before_widget; ?>
id="get_field_id( 'fixed_bg' ); ?>" name="get_field_name( 'fixed_bg' ); ?>" />