__( '(Product carousel style) Displays product from a choosen category.(Home page & sidebar) ', 'aazeen-extension' ), ) ); $this->alt_option_name = 'aazeen_product_carousel'; } /** * Display Widget * * @param $args * @param $instance */ function widget($args, $instance) { extract($args); $auto_play = ( ! empty( $instance['auto_play'] ) ) ? wp_kses_post( $instance['auto_play'] ) : ''; $slidesto_show = ( ! empty( $instance['slidesto_show'] ) ) ? absint( $instance['slidesto_show'] ) : 3; $number_posts = ( ! empty( $instance['number_posts'] ) ) ? absint( $instance['number_posts'] ) : 3; $category = ( isset( $instance['category'] ) ) ? $instance['category'] : ''; $title_color_picker = isset($instance['title_color_picker']) ? $instance['title_color_picker'] : '#0a0a0a'; $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; echo $before_widget; ?> id; ?>
'Show all posts', 'orderby' => 'ID', 'order' => 'ASC', 'show_count' => 1, 'hide_empty' => 1, 'selected' => $instance['category'], 'hierarchical' => 0, 'name' => $this->get_field_name('category'), 'taxonomy' => 'product_cat', 'value_field' => 'slug', ); ?>
id="get_field_id( 'fixed_bg' ); ?>" name="get_field_name( 'fixed_bg' ); ?>" />