'aazeen_client_widget', 'description' => __( 'You can add use this widgte in any section or page', 'aazeen-extension' ), 'customize_selective_refresh' => true, ); parent::__construct( 'aazeen_client_widget', __( 'Aazeen - Clients widget', 'aazeen-extension' ), $widget_ops ); $this->alt_option_name = 'aazeen_client_widget'; } /** * Display Widget * * @param $args * @param $instance */ function widget($args, $instance) { extract($args); $carousel = isset( $instance['carousel'] ) ? $instance['carousel'] : array(); $bg_color = isset( $instance['bg_color'] ) ? $instance['bg_color'] : '#fff'; $content_bgimage = isset( $instance['content_bgimage'] ) ? $instance['content_bgimage'] : ''; $new_tab = isset( $instance['new_tab'] ) ? $instance['new_tab'] : false; $fixed_bg = isset( $instance['fixed_bg'] ) ? $instance['fixed_bg'] : false; echo $before_widget; ?> id; ?>

'.__('Please Click the "+ Add New" button to create new Carousel','aazeen-extension').'

';} if(!empty($carousel)){ /*START CUSTOM Carosel*/ foreach ((array)$carousel as $cars){ echo '
'; if (!empty ($cars['image'])) {?> target="_blank" >
'; } //CAROUSEL END }?>
'#fff', 'title' => 'Our Clients', 'sub_title' => '', 'title_color' => '#0a0a0a', 'subtitle_color' => '#747474', ); $instance = wp_parse_args( (array) $instance, $defaults ); $new_tab = isset( $instance['new_tab'] ) ? (bool) $instance['new_tab'] : false; $fixed_bg = isset( $instance['fixed_bg'] ) ? (bool) $instance['fixed_bg'] : false; ?>

tab
%7$s %9$s
Remove
', $this->get_field_name( 'carousel' ), //1 $customtesti_counter, //2 $this->get_field_id('carousel').'', //3 $this->get_field_id('custom_add_field').'-repeat', //4 //Title esc_url( $cars['title'] ), //5 - Title Value __('URL (Required)','aazeen-extension'), //6 - Title Placeholder //Media !empty($cars['image']) ? '': '', //7 esc_url( $cars['image'] ), //8 - Image Value __('Select Image', 'aazeen-extension'), //9 - Image Placeholder $this->get_field_id('carousel').'-mpick' //10 ); } $customtesti_counter += 1; } echo '

'.__('Content','aazeen-extension').'

' . join( $cars_html ); ?> get_field_id('custom_add_field').'" data-widget-fieldname="'.$this->get_field_name('carousel').'" data-widget-fieldid="'.$this->get_field_id('carousel').'" />';?>

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

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