C:\xampp\htdocs\landing\wp-content\plugins\wp-optimize\templates\minify\advanced-tab.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
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
<?php if (!defined('WPO_VERSION')) die('No direct access allowed'); ?>
<div id="wp-optimize-minify-advanced" class="wpo_section wpo_group">
    <h3><?php _e('Minify cache information''wp-optimize'); ?></h3>
    <div class="wpo-fieldgroup">
        <p>
            <?php _e('Current cache path:''wp-optimize'); ?>
            <strong class="wpo_min_cache_path">
                <?php

                $cache_path 
WPO_MINIFY_PHP_VERSION_MET WP_Optimize_Minify_Cache_Functions::cache_path() : array("cachedir" => __('none''wp-optimize'));
                echo 
htmlspecialchars($cache_path['cachedir']);
                
?>
            </strong>
        </p>

        <h3><?php _e('List of processed files''wp-optimize'); ?></h3>

        <h4><?php _e('JavaScript files''wp-optimize'); ?></h4>
        <div id="wpo_min_jsprocessed">
            <ul class="processed">
                <?php
                    $processed_js 
0;
                    
// Some files exist
                    
if ($files && isset($files['js']) && is_array($files['js']) && $files['js']) {
                        
$processed_js count($files['js']);
                        foreach (
$files['js'] as $js_file) {
                            
WP_Optimize()->include_template(
                                
'minify/cached-file.php',
                                
false,
                                array(
                                    
'file' => $js_file
                                
)
                            );
                        }
                    }
                
?>
                <li class="no-files-yet<?php echo $processed_js ' hidden' ''?>">
                    <span class="filename"><?php _e('There are no processed files yet.''wp-optimize'); ?></span>
                </li>
            </ul>
        </div>

        <h4><?php _e('CSS files''wp-optimize'); ?></h4>
        <div id="wpo_min_cssprocessed">
        <?php if ($wpo_minify_options['inline_css']) : ?>
            <p><?php _e('There are no merged CSS files listed here, because you are inlining all CSS directly''wp-optimize'); ?></p>
        <?php else : ?>
            <ul class="processed">
                <?php
                    $processed_css 
0;
                    if (
$files && isset($files['css']) && is_array($files['css']) && $files['css']) {
                        
$processed_css count($files['css']);
                        foreach (
$files['css'] as $css_file) {
                            
WP_Optimize()->include_template(
                                
'minify/cached-file.php',
                                
false,
                                array(
                                    
'file' => $css_file
                                
)
                            );
                        }
                    }
                    
// No files were found
                
?>
                <li class="no-files-yet<?php echo $processed_css ' hidden' ''?>">
                    <span class="filename"><?php _e('There are no processed files yet.''wp-optimize'); ?></span>
                </li>
            </ul>
        <?php endif; ?>
        </div>        
        
    </div>
    <h3><?php _e('Development options''wp-optimize'); ?></h3>
    <div class="wpo-fieldgroup">
        <div class="switch-container">
            <label class="switch">
                <input
                    name="debug"
                    id="wpo_min_enable_minify_debug"
                    class="debug wpo-save-setting"
                    type="checkbox"
                    value="true"
                    <?php checked($wpo_minify_options['debug']);?>
                >
                <span class="slider round"></span>
            </label>
            <label for="wpo_min_enable_minify_debug">
                <?php _e('Enable debug mode''wp-optimize'); ?>
            </label>
        </div>
        <p><?php _e('Enabling the debug mode will add various comments and show more information in the files list.''wp-optimize'); ?> <?php _e('It also adds extra actions in the status tab.''wp-optimize'); ?></p>
    </div>

    <form method="post" action="#">

    <h3><?php _e('Default exclusions''wp-optimize'); ?></h3>
    <div class="wpo-fieldgroup">
        <div class="switch-container">
            <label class="switch">
                <input
                    name="edit_default_exclutions"
                    id="wpo_min_edit_default_exclutions"
                    class="debug wpo-save-setting"
                    type="checkbox"
                    value="true"
                    <?php checked($wpo_minify_options['edit_default_exclutions']);?>
                >
                <span class="slider round"></span>
            </label>
            <label for="wpo_min_edit_default_exclutions">
                <?php _e('Edit default exclusions''wp-optimize'); ?>
            </label>
        </div>
        <p><?php _e('By default, WP-Optimize excludes a list of files that are known to cause problems when minified or combined.'); ?>
        <?php _e('Enable this option to see or edit those files.'); ?></p>
        <div class="wpo-minify-default-exclusions<?php echo $wpo_minify_options['edit_default_exclutions'] ? '' ' hidden'?>">
            <h3><?php _e('Known incompatible files''wp-optimize'); ?></h3>
            <fieldset>
                <label for="ignore_list">
                    <?php _e('List of files that can\'t or shouldn\'t be minified or merged.''wp-optimize'); ?>
                    <?php _e('Do not edit this if you are not sure what it is.''wp-optimize'); ?>
                    <br><?php _e('Tick the checkbox to merge / minify the corresponding file anyways.''wp-optimize'); ?>
                    <span tabindex="0" data-tooltip="<?php esc_attr_e('Files that have been consistently reported by other users to cause trouble when merged''wp-optimize');?>"><span class="dashicons dashicons-editor-help"></span> </span>
                </label>
                <?php
                    $user_excluded_ignorelist_items 
