|
@@ -0,0 +1,234 @@
|
|
1
|
+
|
|
2
|
+<div class="formulaire_spip formulaire_configurer formulaire_#FORM">
|
|
3
|
+
|
|
4
|
+ <h3 class="titrem"><:htmlminifier:cfg_titre_parametrages:></h3>
|
|
5
|
+
|
|
6
|
+ [<p class="reponse_formulaire reponse_formulaire_ok">(#ENV*{message_ok})</p>]
|
|
7
|
+ [<p class="reponse_formulaire reponse_formulaire_ok">(#ENV{message_ok_config})</p>]
|
|
8
|
+ [<p class="reponse_formulaire reponse_formulaire_erreur">(#ENV*{message_erreur})</p>]
|
|
9
|
+
|
|
10
|
+ <form method="post" action="#ENV{action}">
|
|
11
|
+ <div>
|
|
12
|
+ #ACTION_FORMULAIRE
|
|
13
|
+ <input type="hidden" name="_meta_casier" value="htmlminifier" />
|
|
14
|
+
|
|
15
|
+ <div class="barre_onglet clearfix">
|
|
16
|
+ <p>
|
|
17
|
+ <:htmlminifier:config_label:>:
|
|
18
|
+ <ul>
|
|
19
|
+ <li><a class="ajax nohistory" href="[(#URL_ACTION_AUTEUR{htmlminifier_appliquer_options, super_safe, #SELF})]"><:htmlminifier:config_super_safe:></a></li>
|
|
20
|
+ <li><a class="ajax nohistory" href="[(#URL_ACTION_AUTEUR{htmlminifier_appliquer_options, safe, #SELF})]"><:htmlminifier:config_safe:></a></li>
|
|
21
|
+ <li><a class="ajax nohistory" href="[(#URL_ACTION_AUTEUR{htmlminifier_appliquer_options, moderate, #SELF})]"><:htmlminifier:config_moderate:></a></li>
|
|
22
|
+ <li><a class="ajax nohistory" href="[(#URL_ACTION_AUTEUR{htmlminifier_appliquer_options, fully_optimised, #SELF})]"><:htmlminifier:config_fully_optimised:></a></li>
|
|
23
|
+ </ul>
|
|
24
|
+ </p>
|
|
25
|
+ </div>
|
|
26
|
+
|
|
27
|
+ <div class="tabs" style="margin-bottom: 2em;">
|
|
28
|
+ <ul>
|
|
29
|
+ <li>
|
|
30
|
+ <a href="#section-general"><:htmlminifier:section_general:></a>
|
|
31
|
+ </li>
|
|
32
|
+ <li>
|
|
33
|
+ <a href="#section-css"><:htmlminifier:section_css:></a>
|
|
34
|
+ </li>
|
|
35
|
+ <li>
|
|
36
|
+ <a href="#section-javascript"><:htmlminifier:section_javascript:></a>
|
|
37
|
+ </li>
|
|
38
|
+ </ul>
|
|
39
|
+ <div id="section-general">
|
|
40
|
+ <div class="editer-groupe">
|
|
41
|
+
|
|
42
|
+ [(#SAISIE{selection, compression_mode,
|
|
43
|
+ conteneur_class=pleine_largeur,
|
|
44
|
+ defaut=all_whitespace_not_newlines,
|
|
45
|
+ cacher_option_intro=oui,
|
|
46
|
+ explication=<:htmlminifier:compression_mode_explication:>,
|
|
47
|
+ datas=#ARRAY{
|
|
48
|
+ none, <:htmlminifier:compression_mode_none:>,
|
|
49
|
+ all_whitespace_not_newlines, <:htmlminifier:compression_mode_all_whitespace_not_newlines:>,
|
|
50
|
+ all_whitespace, <:htmlminifier:compression_mode_all_whitespace:>}
|
|
51
|
+ })]
|
|
52
|
+
|
|
53
|
+ [(#SAISIE{case, clean_html_comments,
|
|
54
|
+ conteneur_class=pleine_largeur,
|
|
55
|
+ valeur_oui=1,
|
|
56
|
+ defaut=on,
|
|
57
|
+ label_case=<:htmlminifier:clean_html_comments_label_case:>,
|
|
58
|
+ explication=<:htmlminifier:clean_html_comments_explication:>})]
|
|
59
|
+
|
|
60
|
+ [(#SAISIE{case, merge_multiple_head_tags,
|
|
61
|
+ conteneur_class=pleine_largeur,
|
|
62
|
+ valeur_oui=1,
|
|
63
|
+ defaut=on,
|
|
64
|
+ label_case=<:htmlminifier:merge_multiple_head_tags_label_case:>,
|
|
65
|
+ explication=<:htmlminifier:merge_multiple_head_tags_explication:>})]
|
|
66
|
+
|
|
67
|
+ [(#SAISIE{case, merge_multiple_body_tags,
|
|
68
|
+ conteneur_class=pleine_largeur,
|
|
69
|
+ valeur_oui=1,
|
|
70
|
+ defaut=on,
|
|
71
|
+ label_case=<:htmlminifier:merge_multiple_body_tags_label_case:>,
|
|
72
|
+ explication=<:htmlminifier:merge_multiple_body_tags_explication:>})]
|
|
73
|
+
|
|
74
|
+ [(#SAISIE{case, show_signature,
|
|
75
|
+ conteneur_class=pleine_largeur,
|
|
76
|
+ valeur_oui=1,
|
|
77
|
+ defaut=on,
|
|
78
|
+ label_case=<:htmlminifier:show_signature_label_case:>,
|
|
79
|
+ explication=<:htmlminifier:show_signature_explication:>})]
|
|
80
|
+
|
|
81
|
+ [(#SAISIE{textarea, compression_ignored_tags,
|
|
82
|
+ conteneur_class=pleine_largeur,
|
|
83
|
+ label=<:htmlminifier:compression_ignored_tags_label_case:>,
|
|
84
|
+ explication=<:htmlminifier:compression_ignored_tags_explication:>,
|
|
85
|
+ rows=3})]
|
|
86
|
+ </div>
|
|
87
|
+ </div>
|
|
88
|
+ <div id="section-css">
|
|
89
|
+ <div class="editer-groupe">
|
|
90
|
+
|
|
91
|
+ [(#SAISIE{case, clean_css_comments,
|
|
92
|
+ valeur_oui=1,
|
|
93
|
+ conteneur_class= pleine_largeur parent,
|
|
94
|
+ defaut=on,
|
|
95
|
+ label_case=<:htmlminifier:clean_css_comments_label_case:>,
|
|
96
|
+ explication=<:htmlminifier:clean_css_comments_explication:>})]
|
|
97
|
+
|
|
98
|
+ [(#REM) sub-setting de clean_css_comments ]
|
|
99
|
+ [(#SAISIE{case, remove_comments_with_cdata_tags_css,
|
|
100
|
+ valeur_oui=1,
|
|
101
|
+ defaut="",
|
|
102
|
+ conteneur_class=enfant,
|
|
103
|
+ label_case=<:htmlminifier:remove_comments_with_cdata_tags_css_label_case:>,
|
|
104
|
+ explication=<:htmlminifier:remove_comments_with_cdata_tags_css_explication:>})]
|
|
105
|
+
|
|
106
|
+ [(#SAISIE{case, shift_link_tags_to_head,
|
|
107
|
+ valeur_oui=1,
|
|
108
|
+ conteneur_class= pleine_largeur parent,
|
|
109
|
+ defaut=on,
|
|
110
|
+ label_case=<:htmlminifier:shift_link_tags_to_head_label_case:>,
|
|
111
|
+ explication=<:htmlminifier:shift_link_tags_to_head_explication:>})]
|
|
112
|
+
|
|
113
|
+ [(#REM) sub-setting de shift_link_tags_to_head ]
|
|
114
|
+ [(#SAISIE{case, ignore_link_schema_tags,
|
|
115
|
+ valeur_oui=1,
|
|
116
|
+ defaut=on,
|
|
117
|
+ conteneur_class=enfant,
|
|
118
|
+ label_case=<:htmlminifier:ignore_link_schema_tags_label_case:>,
|
|
119
|
+ explication=<:htmlminifier:ignore_link_schema_tags_explication:>})]
|
|
120
|
+
|
|
121
|
+ [(#SAISIE{case, shift_meta_tags_to_head,
|
|
122
|
+ valeur_oui=1,
|
|
123
|
+ conteneur_class= pleine_largeur parent,
|
|
124
|
+ defaut=on,
|
|
125
|
+ label_case=<:htmlminifier:shift_meta_tags_to_head_label_case:>,
|
|
126
|
+ explication=<:htmlminifier:shift_meta_tags_to_head_explication:>})]
|
|
127
|
+
|
|
128
|
+ [(#REM) sub-setting de shift_meta_tags_to_head ]
|
|
129
|
+ [(#SAISIE{case, ignore_meta_schema_tags,
|
|
130
|
+ valeur_oui=1,
|
|
131
|
+ defaut=on,
|
|
132
|
+ conteneur_class=enfant,
|
|
133
|
+ label_case=<:htmlminifier:ignore_meta_schema_tags_label_case:>,
|
|
134
|
+ explication=<:htmlminifier:ignore_meta_schema_tags_explication:>})]
|
|
135
|
+
|
|
136
|
+ [(#SAISIE{case, shift_style_tags_to_head,
|
|
137
|
+ valeur_oui=1,
|
|
138
|
+ conteneur_class= pleine_largeur parent,
|
|
139
|
+ defaut=on,
|
|
140
|
+ label_case=<:htmlminifier:shift_style_tags_to_head_label_case:>,
|
|
141
|
+ explication=<:htmlminifier:shift_style_tags_to_head_explication:>})]
|
|
142
|
+
|
|
143
|
+ [(#REM) defaut="", Only works if shift_style_tags_to_head is true.]
|
|
144
|
+ [(#SAISIE{case, combine_style_tags,
|
|
145
|
+ valeur_oui=1,
|
|
146
|
+ conteneur_class=enfant,
|
|
147
|
+ defaut="",
|
|
148
|
+ label_case=<:htmlminifier:combine_style_tags_label_case:>,
|
|
149
|
+ explication=<:htmlminifier:combine_style_tags_explication:>})]
|
|
150
|
+
|
|
151
|
+ </div>
|
|
152
|
+ </div>
|
|
153
|
+ <div id="section-javascript">
|
|
154
|
+ <div class="editer-groupe">
|
|
155
|
+
|
|
156
|
+ [(#SAISIE{case, clean_js_comments,
|
|
157
|
+ valeur_oui=1,
|
|
158
|
+ conteneur_class= pleine_largeur parent,
|
|
159
|
+ defaut=on,
|
|
160
|
+ label_case=<:htmlminifier:clean_js_comments_label_case:>,
|
|
161
|
+ explication=<:htmlminifier:clean_js_comments_explication:>})]
|
|
162
|
+
|
|
163
|
+ [(#SAISIE{case, remove_comments_with_cdata_tags_js,
|
|
164
|
+ valeur_oui=1,
|
|
165
|
+ conteneur_class=enfant,
|
|
166
|
+ defaut="",
|
|
167
|
+ label_case=<:htmlminifier:remove_comments_with_cdata_tags_js_label_case:>,
|
|
168
|
+ explication=<:htmlminifier:remove_comments_with_cdata_tags_js_explication:>})]
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+ [(#SAISIE{case, shift_script_tags_to_bottom,
|
|
172
|
+ valeur_oui=1,
|
|
173
|
+ conteneur_class= pleine_largeur parent,
|
|
174
|
+ defaut="",
|
|
175
|
+ label_case=<:htmlminifier:shift_script_tags_to_bottom_label_case:>,
|
|
176
|
+ explication=<:htmlminifier:shift_script_tags_to_bottom_explication:>})]
|
|
177
|
+
|
|
178
|
+ [(#SAISIE{case, combine_javascript_in_script_tags,
|
|
179
|
+ valeur_oui=1,
|
|
180
|
+ conteneur_class=enfant,
|
|
181
|
+ defaut="",
|
|
182
|
+ label_case=<:htmlminifier:combine_javascript_in_script_tags_label_case:>,
|
|
183
|
+ explication=<:htmlminifier:combine_javascript_in_script_tags_explication:>})]
|
|
184
|
+
|
|
185
|
+ [(#SAISIE{case, ignore_async_and_defer_tags,
|
|
186
|
+ valeur_oui=1,
|
|
187
|
+ conteneur_class=enfant,
|
|
188
|
+ defaut="",
|
|
189
|
+ label_case=<:htmlminifier:ignore_async_and_defer_tags_label_case:>,
|
|
190
|
+ explication=<:htmlminifier:ignore_async_and_defer_tags_explication:>})]
|
|
191
|
+ </div>
|
|
192
|
+ </div>
|
|
193
|
+ </div>
|
|
194
|
+
|
|
195
|
+ <p class="boutons clearfix">
|
|
196
|
+ <span class="image_loading"> </span>
|
|
197
|
+ <input type="submit" class="submit" name="valider" value="<:bouton_enregistrer:>" />
|
|
198
|
+ </p>
|
|
199
|
+
|
|
200
|
+ </div>
|
|
201
|
+ </form>
|
|
202
|
+ <script type="text/javascript">
|
|
203
|
+ $('.parent').each(function(){
|
|
204
|
+ var parent = $(this);
|
|
205
|
+ var selection = $(this).find('input:checkbox');
|
|
206
|
+ selection.on("change rightnow", function(){
|
|
207
|
+ if(selection.is(':checked')) {
|
|
208
|
+ parent
|
|
209
|
+ .nextUntil('.parent')
|
|
210
|
+ .show("normal");
|
|
211
|
+ }else{
|
|
212
|
+ parent
|
|
213
|
+ .nextUntil('.parent')
|
|
214
|
+ .hide();
|
|
215
|
+ }
|
|
216
|
+ }).triggerHandler("rightnow");
|
|
217
|
+ });
|
|
218
|
+
|
|
219
|
+ $(function() {
|
|
220
|
+ $(".tabs").tabs({
|
|
221
|
+ create: function (event, ui) {
|
|
222
|
+ var scrollTop = $(window).scrollTop();
|
|
223
|
+ window.location.hash = ui.panel.attr('id');
|
|
224
|
+ $(window).scrollTop(scrollTop);
|
|
225
|
+ },
|
|
226
|
+ activate: function (event, ui) {
|
|
227
|
+ var scrollTop = $(window).scrollTop();
|
|
228
|
+ window.location.hash = ui.newPanel.attr('id');
|
|
229
|
+ $(window).scrollTop(scrollTop);
|
|
230
|
+ }
|
|
231
|
+ });
|
|
232
|
+ });
|
|
233
|
+ </script>
|
|
234
|
+</div>
|