diff --git a/views/batch-manage.php b/views/batch-manage.php index 3c67a90..c3ff28b 100644 --- a/views/batch-manage.php +++ b/views/batch-manage.php @@ -1,96 +1,122 @@ get_batch($id); -if(is_null($batch)) { +$batch = WP_Batch_Processor::get_instance()->get_batch( $id ); +if ( is_null( $batch ) ) { echo 'Batch not found.'; + return; } $percentage = $batch->get_percentage(); + +$items_count = $batch->get_items_count(); +$processed_count = $batch->get_processed_count(); ?>

title; ?>

-
- -
- 0 ? 'width:'.$percentage.'%' : ''; - ?> -
-
-
- -
-
-
- is_finished()): ?> - - - - - - -
+ 0 ): ?> + +
+ +
+ 0 ? 'width:' . $percentage . '%' : ''; + ?> +
+
+
+ +
+
+ +
+ is_finished() ): ?> + + + + + + +
+ +
+

+

+
+ + +