is_array($wpo_minify_options['ignore_list']) ? $wpo_minify_options['ignore_list'] : array();
                    if (empty(
$default_ignore)) {
                        echo 
'<p>'.__('Refresh the page to see the list''wp-optimize').'</p>';
                    } else {
                        foreach (
$default_ignore as $ignore_item) {
                
?>
                    <label class="ignore-list-item"><input type="checkbox" name="ignore_list[]" value="<?php echo esc_attr($ignore_item); ?>"<?php checked(in_array($ignore_item$user_excluded_ignorelist_items)); ?>><span class="ignore-item"><?php echo $ignore_item?></span></label>
                <?php
                        
}
                    }
                
?>
            </fieldset>

            <h3><?php _e('IE incompatible files''wp-optimize'); ?></h3>
            <fieldset>
                <label for="blacklist">
                    <?php _e('List of excluded files used for IE compatibility.''wp-optimize'); ?>
                    <?php _e('Do not edit this if you are not sure what it is.''wp-optimize'); ?>
                    <br><?php _e('Tick the checkbox to merge / minify the corresponding file anyways.''wp-optimize'); ?>
                </label>
                <?php
                    $user_excluded_blacklist_items 
is_array($wpo_minify_options['blacklist']) ? $wpo_minify_options['blacklist'] : array();
                    if (empty(
$default_ie_blacklist)) {
                        echo 
'<p>'.__('Refresh the page to see the list''wp-optimize').'</p>';
                    } else {
                        foreach (
$default_ie_blacklist as $blacklist_item) {
                
?>
                    <label class="black-list-item"><input type="checkbox" name="blacklist[]" value="<?php echo esc_attr($blacklist_item); ?>"<?php checked(in_array($blacklist_item$user_excluded_blacklist_items)); ?>><span class="ignore-item"><?php echo $blacklist_item?></span></label>
                <?php
                        
}
                    }
                
