Options Framework - Version 1.6

Version Description

  • Allow media buttons in the editor option
  • JS/CSS should only load on options page
  • Menu tabs should be filterable
  • Menu settings filter
  • Fix js bindings for upload modal (props @themeblvd)
Download this release

Release Info

Developer downstairsdev
Plugin Icon wp plugin Options Framework
Version 1.6
Comparing to
See all releases

Code changes from version 1.5.2 to 1.6

js/media-uploader.js CHANGED
@@ -40,7 +40,9 @@
40
  }
41
  selector.find('.upload-button').unbind().addClass('remove-file').removeClass('upload-button').val(optionsframework_l10n.remove);
42
  selector.find('.of-background-properties').slideDown();
43
- optionsframework_file_bindings();
 
 
44
  });
45
 
46
  // Finally, open the modal.
@@ -58,20 +60,19 @@
58
  if ( $('.section-upload .upload-notice').length > 0 ) {
59
  $('.upload-button').remove();
60
  }
61
- optionsframework_file_bindings();
 
 
62
  }
63
 
64
- function optionsframework_file_bindings() {
65
- $('.remove-image, .remove-file').on('click', function() {
66
- optionsframework_remove_file( $(this).parents('.section') );
67
- });
68
-
69
- $('.upload-button').click( function( event ) {
70
- optionsframework_add_file(event, $(this).parents('.section'));
71
- });
72
- }
73
 
74
- optionsframework_file_bindings();
75
  });
76
 
77
  })(jQuery);
40
  }
41
  selector.find('.upload-button').unbind().addClass('remove-file').removeClass('upload-button').val(optionsframework_l10n.remove);
42
  selector.find('.of-background-properties').slideDown();
43
+ selector.find('.remove-image, .remove-file').on('click', function() {
44
+ optionsframework_remove_file( $(this).parents('.section') );
45
+ });
46
  });
47
 
48
  // Finally, open the modal.
60
  if ( $('.section-upload .upload-notice').length > 0 ) {
61
  $('.upload-button').remove();
62
  }
63
+ selector.find('.upload-button').on('click', function() {
64
+ optionsframework_add_file(event, $(this).parents('.section'));
65
+ });
66
  }
67
 
68
+ $('.remove-image, .remove-file').on('click', function() {
69
+ optionsframework_remove_file( $(this).parents('.section') );
70
+ });
71
+
72
+ $('.upload-button').click( function( event ) {
73
+ optionsframework_add_file(event, $(this).parents('.section'));
74
+ });
 
 
75
 
 
76
  });
77
 
78
  })(jQuery);
