OptionTree - Version 2.0.2

Version Description

  • Added I18n support, let the translations begin. The option-tree.pot file is inside the languages directory.
  • Trim whitespace on imported choices array.
  • Fixed the CSS insert function not having a value to save.
Download this release

Release Info

Developer valendesigns
Plugin Icon wp plugin OptionTree
Version 2.0.2
Comparing to
See all releases

Code changes from version 2.0.1 to 2.0.2

includes/ot-functions-admin.php CHANGED
@@ -1705,7 +1705,7 @@ if ( ! function_exists( 'ot_slider_settings' ) ) {
1705
  */
1706
  if ( ! function_exists( 'ot_insert_css_with_markers' ) ) {
1707
 
1708
- function ot_insert_css_with_markers( $field_id = '', $insertion = '' ) {
1709
 
1710
  /* missing $field_id or $insertion exit early */
1711
  if ( '' == $field_id || '' == $insertion )
@@ -1743,14 +1743,21 @@ if ( ! function_exists( 'ot_insert_css_with_markers' ) ) {
1743
  $option_id = str_replace( array( '{{', '}}' ), '', $option );
1744
  $option_array = explode( '|', $option_id );
1745
 
1746
- /* get value array by key or option_id */
1747
- if ( is_array( $option_array ) && isset( $options[$option_array[0]] ) ) {
 
1748
 
1749
- $value = $options[$option_array[0]];
1750
-
1751
- } else if ( isset( $options[$option_id] ) ) {
 
 
1752
 
1753
- $value = $options[$option_id];
 
 
 
 
1754
 
1755
  }
1756
 
@@ -2711,8 +2718,8 @@ if ( ! function_exists( 'ot_convert_string_to_array' ) ) {
2711
  $choices[$k]['src'] = trim( $split[2] );
2712
 
2713
  } else {
2714
- $choices[$k]['value'] = $choice;
2715
- $choices[$k]['label'] = $choice;
2716
  }
2717
 
2718
  }
1705
  */
1706
  if ( ! function_exists( 'ot_insert_css_with_markers' ) ) {
1707
 
1708
+ function ot_insert_css_with_markers( $field_id = '', $insertion = '', $meta = false ) {
1709
 
1710
  /* missing $field_id or $insertion exit early */
1711
  if ( '' == $field_id || '' == $insertion )
1743
  $option_id = str_replace( array( '{{', '}}' ), '', $option );
1744
  $option_array = explode( '|', $option_id );
1745
 
1746
+ /* get the array value */
1747
+ if ( $meta ) {
1748
+ global $post;
1749
 
1750
+ $value = get_post_meta( $post->ID, $option_array[0], true );
1751
+
1752
+ } else {
1753
+
1754
+ $options = get_option( 'option_tree' );
1755
 
1756
+ if ( isset( $options[$option_array[0]] ) ) {
1757
+
1758
+ $value = $options[$option_array[0]];
1759
+
1760
+ }
1761
 
1762
  }
1763
 
2718
  $choices[$k]['src'] = trim( $split[2] );
2719
 
2720
  } else {
2721
+ $choices[$k]['value'] = trim( $choice );
2722
+ $choices[$k]['label'] = trim( $choice );
2723
  }
2724
 
2725
  }
includes/ot-meta-box-api.php CHANGED
@@ -229,7 +229,7 @@ if ( ! class_exists( 'OT_Meta_Box' ) ) {
229
  /* insert CSS into dynamic.css */
230
  if ( '' !== $new ) {
231
 
232
- ot_insert_css_with_markers( $field['id'], $new );
233
 
234
  /* remove old CSS from dynamic.css */
235
  } else {
229
  /* insert CSS into dynamic.css */
230
  if ( '' !== $new ) {
231
 
232
+ ot_insert_css_with_markers( $field['id'], $new, true );
233
 
234
  /* remove old CSS from dynamic.css */
235
  } else {
languages/option-tree.pot ADDED
@@ -0,0 +1,1650 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2012
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/option-tree\n"
7
+ "POT-Creation-Date: 2012-07-18 19:57:35+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: 2012-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+
15
+ #: includes/ot-functions-admin.php:82
16
+ msgid "The Colorpicker only allows valid hexadecimal values."
17
+ msgstr ""
18
+
19
+ #: includes/ot-functions-admin.php:160
20
+ msgid "Send to OptionTree"
21
+ msgstr ""
22
+
23
+ #: includes/ot-functions-admin.php:161
24
+ #: includes/ot-functions-option-types.php:152
25
+ #: includes/ot-functions-option-types.php:1697
26
+ msgid "Remove Media"
27
+ msgstr ""
28
+
29
+ #: includes/ot-functions-admin.php:162
30
+ msgid "Are you sure you want to reset back to the defaults?"
31
+ msgstr ""
32
+
33
+ #: includes/ot-functions-admin.php:163
34
+ msgid "You can't remove this! But you can edit the values."
35
+ msgstr ""
36
+
37
+ #: includes/ot-functions-admin.php:164
38
+ msgid "Are you sure you want to remove this?"
39
+ msgstr ""
40
+
41
+ #: includes/ot-functions-admin.php:165
42
+ msgid "Are you sure you want to activate this layout?"
43
+ msgstr ""
44
+
45
+ #: includes/ot-functions-admin.php:166
46
+ msgid "Sorry, you can't have settings three levels deep."
47
+ msgstr ""
48
+
49
+ #: includes/ot-functions-admin.php:207
50
+ msgid "Option Tree"
51
+ msgstr ""
52
+
53
+ #: includes/ot-functions-admin.php:341
54
+ msgid "General"
55
+ msgstr ""
56
+
57
+ #: includes/ot-functions-admin.php:347
58
+ msgid "Sample Text Field Label"
59
+ msgstr ""
60
+
61
+ #: includes/ot-functions-admin.php:348
62
+ msgid "Description for the sample text field."
63
+ msgstr ""
64
+
65
+ #: includes/ot-functions-admin.php:1067
66
+ msgid "Layout activated."
67
+ msgstr ""
68
+
69
+ #: includes/ot-functions-admin.php:1080
70
+ msgid "Settings updated."
71
+ msgstr ""
72
+
73
+ #: includes/ot-functions-admin.php:1084
74
+ msgid "Settings could not be saved."
75
+ msgstr ""
76
+
77
+ #: includes/ot-functions-admin.php:1092
78
+ msgid "Settings Imported."
79
+ msgstr ""
80
+
81
+ #: includes/ot-functions-admin.php:1096
82
+ msgid "Settings could not be imported."
83
+ msgstr ""
84
+
85
+ #: includes/ot-functions-admin.php:1103
86
+ msgid "Data Imported."
87
+ msgstr ""
88
+
89
+ #: includes/ot-functions-admin.php:1107
90
+ msgid "Data could not be imported."
91
+ msgstr ""
92
+
93
+ #: includes/ot-functions-admin.php:1115
94
+ msgid "Layouts Imported."
95
+ msgstr ""
96
+
97
+ #: includes/ot-functions-admin.php:1119
98
+ msgid "Layouts could not be imported."
99
+ msgstr ""
100
+
101
+ #: includes/ot-functions-admin.php:1127
102
+ msgid "Layouts Updated."
103
+ msgstr ""
104
+
105
+ #: includes/ot-functions-admin.php:1131
106
+ msgid "Layouts could not be updated."
107
+ msgstr ""
108
+
109
+ #: includes/ot-functions-admin.php:1520
110
+ msgid "Left Sidebar"
111
+ msgstr ""
112
+
113
+ #: includes/ot-functions-admin.php:1525
114
+ msgid "Right Sidebar"
115
+ msgstr ""
116
+
117
+ #: includes/ot-functions-admin.php:1530
118
+ msgid "Full Width (no sidebar)"
119
+ msgstr ""
120
+
121
+ #: includes/ot-functions-admin.php:1535
122
+ msgid "Dual Sidebar"
123
+ msgstr ""
124
+
125
+ #: includes/ot-functions-admin.php:1540
126
+ msgid "Left Dual Sidebar"
127
+ msgstr ""
128
+
129
+ #: includes/ot-functions-admin.php:1545
130
+ msgid "Right Dual Sidebar"
131
+ msgstr ""
132
+
133
+ #: includes/ot-functions-admin.php:1575 includes/ot-functions-admin.php:1636
134
+ msgid "Image"
135
+ msgstr ""
136
+
137
+ #: includes/ot-functions-admin.php:1586 includes/ot-functions-admin.php:1642
138
+ msgid "Link"
139
+ msgstr ""
140
+
141
+ #: includes/ot-functions-admin.php:1597
142
+ msgid "Caption"
143
+ msgstr ""
144
+
145
+ #: includes/ot-functions-admin.php:1648 includes/ot-functions-docs-page.php:43
146
+ #: includes/ot-functions-docs-page.php:367
147
+ #: includes/ot-functions-docs-page.php:417
148
+ msgid "Description"
149
+ msgstr ""
150
+
151
+ #: includes/ot-functions-admin.php:2098
152
+ msgid "edit"
153
+ msgstr ""
154
+
155
+ #: includes/ot-functions-admin.php:2099 includes/ot-functions-admin.php:2153
156
+ #: includes/ot-functions-admin.php:2154 includes/ot-functions-admin.php:2289
157
+ #: includes/ot-functions-admin.php:2290 includes/ot-functions-admin.php:2355
158
+ #: includes/ot-functions-admin.php:2356 includes/ot-functions-admin.php:2483
159
+ #: includes/ot-functions-admin.php:2484
160
+ msgid "Edit"
161
+ msgstr ""
162
+
163
+ #: includes/ot-functions-admin.php:2101 includes/ot-functions-admin.php:2102
164
+ #: includes/ot-functions-admin.php:2156 includes/ot-functions-admin.php:2157
165
+ #: includes/ot-functions-admin.php:2292 includes/ot-functions-admin.php:2293
166
+ #: includes/ot-functions-admin.php:2358 includes/ot-functions-admin.php:2359
167
+ #: includes/ot-functions-admin.php:2417 includes/ot-functions-admin.php:2418
168
+ #: includes/ot-functions-admin.php:2486 includes/ot-functions-admin.php:2487
169
+ msgid "Delete"
170
+ msgstr ""
171
+
172
+ #: includes/ot-functions-admin.php:2108
173
+ msgid ""
174
+ "<strong>Section Title</strong>: Displayed as a menu item on the Theme "
175
+ "Options page."
176
+ msgstr ""
177
+
178
+ #: includes/ot-functions-admin.php:2116
179
+ msgid ""
180
+ "<strong>Section ID</strong>: A unique lower case alphanumeric string, "
181
+ "underscores allowed."
182
+ msgstr ""
183
+
184
+ #: includes/ot-functions-admin.php:2163
185
+ msgid ""
186
+ "<strong>Label</strong>: Displayed as the label of a form element on the "
187
+ "Theme Options page."
188
+ msgstr ""
189
+
190
+ #: includes/ot-functions-admin.php:2171 includes/ot-functions-admin.php:2373
191
+ msgid ""
192
+ "<strong>ID</strong>: A unique lower case alphanumeric string, underscores "
193
+ "allowed."
194
+ msgstr ""
195
+
196
+ #: includes/ot-functions-admin.php:2179
197
+ msgid ""
198
+ "<strong>Type</strong>: Choose one of the available option types from the "
199
+ "dropdown."
200
+ msgstr ""
201
+
202
+ #: includes/ot-functions-admin.php:2190
203
+ msgid ""
204
+ "<strong>Description</strong>: Enter a detailed description for the users to "
205
+ "read on the Theme Options page, HTML is allowed. This is also where you "
206
+ "enter content for both the Textblock & Textblock Titled option types."
207
+ msgstr ""
208
+
209
+ #: includes/ot-functions-admin.php:2198
210
+ msgid ""
211
+ "<strong>Choices</strong>: This will only affect the following option types: "
212
+ "Checkbox, Radio, Select & Select Image."
213
+ msgstr ""
214
+
215
+ #: includes/ot-functions-admin.php:2203
216
+ msgid "Add Choice"
217
+ msgstr ""
218
+
219
+ #: includes/ot-functions-admin.php:2209
220
+ msgid ""
221
+ "<strong>Settings</strong>: This will only affect the List Item option type."
222
+ msgstr ""
223
+
224
+ #: includes/ot-functions-admin.php:2214
225
+ #: includes/ot-functions-settings-page.php:93
226
+ msgid "Add Setting"
227
+ msgstr ""
228
+
229
+ #: includes/ot-functions-admin.php:2220
230
+ msgid ""
231
+ "<strong>Standard</strong>: Setting the standard value for your option only "
232
+ "works for some option types. Read the <code>OptionTree->Documentation</code> "
233
+ "for more information on which ones."
234
+ msgstr ""
235
+
236
+ #: includes/ot-functions-admin.php:2228
237
+ msgid ""
238
+ "<strong>Rows</strong>: Enter a numeric value for the number of rows in your "
239
+ "textarea. This will only affect the following option types: CSS, Textarea, & "
240
+ "Textarea Simple."
241
+ msgstr ""
242
+
243
+ #: includes/ot-functions-admin.php:2236
244
+ msgid ""
245
+ "<strong>Post Type</strong>: Add a comma separated list of post type like "
246
+ "'post,page'. This will only affect the following option types: Custom Post "
247
+ "Type Checkbox, & Custom Post Type Select."
248
+ msgstr ""
249
+
250
+ #: includes/ot-functions-admin.php:2244
251
+ msgid ""
252
+ "<strong>Taxonomy</strong>: Add a comma separated list of any registered "
253
+ "taxonomy like 'category,post_tag'. This will only affect the following "
254
+ "option types: Taxonomy Checkbox, & Taxonomy Select."
255
+ msgstr ""
256
+
257
+ #: includes/ot-functions-admin.php:2252
258
+ msgid "<strong>CSS Class</strong>: Add and optional class to this option type."
259
+ msgstr ""
260
+
261
+ #: includes/ot-functions-admin.php:2299 includes/ot-functions-docs-page.php:29
262
+ msgid "Label"
263
+ msgstr ""
264
+
265
+ #: includes/ot-functions-admin.php:2309
266
+ msgid "Value"
267
+ msgstr ""
268
+
269
+ #: includes/ot-functions-admin.php:2319
270
+ msgid "Image Source (Radio Image only)"
271
+ msgstr ""
272
+
273
+ #: includes/ot-functions-admin.php:2365
274
+ msgid ""
275
+ "<strong>Title</strong>: Displayed as a contextual help menu item on the "
276
+ "Theme Options page."
277
+ msgstr ""
278
+
279
+ #: includes/ot-functions-admin.php:2381
280
+ msgid ""
281
+ "<strong>Content</strong>: Enter the HTML content about this contextual help "
282
+ "item displayed on the Theme Option page for end users to read."
283
+ msgstr ""
284
+
285
+ #: includes/ot-functions-admin.php:2412
286
+ msgid "Layout"
287
+ msgstr ""
288
+
289
+ #: includes/ot-functions-admin.php:2414 includes/ot-functions-admin.php:2415
290
+ msgid "Activate"
291
+ msgstr ""
292
+
293
+ #: includes/ot-functions-admin.php:2451 includes/ot-meta-box-api.php:177
294
+ #: includes/ot-settings-api.php:572
295
+ msgid "Title"
296
+ msgstr ""
297
+
298
+ #: includes/ot-functions-admin.php:2577
299
+ msgid "New Layout"
300
+ msgstr ""
301
+
302
+ #: includes/ot-functions-docs-page.php:30
303
+ msgid ""
304
+ "The Label field should be a short but descriptive block of text 100 "
305
+ "characters or less with no HTML."
306
+ msgstr ""
307
+
308
+ #: includes/ot-functions-docs-page.php:32
309
+ msgid "ID"
310
+ msgstr ""
311
+
312
+ #: includes/ot-functions-docs-page.php:33
313
+ msgid ""
314
+ "The ID field is a unique alphanumeric key used to differentiate each theme "
315
+ "option (underscores are acceptable). Also, the plugin will change all text "
316
+ "you write in this field to lowercase and replace spaces and special "
317
+ "characters with an underscore automatically."
318
+ msgstr ""
319
+
320
+ #: includes/ot-functions-docs-page.php:35
321
+ msgid "Type"
322
+ msgstr ""
323
+
324
+ #: includes/ot-functions-docs-page.php:36
325
+ msgid ""
326
+ "You are required to choose one of the supported option types when creating a "
327
+ "new option. Here is a list of the available option types. For more "
328
+ "information about each type click the <code>Option Types</code> tab to the "
329
+ "left."
330
+ msgstr ""
331
+
332
+ #: includes/ot-functions-docs-page.php:44
333
+ msgid ""
334
+ "Enter a detailed description for the users to read on the Theme Options "
335
+ "page, HTML is allowed. This is also where you enter content for both the "
336
+ "Textblock & Textblock Titled option types."
337
+ msgstr ""
338
+
339
+ #: includes/ot-functions-docs-page.php:46
340
+ msgid "Choices"
341
+ msgstr ""
342
+
343
+ #: includes/ot-functions-docs-page.php:47
344
+ msgid ""
345
+ "Click the \"Add Choice\" button to add an item to the choices array. This "
346
+ "will only affect the following option types: Checkbox, Radio, Select & "
347
+ "Select Image."
348
+ msgstr ""
349
+
350
+ #: includes/ot-functions-docs-page.php:49 includes/ot-ui-admin.php:30
351
+ #: includes/ot-ui-admin.php:31 includes/ot-ui-admin.php:74
352
+ #: includes/ot-ui-admin.php:92
353
+ msgid "Settings"
354
+ msgstr ""
355
+
356
+ #: includes/ot-functions-docs-page.php:50
357
+ msgid ""
358
+ "Click the \"Add Setting\" button found inside a newly created setting to add "
359
+ "an item to the settings array. This will only affect the List Item type."
360
+ msgstr ""
361
+
362
+ #: includes/ot-functions-docs-page.php:52
363
+ msgid "Standard"
364
+ msgstr ""
365
+
366
+ #: includes/ot-functions-docs-page.php:53
367
+ msgid ""
368
+ "Setting the standard value for your option only works for some option types. "
369
+ "Those types are one that have a single string value saved to them and not an "
370
+ "array of values."
371
+ msgstr ""
372
+
373
+ #: includes/ot-functions-docs-page.php:55
374
+ msgid "Rows"
375
+ msgstr ""
376
+
377
+ #: includes/ot-functions-docs-page.php:56
378
+ msgid ""
379
+ "Enter a numeric value for the number of rows in your textarea. This will "
380
+ "only affect the following option types: CSS, Textarea, & Textarea Simple."
381
+ msgstr ""
382
+
383
+ #: includes/ot-functions-docs-page.php:58
384
+ msgid "Post Type"
385
+ msgstr ""
386
+
387
+ #: includes/ot-functions-docs-page.php:59
388
+ msgid ""
389
+ "Add a comma separated list of post type like <code>post,page</code>. This "
390
+ "will only affect the following option types: Custom Post Type Checkbox, & "
391
+ "Custom Post Type Select. Below are the default post types available with "
392
+ "WordPress and that are also compatible with OptionTree. You can also add "
393
+ "your own custom <code>post_type</code>. At this time <code>any</code> does "
394
+ "not seem to return results properly and is something I plan on looking into."
395
+ msgstr ""
396
+
397
+ #: includes/ot-functions-docs-page.php:67
398
+ msgid "Taxonomy"
399
+ msgstr ""
400
+
401
+ #: includes/ot-functions-docs-page.php:68
402
+ msgid ""
403
+ "Add a comma separated list of any registered taxonomy like <code>category,"
404
+ "post_tag</code>. This will only affect the following option types: Taxonomy "
405
+ "Checkbox, & Taxonomy Select."
406
+ msgstr ""
407
+
408
+ #: includes/ot-functions-docs-page.php:98
409
+ msgid "Background"
410
+ msgstr ""
411
+
412
+ #: includes/ot-functions-docs-page.php:99
413
+ msgid ""
414
+ "The Background option type is for adding background styles to your theme "
415
+ "either dynamically via the CSS option type below or manually with "
416
+ "<code>ot_get_option()</code>. Background has filters that allow you to "
417
+ "change the defaults. For example, you can filter on "
418
+ "<code>ot_recognized_background_repeat</code>, "
419
+ "<code>ot_recognized_background_attachment</code>, and "
420
+ "<code>ot_recognized_background_position</code>. These filters allow you to "
421
+ "fine tune the select lists for your specific CSS needs."
422
+ msgstr ""
423
+
424
+ #: includes/ot-functions-docs-page.php:101
425
+ msgid "Category Select"
426
+ msgstr ""
427
+
428
+ #: includes/ot-functions-docs-page.php:102
429
+ msgid ""
430
+ "The Category Select option type displays a list of category IDs. It allows "
431
+ "the user to select only one category ID and will return that value for use "
432
+ "in a custom function or loop."
433
+ msgstr ""
434
+
435
+ #: includes/ot-functions-docs-page.php:104
436
+ msgid "Category Checkbox"
437
+ msgstr ""
438
+
439
+ #: includes/ot-functions-docs-page.php:105
440
+ msgid ""
441
+ "The Category Checkbox option type displays a list of category IDs. It allows "
442
+ "the user to check multiple category IDs and will return that value as an "
443
+ "array for use in a custom function or loop."
444
+ msgstr ""
445
+
446
+ #: includes/ot-functions-docs-page.php:107
447
+ msgid "Checkbox"
448
+ msgstr ""
449
+
450
+ #: includes/ot-functions-docs-page.php:108
451
+ msgid ""
452
+ "The Checkbox option type is fairly self explanatory. Typically used to ask "
453
+ "questions. For example, \"Do you want to activate asynchronous Google "
454
+ "analytics?\" would be a single checkbox with a value of yes. You could have "
455
+ "more complex usages but the idea is that you can easily grab the value of "
456
+ "the checkbox and use it in you theme. In this situation you would test if "
457
+ "the checkbox has a value and execute a block of code if it does and do "
458
+ "nothing if it doesn't."
459
+ msgstr ""
460
+
461
+ #: includes/ot-functions-docs-page.php:110
462
+ msgid "Colorpicker"
463
+ msgstr ""
464
+
465
+ #: includes/ot-functions-docs-page.php:111
466
+ msgid ""
467
+ "The Colorpicker option type saves a hexadecimal color code for use in CSS. "
468
+ "Use it to modify the color of something in your theme."
469
+ msgstr ""
470
+
471
+ #: includes/ot-functions-docs-page.php:113
472
+ msgid "CSS"
473
+ msgstr ""
474
+
475
+ #: includes/ot-functions-docs-page.php:114
476
+ msgid ""
477
+ "The CSS option type is a textarea that when used properly can add dynamic "
478
+ "CSS to your theme from within OptionTree. Unfortunately, due server "
479
+ "limitations you will need to create a file named <code>dynamic.css</code> at "
480
+ "the root level of your theme and change permissions using chmod so the "
481
+ "server can write to the file. I have had the most success setting this "
482
+ "single file to 0777 but feel free to play around with permissions until "
483
+ "everything is working. A good starting point is 0666. When the server can "
484
+ "save to the file CSS will automatically be updated each time you save your "
485
+ "theme options."
486
+ msgstr ""
487
+
488
+ #: includes/ot-functions-docs-page.php:116
489
+ msgid ""
490
+ "An example of the CSS option type: This assumes you have an option with the "
491
+ "ID of <code>custom_background_css</code> which will display the saved values "
492
+ "for that option."
493
+ msgstr ""
494
+
495
+ #: includes/ot-functions-docs-page.php:118
496
+ msgid "Input"
497
+ msgstr ""
498
+
499
+ #: includes/ot-functions-docs-page.php:124
500
+ msgid "Output"
501
+ msgstr ""
502
+
503
+ #: includes/ot-functions-docs-page.php:132
504
+ msgid "Custom Post Type Select"
505
+ msgstr ""
506
+
507
+ #: includes/ot-functions-docs-page.php:133
508
+ msgid ""
509
+ "The Custom Post Type Select option type displays a list of IDs from any "
510
+ "available WordPress post type or custom post type. It will return a single "
511
+ "post ID for use in a custom function or loop. Requires at least one valid "
512
+ "<code>post_type</code> when created in the settings. For some reason "
513
+ "<code>any</code> does not work correctly and will looked into in future "
514
+ "version."
515
+ msgstr ""
516
+
517
+ #: includes/ot-functions-docs-page.php:135
518
+ msgid "Custom Post Type Checkbox"
519
+ msgstr ""
520
+
521
+ #: includes/ot-functions-docs-page.php:136
522
+ msgid ""
523
+ "The Custom Post Type Select option type displays a list of IDs from any "
524
+ "available WordPress post type or custom post type. It allows the user to "
525
+ "check multiple post IDs for use in a custom function or loop. Requires at "
526
+ "least one valid <code>post_type</code> when created in the settings. For "
527
+ "some reason <code>any</code> does not work correctly and will looked into in "
528
+ "future version."
529
+ msgstr ""
530
+
531
+ #: includes/ot-functions-docs-page.php:138
532
+ msgid "List Item"
533
+ msgstr ""
534
+
535
+ #: includes/ot-functions-docs-page.php:139
536
+ msgid ""
537
+ "The list Item replaced the old Slider option type. It allows for a great "
538
+ "deal of customization. You can add settings to the List Item and those "
539
+ "settings will be displayed to the user when they add a new List Item. "
540
+ "Typical use is for creating sliding content or blocks of code for custom "
541
+ "layouts."
542
+ msgstr ""
543
+
544
+ #: includes/ot-functions-docs-page.php:141
545
+ msgid "Measurement"
546
+ msgstr ""
547
+
548
+ #: includes/ot-functions-docs-page.php:142
549
+ msgid ""
550
+ "The Measurement option type is a mix of input and select fields. The text "
551
+ "input excepts a value and the select lets you choose the unit of measurement "
552
+ "to add to that value. Currently the default units are <code>px</code>, <code>"
553
+ "%</code>, <code>em</code>, <code>pt</code>. However, you can change them "
554
+ "with the <code>ot_measurement_unit_types</code> filter."
555
+ msgstr ""
556
+
557
+ #: includes/ot-functions-docs-page.php:144
558
+ msgid ""
559
+ "Example filter to add new units to the Measurement option type. Added to "
560
+ "<code>functions.php</code>."
561
+ msgstr ""
562
+
563
+ #: includes/ot-functions-docs-page.php:157
564
+ msgid ""
565
+ "Example filter to completely change the units in the Measurement option "
566
+ "type. Added to <code>functions.php</code>."
567
+ msgstr ""
568
+
569
+ #: includes/ot-functions-docs-page.php:172
570
+ msgid "Page Select"
571
+ msgstr ""
572
+
573
+ #: includes/ot-functions-docs-page.php:173
574
+ msgid ""
575
+ "The Page Select option type displays a list of page IDs. It will return a "
576
+ "single page ID for use in a custom function or loop."
577
+ msgstr ""
578
+
579
+ #: includes/ot-functions-docs-page.php:175
580
+ msgid "Page Checkbox"
581
+ msgstr ""
582
+
583
+ #: includes/ot-functions-docs-page.php:176
584
+ msgid ""
585
+ "The Page Select option type displays a list of page IDs. It allows the user "
586
+ "to check multiple page IDs for use in a custom function or loop."
587
+ msgstr ""
588
+
589
+ #: includes/ot-functions-docs-page.php:178
590
+ msgid "Post Select"
591
+ msgstr ""
592
+
593
+ #: includes/ot-functions-docs-page.php:179
594
+ msgid ""
595
+ "The Post Select option type displays a list of post IDs. It will return a "
596
+ "single post ID for use in a custom function or loop."
597
+ msgstr ""
598
+
599
+ #: includes/ot-functions-docs-page.php:181
600
+ msgid "Post Checkbox"
601
+ msgstr ""
602
+
603
+ #: includes/ot-functions-docs-page.php:182
604
+ msgid ""
605
+ "The Post Select option type displays a list of post IDs. It allows the user "
606
+ "to check multiple post IDs for use in a custom function or loop."
607
+ msgstr ""
608
+
609
+ #: includes/ot-functions-docs-page.php:184
610
+ msgid "Radio"
611
+ msgstr ""
612
+
613
+ #: includes/ot-functions-docs-page.php:185
614
+ msgid ""
615
+ "The Radio option type could ask a question. For example, \"Do you want to "
616
+ "activate the custom navigation?\" could require a yes or no answer with a "
617
+ "radio option. In this situation you would test if the radio has a value of "
618
+ "'yes' and execute a block of code, or if it's 'no' execute a different block "
619
+ "of code."
620
+ msgstr ""
621
+
622
+ #: includes/ot-functions-docs-page.php:187
623
+ msgid "Radio Image"
624
+ msgstr ""
625
+
626
+ #: includes/ot-functions-docs-page.php:188
627
+ msgid ""
628
+ "the Radio Images option type is primarily used for layouts. However, you can "
629
+ "filter the image list using <code>ot_radio_images</code>. As well, you can "
630
+ "add your own custom images using the choices array."
631
+ msgstr ""
632
+
633
+ #: includes/ot-functions-docs-page.php:190
634
+ msgid ""
635
+ "This example executes the <code>ot_radio_images</code> filter on layout "
636
+ "images attached to the <code>my_radio_images</code> field. Added to "
637
+ "<code>functions.php</code>."
638
+ msgstr ""
639
+
640
+ #: includes/ot-functions-docs-page.php:214
641
+ msgid "Select"
642
+ msgstr ""
643
+
644
+ #: includes/ot-functions-docs-page.php:215
645
+ msgid ""
646
+ "The Select option type is used to list anything you want that would be "
647
+ "chosen from a select list."
648
+ msgstr ""
649
+
650
+ #: includes/ot-functions-docs-page.php:217
651
+ msgid "Slider"
652
+ msgstr ""
653
+
654
+ #: includes/ot-functions-docs-page.php:218
655
+ msgid ""
656
+ "The Slider option type is technically deprecated. Use the List Item option "
657
+ "type instead, as it's infinitely more customizable. Typical use is for "
658
+ "creating sliding image content."
659
+ msgstr ""
660
+
661
+ #: includes/ot-functions-docs-page.php:220
662
+ msgid "Tag Checkbox"
663
+ msgstr ""
664
+
665
+ #: includes/ot-functions-docs-page.php:221
666
+ msgid ""
667
+ "The Tag Checkbox option type displays a list of tag IDs. It allows the user "
668
+ "to check multiple tag IDs and will return that value as an array for use in "
669
+ "a custom function or loop."
670
+ msgstr ""
671
+
672
+ #: includes/ot-functions-docs-page.php:223
673
+ msgid "Tag Select"
674
+ msgstr ""
675
+
676
+ #: includes/ot-functions-docs-page.php:224
677
+ msgid ""
678
+ "The Tag Select option type displays a list of tag IDs. It allows the user to "
679
+ "select only one tag ID and will return that value for use in a custom "
680
+ "function or loop."
681
+ msgstr ""
682
+
683
+ #: includes/ot-functions-docs-page.php:226
684
+ msgid "Taxonomy Checkbox"
685
+ msgstr ""
686
+
687
+ #: includes/ot-functions-docs-page.php:227
688
+ msgid ""
689
+ "The Taxonomy Checkbox option type displays a list of taxonomy IDs. It allows "
690
+ "the user to check multiple taxonomy IDs and will return that value as an "
691
+ "array for use in a custom function or loop."
692
+ msgstr ""
693
+
694
+ #: includes/ot-functions-docs-page.php:229
695
+ msgid "Taxonomy Select"
696
+ msgstr ""
697
+
698
+ #: includes/ot-functions-docs-page.php:230
699
+ msgid ""
700
+ "The Taxonomy Select option type displays a list of taxonomy IDs. It allows "
701
+ "the user to select only one taxonomy ID and will return that value for use "
702
+ "in a custom function or loop."
703
+ msgstr ""
704
+
705
+ #: includes/ot-functions-docs-page.php:232
706
+ msgid "Text (Input)"
707
+ msgstr ""
708
+
709
+ #: includes/ot-functions-docs-page.php:233
710
+ msgid ""
711
+ "The Text option type would be used to save a string value. For example, a "
712
+ "link to feedburner, your Twitter username, or Google Analytics ID are all "
713
+ "good candidates. Any optional or required text that is of reasonably short "
714
+ "character length."
715
+ msgstr ""
716
+
717
+ #: includes/ot-functions-docs-page.php:235
718
+ msgid "Textarea"
719
+ msgstr ""
720
+
721
+ #: includes/ot-functions-docs-page.php:236
722
+ msgid ""
723
+ "The Textarea option type is a large string value used for custom code or "
724
+ "text in the theme. The new Textarea has a WYSIWYG editor that can be "
725
+ "filtered to change the buttons shown. For example, you can filter on "
726
+ "<code>wpautop</code>, <code>media_buttons</code>, <code>tinymce</code>, and "
727
+ "<code>quicktags</code>."
728
+ msgstr ""
729
+
730
+ #: includes/ot-functions-docs-page.php:238
731
+ msgid ""
732
+ "Example filters to alter the Textarea option type. Added to <code>functions."
733
+ "php</code>."
734
+ msgstr ""
735
+
736
+ #: includes/ot-functions-docs-page.php:240
737
+ msgid ""
738
+ "This example keeps WordPress from executing the <code>wpautop</code> filter "
739
+ "on the line breaks. The default is <code>true</code> which means it wraps "
740
+ "line breaks with an HTML <code>p</code> tag."
741
+ msgstr ""
742
+
743
+ #: includes/ot-functions-docs-page.php:253
744
+ msgid ""
745
+ "This example keeps WordPress from executing the <code>media_buttons</code> "
746
+ "filter on the textarea WYSIWYG. The default is <code>true</code> which means "
747
+ "show the buttons."
748
+ msgstr ""
749
+
750
+ #: includes/ot-functions-docs-page.php:266
751
+ msgid ""
752
+ "This example keeps WordPress from executing the <code>tinymce</code> filter "
753
+ "on the textarea WYSIWYG. The default is <code>true</code> which means show "
754
+ "the tinymce."
755
+ msgstr ""
756
+
757
+ #: includes/ot-functions-docs-page.php:279
758
+ msgid ""
759
+ "This example alters the <code>quicktags</code> filter on the textarea "
760
+ "WYSIWYG. The default is <code>array( 'buttons' => 'strong,em,link,block,del,"
761
+ "ins,img,ul,ol,li,code,spell,close' )</code> which means show those "
762
+ "quicktags. It also means you can filter in your own custom quicktags."
763
+ msgstr ""
764
+
765
+ #: includes/ot-functions-docs-page.php:294
766
+ msgid "Textarea Simple"
767
+ msgstr ""
768
+
769
+ #: includes/ot-functions-docs-page.php:295
770
+ msgid ""
771
+ "The Textarea Simple option type is a large string value used for custom code "
772
+ "or text in the theme. The new Textarea Simple does not have a WYSIWYG "
773
+ "editor. But you can still filter on <code>wpautop</code>."
774
+ msgstr ""
775
+
776
+ #: includes/ot-functions-docs-page.php:297
777
+ msgid ""
778
+ "This example tells WordPress to execute the <code>wpautop</code> filter on "
779
+ "the line breaks. The default is <code>false</code> which means it does not "
780
+ "wraps line breaks with an HTML <code>p</code> tag. Added to <code>functions."
781
+ "php</code>."
782
+ msgstr ""
783
+
784
+ #: includes/ot-functions-docs-page.php:310
785
+ msgid "Textblock"
786
+ msgstr ""
787
+
788
+ #: includes/ot-functions-docs-page.php:311
789
+ msgid ""
790
+ "The Textblock option type is used only on the Theme Option page. It will "
791
+ "allow you to create & display HTML on your Theme Options page but has no "
792
+ "title above the text block. You can then use the Textblock to add a more "
793
+ "detailed set of instruction on how the options are used in your theme. You "
794
+ "would NEVER use this in your themes template files as it does not save a "
795
+ "value."
796
+ msgstr ""
797
+
798
+ #: includes/ot-functions-docs-page.php:313
799
+ msgid "Textblock Titled"
800
+ msgstr ""
801
+
802
+ #: includes/ot-functions-docs-page.php:314
803
+ msgid ""
804
+ "The Textblock Titled option type is used only on the Theme Option page. It "
805
+ "will allow you to create & display HTML on your Theme Options page and has a "
806
+ "title above the text block. You can then use the Textblock Titled to add a "
807
+ "more detailed set of instruction on how the options are used in your theme. "
808
+ "You would NEVER use this in your themes template files as it does not save a "
809
+ "value."
810
+ msgstr ""
811
+
812
+ #: includes/ot-functions-docs-page.php:316
813
+ msgid "Typography"
814
+ msgstr ""
815
+
816
+ #: includes/ot-functions-docs-page.php:317
817
+ msgid ""
818
+ "The Typography option type is for adding typographic styles to your theme "
819
+ "either dynamically via the CSS option type below or manually with "
820
+ "<code>ot_get_option()</code>. Typography has filters that allow you to "
821
+ "change the defaults. For example, you can filter on "
822
+ "<code>ot_recognized_font_styles</code>, <code>ot_recognized_font_weights</"
823
+ "code>, <code>ot_recognized_font_variants</code>, and "
824
+ "<code>ot_recognized_font_families</code>. These filters allow you to fine "
825
+ "tune the select lists for your specific CSS needs. The most important one "
826
+ "though is <code>ot_recognized_font_families</code> as you can add your "
827
+ "Google Fonts to create custom font stacks."
828
+ msgstr ""
829
+
830
+ #: includes/ot-functions-docs-page.php:319
831
+ msgid ""
832
+ "This example would filter <code>ot_recognized_font_families</code> to build "
833
+ "your own font stack. Added to <code>functions.php</code>."
834
+ msgstr ""
835
+
836
+ #: includes/ot-functions-docs-page.php:336
837
+ msgid "Upload"
838
+ msgstr ""
839
+
840
+ #: includes/ot-functions-docs-page.php:337
841
+ msgid ""
842
+ "The Upload option type is used to upload any WordPress supported media. "
843
+ "After uploading, users are required to press the \"Send to OptionTree\" "
844
+ "button in order to populate the input with the URI of that media. There is "
845
+ "one caveat of this feature. If you import the theme options and have "
846
+ "uploaded media on one site the old URI will not reflect the URI of your new "
847
+ "site. You'll have to re-upload or FTP any media to your new server and "
848
+ "change the URIs if necessary."
849
+ msgstr ""
850
+
851
+ #: includes/ot-functions-docs-page.php:369
852
+ msgid ""
853
+ "This function returns a value from the \"option_tree\" array of saved values "
854
+ "or the default value supplied. The returned value would be mixed. Meaning it "
855
+ "could be a string, integer, or array."
856
+ msgstr ""
857
+
858
+ #: includes/ot-functions-docs-page.php:371
859
+ #: includes/ot-functions-docs-page.php:421
860
+ msgid "Usage"
861
+ msgstr ""
862
+
863
+ #: includes/ot-functions-docs-page.php:375
864
+ #: includes/ot-functions-docs-page.php:425
865
+ msgid "Parameters"
866
+ msgstr ""
867
+
868
+ #: includes/ot-functions-docs-page.php:379
869
+ #: includes/ot-functions-docs-page.php:383
870
+ #: includes/ot-functions-docs-page.php:429
871
+ msgid "string"
872
+ msgstr ""
873
+
874
+ #: includes/ot-functions-docs-page.php:379
875
+ #: includes/ot-functions-docs-page.php:429
876
+ msgid "required"
877
+ msgstr ""
878
+
879
+ #: includes/ot-functions-docs-page.php:379
880
+ msgid "Enter the options unique identifier."
881
+ msgstr ""
882
+
883
+ #: includes/ot-functions-docs-page.php:379
884
+ #: includes/ot-functions-docs-page.php:429
885
+ msgid "Default:"
886
+ msgstr ""
887
+
888
+ #: includes/ot-functions-docs-page.php:379
889
+ #: includes/ot-functions-docs-page.php:383
890
+ #: includes/ot-functions-docs-page.php:429
891
+ #: includes/ot-functions-docs-page.php:433
892
+ msgid "None"
893
+ msgstr ""
894
+
895
+ #: includes/ot-functions-docs-page.php:383
896
+ #: includes/ot-functions-docs-page.php:433
897
+ #: includes/ot-functions-docs-page.php:437
898
+ #: includes/ot-functions-docs-page.php:441
899
+ #: includes/ot-functions-docs-page.php:445
900
+ msgid "optional"
901
+ msgstr ""
902
+
903
+ #: includes/ot-functions-docs-page.php:383
904
+ msgid ""
905
+ "Enter a default return value. This is just incase the request returns null."
906
+ msgstr ""
907
+
908
+ #: includes/ot-functions-docs-page.php:383
909
+ #: includes/ot-functions-docs-page.php:433
910
+ #: includes/ot-functions-docs-page.php:437
911
+ #: includes/ot-functions-docs-page.php:441
912
+ #: includes/ot-functions-docs-page.php:445
913
+ msgid "Default"
914
+ msgstr ""
915
+
916
+ #: includes/ot-functions-docs-page.php:413
917
+ msgid ""
918
+ "This function has been deprecated. That means it has been replaced by a new "
919
+ "function or is no longer supported, and may be removed from future versions. "
920
+ "All code that uses this function should be converted to use its replacement."
921
+ msgstr ""
922
+
923
+ #: includes/ot-functions-docs-page.php:415
924
+ msgid "Use"
925
+ msgstr ""
926
+
927
+ #: includes/ot-functions-docs-page.php:415
928
+ msgid "instead"
929
+ msgstr ""
930
+
931
+ #: includes/ot-functions-docs-page.php:419
932
+ msgid ""
933
+ "This function returns, or echos if asked, a value from the \"option_tree\" "
934
+ "array of saved values."
935
+ msgstr ""
936
+
937
+ #: includes/ot-functions-docs-page.php:429
938
+ msgid "Enter a unique Option Key to get a returned value or array."
939
+ msgstr ""
940
+
941
+ #: includes/ot-functions-docs-page.php:433
942
+ msgid "array"
943
+ msgstr ""
944
+
945
+ #: includes/ot-functions-docs-page.php:433
946
+ msgid "Used to cut down on database queries in template files."
947
+ msgstr ""
948
+
949
+ #: includes/ot-functions-docs-page.php:437
950
+ #: includes/ot-functions-docs-page.php:441
951
+ msgid "boolean"
952
+ msgstr ""
953
+
954
+ #: includes/ot-functions-docs-page.php:437
955
+ msgid "Echo the output."
956
+ msgstr ""
957
+
958
+ #: includes/ot-functions-docs-page.php:441
959
+ msgid "Used to indicate the $item_id is an array of values."
960
+ msgstr ""
961
+
962
+ #: includes/ot-functions-docs-page.php:445
963
+ msgid "integer"
964
+ msgstr ""
965
+
966
+ #: includes/ot-functions-docs-page.php:445
967
+ msgid ""
968
+ "Numeric offset key for the $item_id array, -1 will return all values (an "
969
+ "array starts at 0)."
970
+ msgstr ""
971
+
972
+ #: includes/ot-functions-docs-page.php:473
973
+ msgid ""
974
+ "If you're using the plugin version of OptionTree it is highly recommended to "
975
+ "include a <code>function_exists</code> check in your code, as described in "
976
+ "the examples below. If you've integrated OptionTree directly into your "
977
+ "themes root directory, you will <strong>not</strong> need to wrap your code "
978
+ "with <code>function_exists</code>, as you're guaranteed to have the "
979
+ "<code>ot_get_option()</code> function available."
980
+ msgstr ""
981
+
982
+ #: includes/ot-functions-docs-page.php:475
983
+ msgid "String Examples"
984
+ msgstr ""
985
+
986
+ #: includes/ot-functions-docs-page.php:477
987
+ msgid "Returns the value of <code>test_input</code>."
988
+ msgstr ""
989
+
990
+ #: includes/ot-functions-docs-page.php:483
991
+ msgid ""
992
+ "Returns the value of <code>test_input</code>, but also has a default value "
993
+ "if it returns empty."
994
+ msgstr ""
995
+
996
+ #: includes/ot-functions-docs-page.php:489
997
+ msgid "Array Examples"
998
+ msgstr ""
999
+
1000
+ #: includes/ot-functions-docs-page.php:491
1001
+ msgid ""
1002
+ "Assigns the value of <code>navigation_ids</code> to the variable <code>$ids</"
1003
+ "code>. It then echos an unordered list of links (navigation) using "
1004
+ "<code>wp_list_pages()</code>."
1005
+ msgstr ""
1006
+
1007
+ #: includes/ot-functions-docs-page.php:511
1008
+ msgid ""
1009
+ "The next two examples demonstrate how to use the <strong>Measurement</"
1010
+ "strong> option type. The Measurement option type is an array with two key/"
1011
+ "value pairs. The first is the value of measurement and the second is the "
1012
+ "unit of measurement."
1013
+ msgstr ""
1014
+
1015
+ #: includes/ot-functions-docs-page.php:537
1016
+ msgid "This example displays a very basic slider loop."
1017
+ msgstr ""
1018
+
1019
+ #: includes/ot-functions-docs-page.php:582
1020
+ msgid "It's Super Simple"
1021
+ msgstr ""
1022
+
1023
+ #: includes/ot-functions-docs-page.php:584
1024
+ msgid ""
1025
+ "Layouts make your theme awesome! With theme options data that you can save/"
1026
+ "import/export you can package themes with different color variations, or "
1027
+ "make it easy to do A/B testing on text and so much more. Basically, you save "
1028
+ "a snapshot of your data as a layout."
1029
+ msgstr ""
1030
+
1031
+ #: includes/ot-functions-docs-page.php:586
1032
+ msgid ""
1033
+ "Once you have created all your different layouts, or theme variations, you "
1034
+ "can save them to a separate text file for repackaging with your theme. "
1035
+ "Alternatively, you could just make different variations for yourself and "
1036
+ "change your theme with the click of a button, all without deleting your "
1037
+ "previous options data."
1038
+ msgstr ""
1039
+
1040
+ #: includes/ot-functions-docs-page.php:588
1041
+ msgid ""
1042
+ " Adding a layout is ridiculously easy, follow these steps and you'll be on "
1043
+ "your way to having a WordPress super theme."
1044
+ msgstr ""
1045
+
1046
+ #: includes/ot-functions-docs-page.php:590
1047
+ msgid "For Developers"
1048
+ msgstr ""
1049
+
1050
+ #: includes/ot-functions-docs-page.php:593
1051
+ #: includes/ot-functions-docs-page.php:623
1052
+ msgid "Creating a Layout"
1053
+ msgstr ""
1054
+
1055
+ #: includes/ot-functions-docs-page.php:595
1056
+ #: includes/ot-functions-docs-page.php:602
1057
+ #: includes/ot-functions-docs-page.php:608
1058
+ msgid "Go to the <code>OptionTre->Settings->Layouts</code> tab."
1059
+ msgstr ""
1060
+
1061
+ #: includes/ot-functions-docs-page.php:596
1062
+ msgid ""
1063
+ "Enter a name for your layout in the text field and hit \"Save Layouts\", "
1064
+ "you've created your first layout."
1065
+ msgstr ""
1066
+
1067
+ #: includes/ot-functions-docs-page.php:597
1068
+ #: includes/ot-functions-docs-page.php:627
1069
+ msgid "Adding a new layout is as easy as repeating the steps above."
1070
+ msgstr ""
1071
+
1072
+ #: includes/ot-functions-docs-page.php:600
1073
+ #: includes/ot-functions-docs-page.php:630
1074
+ msgid "Activating a Layout"
1075
+ msgstr ""
1076
+
1077
+ #: includes/ot-functions-docs-page.php:603
1078
+ msgid "Click on the activate layout button in the actions list."
1079
+ msgstr ""
1080
+
1081
+ #: includes/ot-functions-docs-page.php:606
1082
+ #: includes/ot-functions-docs-page.php:636
1083
+ msgid "Deleting a Layout"
1084
+ msgstr ""
1085
+
1086
+ #: includes/ot-functions-docs-page.php:609
1087
+ msgid "Click on the delete layout button in the actions list."
1088
+ msgstr ""
1089
+
1090
+ #: includes/ot-functions-docs-page.php:612
1091
+ #: includes/ot-functions-docs-page.php:641
1092
+ msgid "Edit Layout Data"
1093
+ msgstr ""
1094
+
1095
+ #: includes/ot-functions-docs-page.php:614
1096
+ #: includes/ot-functions-docs-page.php:625
1097
+ #: includes/ot-functions-docs-page.php:632
1098
+ msgid "Go to the <code>Appearance->Theme Options</code> page."
1099
+ msgstr ""
1100
+
1101
+ #: includes/ot-functions-docs-page.php:615
1102
+ #: includes/ot-functions-docs-page.php:644
1103
+ msgid ""
1104
+ "Modify and save your theme options and the layout will be updated "
1105
+ "automatically."
1106
+ msgstr ""
1107
+
1108
+ #: includes/ot-functions-docs-page.php:616
1109
+ #: includes/ot-functions-docs-page.php:645
1110
+ msgid ""
1111
+ "Saving theme options data will update the currently active layout, so before "
1112
+ "you start saving make sure you want to modify the current layout."
1113
+ msgstr ""
1114
+
1115
+ #: includes/ot-functions-docs-page.php:617
1116
+ msgid ""
1117
+ "If you want to edit a new layout, first create it then save your theme "
1118
+ "options."
1119
+ msgstr ""
1120
+
1121
+ #: includes/ot-functions-docs-page.php:620
1122
+ msgid "End-Users Mode"
1123
+ msgstr ""
1124
+
1125
+ #: includes/ot-functions-docs-page.php:626
1126
+ msgid ""
1127
+ "Enter a name for your layout in the text field and hit \"New Layout\", "
1128
+ "you've created your first layout."
1129
+ msgstr ""
1130
+
1131
+ #: includes/ot-functions-docs-page.php:633
1132
+ msgid ""
1133
+ "Choose a layout from the select list and click the \"Activate Layout\" "
1134
+ "button."
1135
+ msgstr ""
1136
+
1137
+ #: includes/ot-functions-docs-page.php:638
1138
+ msgid "End-Users mode does not allow deleting layouts."
1139
+ msgstr ""
1140
+
1141
+ #: includes/ot-functions-docs-page.php:643
1142
+ msgid "Go to the <code>Appearance->Theme Options</code> tab."
1143
+ msgstr ""
1144
+
1145
+ #: includes/ot-functions-docs-page.php:674
1146
+ #: includes/ot-functions-docs-page.php:752
1147
+ msgid "How-to-guide"
1148
+ msgstr ""
1149
+
1150
+ #: includes/ot-functions-docs-page.php:676
1151
+ msgid ""
1152
+ "There are a few simple steps you need to take in order to use OptionTree's "
1153
+ "built in Meta Box API. In the code below I'll show you a basic demo of how "
1154
+ "to create your very own custom meta box using any number of the option types "
1155
+ "you have at your disposal. If you would like to see some demo code, there is "
1156
+ "a directory named <code>theme-mode</code> inside the <code>assets</code> "
1157
+ "directory that contains a file named <code>demo-meta-boxes.php</code> you "
1158
+ "can reference."
1159
+ msgstr ""
1160
+
1161
+ #: includes/ot-functions-docs-page.php:678
1162
+ msgid "Create and include your custom meta boxes file."
1163
+ msgstr ""
1164
+
1165
+ #: includes/ot-functions-docs-page.php:680
1166
+ msgid ""
1167
+ "Create a file and name it anything you want, maybe <code>meta-boxes.php</"
1168
+ "code>."
1169
+ msgstr ""
1170
+
1171
+ #: includes/ot-functions-docs-page.php:681
1172
+ msgid ""
1173
+ "As well, you'll probably want to create a directory named <code>includes</"
1174
+ "code> to put your <code>meta-boxes.php</code> into which will help keep you "
1175
+ "file structure nice and tidy."
1176
+ msgstr ""
1177
+
1178
+ #: includes/ot-functions-docs-page.php:682
1179
+ #: includes/ot-functions-docs-page.php:787
1180
+ msgid "Add the following code to your <code>functions.php</code>."
1181
+ msgstr ""
1182
+
1183
+ #: includes/ot-functions-docs-page.php:692
1184
+ msgid ""
1185
+ "Add a variation of the following code to your <code>meta-boxes.php</code>. "
1186
+ "You'll obviously need to fill it in with all your custom array values. It's "
1187
+ "important to note here that we use the <code>admin_init</code> filter "
1188
+ "because if you were to call the <code>ot_register_meta_box</code> function "
1189
+ "before OptionTree was loaded the sky would fall on your head."
1190
+ msgstr ""
1191
+
1192
+ #: includes/ot-functions-docs-page.php:754
1193
+ msgid ""
1194
+ "There are a few simple steps you need to take in order to use OptionTree as "
1195
+ "a theme included module. In the code below I'll show you a basic demo of how "
1196
+ "to include the entire plugin as a module, which will allow you to have the "
1197
+ "most up-to-date version of OptionTree without ever needing to hack the core "
1198
+ "of the plugin. If you would like to see some demo code, there is a directory "
1199
+ "named <code>theme-mode</code> inside the <code>assets</code> directory that "
1200
+ "contains a file named <code>demo-theme-options.php</code> you can reference."
1201
+ msgstr ""
1202
+
1203
+ #: includes/ot-functions-docs-page.php:756
1204
+ msgid "Step 1: Include the plugin & turn on theme mode."
1205
+ msgstr ""
1206
+
1207
+ #: includes/ot-functions-docs-page.php:758
1208
+ msgid ""
1209
+ "Download the latest version of <a href=\"http://wordpress.org/extend/plugins/"
1210
+ "option-tree/\" rel=\"nofollow\" target=\"_blank\">OptionTree</a>."
1211
+ msgstr ""
1212
+
1213
+ #: includes/ot-functions-docs-page.php:759
1214
+ msgid "Unpack the ZIP archive."
1215
+ msgstr ""
1216
+
1217
+ #: includes/ot-functions-docs-page.php:760
1218
+ msgid ""
1219
+ "Put the <code>option-tree</code> directory in the root of your theme. For "
1220
+ "example, the server path would be <code>/wp-content/themes/theme-name/option-"
1221
+ "tree/</code>."
1222
+ msgstr ""
1223
+
1224
+ #: includes/ot-functions-docs-page.php:761
1225
+ msgid ""
1226
+ "Add the following code to the beginning of your <code>functions.php</code>."
1227
+ msgstr ""
1228
+
1229
+ #: includes/ot-functions-docs-page.php:781
1230
+ msgid ""
1231
+ "It's that simple! You now have OptionTree built into your theme and anytime "
1232
+ "there's an update to the plugin you just replace the old version and you're "
1233
+ "good to go.."
1234
+ msgstr ""
1235
+
1236
+ #: includes/ot-functions-docs-page.php:783
1237
+ msgid "Step 2: Create Theme Options without using the UI Builder."
1238
+ msgstr ""
1239
+
1240
+ #: includes/ot-functions-docs-page.php:785
1241
+ msgid ""
1242
+ "Create a file and name it anything you want, maybe <code>theme-options.php</"
1243
+ "code>."
1244
+ msgstr ""
1245
+
1246
+ #: includes/ot-functions-docs-page.php:786
1247
+ msgid ""
1248
+ "As well, you'll probably want to create a directory named <code>includes</"
1249
+ "code> to put your <code>theme-options.php</code> into which will help keep "
1250
+ "you file structure nice and tidy."
1251
+ msgstr ""
1252
+
1253
+ #: includes/ot-functions-docs-page.php:797
1254
+ msgid ""
1255
+ "Add a variation of the following code to your <code>theme-options.php</"
1256
+ "code>. You'll obviously need to fill it in with all your custom array values "
1257
+ "for contextual help (optional), sections (required), and settings (required)."
1258
+ msgstr ""
1259
+
1260
+ #: includes/ot-functions-docs-page.php:800
1261
+ msgid ""
1262
+ "The code below is a boilerplate to get your started. For a full list of the "
1263
+ "available option types click the \"Option Types\" tab above. Also a quick "
1264
+ "note, you don't need to put OptionTree in theme mode to manually create "
1265
+ "options but you will want to hide the docs and settings as each time you "
1266
+ "load the admin area the settings be be written over with the code below if "
1267
+ "they've changed in any way. However, this ensures your settings do not get "
1268
+ "tampered with by the end-user."
1269
+ msgstr ""
1270
+
1271
+ #: includes/ot-functions-option-types.php:46
1272
+ msgid "Sorry, this function does not exist"
1273
+ msgstr ""
1274
+
1275
+ #: includes/ot-functions-option-types.php:107
1276
+ msgid "background-repeat"
1277
+ msgstr ""
1278
+
1279
+ #: includes/ot-functions-option-types.php:116
1280
+ msgid "background-attachment"
1281
+ msgstr ""
1282
+
1283
+ #: includes/ot-functions-option-types.php:125
1284
+ msgid "background-position"
1285
+ msgstr ""
1286
+
1287
+ #: includes/ot-functions-option-types.php:140
1288
+ #: includes/ot-functions-option-types.php:1685
1289
+ msgid "Add Media"
1290
+ msgstr ""
1291
+
1292
+ #: includes/ot-functions-option-types.php:210
1293
+ #: includes/ot-functions-option-types.php:264
1294
+ msgid "No Categories Found"
1295
+ msgstr ""
1296
+
1297
+ #: includes/ot-functions-option-types.php:259
1298
+ #: includes/ot-functions-option-types.php:530
1299
+ #: includes/ot-functions-option-types.php:769
1300
+ #: includes/ot-functions-option-types.php:953
1301
+ #: includes/ot-functions-option-types.php:1207
1302
+ #: includes/ot-functions-option-types.php:1323
1303
+ msgid "Choose One"
1304
+ msgstr ""
1305
+
1306
+ #: includes/ot-functions-option-types.php:478
1307
+ #: includes/ot-functions-option-types.php:536
1308
+ #: includes/ot-functions-option-types.php:904
1309
+ #: includes/ot-functions-option-types.php:959
1310
+ msgid "No Posts Found"
1311
+ msgstr ""
1312
+
1313
+ #: includes/ot-functions-option-types.php:607
1314
+ #: includes/ot-functions-option-types.php:846
1315
+ msgid "Add New"
1316
+ msgstr ""
1317
+
1318
+ #: includes/ot-functions-option-types.php:610
1319
+ #: includes/ot-functions-option-types.php:849
1320
+ msgid "You can re-order with drag & drop, the order will update after saving."
1321
+ msgstr ""
1322
+
1323
+ #: includes/ot-functions-option-types.php:720
1324
+ #: includes/ot-functions-option-types.php:775
1325
+ msgid "No Pages Found"
1326
+ msgstr ""
1327
+
1328
+ #: includes/ot-functions-option-types.php:1158
1329
+ #: includes/ot-functions-option-types.php:1212
1330
+ msgid "No Tags Found"
1331
+ msgstr ""
1332
+
1333
+ #: includes/ot-functions-option-types.php:1271
1334
+ #: includes/ot-functions-option-types.php:1328
1335
+ msgid "No Taxonomies Found"
1336
+ msgstr ""
1337
+
1338
+ #: includes/ot-functions-settings-page.php:35
1339
+ msgid "Warning!"
1340
+ msgstr ""
1341
+
1342
+ #: includes/ot-functions-settings-page.php:36
1343
+ msgid ""
1344
+ "Go to the %s page if you want to save data, this page is for adding settings."
1345
+ msgstr ""
1346
+
1347
+ #: includes/ot-functions-settings-page.php:37
1348
+ msgid ""
1349
+ "If you're unsure or not completely positive that you should be editing these "
1350
+ "settings, you should read the %s first."
1351
+ msgstr ""
1352
+
1353
+ #: includes/ot-functions-settings-page.php:38
1354
+ msgid ""
1355
+ "Things could break or be improperly displayed to the end-user if you do one "
1356
+ "of the following:"
1357
+ msgstr ""
1358
+
1359
+ #: includes/ot-functions-settings-page.php:39
1360
+ msgid ""
1361
+ "Give two sections the same ID, give two settings the same ID, give two "
1362
+ "contextual help content areas the same ID, don't create any settings, or "
1363
+ "have a section at the end of the settings list."
1364
+ msgstr ""
1365
+
1366
+ #: includes/ot-functions-settings-page.php:40
1367
+ msgid ""
1368
+ "You can create as many settings as your project requires and use them how "
1369
+ "you see fit. When you add a setting here, it will be available on the Theme "
1370
+ "Options page for use in your theme. To separate your settings into sections, "
1371
+ "click the \"Add Section\" button, fill in the input fields, and a new "
1372
+ "navigation menu item will be created."
1373
+ msgstr ""
1374
+
1375
+ #: includes/ot-functions-settings-page.php:41
1376
+ msgid ""
1377
+ "All of the settings can be sorted and rearranged to your liking with Drag & "
1378
+ "Drop. Don't worry about the order in which you create your settings, you can "
1379
+ "always reorder them."
1380
+ msgstr ""
1381
+
1382
+ #: includes/ot-functions-settings-page.php:92
1383
+ msgid "Add Section"
1384
+ msgstr ""
1385
+
1386
+ #: includes/ot-functions-settings-page.php:94
1387
+ #: includes/ot-functions-settings-page.php:133
1388
+ #: includes/ot-ui-theme-options.php:42
1389
+ msgid "Save Changes"
1390
+ msgstr ""
1391
+
1392
+ #: includes/ot-functions-settings-page.php:99
1393
+ msgid "Contextual Help"
1394
+ msgstr ""
1395
+
1396
+ #: includes/ot-functions-settings-page.php:103
1397
+ msgid "Contextual Help Sidebar"
1398
+ msgstr ""
1399
+
1400
+ #: includes/ot-functions-settings-page.php:103
1401
+ msgid ""
1402
+ "If you decide to add contextual help to the Theme Option page, enter the "
1403
+ "optional \"Sidebar\" HTML here. This would be an extremely useful place to "
1404
+ "add links to your themes documentation or support forum. Only after you've "
1405
+ "added some content below will this display to the user."
1406
+ msgstr ""
1407
+
1408
+ #: includes/ot-functions-settings-page.php:132
1409
+ msgid "Add Contextual Help Content"
1410
+ msgstr ""
1411
+
1412
+ #: includes/ot-functions-settings-page.php:168
1413
+ msgid ""
1414
+ "This import method has been deprecated. That means it has been replaced by a "
1415
+ "new method and is no longer supported, and may be removed from future "
1416
+ "versions. All themes that use this import method should be converted to use "
1417
+ "its replacement below."
1418
+ msgstr ""
1419
+
1420
+ #: includes/ot-functions-settings-page.php:170
1421
+ msgid ""
1422
+ "If you were given a Theme Options XML file with a premium or free theme, "
1423
+ "locate it on your hard drive and upload that file by clicking the blue "
1424
+ "upload button. A popup window will appear, upload the XML file and click "
1425
+ "\"Send to OptionTree\". The file URL should be in the upload input, if it is "
1426
+ "click \"Import XML\"."
1427
+ msgstr ""
1428
+
1429
+ #: includes/ot-functions-settings-page.php:173
1430
+ msgid "Import XML"
1431
+ msgstr ""
1432
+
1433
+ #: includes/ot-functions-settings-page.php:189
1434
+ msgid "Add XML"
1435
+ msgstr ""
1436
+
1437
+ #: includes/ot-functions-settings-page.php:226
1438
+ msgid ""
1439
+ "To import your Settings copy and paste what appears to be a random string of "
1440
+ "alpha numeric characters into this textarea and press the \"Import Settings"
1441
+ "\" button."
1442
+ msgstr ""
1443
+
1444
+ #: includes/ot-functions-settings-page.php:229
1445
+ msgid "Import Settings"
1446
+ msgstr ""
1447
+
1448
+ #: includes/ot-functions-settings-page.php:271
1449
+ msgid ""
1450
+ "Only after you've imported the Settings should you try and update your Theme "
1451
+ "Options."
1452
+ msgstr ""
1453
+
1454
+ #: includes/ot-functions-settings-page.php:273
1455
+ msgid ""
1456
+ "To import your Theme Options copy and paste what appears to be a random "
1457
+ "string of alpha numeric characters into this textarea and press the \"Import "
1458
+ "Theme Options\" button."
1459
+ msgstr ""
1460
+
1461
+ #: includes/ot-functions-settings-page.php:276
1462
+ msgid "Import Theme Options"
1463
+ msgstr ""
1464
+
1465
+ #: includes/ot-functions-settings-page.php:318
1466
+ msgid ""
1467
+ "Only after you've imported the Settings should you try and update your "
1468
+ "Layouts."
1469
+ msgstr ""
1470
+
1471
+ #: includes/ot-functions-settings-page.php:320
1472
+ msgid ""
1473
+ "To import your Layouts copy and paste what appears to be a random string of "
1474
+ "alpha numeric characters into this textarea and press the \"Import Layouts\" "
1475
+ "button. Keep in mind that when you import your layouts, the active layout's "
1476
+ "saved data will write over the current data set for your Theme Options."
1477
+ msgstr ""
1478
+
1479
+ #: includes/ot-functions-settings-page.php:323
1480
+ msgid "Import Layouts"
1481
+ msgstr ""
1482
+
1483
+ #: includes/ot-functions-settings-page.php:360
1484
+ msgid ""
1485
+ "Export your Settings by highlighting this text and doing a copy/paste into a "
1486
+ "blank .txt file. Then save the file for importing into another install of "
1487
+ "WordPress later. Alternatively, you could just paste it into the "
1488
+ "<code>OptionTree->Settings->Import</code> <strong>Settings</strong> textarea "
1489
+ "on another web site."
1490
+ msgstr ""
1491
+
1492
+ #: includes/ot-functions-settings-page.php:398
1493
+ msgid ""
1494
+ "Export your Theme Options data by highlighting this text and doing a copy/"
1495
+ "paste into a blank .txt file. Then save the file for importing into another "
1496
+ "install of WordPress later. Alternatively, you could just paste it into the "
1497
+ "<code>OptionTree->Settings->Import</code> <strong>Theme Options</strong> "
1498
+ "textarea on another web site."
1499
+ msgstr ""
1500
+
1501
+ #: includes/ot-functions-settings-page.php:434
1502
+ msgid ""
1503
+ "Export your Layouts by highlighting this text and doing a copy/paste into a "
1504
+ "blank .txt file. Then save the file for importing into another install of "
1505
+ "WordPress later. Alternatively, you could just paste it into the "
1506
+ "<code>OptionTree->Settings->Import</code> <strong>Layouts</strong> textarea "
1507
+ "on another web site."
1508
+ msgstr ""
1509
+
1510
+ #: includes/ot-functions-settings-page.php:476
1511
+ msgid ""
1512
+ "To add a new layout enter a unique lower case alphanumeric string (dashes "
1513
+ "allowed) in the text field and click \"Save Layouts\"."
1514
+ msgstr ""
1515
+
1516
+ #: includes/ot-functions-settings-page.php:477
1517
+ msgid ""
1518
+ "As well, you can activate, remove, and drag & drop the order; all situations "
1519
+ "require you to click \"Save Layouts\" for the changes to be applied."
1520
+ msgstr ""
1521
+
1522
+ #: includes/ot-functions-settings-page.php:478
1523
+ msgid ""
1524
+ "When you create a new layout it will become active and any changes made to "
1525
+ "the Theme Options will be applied to it. If you switch back to a different "
1526
+ "layout immediately after creating a new layout that new layout will have a "
1527
+ "snapshot of the current Theme Options data attached to it."
1528
+ msgstr ""
1529
+
1530
+ #: includes/ot-functions-settings-page.php:479
1531
+ msgid ""
1532
+ "Visit <code>OptionTree->Documentation->Layouts Overview</code> to see a more "
1533
+ "in-depth description of what layouts are and how to use them."
1534
+ msgstr ""
1535
+
1536
+ #: includes/ot-functions-settings-page.php:516
1537
+ msgid "Save Layouts"
1538
+ msgstr ""
1539
+
1540
+ #: includes/ot-settings-api.php:346
1541
+ msgid "Reset Options"
1542
+ msgstr ""
1543
+
1544
+ #: includes/ot-ui-admin.php:19 includes/ot-ui-admin.php:20
1545
+ msgid "OptionTree"
1546
+ msgstr ""
1547
+
1548
+ #: includes/ot-ui-admin.php:36 includes/ot-ui-admin.php:125
1549
+ #: includes/ot-ui-theme-options.php:40
1550
+ msgid "Theme Options updated."
1551
+ msgstr ""
1552
+
1553
+ #: includes/ot-ui-admin.php:37 includes/ot-ui-admin.php:126
1554
+ #: includes/ot-ui-theme-options.php:41
1555
+ msgid "Theme Options reset."
1556
+ msgstr ""
1557
+
1558
+ #: includes/ot-ui-admin.php:38 includes/ot-ui-admin.php:127
1559
+ msgid "Save Settings"
1560
+ msgstr ""
1561
+
1562
+ #: includes/ot-ui-admin.php:44
1563
+ msgid "Theme Options UI"
1564
+ msgstr ""
1565
+
1566
+ #: includes/ot-ui-admin.php:48
1567
+ msgid "Import"
1568
+ msgstr ""
1569
+
1570
+ #: includes/ot-ui-admin.php:52
1571
+ msgid "Export"
1572
+ msgstr ""
1573
+
1574
+ #: includes/ot-ui-admin.php:56 includes/ot-ui-admin.php:86
1575
+ #: includes/ot-ui-admin.php:104
1576
+ msgid "Layouts"
1577
+ msgstr ""
1578
+
1579
+ #: includes/ot-ui-admin.php:62
1580
+ msgid "Theme Options UI Builder"
1581
+ msgstr ""
1582
+
1583
+ #: includes/ot-ui-admin.php:68
1584
+ msgid "Settings XML"
1585
+ msgstr ""
1586
+
1587
+ #: includes/ot-ui-admin.php:80 includes/ot-ui-admin.php:98
1588
+ #: includes/ot-ui-theme-options.php:34 includes/ot-ui-theme-options.php:35
1589
+ msgid "Theme Options"
1590
+ msgstr ""
1591
+
1592
+ #: includes/ot-ui-admin.php:110
1593
+ msgid "Add, Activate, & Remove Layouts"
1594
+ msgstr ""
1595
+
1596
+ #: includes/ot-ui-admin.php:119 includes/ot-ui-admin.php:120
1597
+ msgid "Documentation"
1598
+ msgstr ""
1599
+
1600
+ #: includes/ot-ui-admin.php:133
1601
+ msgid "Creating Options"
1602
+ msgstr ""
1603
+
1604
+ #: includes/ot-ui-admin.php:137
1605
+ msgid "Option Types"
1606
+ msgstr ""
1607
+
1608
+ #: includes/ot-ui-admin.php:141
1609
+ msgid "Function References"
1610
+ msgstr ""
1611
+
1612
+ #: includes/ot-ui-admin.php:145 includes/ot-ui-admin.php:187
1613
+ msgid "Theme Mode"
1614
+ msgstr ""
1615
+
1616
+ #: includes/ot-ui-admin.php:149 includes/ot-ui-admin.php:193
1617
+ msgid "Meta Boxes"
1618
+ msgstr ""
1619
+
1620
+ #: includes/ot-ui-admin.php:153
1621
+ msgid "Code Examples"
1622
+ msgstr ""
1623
+
1624
+ #: includes/ot-ui-admin.php:157
1625
+ msgid "Layouts Overview"
1626
+ msgstr ""
1627
+
1628
+ #: includes/ot-ui-admin.php:163
1629
+ msgid "Overview of available Theme Option fields."
1630
+ msgstr ""
1631
+
1632
+ #: includes/ot-ui-admin.php:169
1633
+ msgid "Option types in alphabetical order & hooks to filter them."
1634
+ msgstr ""
1635
+
1636
+ #: includes/ot-ui-admin.php:175
1637
+ msgid "Function Reference:ot_get_option()"
1638
+ msgstr ""
1639
+
1640
+ #: includes/ot-ui-admin.php:181
1641
+ msgid "Function Reference:get_option_tree()"
1642
+ msgstr ""
1643
+
1644
+ #: includes/ot-ui-admin.php:199
1645
+ msgid "Code examples for front-end development."
1646
+ msgstr ""
1647
+
1648
+ #: includes/ot-ui-admin.php:205
1649
+ msgid "What's a layout anyhow?"
1650
+ msgstr ""
ot-loader.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: OptionTree
4
  * Plugin URI: http://wp.envato.com
5
  * Description: Theme Options UI Builder for WordPress. A simple way to create & save Theme Options and Meta Boxes for free or premium themes.
6
- * Version: 2.0.1
7
  * Author: Derek Herman
8
  * Author URI: http://valendesigns.com
9
  * License: GPLv2
@@ -34,14 +34,17 @@ if ( ! class_exists( 'OT_Loader' ) ) {
34
  /* setup the constants */
35
  add_action( 'after_setup_theme', array( &$this, 'constants' ), 2 );
36
 
 
 
 
37
  /* include the required admin files */
38
- add_action( 'after_setup_theme', array( &$this, 'admin_includes' ), 3 );
39
 
40
  /* include the required files */
41
- add_action( 'after_setup_theme', array( &$this, 'includes' ), 4 );
42
 
43
  /* hook into WordPress */
44
- add_action( 'after_setup_theme', array( &$this, 'hooks' ), 5 );
45
  }
46
 
47
  /**
@@ -60,7 +63,7 @@ if ( ! class_exists( 'OT_Loader' ) ) {
60
  /**
61
  * Current Version number.
62
  */
63
- define( 'OT_VERSION', '2.0.1' );
64
 
65
  /**
66
  * For developers: Allow Unfiltered HTML in all the textareas.
@@ -116,6 +119,22 @@ if ( ! class_exists( 'OT_Loader' ) ) {
116
 
117
  }
118
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
119
  /**
120
  * Include admin files
121
  *
3
  * Plugin Name: OptionTree
4
  * Plugin URI: http://wp.envato.com
5
  * Description: Theme Options UI Builder for WordPress. A simple way to create & save Theme Options and Meta Boxes for free or premium themes.
6
+ * Version: 2.0.2
7
  * Author: Derek Herman
8
  * Author URI: http://valendesigns.com
9
  * License: GPLv2
34
  /* setup the constants */
35
  add_action( 'after_setup_theme', array( &$this, 'constants' ), 2 );
36
 
37
+ /* load text domain */
38
+ add_action( 'after_setup_theme', array( &$this, 'load_textdomain' ), 3 );
39
+
40
  /* include the required admin files */
41
+ add_action( 'after_setup_theme', array( &$this, 'admin_includes' ), 4 );
42
 
43
  /* include the required files */
44
+ add_action( 'after_setup_theme', array( &$this, 'includes' ), 5 );
45
 
46
  /* hook into WordPress */
47
+ add_action( 'after_setup_theme', array( &$this, 'hooks' ), 6 );
48
  }
49
 
50
  /**
63
  /**
64
  * Current Version number.
65
  */
66
+ define( 'OT_VERSION', '2.0.2' );
67
 
68
  /**
69
  * For developers: Allow Unfiltered HTML in all the textareas.
119
 
120
  }
121
 
122
+ /**
123
+ * Load the text domain.
124
+ *
125
+ * @return void
126
+ *
127
+ * @access private
128
+ * @since 2.0
129
+ */
130
+ public function load_textdomain() {
131
+ if ( false == OT_THEME_MODE ) {
132
+ load_plugin_textdomain( 'option-tree', false, OT_DIR . 'languages' );
133
+ } else {
134
+ load_theme_textdomain( 'option-tree', OT_DIR . 'languages' );
135
+ }
136
+ }
137
+
138
  /**
139
  * Include admin files
140
  *
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://bit.ly/NuXI3T
4
  Tags: admin, theme options, meta boxes, options, admin interface, ajax
5
  Requires at least: 3.3
6
  Tested up to: 3.5
7
- Stable tag: 2.0.1
8
  License: GPLv2
9
 
10
  Theme Options UI Builder for WordPress. A simple way to create & save Theme Options and Meta Boxes for free or premium themes.
@@ -41,6 +41,11 @@ Yes. OptionTree requires PHP5 to work correctly (so does WP 3.2+).
41
 
42
  == Changelog ==
43
 
 
 
 
 
 
44
  = 2.0.1 =
45
  * Import from table was not mapping settings correctly. It is now.
46
 
4
  Tags: admin, theme options, meta boxes, options, admin interface, ajax
5
  Requires at least: 3.3
6
  Tested up to: 3.5
7
+ Stable tag: 2.0.2
8
  License: GPLv2
9
 
10
  Theme Options UI Builder for WordPress. A simple way to create & save Theme Options and Meta Boxes for free or premium themes.
41
 
42
  == Changelog ==
43
 
44
+ = 2.0.2 =
45
+ * Added I18n support, let the translations begin. The option-tree.pot file is inside the languages directory.
46
+ * Trim whitespace on imported choices array.
47
+ * Fixed the CSS insert function not having a value to save.
48
+
49
  = 2.0.1 =
50
  * Import from table was not mapping settings correctly. It is now.
51
 
screenshot-1.png CHANGED
Binary file
screenshot-2.png CHANGED
Binary file
screenshot-3.png CHANGED
Binary file