C:\xampp\htdocs\landing\wp-content\plugins\wp-smushit\app\views\bulk\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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
<?php
/**
 * Bulk Smush meta box.
 *
 * @since 2.9.0
 * @package WP_Smush
 *
 * @var Smush\Core\Core $core                  Instance of Smush\Core\Core
 * @var bool            $hide_pagespeed        Check whether to show PageSpeed recommendation or not.
 * @var bool            $is_pro                Check if PRO user or not.
 * @var bool            $lossy_enabled         Is lossy enabled.
 * @var integer         $unsmushed_count       Count of the images that need smushing.
 * @var integer         $resmush_count         Count of the images that need re-smushing.
 * @var integer         $total_images_to_smush Total count of all images to smush. Unsmushed images + images to re-smush.
 * @var string          $upgrade_url           Upgrade to PRO link.
 * @var string          $bulk_upgrade_url      Bulk Smush upgrade to PRO url.
 */

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

?>

<?php if ( !== absint$core->total_count ) ) : ?>
<p><?php esc_html_e'Bulk smush detects images that can be optimized and allows you to compress them in bulk.''wp-smushit' ); ?></p>
<?php endif; ?>

<?php
// If there are no images in media library.
if ( === absint$core->total_count ) ) {
    
?>
    <?php if ( ! apply_filters'wpmudev_branding_hide_branding'false ) ) : ?>
        <span class="wp-smush-no-image tc">
            <img src="<?php echo esc_urlWP_SMUSH_URL 'app/assets/images/smush-no-media.png' ); ?>"
                alt="<?php esc_attr_e'No attachments found - Upload some images''wp-smushit' ); ?>">
        </span>
    <?php endif; ?>
    <p class="wp-smush-no-images-content tc">
        <?php esc_html_e'We haven’t found any images in your media library yet so there’s no smushing to be done!''wp-smushit' ); ?><br>
        <?php esc_html_e'Once you upload images, reload this page and start playing!''wp-smushit' ); ?>
    </p>
    <span class="wp-smush-upload-images sui-no-padding-bottom tc">
        <a class="sui-button sui-button-blue tc" href="<?php echo esc_urladmin_url'media-new.php' ) ); ?>">
            <?php esc_html_e'UPLOAD IMAGES''wp-smushit' ); ?>
        </a>
    </span>
    <?php
    
return;
}
?>

<?php $this->view'progress-bar', array( 'count' => $total_images_to_smush ), 'common' ); ?>

<div class="smush-final-log sui-hidden">
    <div class="smush-bulk-errors"></div>
    <div class="smush-bulk-errors-actions sui-hidden">
        <a href="<?php echo esc_urladmin_url'upload.php' ) ); ?>" class="sui-button sui-button-icon sui-button-ghost">
            <i class="sui-icon-photo-picture" aria-hidden="true"></i>
            <?php esc_html_e'View all''wp-smushit' ); ?>
        </a>
    </div>
</div>

<?php
// This notice goes above the pagespeed recommendations in Pro.
if ( $is_pro ) :
    
$this->view'all-images-smushed-notice', array( 'all_done' => empty( $total_images_to_smush ) ), 'common' );
endif;
?>

<?php if ( ! $hide_pagespeed ) : ?>
    <div class="wp-smush-pagespeed-recommendation sui-border-frame <?php echo empty( $total_images_to_smush ) ? '' 'sui-hidden'?>">

        <p class="dismiss-recommendation sui-hidden-sm sui-hidden-md sui-hidden-lg" style="text-align: right;">
            <span class="sui-icon-close sui-sm" aria-hidden="true"></span>
            <?php esc_html_e'Dismiss''wp-smushit' ); ?>
        </p>
        <span class="smush-recommendation-title">
            <?php esc_html_e'Still having trouble with PageSpeed tests? Give these a go…''wp-smushit' ); ?>
        </span>

        <span class="dismiss-recommendation sui-actions-right sui-hidden-xs">
            <span class="sui-icon-close sui-sm" aria-hidden="true"></span>
            <?php esc_html_e'Dismiss''wp-smushit' ); ?>
        </span>

        <ol class="smush-recommendation-list">
            <?php if ( ! $is_pro ) : ?>
                <li class="smush-recommendation-lossy">
                    <?php
                    printf