?>
            </fieldset>
        </div>
    </div>

    <?php if (WP_OPTIMIZE_SHOW_MINIFY_ADVANCED) : ?>
        <div class="wpo-fieldgroup">
            <fieldset>
                    <br />
                    <label for="enabled_css_preload">
                        <input
                            name="enabled_css_preload"
                            type="checkbox"
                            id="enabled_css_preload"
                            value="1"
                            <?php echo checked($wpo_minify_options['enabled_css_preload']); ?>
                        >
                        <?php _e('Enable WP-O Minify CSS files preloading''wp-optimize'); ?>
                        <span tabindex="0" data-tooltip="<?php esc_attr_e('Automatically create HTTP headers for WP-O Minify-generated CSS files (when not inlined)''wp-optimize');?>"><span class="dashicons dashicons-editor-help"></span> </span>
                    </label>
                    <br />
                    <label for="enabled_js_preload">
                        <input
                            name="enabled_js_preload"
                            type="checkbox"
                            id="enabled_js_preload"
                            value="1"
                            <?php echo checked($wpo_minify_options['enabled_js_preload']); ?>
                        >
                        <?php _e('Enable WP-O Minify JavaScript files Preload''wp-optimize'); ?>
                        <span tabindex="0" data-tooltip="<?php esc_attr_e('Automatically create HTTP headers for WP-O Minify-generated JS files''wp-optimize');?>"><span class="dashicons dashicons-editor-help"></span> </span>
                    </label>
                </fieldset>
            </div>
            <h3 class="title">
                <?php _e('HTTP Headers''wp-optimize'); ?>
            </h3>
            <p class="wpo_min-bold-green">
                <?php _e('Preconnect Headers: This will add link headers to your HTTP response to instruct the browser to preconnect to other domains (e.g.: fonts, images, videos, etc)''wp-optimize'); ?>
            </p>
            <p class="wpo_min-bold-green">
                <?php _e('Preload Headers: Use this for preloading specific, high priority resources that exist across all of your pages.''wp-optimize'); ?>
            </p>
            <p class="wpo_min-bold-green">
                <?php _e('Note: Some servers do not support http push or headers. If you get a server error: a) rename the plugin directory via (S)FTP or your hosting control panel, b) go to your plugins page (plugin will be disabled on access), c) rename it back and d) activate it back (reset to default settings).''wp-optimize'); ?>    
            </p>

            <h3><?php _e('Preconnect Headers''wp-optimize'); ?></h3>
            <div class="wpo-fieldgroup">
                <fieldset>
                    <legend class="screen-reader-text">
                        <?php _e('Preconnect''wp-optimize'); ?>
                    </legend>
                    <label for="hpreconnect">
                        <span class="wpo_min-label-pad">
                            <?php _e('Use only the strictly minimum necessary domain names, (CDN or frequent embeds):''wp-optimize'); ?>
                        </span>
                    </label>
                    <textarea
                        name="hpreconnect"
                        rows="7"
                        cols="50"
                        id="hpreconnect"
                        class="large-text code"
                        placeholder="https://cdn.example.com"
                        disabled
                    ><?php echo $wpo_minify_options['hpreconnect']; ?></textarea>
                    <p>
                        <?php _e('Use the complete scheme (http:// or https://) followed by the domain name only (no file paths).''wp-optimize'); ?>
                    </p>
                    <p>
                        <?php _e('Examples: https://fonts.googleapis.com, https://fonts.gstatic.com''wp-optimize'); ?>
                    </p>
                </fieldset>
            </div>
    
            <h3><?php _e('External URLs to merge''wp-optimize'); ?></h3>
            <div class="wpo-fieldgroup">
                <fieldset>
                    <label for="merge_allowed_urls">
                        <?php _e('List of external domains that can be fetched and merged:''wp-optimize'); ?>
                        <span tabindex="0" data-tooltip="<?php esc_attr_e('Add any external "domain" for JavaScript or CSS files that can be fetched and merged by WP-Optimize, e.g.: cdnjs.cloudflare.com''wp-optimize');?>"><span class="dashicons dashicons-editor-help"></span> </span>
                    </label>
                    <textarea
                        name="merge_allowed_urls"
                        rows="7"
                        cols="50"
                        id="merge_allowed_urls"
                        class="large-text code"
                        placeholder="<?php esc_attr_e('e.g.: example.com''wp-optimize'); ?>"
                    ><?php echo $wpo_minify_options['merge_allowed_urls']; ?></textarea>
                </fieldset>
            </div>
    
            <h1><?php _e('CDN Options''wp-optimize'); ?></h1>
            <p class="wpo_min-bold-green">
                <?php printf(__('When the "Enable defer on processed JavaScript files" option is enabled, JavaScript and CSS files will not be loaded from the CDN due to %scompatibility%s reasons.''wp-optimize'), '<a target="_blank" href="https://www.chromestatus.com/feature/5718547946799104">''</a>'); ?>
                <?php _e('However, you can define a CDN Domain below, in order to use it for all of the static assets "inside" your CSS and JS files.''wp-optimize'); ?>
            </p>
    
            <h3><?php _e('Your CDN domain''wp-optimize'); ?></h3>
            <div class="wpo-fieldgroup">
                <fieldset>
                    <label for="cdn_url">
                        <p>
                            <input
                                type="text"
                                name="cdn_url"
                                id="cdn_url"
                                value="<?php echo isset($wpo_minify_options['cdn_url']) ? $wpo_minify_options['cdn_url'] : ''?>"
                                size="80"
                            />
                        </p>
                        <p>
                            <?php _e('Will rewrite the static assets urls inside WP-O Minify-merged files to your CDN domain. Usage: cdn.example.com''wp-optimize'); ?>
                        </p>
                    </label>
                </fieldset>
            </div>
    
            <h3><?php _e('Force the CDN Usage''wp-optimize'); ?></h3>
            <div class="wpo-fieldgroup">
                <p class="wpo_min-bold-green wpo_min-rowintro">
                    <?php _e('If you force this, your JS files may not load for certain slow internet users on Google Chrome.''wp-optimize'); ?>
                </p>
                <fieldset>
                    <label for="cdn_force">
                        <input
                            name="cdn_force"
                            type="checkbox"
                            id="cdn_force"
                            value="1"
                            <?php echo checked($wpo_minify_options['cdn_force']); ?>
                        >
                        <?php _e('I know what I\'m doing...''wp-optimize'); ?>
                        <span tabindex="0" data-tooltip="<?php esc_attr_e('Load my JS files from the CDN, even when "defer for Pagespeed Insights" is enabled''wp-optimize');?>"><span class="dashicons dashicons-editor-help"></span> </span>
                    </label>
                </fieldset>
            </div>
    <?php endif; ?>

        <p class="submit">
            <input
                class="wp-optimize-save-minify-settings button button-primary"
                type="submit"
                value="<?php esc_attr_e('Save settings''wp-optimize'); ?>"
            >
            <img class="wpo_spinner" src="<?php echo esc_attr(admin_url('images/spinner-2x.gif')); ?>" alt="...">
            <span class="save-done dashicons dashicons-yes display-none"></span>
        </p>
        <input type="hidden" name="minify_advanced_tab" value="1">
    </form>
</div>
x

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