lang/options-framework.pot ADDED
@@ -0,0 +1,370 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2013
2
+ # This file is distributed under the same license as the package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: \n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/options-framework-plugin\n"
7
+ "POT-Creation-Date: 2013-06-05 21:22:45+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2013-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+
15
+ #: options-check/options.php:32
16
+ msgid "One"
17
+ msgstr ""
18
+
19
+ #: options-check/options.php:33
20
+ msgid "Two"
21
+ msgstr ""
22
+
23
+ #: options-check/options.php:34
24
+ msgid "Three"
25
+ msgstr ""
26
+
27
+ #: options-check/options.php:35
28
+ msgid "Four"
29
+ msgstr ""
30
+
31
+ #: options-check/options.php:36
32
+ msgid "Five"
33
+ msgstr ""
34
+
35
+ #: options-check/options.php:41
36
+ msgid "French Toast"
37
+ msgstr ""
38
+
39
+ #: options-check/options.php:42
40
+ msgid "Pancake"
41
+ msgstr ""
42
+
43
+ #: options-check/options.php:43
44
+ msgid "Omelette"
45
+ msgstr ""
46
+
47
+ #: options-check/options.php:44
48
+ msgid "Crepe"
49
+ msgstr ""
50
+
51
+ #: options-check/options.php:45
52
+ msgid "Waffle"
53
+ msgstr ""
54
+
55
+ #: options-check/options.php:105
56
+ msgid "Basic Settings"
57
+ msgstr ""
58
+
59
+ #: options-check/options.php:109
60
+ msgid "Input Text Mini"
61
+ msgstr ""
62
+
63
+ #: options-check/options.php:110
64
+ msgid "A mini text input field."
65
+ msgstr ""
66
+
67
+ #: options-check/options.php:117
68
+ msgid "Input Text"
69
+ msgstr ""
70
+
71
+ #: options-check/options.php:118
72
+ msgid "A text input field."
73
+ msgstr ""
74
+
75
+ #: options-check/options.php:124
76
+ msgid "Textarea"
77
+ msgstr ""
78
+
79
+ #: options-check/options.php:125
80
+ msgid "Textarea description."
81
+ msgstr ""
82
+
83
+ #: options-check/options.php:131
84
+ msgid "Input Select Small"
85
+ msgstr ""
86
+
87
+ #: options-check/options.php:132
88
+ msgid "Small Select Box."
89
+ msgstr ""
90
+
91
+ #: options-check/options.php:140
92
+ msgid "Input Select Wide"
93
+ msgstr ""
94
+
95
+ #: options-check/options.php:141
96
+ msgid "A wider select box."
97
+ msgstr ""
98
+
99
+ #: options-check/options.php:148
100
+ msgid "Select a Category"
101
+ msgstr ""
102
+
103
+ #: options-check/options.php:149
104
+ msgid "Passed an array of categories with cat_ID and cat_name"
105
+ msgstr ""
106
+
107
+ #: options-check/options.php:155
108
+ msgid "Select a Tag"
109
+ msgstr ""
110
+
111
+ #: options-check/options.php:156
112
+ msgid "Passed an array of tags with term_id and term_name"
113
+ msgstr ""
114
+
115
+ #: options-check/options.php:162
116
+ msgid "Select a Page"
117
+ msgstr ""
118
+
119
+ #: options-check/options.php:163
120
+ msgid "Passed an pages with ID and post_title"
121
+ msgstr ""
122
+
123
+ #: options-check/options.php:169
124
+ msgid "Input Radio (one)"
125
+ msgstr ""
126
+
127
+ #: options-check/options.php:170
128
+ msgid "Radio select with default options \"one\"."
129
+ msgstr ""
130
+
131
+ #: options-check/options.php:177
132
+ msgid "Example Info"
133
+ msgstr ""
134
+
135
+ #: options-check/options.php:178
136
+ msgid "This is just some example information you can put in the panel."
137
+ msgstr ""
138
+
139
+ #: options-check/options.php:182
140
+ msgid "Input Checkbox"
141
+ msgstr ""
142
+
143
+ #: options-check/options.php:183
144
+ msgid "Example checkbox, defaults to true."
145
+ msgstr ""
146
+
147
+ #: options-check/options.php:189
148
+ msgid "Advanced Settings"
149
+ msgstr ""
150
+
151
+ #: options-check/options.php:193
152
+ msgid "Check to Show a Hidden Text Input"
153
+ msgstr ""
154
+
155
+ #: options-check/options.php:194
156
+ msgid "Click here and see what happens."
157
+ msgstr ""
158
+
159
+ #: options-check/options.php:199
160
+ msgid "Hidden Text Input"
161
+ msgstr ""
162
+
163
+ #: options-check/options.php:200
164
+ msgid "This option is hidden unless activated by a checkbox click."
165
+ msgstr ""
166
+
167
+ #: options-check/options.php:207
168
+ msgid "Uploader Test"
169
+ msgstr ""
170
+
171
+ #: options-check/options.php:208
172
+ msgid "This creates a full size uploader that previews the image."
173
+ msgstr ""
174
+
175
+ #: options-check/options.php:225
176
+ msgid "Example Background"
177
+ msgstr ""
178
+
179
+ #: options-check/options.php:226
180
+ msgid "Change the background CSS."
181
+ msgstr ""
182
+
183
+ #: options-check/options.php:232
184
+ msgid "Multicheck"
185
+ msgstr ""
186
+
187
+ #: options-check/options.php:233
188
+ msgid "Multicheck description."
189
+ msgstr ""
190
+
191
+ #: options-check/options.php:240
192
+ msgid "Colorpicker"
193
+ msgstr ""
194
+
195
+ #: options-check/options.php:241
196
+ msgid "No color selected by default."
197
+ msgstr ""
198
+
199
+ #: options-check/options.php:246
200
+ msgid "Typography"
201
+ msgstr ""
202
+
203
+ #: options-check/options.php:247
204
+ msgid "Example typography."
205
+ msgstr ""
206
+
207
+ #: options-check/options.php:253
208
+ msgid "Custom Typography"
209
+ msgstr ""
210
+
211
+ #: options-check/options.php:254
212
+ msgid "Custom typography options."
213
+ msgstr ""
214
+
215
+ #: options-check/options.php:261
216
+ msgid "Text Editor"
217
+ msgstr ""
218
+
219
+ #: options-check/options.php:279
220
+ msgid "Default Text Editor"
221
+ msgstr ""
222
+
223
+ #: options-check/options.php:280
224
+ msgid "You can also pass settings to the editor. Read more about wp_editor in <a href=\"%1$s\" target=\"_blank\">the WordPress codex</a>"
225
+ msgstr ""
226
+
227
+ #: options-framework.php:70
228
+ msgid "Your current theme does not have support for the Options Framework plugin. <a href=\"%1$s\" target=\"_blank\">Learn More</a> | <a href=\"%2$s\">Hide Notice</a>"
229
+ msgstr ""
230
+
231
+ #: options-framework.php:259 options-framework.php:260
232
+ #: options-framework.php:489
233
+ msgid "Theme Options"
234
+ msgstr ""
235
+
236
+ #: options-framework.php:305
237
+ msgid "Clear"
238
+ msgstr ""
239
+
240
+ #: options-framework.php:306
241
+ msgid "Default"
242
+ msgstr ""
243
+
244
+ #: options-framework.php:307
245
+ msgid "Select Color"
246
+ msgstr ""
247
+
248
+ #: options-framework.php:352
249
+ msgid "Save Options"
250
+ msgstr ""
251
+
252
+ #: options-framework.php:353
253
+ msgid "Restore Defaults"
254
+ msgstr ""
255
+
256
+ #: options-framework.php:353
257
+ msgid "Click OK to reset. Any theme settings will be lost!"
258
+ msgstr ""
259
+
260
+ #: options-framework.php:385
261
+ msgid "Default options restored."
262
+ msgstr ""
263
+
264
+ #: options-framework.php:439
265
+ msgid "Options saved."
266
+ msgstr ""
267
+
268
+ #: options-media-uploader.php:46
269
+ msgid "No file chosen"
270
+ msgstr ""
271
+
272
+ #: options-media-uploader.php:49 options-media-uploader.php:106
273
+ msgid "Upload"
274
+ msgstr ""
275
+
276
+ #: options-media-uploader.php:51 options-media-uploader.php:107
277
+ msgid "Remove"
278
+ msgstr ""
279
+
280
+ #: options-media-uploader.php:54
281
+ msgid "Upgrade your version of WordPress for full media support."
282
+ msgstr ""
283
+
284
+ #: options-media-uploader.php:78
285
+ msgid "View File"
286
+ msgstr ""
287
+
288
+ #: options-sanitize.php:236
289
+ msgid "No Repeat"
290
+ msgstr ""
291
+
292
+ #: options-sanitize.php:237
293
+ msgid "Repeat Horizontally"
294
+ msgstr ""
295
+
296
+ #: options-sanitize.php:238
297
+ msgid "Repeat Vertically"
298
+ msgstr ""
299
+
300
+ #: options-sanitize.php:239
301
+ msgid "Repeat All"
302
+ msgstr ""
303
+
304
+ #: options-sanitize.php:252
305
+ msgid "Top Left"
306
+ msgstr ""
307
+
308
+ #: options-sanitize.php:253
309
+ msgid "Top Center"
310
+ msgstr ""
311
+
312
+ #: options-sanitize.php:254
313
+ msgid "Top Right"
314
+ msgstr ""
315
+
316
+ #: options-sanitize.php:255
317
+ msgid "Middle Left"
318
+ msgstr ""
319
+
320
+ #: options-sanitize.php:256
321
+ msgid "Middle Center"
322
+ msgstr ""
323
+
324
+ #: options-sanitize.php:257
325
+ msgid "Middle Right"
326
+ msgstr ""
327
+
328
+ #: options-sanitize.php:258
329
+ msgid "Bottom Left"
330
+ msgstr ""
331
+
332
+ #: options-sanitize.php:259
333
+ msgid "Bottom Center"
334
+ msgstr ""
335
+
336
+ #: options-sanitize.php:260
337
+ msgid "Bottom Right"
338
+ msgstr ""
339
+
340
+ #: options-sanitize.php:273
341
+ msgid "Scroll Normally"
342
+ msgstr ""
343
+
344
+ #: options-sanitize.php:274
345
+ msgid "Fixed in Place"
346
+ msgstr ""
347
+
348
+ #: options-sanitize.php:348
349
+ msgid "Normal"
350
+ msgstr ""
351
+
352
+ #: options-sanitize.php:349
353
+ msgid "Italic"
354
+ msgstr ""
355
+
356
+ #: options-sanitize.php:350
357
+ msgid "Bold"
358
+ msgstr ""
359
+
360
+ #: options-sanitize.php:351
361
+ msgid "Bold Italic"
362
+ msgstr ""
363
+
364
+ #: options-theme-customizer/options.php:101
365
+ msgid "Basic"
366
+ msgstr ""
367
+
368
+ #: options-theme-customizer/options.php:158
369
+ msgid "Extended"
370
+ msgstr ""
lang/optionsframework-fr_FR.mo ADDED
Binary file
lang/optionsframework-fr_FR.po ADDED
@@ -0,0 +1,149 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Options Framework Plugin\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-04-22 19:13-0300\n"
6
+ "PO-Revision-Date: 2013-03-28 13:13+0100\n"
7
+ "Last-Translator: MBA Multimedia <mbamultimedia@gmail.com>\n"
8
+ "Language-Team: Julien LE THUAUT <julien.le.thuaut@gmail.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;_x;__;esc_attr_e\n"
13
+ "X-Poedit-Basepath: ../\n"
14
+ "Language: fr\n"
15
+ "X-Generator: Poedit 1.5.5\n"
16
+ "X-Poedit-SearchPath-0: .\n"
17
+
18
+ #: options-framework.php:71
19
+ #, php-format
20
+ msgid ""
21
+ "Your current theme does not have support for the Options Framework plugin. "
22
+ "<a href=\"%1$s\" target=\"_blank\">Learn More</a> | <a href=\"%2$s\">Hide "
23
+ "Notice</a>"
24
+ msgstr ""
25
+ "Votre thème actuel ne permet pas l'utilisation du plugin Options Framework. "
26
+ "<a href=\"%1$s\" target=\"_blank\">En savoir plus</a> | <a href=\"%2$s"
27
+ "\">Masquer cette note</a>"
28
+
29
+ #: options-framework.php:254 options-framework.php:456
30
+ msgid "Theme Options"
31
+ msgstr "Options du thème"
32
+
33
+ #: options-framework.php:323
34
+ msgid "Save Options"
35
+ msgstr "Sauvegarder options"
36
+
37
+ #: options-framework.php:324
38
+ msgid "Restore Defaults"
39
+ msgstr "Restaurer les valeurs par défaut"
40
+
41
+ #: options-framework.php:324
42
+ msgid "Click OK to reset. Any theme settings will be lost!"
43
+ msgstr ""
44
+ "Cliquer sur OK pour faire une remise à zero. Toutes les options du thèmes "
45
+ "seront perdues !"
46
+
47
+ #: options-framework.php:358
48
+ msgid "Default options restored."
49
+ msgstr "Options par défaut restaurées."
50
+
51
+ #: options-framework.php:400
52
+ msgid "Options saved."
53
+ msgstr "Options sauvegardées"
54
+
55
+ #: options-medialibrary-uploader.php:26
56
+ msgid "Options Framework Internal Container"
57
+ msgstr "Conteneur interne de l'Options Framework"
58
+
59
+ #: options-medialibrary-uploader.php:128
60
+ msgid "Upload"
61
+ msgstr "Upload"
62
+
63
+ #: options-medialibrary-uploader.php:151
64
+ msgid "View File"
65
+ msgstr "Voir fichier"
66
+
67
+ #: options-medialibrary-uploader.php:288
68
+ msgid "Gallery"
69
+ msgstr "Galerie"
70
+
71
+ #: options-medialibrary-uploader.php:288
72
+ msgid "Previously Uploaded"
73
+ msgstr "Uploadé précédemment"
74
+
75
+ #: options-sanitize.php:232
76
+ msgid "No Repeat"
77
+ msgstr "Ne pas répéter"
78
+
79
+ #: options-sanitize.php:233
80
+ msgid "Repeat Horizontally"
81
+ msgstr "Répéter horizontalement"
82
+
83
+ #: options-sanitize.php:234
84
+ msgid "Repeat Vertically"
85
+ msgstr "Répéter verticalement"
86
+
87
+ #: options-sanitize.php:235
88
+ msgid "Repeat All"
89
+ msgstr "Répéter"
90
+
91
+ #: options-sanitize.php:248
92
+ msgid "Top Left"
93
+ msgstr "Haut Gauche"
94
+
95
+ #: options-sanitize.php:249
96
+ msgid "Top Center"
97
+ msgstr "Haut Centre"
98
+
99
+ #: options-sanitize.php:250
100
+ msgid "Top Right"
101
+ msgstr "Haut Droite"
102
+
103
+ #: options-sanitize.php:251
104
+ msgid "Middle Left"
105
+ msgstr "Milieu Gauche"
106
+
107
+ #: options-sanitize.php:252
108
+ msgid "Middle Center"
109
+ msgstr "Milieu Centre"
110
+
111
+ #: options-sanitize.php:253
112
+ msgid "Middle Right"
113
+ msgstr "Milieu Droite"
114
+
115
+ #: options-sanitize.php:254
116
+ msgid "Bottom Left"
117
+ msgstr "Bas Gauche"
118
+
119
+ #: options-sanitize.php:255
120
+ msgid "Bottom Center"
121
+ msgstr "Bas Centre"
122
+
123
+ #: options-sanitize.php:256
124
+ msgid "Bottom Right"
125
+ msgstr "Bas Droite"
126
+
127
+ #: options-sanitize.php:269
128
+ msgid "Scroll Normally"
129
+ msgstr "Scroll normal"
130
+
131
+ #: options-sanitize.php:270
132
+ msgid "Fixed in Place"
133
+ msgstr "Position fixe"
134
+
135
+ #: options-sanitize.php:344
136
+ msgid "Normal"
137
+ msgstr "Normal"
138
+
139
+ #: options-sanitize.php:345
140
+ msgid "Italic"
141
+ msgstr "Italique"
142
+
143
+ #: options-sanitize.php:346
144
+ msgid "Bold"
145
+ msgstr "Gras"
146
+
147
+ #: options-sanitize.php:347
148
+ msgid "Bold Italic"
149
+ msgstr "Gras italique"
lang/optionsframework-zh_CN.mo ADDED
Binary file
lang/{optionsframework.pot → optionsframework-zh_CN.po} RENAMED
@@ -3,139 +3,143 @@ msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2012-04-22 15:51-0300\n"
6
- "PO-Revision-Date: 2012-04-22 15:52-0300\n"
7
- "Last-Translator: Weslly Honorato <weslly.honorato@gmail.com>\n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e;esc_attr_e\n"
13
  "X-Poedit-Basepath: /Users/weslly/Desktop/options-framework-plugin\n"
 
