diff --git a/classes/class-woothemes-widget-our-team.php b/classes/class-woothemes-widget-our-team.php index c43a8a6..a94f9cb 100755 --- a/classes/class-woothemes-widget-our-team.php +++ b/classes/class-woothemes-widget-our-team.php @@ -103,6 +103,10 @@ public function widget( $args, $instance ) { $args['size'] = intval( $instance['size'] ); } + if ( isset( $instance['per_row'] ) && ( 0 < count( $instance['per_row'] ) ) ) { + $args['per_row'] = intval( $instance['per_row'] ); + } + if ( isset( $instance['category'] ) && is_numeric( $instance['category'] ) ) { $args['category'] = intval( $instance['category'] ); } @@ -169,6 +173,7 @@ public function update ( $new_instance, $old_instance ) { $instance['limit'] = intval( $new_instance['limit'] ); $instance['specific_id'] = intval( $new_instance['specific_id'] ); $instance['size'] = intval( $new_instance['size'] ); + $instance['per_row'] = intval( $new_instance['per_row'] ); $instance['category'] = intval( $new_instance['category'] ); /* The select box is returning a text value, so we escape it. */ @@ -211,6 +216,7 @@ public function form( $instance ) { 'effect' => 'fade', // Options: 'fade', 'none' 'pagination' => false, 'size' => 50, + 'per_row' => 3, 'category' => 0 ); @@ -221,15 +227,20 @@ public function form( $instance ) {

- +

- + +

+ +

+ +

- +

- +