HEX
Server: LiteSpeed
System: Linux premium221.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
User: madepabj (2566)
PHP: 8.3.26
Disabled: NONE
Upload Files
File: //home/madepabj/gharana.pk/wp-content/plugins/wp-smushit/app/views/dashboard/directory-meta-box.php
<?php
/**
 * Directory compress meta box.
 *
 * @since 3.8.6
 * @package WP_Smush
 *
 * @var array $images  Array of images with errors.
 * @var int   $errors  Number of errors.
 *
 * @var Smush\App\Abstract_Page $this  Dashboard page.
 */

use Smush\Core\Directory\Directory_UI_Controller;

if ( ! defined( 'WPINC' ) ) {
	die;
}

?>

<p>
	<?php esc_html_e( 'In addition to smushing your media uploads, you may want to smush non WordPress images that are outside of your uploads directory. Get started by adding files and folders you wish to optimize.', 'wp-smushit' ); ?>
</p>

<?php if ( ! empty( $images ) ) : ?>
	<?php
	$directory_smush_ui_controller = new Directory_UI_Controller();
	$directory_smush_ui_controller->render_scan_result( 20 );
	?>
	<a href="<?php echo esc_url( $this->get_url( 'smush-bulk' ) ); ?>&smush__directory-scan=done#directory_smush-settings-row" class="sui-button sui-button-ghost" style="margin-top: 30px;">
		<span class="sui-icon-eye" aria-hidden="true"></span>
		<?php esc_html_e( 'View All', 'wp-smushit' ); ?>
	</a>
<?php else : ?>
	<a href="<?php echo esc_url( $this->get_url( 'smush-bulk' ) ); ?>&smush__directory-start#directory_smush-settings-row" class="sui-button sui-button-blue">
		<?php esc_html_e( 'Choose Directory', 'wp-smushit' ); ?>
	</a>
<?php endif; ?>