14
  "X-Poedit-SearchPath-0: .\n"
15
 
16
  #: options-framework.php:71
17
  #, php-format
18
- msgid "Your current theme does not have support for the Options Framework plugin. <a href=\"%1$s\" target=\"_blank\">Learn More</a> | <a href=\"%2$s\">Hide Notice</a>"
 
 
 
19
  msgstr ""
 
 
20
 
21
- #: options-framework.php:254
22
- #: options-framework.php:456
23
  msgid "Theme Options"
24
- msgstr ""
25
 
26
  #: options-framework.php:323
27
  msgid "Save Options"
28
- msgstr ""
29
 
30
  #: options-framework.php:324
31
  msgid "Restore Defaults"
32
- msgstr ""
33
 
34
  #: options-framework.php:324
35
  msgid "Click OK to reset. Any theme settings will be lost!"
36
- msgstr ""
37
 
38
  #: options-framework.php:358
39
  msgid "Default options restored."
40
- msgstr ""
41
 
42
  #: options-framework.php:400
43
  msgid "Options saved."
44
- msgstr ""
45
 
46
  #: options-medialibrary-uploader.php:26
47
  msgid "Options Framework Internal Container"
48
- msgstr ""
49
 
50
  #: options-medialibrary-uploader.php:128
51
  msgid "Upload"
