__( 'Only for page builder.', 'maskitto-light' ), 'panels_icon' => 'dashicons dashicons-clipboard', 'panels_groups' => 'theme-widgets' ) ); } /* Front-end display of widget. */ public function widget( $args, $instance ) { $title = isset( $instance['title'] ) ? esc_attr( $instance['title'] ) : ''; $subtitle = isset( $instance['subtitle'] ) ? esc_attr( $instance['subtitle'] ) : ''; $sliders = wp_count_posts( 'services' ); $remove_border = isset( $instance['remove_border'] ) ? intval( $instance['remove_border'] ) : ''; $limit = isset( $instance['limit'] ) ? intval( $instance['limit'] ) : ''; $widget_group = ( isset( $instance['widget_group'] ) ) ? esc_attr( $instance['widget_group'] ) : ''; if( isset( $sliders->publish ) && $sliders->publish > 0){ if( !isset($instance['limit']) || !$instance['limit']) : $limit = 3; endif; ?>

'services', 'posts_per_page' => $limit, ); if( isset( $widget_group ) && $widget_group != '' ) : $loop_array2 = array( 'tax_query' => array( array( 'taxonomy' => 'services-group', 'field' => 'slug', 'terms' => $widget_group, ), ), ); $loop_array = array_merge( $loop_array, $loop_array2 ); endif; $loop = new WP_Query( $loop_array ); while ( $loop->have_posts() ) : $loop->the_post(); $url = esc_url( get_post_meta( get_the_ID(), 'wpcf-url', true )); ?> current_post + 1 != $loop->post_count ) : ?>

Types plugin XML file from our documentation to access this option.', 'maskitto-light' ); ?>

>