diff --git a/includes/class-sp-ajax.php b/includes/class-sp-ajax.php index 5e21316b..b9ec97e6 100644 --- a/includes/class-sp-ajax.php +++ b/includes/class-sp-ajax.php @@ -706,12 +706,6 @@ class SP_AJAX {
-- -
@@ -777,7 +771,6 @@ class SP_AJAX { args.orderby = $div.find('[name=orderby]').val(); args.order = $div.find('[name=order]').val(); args.show_all_players_link = $div.find('[name=show_all_players_link]:checked').length; - args.show_names_on_hover = $div.find('[name=show_names_on_hover]:checked').length; } diff --git a/includes/widgets/class-sp-widget-player-gallery.php b/includes/widgets/class-sp-widget-player-gallery.php index d5a98128..2c56dc12 100644 --- a/includes/widgets/class-sp-widget-player-gallery.php +++ b/includes/widgets/class-sp-widget-player-gallery.php @@ -17,7 +17,6 @@ class SP_Widget_Player_Gallery extends WP_Widget { $orderby = empty($instance['orderby']) ? 'default' : $instance['orderby']; $order = empty($instance['order']) ? 'ASC' : $instance['order']; $show_all_players_link = empty($instance['show_all_players_link']) ? false : $instance['show_all_players_link']; - $show_names_on_hover = empty($instance['show_names_on_hover']) ? false : $instance['show_names_on_hover']; do_action( 'sportspress_before_widget', $args, $instance, 'player-gallery' ); echo $before_widget; @@ -28,7 +27,7 @@ class SP_Widget_Player_Gallery extends WP_Widget { // Action to hook into do_action( 'sportspress_before_widget_template', $args, $instance, 'player-gallery' ); - sp_get_template( 'player-gallery.php', array( 'id' => $id, 'title' => $caption, 'number' => $number, 'columns' => $columns, 'orderby' => $orderby , 'order' => $order, 'grouping' => 0, 'show_all_players_link' => $show_all_players_link, 'show_names_on_hover' => $show_names_on_hover ) ); + sp_get_template( 'player-gallery.php', array( 'id' => $id, 'title' => $caption, 'number' => $number, 'columns' => $columns, 'orderby' => $orderby , 'order' => $order, 'grouping' => 0, 'show_all_players_link' => $show_all_players_link ) ); // Action to hook into do_action( 'sportspress_after_widget_template', $args, $instance, 'player-gallery' ); @@ -47,7 +46,6 @@ class SP_Widget_Player_Gallery extends WP_Widget { $instance['orderby'] = strip_tags($new_instance['orderby']); $instance['order'] = strip_tags($new_instance['order']); $instance['show_all_players_link'] = $new_instance['show_all_players_link']; - $instance['show_names_on_hover'] = $new_instance['show_names_on_hover']; // Filter to hook into $instance = apply_filters( 'sportspress_widget_update', $instance, $new_instance, $old_instance, 'player-gallery' ); @@ -56,7 +54,7 @@ class SP_Widget_Player_Gallery extends WP_Widget { } function form( $instance ) { - $instance = wp_parse_args( (array) $instance, array( 'title' => '', 'id' => '', 'caption' => '', 'number' => 5, 'columns' => 2, 'orderby' => 'default', 'order' => 'ASC', 'show_all_players_link' => true, 'show_names_on_hover' => false ) ); + $instance = wp_parse_args( (array) $instance, array( 'title' => '', 'id' => '', 'caption' => '', 'number' => 5, 'columns' => 2, 'orderby' => 'default', 'order' => 'ASC', 'show_all_players_link' => true ) ); $title = strip_tags($instance['title']); $id = intval($instance['id']); $caption = strip_tags($instance['caption']); @@ -65,7 +63,6 @@ class SP_Widget_Player_Gallery extends WP_Widget { $orderby = strip_tags($instance['orderby']); $order = strip_tags($instance['order']); $show_all_players_link = $instance['show_all_players_link']; - $show_names_on_hover = $instance['show_names_on_hover']; // Action to hook into do_action( 'sportspress_before_widget_template_form', $this, $instance, 'player-gallery' ); @@ -132,9 +129,6 @@ class SP_Widget_Player_Gallery extends WP_Widget {
>
-> -
-