52
- msgstr ""
53
 
54
  #: options-medialibrary-uploader.php:151
55
  msgid "View File"
56
- msgstr ""
57
 
58
  #: options-medialibrary-uploader.php:288
59
  msgid "Gallery"
60
- msgstr ""
61
 
62
  #: options-medialibrary-uploader.php:288
63
  msgid "Previously Uploaded"
64
- msgstr ""
65
 
66
  #: options-sanitize.php:232
67
  msgid "No Repeat"
68
- msgstr ""
69
 
70
  #: options-sanitize.php:233
71
  msgid "Repeat Horizontally"
72
- msgstr ""
73
 
74
  #: options-sanitize.php:234
75
  msgid "Repeat Vertically"
76
- msgstr ""
77
 
78
  #: options-sanitize.php:235
79
  msgid "Repeat All"
80
- msgstr ""
81
 
82
  #: options-sanitize.php:248
83
  msgid "Top Left"
84
- msgstr ""
85
 
86
  #: options-sanitize.php:249
87
  msgid "Top Center"
88
- msgstr ""
89
 
90
  #: options-sanitize.php:250
91
  msgid "Top Right"
92
- msgstr ""
93
 
94
  #: options-sanitize.php:251
95
  msgid "Middle Left"
96
- msgstr ""
97
 
