C:\xampp\htdocs\landing\wp-content\plugins\wp-smushit\app\views\tools\meta-box.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
/**
 * Tools meta box.
 *
 * @since 3.2.1
 * @package WP_Smush
 *
 * @var array $settings
 * @var array $settings_data
 * @var array $grouped_settings
 * @var int   $backups_count
 */

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

?>

<form id="wp-smush-settings-form" method="post">
    <input type="hidden" name="setting_form" id="setting_form" value="tools">
    <?php if ( is_multisite() && is_network_admin() ) : ?>
        <input type="hidden" name="setting-type" value="network">
    <?php endif; ?>

    <?php
    
foreach ( $settings_data as $name => $values ) {
        
// If not CDN setting - skip.
        
if ( ! in_array$name$grouped_settingstrue ) ) {
            continue;
        }

        
$label = ! empty( $settings_data$name ]['short_label'] ) ? $settings_data$name ]['short_label'] : $settings_data$name ]['label'];

        
// Show settings option.
        
$this->settings_rowWP_SMUSH_PREFIX $name$label$name$settings$name ] );
    }
    
?>

    <div class="sui-box-settings-row <?php echo WP_Smush::is_pro() ? '' 'sui-disabled'?>">
        <div class="sui-box-settings-col-1">
            <span class="<?php echo WP_Smush::is_pro() ? 'sui-settings-label' 'sui-settings-label-with-tag'?>">
                <?php echo esc_html$settings_data['bulk_restore']['short_label'] ); ?>
                <?php if ( ! WP_Smush::is_pro() ) : ?>
                    <span class="sui-tag sui-tag-pro"><?php esc_html_e'Pro''wp-smushit' ); ?></span>
                <?php endif; ?>
            </span>
            <span class="sui-description"><?php echo wp_kses_post$settings_data['bulk_restore']['desc'] ); ?></span>
        </div>

        <div class="sui-box-settings-col-2">
            <button type="button" class="sui-button sui-button-ghost" onclick="WP_Smush.restore.init()" <?php disabled( ! $backups_count ); ?>>
                <i class="sui-icon-undo" aria-hidden="true"></i>
                <?php esc_html_e'Restore Thumbnails''wp-smushit' ); ?>
            </button>
            <span class="sui-description">
                <?php
                printf
(
                    
/* translators: %1$s - a tag, %2$s - closing a tag */
                    
wp_kses'Note: This feature uses your original image uploads to regenerate thumbnails. If you have ā€œ%1$sSmush my original full size images%2$sā€ enabled, we can still restore your thumbnails, but the quality will reflect your compressed original image. ''wp-smushit' ),
                    
'<a href="' esc_urlnetwork_admin_url'admin.php?page=smush' ) ) . '">',
                    
'</a>'
                
);
                
?>
            </span>
        </div>
    </div>

</form>
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586