(
                        
/* translators: %1$s: opening a tag, %2$s: closing a tag */
                        
esc_html__'Upgrade to Smush Pro for advanced lossy compression. %1$sTry pro free%2$s.''wp-smushit' ),
                        
'<a href="' esc_url$upgrade_url ) . '" target="_blank" style="color: #8D00B1;">',
                        
'</a>'
                    
);
                    
?>
                </li>
            <?php elseif ( ! $this->settings->get'lossy' ) ) : ?>
                <li class="smush-recommendation-lossy">
                    <?php
                    printf
(
                        
/* translators: %1$s: opening a tag, %2$s: closing a tag */
                        
esc_html__'Enable %1$sSuper-Smush%2$s for advanced lossy compression to optimize images further with almost no visible drop in quality.''wp-smushit' ),
                        
'<a href="#" class="wp-smush-lossy-enable">',
                        
'</a>'
                    
);
                    
?>
                </li>
            <?php endif; ?>
            <li class="smush-recommendation-resize">
                <?php
                
if ( ! $is_pro ) :
                    
printf(
                        
/* translators: %1$s: opening a tag, %2$s: closing a tag */
                        
esc_html__' %1$sRead article %2$s “How To Ace Google’s Image PageSpeed Recommendations With Smush”.''wp-smushit' ),
                        
'<a href="' esc_url'https://goo.gl/kCqWxS' ) . '" target="_blank">',
                        
'</a>'
                    
);
                else :
                    
printf(
                        
/* translators: %1$s: opening a tag, %2$s: closing a tag */
                        
esc_html__'Make sure your images are the right size for your theme. %1$sLearn more%2$s.''wp-smushit' ),
                        
'<a href="https://premium.wpmudev.org/blog/smush-pagespeed-image-compression/" target="_blank">',
                        
'</a>'
                    
);
                endif;
                
?>
            </li>
            <?php if ( ! $this->settings->get'resize' ) ) : ?>
                <li class="smush-recommendation-resize-original">
                    <?php
                    printf
(
                        
/* translators: %1$s: opening a tag, %2$s: closing a tag */
                        
esc_html__'Enable %1$sResize Full Size Images%2$s to scale big images down to a reasonable size and save a ton of space.''wp-smushit' ),
                        
'<a href="#" class="wp-smush-resize-enable">',
                        
'</a>'
                    
);
                    
?>
                </li>
            <?php endif; ?>
        </ol>
    </div>
<?php endif; ?>

<?php
// This notice goes below the pagespeed recommendations in Free.
if ( ! $is_pro ) :
    
$this->view'all-images-smushed-notice', array( 'all_done' => empty( $total_images_to_smush ) ), 'common' );
endif;
?>

<div class="wp-smush-bulk-wrapper sui-border-frame<?php echo empty( $total_images_to_smush ) ? ' sui-hidden' ''?>">

    <div id="wp-smush-bulk-content">
        <?php WP_Smush::get_instance()->admin()->print_pending_bulk_smush_content$total_images_to_smush$resmush_count$unsmushed_count ); ?>
    </div>

    <div id="wp-smush-all-button-container">
        <button type="button" class="wp-smush-all sui-button sui-button-blue" title="<?php esc_attr_e'Click to start Bulk Smushing images in Media Library''wp-smushit' ); ?>">
            <?php esc_html_e'BULK SMUSH NOW''wp-smushit' ); ?>
        </button>
    </div>

    <?php if ( ! $is_pro ) : ?>
        <div id="wp-smush-bulk-smush-upsell-row" class="sui-row">
            <div class="sui-col-sm-6">
                <h3><?php esc_html_e'Free Trial + 30% Discount for Smush users!''wp-smushit' ); ?></h3>
                <p>
                    <?php
                    
if ( Smush\Core\Core::$max_free_bulk $total_images_to_smush ) :
                        