98
  #: options-sanitize.php:252
99
  msgid "Middle Center"
100
- msgstr ""
101
 
102
  #: options-sanitize.php:253
103
  msgid "Middle Right"
104
- msgstr ""
105
 
106
  #: options-sanitize.php:254
107
  msgid "Bottom Left"
108
- msgstr ""
109
 
110
  #: options-sanitize.php:255
111
  msgid "Bottom Center"
112
- msgstr ""
113
 
114
  #: options-sanitize.php:256
115
  msgid "Bottom Right"
116
- msgstr ""
117
 
118
  #: options-sanitize.php:269
119
  msgid "Scroll Normally"
120
- msgstr ""
121
 
122
  #: options-sanitize.php:270
123
  msgid "Fixed in Place"
124
- msgstr ""
125
 
126
  #: options-sanitize.php:344
127
  msgid "Normal"
128
- msgstr ""
129
 
130
  #: options-sanitize.php:345
131
  msgid "Italic"
132
- msgstr ""
133
 
134
  #: options-sanitize.php:346
135
  msgid "Bold"
136
- msgstr ""
137
 
138
  #: options-sanitize.php:347
139
  msgid "Bold Italic"
140
- msgstr ""
141
-
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2012-04-22 15:51-0300\n"
6
+ "PO-Revision-Date: 2013-05-11 21:40+0800\n"
7
+ "Last-Translator: Amos Lee <470266798@qq.com>\n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e;esc_attr_e\n"
13
  "X-Poedit-Basepath: /Users/weslly/Desktop/options-framework-plugin\n"
14
+ "X-Generator: Poedit 1.5.5\n"
15
  "X-Poedit-SearchPath-0: .\n"
16
 
17
  #: options-framework.php:71
18
  #, php-format
19
+ msgid ""
20
+ "Your current theme does not have support for the Options Framework plugin. "
21
+ "<a href=\"%1$s\" target=\"_blank\">Learn More</a> | <a href=\"%2$s\">Hide "
22
+ "Notice</a>"
23
  msgstr ""
24
+ "您当前的主题不支持选项框架插件。 <a href=\"%1$s\" target=\"_blank\">了解更多"
25
+ "</ a> | <a href=\"%2$s\">隐藏通知</a>"
26
 
27
+ #: options-framework.php:254 options-framework.php:456
 
28
  msgid "Theme Options"
29
+ msgstr "主题选项"
30
 
31
  #: options-framework.php:323
32
  msgid "Save Options"
33
+ msgstr "保存选项"
34
 
35
  #: options-framework.php:324
36
  msgid "Restore Defaults"
37
+ msgstr "重置选项"
38
 
39
  #: options-framework.php:324
40
  msgid "Click OK to reset. Any theme settings will be lost!"
41
+ msgstr "点击OK重置,所有主题设置将丢失!"
42
 
43
  #: options-framework.php:358
44
  msgid "Default options restored."
45
+ msgstr "默认选项已恢复。"
46
 
47
  #: options-framework.php:400
48
  msgid "Options saved."
49
+ msgstr "选项已保存。"
50
 
