src/WPametu/Tool/BatchProcessor.php
public function render_screen(){
		$this->register_batches();
		?>
		<div class="wrap">
			<h2><?php $this->_e('Do Batch Actions') ?></h2>
			<?php if( $this->batches ): ?>
			<form id="batch-form" method="post" action="<?= admin_url('admin-ajax.php') ?>">
				<input type="hidden" name="action" value="wpametu_batch">
				<?php wp_nonce_field('wpametu_batch') ?>
				<input type="hidden" name="page_num" id="page_num" value="1" />
				<ol class="batch-container">
				<?php
					$counter = 0;
					foreach( $this->batches as $batch_class ):
						$counter++;
						/** @var Batch $batch */
						$batch = $batch_class::get_instance();
						$option = $this->option;
						if( isset($option[$batch_class]) ){
							$last = $option[$batch_class];
						}else{
							$last = false;
						}
				?>
				<li>
					<input type="radio" id="batch-<?= $counter ?>" name="batch_class" value="<?= esc_attr(get_class($batch)) ?>" />
					<label for="batch-<?= $counter ?>">
						<span class="dashicons dashicons-yes"></span>
						<strong><?= esc_html($batch->title) ?></strong><small>ver <?= esc_html($batch->version) ?></small>
						<span class="description"><?= nl2br(esc_html($batch->description)) ?></span>
						<?php if( false === $last ): ?>
							<span class="executed not-yet"><?php $this->_e('Never executed') ?></span>
						<?php else: ?>
							<span class="executed"><?= date_i18n(get_option('date_format').' '.get_option('time_format'), $last) ?></span>
						<?php endif; ?>
					</label>
				</li>
				<?php endforeach; ?>
				</ol>
				<?php submit_button($this->__('Execute')) ?>
				<div class="loader">
					<div><span class="dashicons dashicons-update"></span></div>
				</div>
			</form>
			<div id="batch-result">
				<h3><span class="dashicons dashicons-media-code"></span> <?php $this->_e('Console') ?></h3>
				<div class="console">

				</div>
			</div>
			<?php else: ?>
			<div class="error"><p><?php $this->_e('There is no classes.') ?></p></div>
			<?php endif; ?>
		</div>
		<?php
	}
public function render_screen(){
		$this->register_batches();
		?>
		<div class="wrap">
			<h2><?php $this->_e('Do Batch Actions') ?></h2>
			<?php if( $this->batches ): ?>
			<form id="batch-form" method="post" action="<?= admin_url('admin-ajax.php') ?>">
				<input type="hidden" name="action" value="wpametu_batch">
				<?php wp_nonce_field('wpametu_batch') ?>
				<input type="hidden" name="page_num" id="page_num" value="1" />
				<ol class="batch-container">
				<?php
					$counter = 0;
					foreach( $this->batches as $batch_class ):
						$counter++;
						/** @var Batch $batch */
						$batch = $batch_class::get_instance();
						$option = $this->option;
						if( isset($option[$batch_class]) ){
							$last = $option[$batch_class];
						}else{
							$last = false;
						}
				?>
				<li>
					<input type="radio" id="batch-<?= $counter ?>" name="batch_class" value="<?= esc_attr(get_class($batch)) ?>" />
					<label for="batch-<?= $counter ?>">
						<span class="dashicons dashicons-yes"></span>
						<strong><?= esc_html($batch->title) ?></strong><small>ver <?= esc_html($batch->version) ?></small>
						<span class="description"><?= nl2br(esc_html($batch->description)) ?></span>
						<?php if( false === $last ): ?>
							<span class="executed not-yet"><?php $this->_e('Never executed') ?></span>
						<?php else: ?>
							<span class="executed"><?= date_i18n(get_option('date_format').' '.get_option('time_format'), $last) ?></span>
						<?php endif; ?>
					</label>
				</li>
				<?php endforeach; ?>
				</ol>
				<?php submit_button($this->__('Execute')) ?>
				<div class="loader">
					<div><span class="dashicons dashicons-update"></span></div>
				</div>
			</form>
			<div id="batch-result">
				<h3><span class="dashicons dashicons-media-code"></span> <?php $this->_e('Console') ?></h3>
				<div class="console">

				</div>
			</div>
			<?php else: ?>
			<div class="error"><p><?php $this->_e('There is no classes.') ?></p></div>
			<?php endif; ?>
		</div>
		<?php
	}
public function render_screen ( ) { $ this -> register_batches ( ) ; ?>
		<div class="wrap">
			<h2><?php $ this -> _e ( 'Do Batch Actions' ) ?></h2>
			<?php if ( $ this -> batches ) : ?>
			<form id="batch-form" method="post" action="<?= admin_url ( 'admin-ajax.php' ) ?>">
				<input type="hidden" name="action" value="wpametu_batch">
				<?php wp_nonce_field ( 'wpametu_batch' ) ?>
				<input type="hidden" name="page_num" id="page_num" value="1" />
				<ol class="batch-container">
				<?php $ counter = 0 ; foreach ( $ this -> batches as $ batch_class ) : $ counter ++ ; /** @var Batch $batch */ $ batch = $ batch_class :: get_instance ( ) ; $ option = $ this -> option ; if ( isset ( $ option [ $ batch_class ] ) ) { $ last = $ option [ $ batch_class ] ; } else { $ last = false ; } ?>
				<li>
					<input type="radio" id="batch-<?= $ counter ?>" name="batch_class" value="<?= esc_attr ( get_class ( $ batch ) ) ?>" />
					<label for="batch-<?= $ counter ?>">
						<span class="dashicons dashicons-yes"></span>
						<strong><?= esc_html ( $ batch -> title ) ?></strong><small>ver <?= esc_html ( $ batch -> version ) ?></small>
						<span class="description"><?= nl2br ( esc_html ( $ batch -> description ) ) ?></span>
						<?php if ( false === $ last ) : ?>
							<span class="executed not-yet"><?php $ this -> _e ( 'Never executed' ) ?></span>
						<?php else : ?>
							<span class="executed"><?= date_i18n ( get_option ( 'date_format' ) . ' ' . get_option ( 'time_format' ) , $ last ) ?></span>
						<?php endif ; ?>
					</label>
				</li>
				<?php endforeach ; ?>
				</ol>
				<?php submit_button ( $ this -> __ ( 'Execute' ) ) ?>
				<div class="loader">
					<div><span class="dashicons dashicons-update"></span></div>
				</div>
			</form>
			<div id="batch-result">
				<h3><span class="dashicons dashicons-media-code"></span> <?php $ this -> _e ( 'Console' ) ?></h3>
				<div class="console">

				</div>
			</div>
			<?php else : ?>
			<div class="error"><p><?php $ this -> _e ( 'There is no classes.' ) ?></p></div>
			<?php endif ; ?>
		</div>
		<?php }
Render Admin screen
Render Admin screen