C:\xampp\htdocs\landing\wp-content\plugins\wp-optimize\templates\minify\css-settings-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
<?php if (!defined('WPO_VERSION'))  die('No direct access allowed'); ?>
<div class="wpo_section wpo_group">
    <div id="wpo_settings_warnings"></div>
    <form>
        <h3><?php _e('CSS options''wp-optimize'); ?></h3>
        <div class="wpo-fieldgroup">
            <fieldset>
                <label for="enable_css_minification">
                    <input
                        name="enable_css_minification"
                        type="checkbox"
                        id="enable_css_minification"
                        value="1"
                        <?php echo checked($wpo_minify_options['enable_css_minification']); ?>
                    >
                    <?php _e('Enable minification of CSS files''wp-optimize'); ?>
                </label>
                <label for="enable_merging_of_css">
                    <input
                        name="enable_merging_of_css"
                        type="checkbox"
                        id="enable_merging_of_css"
                        value="1"
                        <?php echo checked($wpo_minify_options['enable_merging_of_css']); ?>
                    >
                    <?php _e('Enable merging of CSS files''wp-optimize'); ?>
                    <span tabindex="0" data-tooltip="<?php _e('If some of the design is breaking on the frontend, disabling merging of CSS might fix the issues.''wp-optimize');?>"><span class="dashicons dashicons-editor-help"></span> </span>
                </label>
                <label for="inline_css">
                    <input
                        name="inline_css"
                        type="checkbox"
                        id="inline_css"
                        value="1"
                        <?php echo checked($wpo_minify_options['inline_css']); ?>
                    >
                    <?php _e('Inline CSS''wp-optimize'); ?> - <?php _e('Recommended if the CSS files are small enough.''wp-optimize'); ?>
                    <span tabindex="0" data-tooltip="<?php _e('When enabled, the CSS files generated by WP-Optmize will be inlined.''wp-optimize');?>"><span class="dashicons dashicons-editor-help"></span> </span>
                </label>
                <label for="remove_print_mediatypes">
                    <input
                        name="remove_print_mediatypes"
                        type="checkbox"
                        id="remove_print_mediatypes"
                        value="1"
                        <?php echo checked($wpo_minify_options['remove_print_mediatypes']); ?>
                    >
                    <?php _e('Strip the "print" related stylesheets''wp-optimize'); ?>
                    <span tabindex="0" data-tooltip='<?php _e('When selected, any CSS files with the media type "print" will be removed.''wp-optimize');?> <?php _e('Enable if your site does not need specific print styles.''wp-optimize');?>'><span class="dashicons dashicons-editor-help"></span> </span>
                </label>
                <?php if (WP_OPTIMIZE_SHOW_MINIFY_ADVANCED) : ?>
                    <label for="remove_css">
                        <input
                            name="remove_css"
                            type="checkbox"
                            id="remove_css"
                            value="1"
                            <?php echo checked($wpo_minify_options['remove_css']); ?>
                        >
                        <?php _e('Dequeue all CSS files''wp-optimize'); ?>
                        <span tabindex="0" data-tooltip="<?php _e('This is useful if you want to test your critical path CSS''wp-optimize');?>"><span class="dashicons dashicons-editor-help"></span> </span>
                    </label>
                <?php endif; ?>
            </fieldset>
        </div>

        <h3><?php _e('Exclude the following CSS files from processing''wp-optimize'); ?></h3>
        <div class="wpo-fieldgroup">
            <fieldset>
                <label class="wpo-label__bold" for="exclude_css">
                    <?php _e('Any CSS files that match the paths below will be completely ignored.''wp-optimize'); ?>
                    <br/><?php _e('Use this if you are having issues with a specific CSS file''wp-optmize'); ?>
                    <span tabindex="0" data-tooltip="<?php esc_attr_e('Any file present here will be loaded normally by WordPress''wp-optimize');?>"><span class="dashicons dashicons-editor-help"></span></span>
                </label>
                <textarea
                    name="exclude_css"
                    rows="7" cols="50"
                    id="exclude_css"
                    class="large-text code"
                    placeholder="<?php esc_attr_e('e.g.: /bootstrap.css''wp-optimize'); ?>"
                ><?php echo esc_textarea($wpo_minify_options['exclude_css']);?></textarea>
                <br>
                <?php _e('Some files known for causing issues when combined / minified are excluded by default.''wp-optimize'); ?> <?php _e('You can see / edit them in the Advanced tab.''wp-optimize'); ?>
            </fieldset>
        </div>

        <h3><?php _e('Load the following CSS files asynchronously''wp-optimize'); ?></h3>
        <div class="wpo-fieldgroup">
            <fieldset>
                <label class="wpo-label__bold" for="async_css">
                    <?php _e('Any CSS files that match the paths below will be loaded asynchronously.''wp-optimize'); ?><br>
                    <?php _e('Use this if you have a completely independent stylesheet or would like to exclude stylesheets from page speed tests (PageSpeed Insights, GTMetrix...)''wp-optmize'); ?>
                    <span tabindex="0" data-tooltip="<?php esc_attr_e("e.g. You may want to exclude 'fontawesome' or other libraries from the initial load"'wp-optimize');?>"><span class="dashicons dashicons-editor-help"></span></span>
                </label>
                <textarea
                    name="async_css"
                    rows="7"
                    cols="50"
                    id="async_css"
                    class="large-text code"
                    placeholder="<?php esc_attr_e('e.g.: /wp-content/themes/my-theme/css/custom-font.css''wp-optimize'); ?>"
                ><?php echo $wpo_minify_options['async_css']; ?></textarea>
            </fieldset>
        </div>

        <?php if (WP_OPTIMIZE_SHOW_MINIFY_ADVANCED) : ?>
            <h3><?php _e('Enable asynchronous CSS''wp-optimize'); ?></h3>
            <div class="wpo-fieldgroup">
                <fieldset>
                    <label for="loadcss">
                        <input
                            name="loadcss"
                            type="checkbox"
                            id="loadcss"
                            value="1"
                            <?php echo checked($wpo_minify_options['loadcss']); ?>
                        >
                        <?php _e('Load all CSS files asynchronously''wp-optimize'); ?>
                        <span tabindex="0" data-tooltip="<?php _e('Note that inline CSS won\'t work if this is active''wp-optimize');?>"><span class="dashicons dashicons-editor-help"></span> </span>
                    </label>
                    <p>
                        <?php _e('If you have multiple css files per media type, they may load out of order and break your design when loaded asynchronously.''wp-optimize'); ?>
                    </p>
                </fieldset>
            </div>
        <?php endif; ?>

        <?php if (WP_OPTIMIZE_SHOW_MINIFY_ADVANCED) : ?>
            <h3>
                <?php _e('Critical path CSS''wp-optimize'); ?>
            </h3>
            <div class="wpo-fieldgroup">
                <fieldset>
                    <label class="wpo-label__bold" for="critical_path_css"><?php _e('Fallback CSS''wp-optimize'); ?></label>
                    <textarea
                        name="critical_path_css"
                        rows="7"
                        cols="50"
                        id="critical_path_css" class="large-text code"
                        placeholder=".css-code { display: block; }"
                    ><?php echo $wpo_minify_options['critical_path_css']; ?></textarea>
                </fieldset>

                <fieldset>
                    <label class="wpo-label__bold" for="critical_path_css_is_front_page"><?php _e('is_front_page (conditional)''wp-optimize'); ?> <span tabindex="0" data-tooltip="<?php esc_attr_e('This will be inlined after the above if your page matches the WP conditional is_front_page()''wp-optimize');?>"><span class="dashicons dashicons-editor-help"></span></span></label>
                    <textarea
                        name="critical_path_css_is_front_page"
                        rows="7"
                        cols="50"
                        id="critical_path_css_is_front_page"
                        class="large-text code" 
                        placeholder=".css-code { display: block; }"
                    ><?php echo $wpo_minify_options['critical_path_css_is_front_page']; ?></textarea>
                </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>
    </form>
</div>
x

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