printf(
                            
/* translators: 1. total count of images to smush, 2. opening 'strong' tag, 3. closing 'strong' tag. */
                            
esc_html__'Bulk smush %2$sall your %1$s images%3$s in one-click and get a %2$s30%% Welcome Discount%3$s just for Smush Free users!''wp-smushit' ),
                            
esc_html$total_images_to_smush ),
                            
'<strong>',
                            
'</strong>'
                        
);
                    else :
                        
esc_html_e'Get Smush Pro and bulk optimize every image you’ve ever added to your site with one click.''wp-smushit' );
                    endif;
                    
?>
                </p>

                <a href="<?php echo esc_url$bulk_upgrade_url ); ?>" class="sui-button sui-button-purple" target="_blank">
                    <?php esc_html_e'Try pro absolutely free''wp-smushit' ); ?>
                </a>
                <p><small><?php esc_html_e'*Discount applies to all annual plans.''wp-smushit' ); ?></small></p>
            </div>
            <div class="sui-col-sm-6 wp-smush-hidden-xl">
                <ul class="smush-pro-features">
                    <li class="smush-pro-feature-row"><div class="smush-pro-feature-title">
                        <?php esc_html_e'Fix Google PageSpeed image recommendations''wp-smushit' ); ?>
                    </div></li>
                    <li class="smush-pro-feature-row"><div class="smush-pro-feature-title">
                        <?php esc_html_e'10 GB Smush CDN''wp-smushit' ); ?>
                    </div></li>
                    <li class="smush-pro-feature-row"><div class="smush-pro-feature-title">
                        <?php esc_html_e'Smush original images''wp-smushit' ); ?>
                    </div></li>
                    <li class="smush-pro-feature-row"><div class="smush-pro-feature-title">
                        <?php esc_html_e'2x better compression''wp-smushit' ); ?>
                    </div></li>
                    <li class="smush-pro-feature-row"><div class="smush-pro-feature-title">
                        <?php esc_html_e'Serve a next-gen format with WebP conversion''wp-smushit' ); ?>
                    </div></li>
                    <li class="smush-pro-feature-row"><div class="smush-pro-feature-title">
                        <?php esc_html_e'Copy your full size images''wp-smushit' ); ?>
                    </div></li>
                </ul>
            </div>

            <div class="sui-col-sm-3 wp-smush-show-xl">
                <ul class="smush-pro-features">
                    <li class="smush-pro-feature-row"><div class="smush-pro-feature-title">
                        <?php esc_html_e'Fix Google PageSpeed image recommendations''wp-smushit' ); ?>
                    </div></li>
                    <li class="smush-pro-feature-row"><div class="smush-pro-feature-title">
                        <?php esc_html_e'10 GB Smush CDN''wp-smushit' ); ?>
                    </div></li>
                    <li class="smush-pro-feature-row"><div class="smush-pro-feature-title">
                        <?php esc_html_e'Smush original images''wp-smushit' ); ?>
                    </div></li>
                </ul>
            </div>
            <div class="sui-col-sm-3 wp-smush-show-xl">
                <ul class="smush-pro-features">
                    <li class="smush-pro-feature-row"><div class="smush-pro-feature-title">
                        <?php esc_html_e'2x better compression''wp-smushit' ); ?>
                    </div></li>
                    <li class="smush-pro-feature-row"><div class="smush-pro-feature-title">
                        <?php esc_html_e'Serve a next-gen format with WebP conversion''wp-smushit' ); ?>
                    </div></li>
                    <li class="smush-pro-feature-row"><div class="smush-pro-feature-title">
                        <?php esc_html_e'Copy your full size images''wp-smushit' ); ?>
                    </div></li>
                </ul>
            </div>
        </div>

    <?php endif; ?>

</div>

<?php
if ( $is_pro && $lossy_enabled ) {
    
?>
    <p class="wp-smush-enable-lossy tc sui-hidden">
        <?php esc_html_e'Tip: Enable Super-Smush in the Settings area to get even more savings with almost no visible drop in quality.''wp-smushit' ); ?>
    </p>
    <?php
}
x

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