51
  #: options-medialibrary-uploader.php:26
52
  msgid "Options Framework Internal Container"
53
+ msgstr "选项框架内部包装"
54
 
55
  #: options-medialibrary-uploader.php:128
56
  msgid "Upload"
57
+ msgstr "上传"
58
 
59
  #: options-medialibrary-uploader.php:151
60
  msgid "View File"
61
+ msgstr "查看文件"
62
 
63
  #: options-medialibrary-uploader.php:288
64
  msgid "Gallery"
65
+ msgstr "相册"
66
 
67
  #: options-medialibrary-uploader.php:288
68
  msgid "Previously Uploaded"
69
+ msgstr "先前上传"
70
 
71
  #: options-sanitize.php:232
72
  msgid "No Repeat"
73
+ msgstr "不重复"
74
 
75
  #: options-sanitize.php:233
76
  msgid "Repeat Horizontally"
77
+ msgstr "垂直重复"
78
 
79
  #: options-sanitize.php:234
80
  msgid "Repeat Vertically"
81
+ msgstr "水平重复"
82
 
83
  #: options-sanitize.php:235
84
  msgid "Repeat All"
85
+ msgstr "全部重复"
86
 
87
  #: options-sanitize.php:248
88
  msgid "Top Left"
89
+ msgstr "上左"
90
 
91
  #: options-sanitize.php:249
92
  msgid "Top Center"
93
+ msgstr "上中"
94
 
95
  #: options-sanitize.php:250
96
  msgid "Top Right"
97
+ msgstr "上右"
98
 
99
  #: options-sanitize.php:251
100
  msgid "Middle Left"
101
+ msgstr "中左"
102
 
103
  #: options-sanitize.php:252
104
  msgid "Middle Center"
105
+ msgstr "中中"
106
 
107
  #: options-sanitize.php:253
108
  msgid "Middle Right"
109
+ msgstr "中右"
110
 
111
  #: options-sanitize.php:254
112
  msgid "Bottom Left"
113
+ msgstr "下左"
114
 
115
  #: options-sanitize.php:255
116
  msgid "Bottom Center"
117
+ msgstr "下中"
118
 
119
  #: options-sanitize.php:256
120
  msgid "Bottom Right"
121
+ msgstr "下右"
122
 
123
  #: options-sanitize.php:269
124
  msgid "Scroll Normally"
125
+ msgstr "普通滚动"
126
 
127
  #: options-sanitize.php:270
128
  msgid "Fixed in Place"
129
+ msgstr "固定位置"
130
 
131
  #: options-sanitize.php:344
132
  msgid "Normal"
133
+ msgstr "普通"
134
 
135
  #: options-sanitize.php:345
136
  msgid "Italic"
137
+ msgstr "斜体"
138
 
139
  #: options-sanitize.php:346
140
  msgid "Bold"
141
+ msgstr "加粗"
142
 
143
  #: options-sanitize.php:347
144
  msgid "Bold Italic"
145
+ msgstr "加粗斜体"
 
options-framework.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Options Framework
4
  Plugin URI: http://www.wptheming.com
5
  Description: A framework for building theme options.
6
- Version: 1.5.2
7
  Author: Devin Price
8
  Author URI: http://www.wptheming.com
9
  License: GPLv2
@@ -27,7 +27,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27
 
28
  /* Basic plugin definitions */
29
 
30
- define( 'OPTIONS_FRAMEWORK_VERSION', '1.5.2' );
31
  define( 'OPTIONS_FRAMEWORK_URL', plugin_dir_url( __FILE__ ) );
32
 
33
  load_plugin_textdomain( 'optionsframework', false, dirname( plugin_basename( __FILE__ ) ) . '/lang/' );
