Edit File by line
/home/barbar84/www/wp-conte.../plugins/wp-smush.../app/views
File: meta-box.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Meta box layout.
[2] Fix | Delete
*
[3] Fix | Delete
* @package WP_Smush
[4] Fix | Delete
*
[5] Fix | Delete
* @var \Smush\App\Abstract_Page $this
[6] Fix | Delete
*
[7] Fix | Delete
* @var array $callback Callback for meta box content.
[8] Fix | Delete
* @var array $callback_footer Callback for meta box footer.
[9] Fix | Delete
* @var array $callback_header Callback for meta box header.
[10] Fix | Delete
* @var string $orig_id Meta box ID.
[11] Fix | Delete
*/
[12] Fix | Delete
[13] Fix | Delete
if ( ! defined( 'WPINC' ) ) {
[14] Fix | Delete
die;
[15] Fix | Delete
}
[16] Fix | Delete
[17] Fix | Delete
?>
[18] Fix | Delete
[19] Fix | Delete
<div id="smush-box-<?php echo esc_attr( $id ); ?>" class="sui-<?php echo esc_attr( $id ); ?> <?php echo esc_attr( $args['box_class'] ); ?>">
[20] Fix | Delete
[21] Fix | Delete
<?php if ( is_callable( $callback_header ) ) : ?>
[22] Fix | Delete
<div class="<?php echo esc_attr( $args['box_header_class'] ); ?>">
[23] Fix | Delete
<?php call_user_func( $callback_header ); ?>
[24] Fix | Delete
</div><!-- end sui-box-title -->
[25] Fix | Delete
<?php elseif ( $this->view_exists( $orig_id . '/meta-box-header' ) ) : ?>
[26] Fix | Delete
<div class="<?php echo esc_attr( $args['box_header_class'] ); ?>">
[27] Fix | Delete
<?php
[28] Fix | Delete
$this->view(
[29] Fix | Delete
$orig_id . '/meta-box-header',
[30] Fix | Delete
array(
[31] Fix | Delete
'title' => $title,
[32] Fix | Delete
)
[33] Fix | Delete
);
[34] Fix | Delete
?>
[35] Fix | Delete
</div><!-- end sui-box-title -->
[36] Fix | Delete
<?php elseif ( $title ) : ?>
[37] Fix | Delete
<div class="<?php echo esc_attr( $args['box_header_class'] ); ?>">
[38] Fix | Delete
<h3 class="sui-box-title"><?php echo esc_html( $title ); ?></h3>
[39] Fix | Delete
</div><!-- end sui-box-title -->
[40] Fix | Delete
<?php endif; ?>
[41] Fix | Delete
[42] Fix | Delete
<?php if ( $args['box_content_class'] ) : ?>
[43] Fix | Delete
<div class="<?php echo esc_attr( $args['box_content_class'] ); ?>">
[44] Fix | Delete
<?php if ( is_callable( $callback ) ) : ?>
[45] Fix | Delete
<?php call_user_func( $callback ); ?>
[46] Fix | Delete
<?php else : ?>
[47] Fix | Delete
<?php $this->view( $orig_id . '-meta-box' ); ?>
[48] Fix | Delete
<?php endif; ?>
[49] Fix | Delete
</div><!-- end box_content_class -->
[50] Fix | Delete
<?php
[51] Fix | Delete
else :
[52] Fix | Delete
if ( is_callable( $callback ) ) {
[53] Fix | Delete
call_user_func( $callback );
[54] Fix | Delete
} else {
[55] Fix | Delete
$this->view( $orig_id . '-meta-box' );
[56] Fix | Delete
}
[57] Fix | Delete
endif;
[58] Fix | Delete
?>
[59] Fix | Delete
[60] Fix | Delete
<?php if ( is_callable( $callback_footer ) ) : ?>
[61] Fix | Delete
<div class="<?php echo esc_attr( $args['box_footer_class'] ); ?>">
[62] Fix | Delete
<?php call_user_func( $callback_footer ); ?>
[63] Fix | Delete
</div><!-- end sui-box-footer -->
[64] Fix | Delete
<?php elseif ( $this->view_exists( $orig_id . '/meta-box-footer' ) ) : ?>
[65] Fix | Delete
<div class="<?php echo esc_attr( $args['box_footer_class'] ); ?>">
[66] Fix | Delete
<?php $this->view( $orig_id . '/meta-box-footer' ); ?>
[67] Fix | Delete
</div><!-- end sui-box-footer -->
[68] Fix | Delete
<?php endif; ?>
[69] Fix | Delete
[70] Fix | Delete
<?php
[71] Fix | Delete
// Allows you to output any content within the stats box at the end.
[72] Fix | Delete
do_action( 'wp_smush_after_stats' );
[73] Fix | Delete
?>
[74] Fix | Delete
[75] Fix | Delete
</div><!-- end box-<?php echo esc_attr( $id ); ?> -->
[76] Fix | Delete
[77] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function