diff --git a/lib/CleantalkSP/SpbctWP/ListTable.php b/lib/CleantalkSP/SpbctWP/ListTable.php index 772c4a159..95b28f992 100644 --- a/lib/CleantalkSP/SpbctWP/ListTable.php +++ b/lib/CleantalkSP/SpbctWP/ListTable.php @@ -252,7 +252,7 @@ public function display()
displayRows($this->id); ?> + $this->displayRows(); ?> @@ -303,7 +303,7 @@ public function getTemplate() displayRows($this->id); ?> + $this->displayRows(); ?> @@ -417,10 +417,10 @@ public function displayColumnHeaders() unset($column_key); } - public function displayRows($id, $return = false) + public function displayRows($return = false) { $out = ''; - $blocks_count = 0; + foreach ( $this->items as $item ) { $item = (array)$item; @@ -428,13 +428,8 @@ public function displayRows($id, $return = false) $scheduled = !empty($item['uid']) && in_array($item['uid'], spbc_get_list_of_scheduled_critical_files_to_send()); $gray_start = $scheduled ? '' : ''; $gray_end = $scheduled ? '' : ''; - $blocks_count += 1; - $rows_count = 0; - $hide_show_mob_class_name = ''; - $first_row_class_name = ''; foreach ( $this->columns as $column_key => $column ) { - $rows_count += 1; $classes = "$column_key column-$column_key"; $classes .= isset($column['primary']) ? ' column-primary' : ''; $classes .= isset($column['class']) ? ' ' . $column['class'] : ''; @@ -450,19 +445,11 @@ public function displayRows($id, $return = false) $classes ); } else { - $class_key = "'" . $id . '_block_' . "'"; - if ($column_key != "ip_entry" && $column_key != 'user_login') { - $hide_show_mob_class_name = $id . '_block_' . $blocks_count; - $first_row_class_name = 'mob_entries'; - } - $out .= "