@@ -138,7 +138,7 @@ function optionsframework_init() {
138
  require_once dirname( __FILE__ ) . '/options-media-uploader.php';
139
 
140
  // Optionally Loads the options file from the theme
141
- $location = apply_filters( 'options_framework_location', array('options.php') );
142
  $optionsfile = locate_template( $location );
143
 
144
  // Load settings
@@ -220,7 +220,7 @@ function optionsframework_setdefaults() {
220
 
221
  if ( isset( $optionsframework_settings['knownoptions'] ) ) {
222
  $knownoptions = $optionsframework_settings['knownoptions'];
223
- if ( !in_array($option_name, $knownoptions) ) {
224
  array_push( $knownoptions, $option_name );
225
  $optionsframework_settings['knownoptions'] = $knownoptions;
226
  update_option( 'optionsframework', $optionsframework_settings);
@@ -242,18 +242,40 @@ function optionsframework_setdefaults() {
242
  }
243
  }
244
 
245
- /* Add a subpage called "Theme Options" to the appearance menu. */
 
 
 
 
 
 
 
 
 
 
 
246
 
247
- if ( !function_exists( 'optionsframework_add_page' ) ) {
 
 
 
 
 
 
 
 
 
248
 
249
- function optionsframework_add_page() {
250
- $of_page = add_theme_page( __( 'Theme Options', 'optionsframework'), __('Theme Options', 'optionsframework'), 'edit_theme_options', 'options-framework','optionsframework_page' );
251
 
252
- // Load the required CSS and javscript
253
- add_action( 'admin_enqueue_scripts', 'optionsframework_load_scripts');
254
- add_action( 'admin_print_styles-' . $of_page, 'optionsframework_load_styles' );
255
- }
256
 
 
 
 
257
  }
258
 
259
  /* Loads the CSS */
@@ -268,9 +290,11 @@ function optionsframework_load_styles() {
268
 
269
  /* Loads the javascript */
270
 
271
- function optionsframework_load_scripts($hook) {
272
 
273
- if ( 'appearance_page_options-framework' != $hook )
 
 
274
  return;
275
 
276
  // Enqueue colorpicker scripts for versions below 3.5 for compatibility
3
  Plugin Name: Options Framework
4
  Plugin URI: http://www.wptheming.com
5
  Description: A framework for building theme options.
6
+ Version: 1.6
7
  Author: Devin Price
8
  Author URI: http://www.wptheming.com
9
  License: GPLv2
27
 
28
  /* Basic plugin definitions */
29
 
30
+ define( 'OPTIONS_FRAMEWORK_VERSION', '1.6' );
31
  define( 'OPTIONS_FRAMEWORK_URL', plugin_dir_url( __FILE__ ) );
32
 
33
  load_plugin_textdomain( 'optionsframework', false, dirname( plugin_basename( __FILE__ ) ) . '/lang/' );
138
  require_once dirname( __FILE__ ) . '/options-media-uploader.php';
139
 
140
  // Optionally Loads the options file from the theme
141
+ $location = apply_filters( 'options_framework_location', array( 'options.php' ) );
142
  $optionsfile = locate_template( $location );
143
 
144
  // Load settings
220
 
221
  if ( isset( $optionsframework_settings['knownoptions'] ) ) {
222
  $knownoptions = $optionsframework_settings['knownoptions'];
223
+ if ( !in_array( $option_name, $knownoptions ) ) {
224
  array_push( $knownoptions, $option_name );
225
  $optionsframework_settings['knownoptions'] = $knownoptions;
226
  update_option( 'optionsframework', $optionsframework_settings);
242
  }
243
  }
244
 
245
+ /* Define menu options (still limited to appearance section)
246
+ *
247
+ * Examples usage:
248
+ *
249
+ * add_filter( 'optionsframework_menu', function($menu) {
250
+ * $menu['page_title'] = 'Hello Options';
251
+ * $menu['menu_title'] = 'Hello Options';
252
+ * return $menu;
253
+ * });
254
+ */
255
+
256
+ function optionsframework_menu_settings() {
257
 
258
+ $menu = array(
259
+ 'page_title' => __( 'Theme Options', 'optionsframework'),
260
+ 'menu_title' => __('Theme Options', 'optionsframework'),
261
+ 'capability' => 'edit_theme_options',
262
+ 'menu_slug' => 'options-framework',
263
+ 'callback' => 'optionsframework_page'
264
+ );
265
+
266
+ return apply_filters( 'optionsframework_menu', $menu );
267
+ }
268
 
269
+ /* Add a subpage called "Theme Options" to the appearance menu. */
 
270
 
271
+ function optionsframework_add_page() {
272
+
273
+ $menu = optionsframework_menu_settings();
274
+ $of_page = add_theme_page( $menu['page_title'], $menu['menu_title'], $menu['capability'], $menu['menu_slug'], $menu['callback'] );
275
 
276
+ // Load the required CSS and javscript
277
+ add_action( 'admin_enqueue_scripts', 'optionsframework_load_scripts' );
278
+ add_action( 'admin_print_styles-' . $of_page, 'optionsframework_load_styles' );
279
  }
280
 
281
  /* Loads the CSS */
290
 
291
  /* Loads the javascript */
292
 
293
+ function optionsframework_load_scripts( $hook ) {
294
 
295
+ $menu = optionsframework_menu_settings();
296
+
297
+ if ( 'appearance_page_' . $menu['menu_slug'] != $hook )
298
  return;
299
 
300
  // Enqueue colorpicker scripts for versions below 3.5 for compatibility
options-interface.php CHANGED
@@ -6,7 +6,7 @@
6
 
7
  function optionsframework_tabs() {
8
  $counter = 0;
9
- $options = optionsframework_options();
10
  $menu = '';
11
 
12
  foreach ( $options as $value ) {
@@ -102,14 +102,19 @@ function optionsframework_fields() {
102
  if ( isset( $value['desc'] ) ) {
103
  $explain_value = $value['desc'];
104
  }
 
 
 
 
105
 
106
- switch ( $value['type'] ) {
107
 
 
 
108
  // Basic text input
109
  case 'text':
110
  $output .= '<input id="' . esc_attr( $value['id'] ) . '" class="of-input" name="' . esc_attr( $option_name . '[' . $value['id'] . ']' ) . '" type="text" value="' . esc_attr( $val ) . '" />';
111
  break;
112
-
113
  // Password input
114
  case 'password':
115
  $output .= '<input id="' . esc_attr( $value['id'] ) . '" class="of-input" name="' . esc_attr( $option_name . '[' . $value['id'] . ']' ) . '" type="password" value="' . esc_attr( $val ) . '" />';
@@ -344,7 +349,7 @@ function optionsframework_fields() {
344
 
345
  // Editor
346
  case 'editor':
347
- $output .= '<div class="explain">' . wp_kses( $explain_value, $allowedtags) . '</div>'."\n";
348
  echo $output;
349
  $textarea_name = esc_attr( $option_name . '[' . $value['id'] . ']' );
350
  $default_editor_settings = array(
@@ -356,7 +361,7 @@ function optionsframework_fields() {
356
  if ( isset( $value['settings'] ) ) {
357
  $editor_settings = $value['settings'];
358
  }
359
- $editor_settings = array_merge($editor_settings, $default_editor_settings);
360
  wp_editor( $val, $value['id'], $editor_settings );
361
  $output = '';
362
  break;
6
 
7
  function optionsframework_tabs() {
8
  $counter = 0;
9
+ $options =& _optionsframework_options();
10
  $menu = '';
11
 
12
  foreach ( $options as $value ) {
102
  if ( isset( $value['desc'] ) ) {
103
  $explain_value = $value['desc'];
104
  }
105
+
106
+ if ( has_filter( 'optionsframework_' . $value['type'] ) ) {
107
+ $output .= apply_filters( 'optionsframework_' . $value['type'], $option_name, $value, $val );
108
+ }
109
 
 
110
 
111
+ switch ( $value['type'] ) {
112
+
113
  // Basic text input
114
  case 'text':
115
  $output .= '<input id="' . esc_attr( $value['id'] ) . '" class="of-input" name="' . esc_attr( $option_name . '[' . $value['id'] . ']' ) . '" type="text" value="' . esc_attr( $val ) . '" />';
116
  break;
117
+
118
  // Password input
119
  case 'password':
120
  $output .= '<input id="' . esc_attr( $value['id'] ) . '" class="of-input" name="' . esc_attr( $option_name . '[' . $value['id'] . ']' ) . '" type="password" value="' . esc_attr( $val ) . '" />';
349
 
350
  // Editor
351
  case 'editor':
352
+ $output .= '<div class="explain">' . wp_kses( $explain_value, $allowedtags ) . '</div>'."\n";
353
  echo $output;
354
  $textarea_name = esc_attr( $option_name . '[' . $value['id'] . ']' );
355
  $default_editor_settings = array(
361
  if ( isset( $value['settings'] ) ) {
362
  $editor_settings = $value['settings'];
363
  }
364
+ $editor_settings = array_merge( $default_editor_settings, $editor_settings );
365
  wp_editor( $val, $value['id'], $editor_settings );
366
  $output = '';
367
  break;
options-media-uploader.php CHANGED
@@ -91,7 +91,13 @@ endif;
91
 
92
  if ( ! function_exists( 'optionsframework_media_scripts' ) ) :
93
 
94
- function optionsframework_media_scripts() {
 
 
 
 
 
 
95
  if ( function_exists( 'wp_enqueue_media' ) )
96
  wp_enqueue_media();
97
  wp_register_script( 'of-media-uploader', OPTIONS_FRAMEWORK_URL .'js/media-uploader.js', array( 'jquery' ) );
91
 
92
  if ( ! function_exists( 'optionsframework_media_scripts' ) ) :
93
 
94
+ function optionsframework_media_scripts( $hook ) {
95
+
96
+ $menu = optionsframework_menu_settings();
97
+
98
+ if ( 'appearance_page_' . $menu['menu_slug'] != $hook )
99
+ return;
100
+
101
  if ( function_exists( 'wp_enqueue_media' ) )
102
  wp_enqueue_media();
103
  wp_register_script( 'of-media-uploader', OPTIONS_FRAMEWORK_URL .'js/media-uploader.js', array( 'jquery' ) );
readme.txt CHANGED
@@ -4,8 +4,8 @@ Contributors: Devin Price
4
  Tags: options, theme options
5
  Donate link: http://bit.ly/options-donate-2
6
  Requires at least: 3.3
7
- Tested up to: 3.5
8
- Stable tag: 1.5.2
9
  License: GPLv2
10
 
11
  == Description ==
@@ -67,6 +67,14 @@ You can also watch the video screencast I have at [http://wptheming.com/options-
67
 
68
  == Changelog ==
69
 
 
 
 
 
 
 
 
 
70
  = 1.5.2 =
71
 
72
  * Removed update routine to remove "optionsframework" post type
4
  Tags: options, theme options
5
  Donate link: http://bit.ly/options-donate-2
6
  Requires at least: 3.3
7
+ Tested up to: 3.6
8
+ Stable tag: 1.6
9
  License: GPLv2
10
 
11
  == Description ==
67
 
68
  == Changelog ==
69
 
70
+ = 1.6 =
71
+
72
+ * Allow media buttons in the editor option
73
+ * JS/CSS should only load on options page
74
+ * Menu tabs should be filterable
75
+ * Menu settings filter
76
+ * Fix js bindings for upload modal (props @themeblvd)
77
+
78
  = 1.5.2 =
79
 
80
  * Removed update routine to remove "optionsframework" post type