OptionTree - Version 2.0.9

Version Description

  • Fixed the issue where the Textarea Simple and CSS option types were mysteriously being ran through wpautop.
  • Added missing class setting to Textarea, Textarea Simple, & CSS option types.
  • Fixed theme-options.php exported array where label values were not correct.
  • Change GET to POST for all AJAX calls to fix a bug where some servers would not allow long strings to be passed in GET variables.
  • Added the 'ot_after_validate_setting' filter to the validation function.
  • Added $field_id to the ot_validate_setting() for more precise filtering.
  • Added the ot_reverse_wpautop() function that you can run input through just incase you need it.
  • Updated the docs to include information on why WYSIWYG editors are not allowed in meta boxes and that they revert to a Textarea Simple.
  • Update option-tree.pot file.
Download this release

Release Info

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

Code changes from version 2.0.8 to 2.0.9

assets/css/ot-admin.css CHANGED
@@ -12,7 +12,6 @@
12
  /* --------------------------------------------------
13
  :: OptionTree Wrappers
14
  ---------------------------------------------------*/
15
- /* .settings-wrap { max-width: 1020px; } */
16
  #option-tree-settings-api .metabox-holder { overflow: hidden; }
17
  #option-tree-settings-api .postbox { background: #fff; border: none; margin: 0 20px; }
18
  #option-tree-settings-api .inside { margin: 0px !important; padding: 0px !important; }
@@ -90,6 +89,9 @@
90
  #contextual-help-setting { float: left; padding: 10px 0 5px 0; width: 100%; }
91
  #contextual-help-label { float: left; padding-top: 20px; width: 100%; }
92
  #option_tree_settings_help { float: left; width: 100%; }
 
 
 
93
 
94
  @media only screen and (max-width: 900px) {
95
  .format-setting .description,
@@ -144,13 +146,13 @@ input:focus.option-tree-ui-input { border-color: #bbb !important; }
144
  /* --------------------------------------------------
145
  :: Setting Item with Drag & Drop
146
  ---------------------------------------------------*/
147
- .option-tree-setting-wrap { margin-top: 0px; }
148
- .option-tree-setting-wrap li { margin: 4px 0px; }
149
- .option-tree-setting { border: 1px solid #ccc; cursor: move; overflow: hidden; position: relative; -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; }
150
  .ui-state-disabled .option-tree-setting { cursor: default; }
151
- .option-tree-setting a { text-decoration: none; }
152
- .option-tree-setting .open { background: #fafafa; line-height: 21px; height: 21px; padding: 10px 100px 10px 10px; display: block; }
153
- .option-tree-setting .open:hover { background: #fafafa url(../images/ot-dots.png) no-repeat 4px 15px; }
154
 
155
  .button-section { position: absolute; right: 0px; top: 1px; }
156
 
@@ -158,39 +160,39 @@ input:focus.option-tree-ui-input { border-color: #bbb !important; }
158
  .option-tree-setting.is-section .open:hover { background: #e9f2fb url(../images/ot-dots.png) no-repeat 4px 15px; }
159
 
160
  .format-setting .ui-sortable-helper
161
- .option-tree-setting .open { background: #fff url(../images/ot-dots.png) no-repeat 4px 15px; }
162
 
163
  .ui-state-highlight { border: 1px dashed #ccc; line-height: 21px; height: 21px; padding: 10px 0px; display: block; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; }
164
 
165
- .option-tree-setting-body { background: #fff; border-top: 1px solid #ccc; display: none; padding: 10px; -webkit-border-bottom-right-radius: 3px; -webkit-border-bottom-left-radius: 3px; -moz-border-radius-bottomright: 3px; -moz-border-radius-bottomleft: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; }
166
 
167
- li ul .format-settings { padding: 0 0 10px 0; }
168
- li ul .format-setting-label { border: none; padding: 0px; margin: 0px; }
169
 
170
  /* --------------------------------------------------
171
  :: Layouts
172
  ---------------------------------------------------*/
173
- #option_tree_layouts { display: none; padding-top: 12px; }
174
- #option-tree-options-layouts-form { left: 13px; position: absolute; top: 40px; z-index: 100; }
175
- .option-tree-save-layout { width: 250px; overflow: hidden; }
176
- .option-tree-save-layout .widefat { float: left; width: 128px !important; }
177
- .option-tree-save-layout button { margin: 0 0 0 10px; }
178
- .option-tree-active-layout { }
179
 
180
  /* --------------------------------------------------
181
  :: Select
182
  ---------------------------------------------------*/
183
- .select-group { margin-right: 53px; overflow: hidden; width: auto; }
184
- .select-wrapper { background: #fff url(../images/ot-select.png) no-repeat right center; border: 1px solid #ccc; display: block; float: left; font-size: 12px; height: 27px; margin: 0 5px 5px 0; width: auto; border-radius: 2px; -webkit-border-radius: 2px; -moz-border-radius: 2px; -moz-box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.05); -webkit-box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.05); box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.05); }
185
- .select-wrapper:hover { background-image: url(../images/ot-select-hover.png); border-color: #bbb; }
186
- select.option-tree-ui-select { cursor: pointer; filter: alpha(opacity: 0); font-size: 14px; height: 29px; margin: 0; -moz-opacity: 0; opacity: 0; padding: 0 !important; position: relative; width: inherit; z-index: 4; min-width: 118px; }
187
- select.option-tree-ui-select option { padding: 3px 15px !important; }
188
- .select-wrapper span { height: 27px; line-height: 27px; padding-left: 7px; position: absolute; z-index: 2; }
189
 
190
  #option-tree-options-layouts-form .select-wrapper { left: 244px; position: absolute; top: 0; float: none; }
191
 
192
  .type-measurement select.option-tree-ui-select { min-width: 68px !important; }
193
- .type-measurement .select-wrapper { position: absolute; right: 0px; top: 0px; }
194
 
195
  /* FireFox */
196
  @-moz-document url-prefix() {
12
  /* --------------------------------------------------
13
  :: OptionTree Wrappers
14
  ---------------------------------------------------*/
 
15
  #option-tree-settings-api .metabox-holder { overflow: hidden; }
16
  #option-tree-settings-api .postbox { background: #fff; border: none; margin: 0 20px; }
17
  #option-tree-settings-api .inside { margin: 0px !important; padding: 0px !important; }
89
  #contextual-help-setting { float: left; padding: 10px 0 5px 0; width: 100%; }
90
  #contextual-help-label { float: left; padding-top: 20px; width: 100%; }
91
  #option_tree_settings_help { float: left; width: 100%; }
92
+ #option-tree-settings-api blockquote { font-style: italic; padding-left: 15px; position: relative; }
93
+ #option-tree-settings-api blockquote:before { color: #ccc; content: "\201C"; display: block; font-size: 400%; font-style: normal; left: -10px; position: absolute; top: 10px; }
94
+
95
 
96
  @media only screen and (max-width: 900px) {
97
  .format-setting .description,
146
  /* --------------------------------------------------
147
  :: Setting Item with Drag & Drop
148
  ---------------------------------------------------*/
149
+ .option-tree-setting-wrap { margin-top: 0px; }
150
+ .option-tree-setting-wrap li { margin: 4px 0px; }
151
+ .option-tree-setting { border: 1px solid #ccc; cursor: move; overflow: hidden; position: relative; -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; }
152
  .ui-state-disabled .option-tree-setting { cursor: default; }
153
+ .option-tree-setting a { text-decoration: none; }
154
+ .option-tree-setting .open { background: #fafafa; line-height: 21px; height: 21px; padding: 10px 100px 10px 10px; display: block; }
155
+ .option-tree-setting .open:hover { background: #fafafa url(../images/ot-dots.png) no-repeat 4px 15px; }
156
 
157
  .button-section { position: absolute; right: 0px; top: 1px; }
158
 
160
  .option-tree-setting.is-section .open:hover { background: #e9f2fb url(../images/ot-dots.png) no-repeat 4px 15px; }
161
 
162
  .format-setting .ui-sortable-helper
163
+ .option-tree-setting .open { background: #fff url(../images/ot-dots.png) no-repeat 4px 15px; }
164
 
165
  .ui-state-highlight { border: 1px dashed #ccc; line-height: 21px; height: 21px; padding: 10px 0px; display: block; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; }
166
 
167
+ .option-tree-setting-body { background: #fff; border-top: 1px solid #ccc; display: none; padding: 10px; -webkit-border-bottom-right-radius: 3px; -webkit-border-bottom-left-radius: 3px; -moz-border-radius-bottomright: 3px; -moz-border-radius-bottomleft: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; }
168
 
169
+ li ul .format-settings { padding: 0 0 10px 0; }
170
+ li ul .format-setting-label { border: none; padding: 0px; margin: 0px; }
171
 
172
  /* --------------------------------------------------
173
  :: Layouts
174
  ---------------------------------------------------*/
175
+ #option_tree_layouts { display: none; padding-top: 12px; }
176
+ #option-tree-options-layouts-form { left: 13px; position: absolute; top: 40px; z-index: 100; }
177
+ .option-tree-save-layout { width: 250px; overflow: hidden; }
178
+ .option-tree-save-layout .widefat { float: left; width: 128px !important; }
179
+ .option-tree-save-layout button { margin: 0 0 0 10px; }
180
+ .option-tree-active-layout { }
181
 
182
  /* --------------------------------------------------
183
  :: Select
184
  ---------------------------------------------------*/
185
+ .select-group { margin-right: 53px; overflow: hidden; width: auto; }
186
+ .select-wrapper { background: #fff url(../images/ot-select.png) no-repeat right center; border: 1px solid #ccc; display: block; float: left; font-size: 12px; height: 27px; margin: 0 5px 5px 0; width: auto; border-radius: 2px; -webkit-border-radius: 2px; -moz-border-radius: 2px; -moz-box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.05); -webkit-box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.05); box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.05); }
187
+ .select-wrapper:hover { background-image: url(../images/ot-select-hover.png); border-color: #bbb; }
188
+ select.option-tree-ui-select { cursor: pointer; filter: alpha(opacity: 0); font-size: 14px; height: 29px; margin: 0; -moz-opacity: 0; opacity: 0; padding: 0 !important; position: relative; width: inherit; z-index: 4; min-width: 118px; }
189
+ select.option-tree-ui-select option { padding: 3px 15px !important; }
190
+ .select-wrapper span { height: 27px; line-height: 27px; padding-left: 7px; position: absolute; z-index: 2; }
191
 
192
  #option-tree-options-layouts-form .select-wrapper { left: 244px; position: absolute; top: 0; float: none; }
193
 
194
  .type-measurement select.option-tree-ui-select { min-width: 68px !important; }
195
+ .type-measurement .select-wrapper { position: absolute; right: 0px; top: 0px; }
196
 
197
  /* FireFox */
198
  @-moz-document url-prefix() {
assets/js/ot-admin.js CHANGED
@@ -201,7 +201,7 @@
201
  var count = parseInt(list.children('li').length);
202
  $.ajax({
203
  url: option_tree.ajax,
204
- type: 'get',
205
  data: {
206
  action: 'add_' + type,
207
  count: count,
201
  var count = parseInt(list.children('li').length);
202
  $.ajax({
203
  url: option_tree.ajax,
204
+ type: 'post',
205
  data: {
206
  action: 'add_' + type,
207
  count: count,
includes/ot-functions-admin.php CHANGED
@@ -51,6 +51,7 @@ if ( ! function_exists( 'ot_after_theme_options_save' ) ) {
51
  *
52
  * @param mixed Setting value
53
  * @param string Setting type
 
54
  * @return mixed
55
  *
56
  * @access public
@@ -58,19 +59,19 @@ if ( ! function_exists( 'ot_after_theme_options_save' ) ) {
58
  */
59
  if ( ! function_exists( 'ot_validate_setting' ) ) {
60
 
61
- function ot_validate_setting( $input, $type ) {
62
 
63
  /* exit early if missing data */
64
- if ( ! $input || ! $type )
65
  return $input;
66
 
67
- $input = apply_filters( 'ot_validate_setting', $input, $type );
68
 
69
  if ( 'background' == $type ) {
70
 
71
- $input['background-color'] = ot_validate_setting( $input['background-color'], 'colorpicker' );
72
 
73
- $input['background-image'] = ot_validate_setting( $input['background-image'], 'upload' );
74
 
75
  } else if ( 'colorpicker' == $type ) {
76
 
@@ -97,13 +98,15 @@ if ( ! function_exists( 'ot_validate_setting' ) ) {
97
 
98
  } else if ( 'typography' == $type ) {
99
 
100
- $input['font-color'] = ot_validate_setting( $input['font-color'], 'colorpicker' );
101
 
102
  } else if ( 'upload' == $type ) {
103
 
104
  $input = sanitize_text_field( $input );
105
 
106
  }
 
 
107
 
108
  return $input;
109
 
@@ -381,7 +384,7 @@ if ( ! function_exists( 'ot_default_settings' ) ) {
381
 
382
  $content = ot_stripslashes( $options[$setting['id']] );
383
 
384
- $options[$setting['id']] = ot_validate_setting( $content, $setting['type'] );
385
 
386
  }
387
 
@@ -604,7 +607,7 @@ if ( ! function_exists( 'ot_import' ) ) {
604
 
605
  $content = ot_stripslashes( $options[$setting['id']] );
606
 
607
- $options[$setting['id']] = ot_validate_setting( $content, $setting['type'] );
608
 
609
  }
610
 
@@ -656,7 +659,7 @@ if ( ! function_exists( 'ot_import' ) ) {
656
 
657
  $content = ot_stripslashes( $options[$setting['id']] );
658
 
659
- $options[$setting['id']] = ot_validate_setting( $content, $setting['type'] );
660
 
661
  }
662
 
@@ -917,14 +920,14 @@ if ( ! function_exists( 'ot_export_php_settings_array' ) ) {
917
  $choices = '';
918
  if ( isset( $value['choices'] ) && ! empty( $value['choices'] ) ) {
919
  foreach( $value['choices'] as $choice ) {
920
- $_value = isset( $choice['value'] ) ? $choice['value'] : '';
921
- $_label = isset( $choice['label'] ) ? str_replace( "'", "\'", $choice['label'] ) : '';
922
- $_src = isset( $choice['src'] ) ? str_replace( "'", "\'", $choice['src'] ) : '';
923
  $choices.= "
924
  array(
925
- 'value' => '$_value',
926
- 'label' => '$_label',
927
- 'src' => '$_src'
928
  ),";
929
  }
930
  $choices = substr_replace( $choices, '' , -1 );
@@ -933,54 +936,54 @@ if ( ! function_exists( 'ot_export_php_settings_array' ) ) {
933
  ),";
934
  }
935
 
936
- $sub_settings = '';
937
  if ( isset( $value['settings'] ) && ! empty( $value['settings'] ) ) {
938
  foreach( $value['settings'] as $setting ) {
939
- $_sub_id = isset( $setting['id'] ) ? $setting['id'] : '';
940
- $_sub_label = isset( $setting['label'] ) ? str_replace( "'", "\'", $setting['label'] ) : '';
941
- $_sub_desc = isset( $setting['desc'] ) ? str_replace( "'", "\'", $setting['desc'] ) : '';
942
- $_sub_std = isset( $setting['std'] ) ? $setting['std'] : '';
943
- $_sub_type = isset( $setting['type'] ) ? $setting['type'] : '';
944
- $_sub_rows = isset( $setting['rows'] ) ? $setting['rows'] : '';
945
- $_sub_post_type = isset( $setting['post_type'] ) ? $setting['post_type'] : '';
946
- $_sub_taxonomy = isset( $setting['taxonomy'] ) ? $setting['taxonomy'] : '';
947
- $_sub_class = isset( $setting['class'] ) ? $setting['class'] : '';
948
 
949
- $sub_choices = '';
950
  if ( isset( $setting['choices'] ) && ! empty( $setting['choices'] ) ) {
951
- foreach( $setting['choices'] as $sub_choice ) {
952
- $_sub_choice_value = isset( $sub_choice['value'] ) ? $sub_choice['value'] : '';
953
- $_sub_choice_label = isset( $sub_choice['label'] ) ? str_replace( "'", "\'", $sub_choice['label'] ) : '';
954
- $_sub_choice_src = isset( $sub_choice['src'] ) ? str_replace( "'", "\'", $sub_choice['src'] ) : '';
955
- $sub_choices.= "
956
  array(
957
- 'value' => '$_sub_choice_value',
958
- 'label' => '$_sub_choice_label',
959
- 'src' => '$_sub_choice_src'
960
  ),";
961
  }
962
- $sub_choices = substr_replace( $sub_choices, '' , -1 );
963
- $sub_choices = ",
964
- 'choices' => array( $sub_choices
965
  ),";
966
  }
967
 
968
- $sub_settings.= "
969
  array(
970
- 'id' => '$_sub_id',
971
- 'label' => '$_sub_label',
972
- 'desc' => '$_sub_desc',
973
- 'std' => '$_sub_std',
974
- 'type' => '$_sub_type',
975
- 'rows' => '$_sub_rows',
976
- 'post_type' => '$_sub_post_type',
977
- 'taxonomy' => '$_sub_taxonomy',
978
- 'class' => '$_sub_class'$sub_choices
979
  ),";
980
  }
981
- $sub_settings = substr_replace( $sub_settings, '' , -1 );
982
- $sub_settings = ",
983
- 'settings' => array( $sub_settings
984
  )";
985
  }
986
 
@@ -995,7 +998,7 @@ if ( ! function_exists( 'ot_export_php_settings_array' ) ) {
995
  'rows' => '$_rows',
996
  'post_type' => '$_post_type',
997
  'taxonomy' => '$_taxonomy',
998
- 'class' => '$_class'$choices$sub_settings
999
  ),";
1000
  }
1001
  $settings = substr_replace( $settings, '' , -1 );
@@ -3178,7 +3181,7 @@ if ( ! function_exists( 'ot_array_keys_exists' ) ) {
3178
  /**
3179
  * Custom stripslashes from single value or array.
3180
  *
3181
- * @param mixed $input
3182
  * @return mixed
3183
  *
3184
  * @access public
@@ -3216,5 +3219,38 @@ if ( ! function_exists( 'ot_stripslashes' ) ) {
3216
 
3217
  }
3218
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3219
  /* End of file ot-functions-admin.php */
3220
  /* Location: ./includes/ot-functions-admin.php */
51
  *
52
  * @param mixed Setting value
53
  * @param string Setting type
54
+ * @param string Setting field ID
55
  * @return mixed
56
  *
57
  * @access public
59
  */
60
  if ( ! function_exists( 'ot_validate_setting' ) ) {
61
 
62
+ function ot_validate_setting( $input, $type, $field_id ) {
63
 
64
  /* exit early if missing data */
65
+ if ( ! $input || ! $type || ! $field_id )
66
  return $input;
67
 
68
+ $input = apply_filters( 'ot_validate_setting', $input, $type, $field_id );
69
 
70
  if ( 'background' == $type ) {
71
 
72
+ $input['background-color'] = ot_validate_setting( $input['background-color'], 'colorpicker', $field_id );
73
 
74
+ $input['background-image'] = ot_validate_setting( $input['background-image'], 'upload', $field_id );
75
 
76
  } else if ( 'colorpicker' == $type ) {
77
 
98
 
99
  } else if ( 'typography' == $type ) {
100
 
101
+ $input['font-color'] = ot_validate_setting( $input['font-color'], 'colorpicker', $field_id );
102
 
103
  } else if ( 'upload' == $type ) {
104
 
105
  $input = sanitize_text_field( $input );
106
 
107
  }
108
+
109
+ $input = apply_filters( 'ot_after_validate_setting', $input, $type, $field_id );
110
 
111
  return $input;
112
 
384
 
385
  $content = ot_stripslashes( $options[$setting['id']] );
386
 
387
+ $options[$setting['id']] = ot_validate_setting( $content, $setting['type'], $setting['id'] );
388
 
389
  }
390
 
607
 
608
  $content = ot_stripslashes( $options[$setting['id']] );
609
 
610
+ $options[$setting['id']] = ot_validate_setting( $content, $setting['type'], $setting['id'] );
611
 
612
  }
613
 
659
 
660
  $content = ot_stripslashes( $options[$setting['id']] );
661
 
662
+ $options[$setting['id']] = ot_validate_setting( $content, $setting['type'], $setting['id'] );
663
 
664
  }
665
 
920
  $choices = '';
921
  if ( isset( $value['choices'] ) && ! empty( $value['choices'] ) ) {
922
  foreach( $value['choices'] as $choice ) {
923
+ $_choice_value = isset( $choice['value'] ) ? $choice['value'] : '';
924
+ $_choice_label = isset( $choice['label'] ) ? str_replace( "'", "\'", $choice['label'] ) : '';
925
+ $_choice_src = isset( $choice['src'] ) ? str_replace( "'", "\'", $choice['src'] ) : '';
926
  $choices.= "
927
  array(
928
+ 'value' => '$_choice_value',
929
+ 'label' => '$_choice_label',
930
+ 'src' => '$_choice_src'
931
  ),";
932
  }
933
  $choices = substr_replace( $choices, '' , -1 );
936
  ),";
937
  }
938
 
939
+ $setting_settings = '';
940
  if ( isset( $value['settings'] ) && ! empty( $value['settings'] ) ) {
941
  foreach( $value['settings'] as $setting ) {
942
+ $_setting_id = isset( $setting['id'] ) ? $setting['id'] : '';
943
+ $_setting_label = isset( $setting['label'] ) ? str_replace( "'", "\'", $setting['label'] ) : '';
944
+ $_setting_desc = isset( $setting['desc'] ) ? str_replace( "'", "\'", $setting['desc'] ) : '';
945
+ $_setting_std = isset( $setting['std'] ) ? $setting['std'] : '';
946
+ $_setting_type = isset( $setting['type'] ) ? $setting['type'] : '';
947
+ $_setting_rows = isset( $setting['rows'] ) ? $setting['rows'] : '';
948
+ $_setting_post_type = isset( $setting['post_type'] ) ? $setting['post_type'] : '';
949
+ $_setting_taxonomy = isset( $setting['taxonomy'] ) ? $setting['taxonomy'] : '';
950
+ $_setting_class = isset( $setting['class'] ) ? $setting['class'] : '';
951
 
952
+ $setting_choices = '';
953
  if ( isset( $setting['choices'] ) && ! empty( $setting['choices'] ) ) {
954
+ foreach( $setting['choices'] as $setting_choice ) {
955
+ $_setting_choice_value = isset( $setting_choice['value'] ) ? $setting_choice['value'] : '';
956
+ $_setting_choice_label = isset( $setting_choice['label'] ) ? str_replace( "'", "\'", $setting_choice['label'] ) : '';
957
+ $_setting_choice_src = isset( $setting_choice['src'] ) ? str_replace( "'", "\'", $setting_choice['src'] ) : '';
958
+ $setting_choices.= "
959
  array(
960
+ 'value' => '$_setting_choice_value',
961
+ 'label' => '$_setting_choice_label',
962
+ 'src' => '$_setting_choice_src'
963
  ),";
964
  }
965
+ $setting_choices = substr_replace( $setting_choices, '' , -1 );
966
+ $setting_choices = ",
967
+ 'choices' => array( $setting_choices
968
  ),";
969
  }
970
 
971
+ $setting_settings.= "
972
  array(
973
+ 'id' => '$_setting_id',
974
+ 'label' => '$_setting_label',
975
+ 'desc' => '$_setting_desc',
976
+ 'std' => '$_setting_std',
977
+ 'type' => '$_setting_type',
978
+ 'rows' => '$_setting_rows',
979
+ 'post_type' => '$_setting_post_type',
980
+ 'taxonomy' => '$_setting_taxonomy',
981
+ 'class' => '$_setting_class'$setting_choices
982
  ),";
983
  }
984
+ $setting_settings = substr_replace( $setting_settings, '' , -1 );
985
+ $setting_settings = ",
986
+ 'settings' => array( $setting_settings
987
  )";
988
  }
989
 
998
  'rows' => '$_rows',
999
  'post_type' => '$_post_type',
1000
  'taxonomy' => '$_taxonomy',
1001
+ 'class' => '$_class'$choices$setting_settings
1002
  ),";
1003
  }
1004
  $settings = substr_replace( $settings, '' , -1 );
3181
  /**
3182
  * Custom stripslashes from single value or array.
3183
  *
3184
+ * @param mixed $input
3185
  * @return mixed
3186
  *
3187
  * @access public
3219
 
3220
  }
3221
 
3222
+ /**
3223
+ * Reverse wpautop.
3224
+ *
3225
+ * @param string $string The string to be filtered
3226
+ * @return string
3227
+ *
3228
+ * @access public
3229
+ * @since 2.0.9
3230
+ */
3231
+ if ( ! function_exists( 'ot_reverse_wpautop' ) ) {
3232
+
3233
+ function ot_reverse_wpautop( $string = '' ) {
3234
+
3235
+ /* return if string is empty */
3236
+ if ( trim( $string ) === '' )
3237
+ return '';
3238
+
3239
+ /* remove all new lines & <p> tags */
3240
+ $string = str_replace( array( "\n", "<p>" ), "", $string );
3241
+
3242
+ /* replace <br /> with \r */
3243
+ $string = str_replace( array( "<br />", "<br>", "<br/>" ), "\r", $string );
3244
+
3245
+ /* replace </p> with \r\n */
3246
+ $string = str_replace( "</p>", "\r\n", $string );
3247
+
3248
+ /* return clean string */
3249
+ return trim( $string );
3250
+
3251
+ }
3252
+
3253
+ }
3254
+
3255
  /* End of file ot-functions-admin.php */
3256
  /* Location: ./includes/ot-functions-admin.php */
includes/ot-functions-compat.php CHANGED
@@ -90,7 +90,7 @@ if ( ! function_exists( 'compat_ot_import_from_files' ) ) {
90
 
91
  $content = ot_stripslashes( $options[$setting['id']] );
92
 
93
- $options[$setting['id']] = ot_validate_setting( $content, $setting['type'] );
94
 
95
  }
96
 
@@ -133,7 +133,7 @@ if ( ! function_exists( 'compat_ot_import_from_files' ) ) {
133
 
134
  $content = ot_stripslashes( $options[$setting['id']] );
135
 
136
- $options[$setting['id']] = ot_validate_setting( $content, $setting['type'] );
137
 
138
  }
139
 
90
 
91
  $content = ot_stripslashes( $options[$setting['id']] );
92
 
93
+ $options[$setting['id']] = ot_validate_setting( $content, $setting['type'], $setting['id'] );
94
 
95
  }
96
 
133
 
134
  $content = ot_stripslashes( $options[$setting['id']] );
135
 
136
+ $options[$setting['id']] = ot_validate_setting( $content, $setting['type'], $setting['id'] );
137
 
138
  }
139
 
includes/ot-functions-docs-page.php CHANGED
@@ -675,6 +675,10 @@ if ( ! function_exists( 'ot_type_meta_boxes' ) ) {
675
 
676
  echo '<p>' . __( 'There are a few simple steps you need to take in order to use OptionTree\'s built in Meta Box API. In the code below I\'ll show you a basic demo of how to create your very own custom meta box using any number of the option types you have at your disposal. If you would like to see some demo code, there is a directory named <code>theme-mode</code> inside the <code>assets</code> directory that contains a file named <code>demo-meta-boxes.php</code> you can reference.', 'option-tree' ) . '</p>';
677
 
 
 
 
 
678
  echo '<h5>' . __( 'Create and include your custom meta boxes file.', 'option-tree' ) . '</h5>';
679
  echo '<ul class="docs-ul">';
680
  echo '<li>'. __( 'Create a file and name it anything you want, maybe <code>meta-boxes.php</code>.', 'option-tree' ) . '</li>';
675
 
676
  echo '<p>' . __( 'There are a few simple steps you need to take in order to use OptionTree\'s built in Meta Box API. In the code below I\'ll show you a basic demo of how to create your very own custom meta box using any number of the option types you have at your disposal. If you would like to see some demo code, there is a directory named <code>theme-mode</code> inside the <code>assets</code> directory that contains a file named <code>demo-meta-boxes.php</code> you can reference.', 'option-tree' ) . '</p>';
677
 
678
+ echo '<p>' . __( 'It\'s important to note that Meta Boxes do not support WYSIWYG editors at this time and if you set one of your options to Textarea it will automatically revert to a Textarea Simple until a valid solution is found. WordPress released this statement regarding the wp_editor() function:', 'option-tree' ) . '</p>';
679
+
680
+ echo '<blockquote>' . __( 'Once instantiated, the WYSIWYG editor cannot be moved around in the DOM. What this means in practical terms, is that you cannot put it in meta-boxes that can be dragged and placed elsewhere on the page.', 'option-tree' ) . '</blockquote>';
681
+
682
  echo '<h5>' . __( 'Create and include your custom meta boxes file.', 'option-tree' ) . '</h5>';
683
  echo '<ul class="docs-ul">';
684
  echo '<li>'. __( 'Create a file and name it anything you want, maybe <code>meta-boxes.php</code>.', 'option-tree' ) . '</li>';
includes/ot-functions-option-types.php CHANGED
@@ -249,7 +249,7 @@ if ( ! function_exists( 'ot_type_category_select' ) ) {
249
  echo '<div class="format-setting-inner">';
250
 
251
  /* build category */
252
- echo '<select name="' . esc_attr( $field_name ) . '" id="' . esc_attr( $field_id ) . '" class="option-tree-ui-select ' . $field_class . '"">';
253
 
254
  /* get category array */
255
  $categories = get_categories( array( 'hide_empty' => false ) );
@@ -404,20 +404,9 @@ if ( ! function_exists( 'ot_type_css' ) ) {
404
 
405
  /* format setting inner wrapper */
406
  echo '<div class="format-setting-inner">';
407
-
408
  /* build textarea for CSS */
409
- wp_editor(
410
- $field_value,
411
- esc_attr( $field_id ),
412
- array(
413
- 'wpautop' => false,
414
- 'media_buttons' => false,
415
- 'textarea_name' => esc_attr( $field_name ),
416
- 'textarea_rows' => esc_attr( $field_rows ),
417
- 'tinymce' => false,
418
- 'quicktags' => false
419
- )
420
- );
421
 
422
  echo '</div>';
423
 
@@ -1413,6 +1402,7 @@ if ( ! function_exists( 'ot_type_textarea' ) ) {
1413
  $field_value,
1414
  esc_attr( $field_id ),
1415
  array(
 
1416
  'wpautop' => apply_filters( 'ot_wpautop', false, $field_id ),
1417
  'media_buttons' => apply_filters( 'ot_media_buttons', true, $field_id ),
1418
  'textarea_name' => esc_attr( $field_name ),
@@ -1459,20 +1449,16 @@ if ( ! function_exists( 'ot_type_textarea_simple' ) ) {
1459
 
1460
  /* format setting inner wrapper */
1461
  echo '<div class="format-setting-inner">';
1462
-
 
 
 
 
 
 
 
1463
  /* build textarea simple */
1464
- wp_editor(
1465
- $field_value,
1466
- esc_attr( $field_id ),
1467
- array(
1468
- 'wpautop' => apply_filters( 'ot_wpautop', false, $field_id ),
1469
- 'media_buttons' => false,
1470
- 'textarea_name' => esc_attr( $field_name ),
1471
- 'textarea_rows' => esc_attr( $field_rows ),
1472
- 'tinymce' => false,
1473
- 'quicktags' => false
1474
- )
1475
- );
1476
 
1477
  echo '</div>';
1478
 
249
  echo '<div class="format-setting-inner">';
250
 
251
  /* build category */
252
+ echo '<select name="' . esc_attr( $field_name ) . '" id="' . esc_attr( $field_id ) . '" class="option-tree-ui-select ' . $field_class . '">';
253
 
254
  /* get category array */
255
  $categories = get_categories( array( 'hide_empty' => false ) );
404
 
405
  /* format setting inner wrapper */
406
  echo '<div class="format-setting-inner">';
407
+
408
  /* build textarea for CSS */
409
+ echo '<textarea class="textarea ' . esc_attr( $field_class ) . '" rows="' . esc_attr( $field_rows ) . '" cols="40" name="' . esc_attr( $field_name ) .'" id="' . esc_attr( $field_id ) . '">' . esc_textarea( $field_value ) . '</textarea>';
 
 
 
 
 
 
 
 
 
 
 
410
 
411
  echo '</div>';
412
 
1402
  $field_value,
1403
  esc_attr( $field_id ),
1404
  array(
1405
+ 'editor_class' => esc_attr( $field_class ),
1406
  'wpautop' => apply_filters( 'ot_wpautop', false, $field_id ),
1407
  'media_buttons' => apply_filters( 'ot_media_buttons', true, $field_id ),
1408
  'textarea_name' => esc_attr( $field_name ),
1449
 
1450
  /* format setting inner wrapper */
1451
  echo '<div class="format-setting-inner">';
1452
+
1453
+ /* filter to allow wpautop */
1454
+ $wpautop = apply_filters( 'ot_wpautop', false, $field_id );
1455
+
1456
+ /* wpautop $field_value */
1457
+ if ( $wpautop == true )
1458
+ $field_value = wpautop( $field_value );
1459
+
1460
  /* build textarea simple */
1461
+ echo '<textarea class="textarea ' . esc_attr( $field_class ) . '" rows="' . esc_attr( $field_rows ) . '" cols="40" name="' . esc_attr( $field_name ) .'" id="' . esc_attr( $field_id ) . '">' . esc_textarea( $field_value ) . '</textarea>';
 
 
 
 
 
 
 
 
 
 
 
1462
 
1463
  echo '</div>';
1464
 
includes/ot-meta-box-api.php CHANGED
@@ -205,7 +205,7 @@ if ( ! class_exists( 'OT_Meta_Box' ) ) {
205
  /* verify sub setting has a type & value */
206
  if ( isset( $sub_setting['type'] ) && isset( $_POST[$field['id']][$k][$sub_setting['id']] ) ) {
207
 
208
- $_POST[$field['id']][$k][$sub_setting['id']] = ot_validate_setting( $_POST[$field['id']][$k][$sub_setting['id']], $sub_setting['type'] );
209
 
210
  }
211
 
@@ -219,7 +219,7 @@ if ( ! class_exists( 'OT_Meta_Box' ) ) {
219
  } else {
220
 
221
  /* run through validattion */
222
- $new = ot_validate_setting( $_POST[$field['id']], $field['type'] );
223
 
224
  }
225
 
205
  /* verify sub setting has a type & value */
206
  if ( isset( $sub_setting['type'] ) && isset( $_POST[$field['id']][$k][$sub_setting['id']] ) ) {
207
 
208
+ $_POST[$field['id']][$k][$sub_setting['id']] = ot_validate_setting( $_POST[$field['id']][$k][$sub_setting['id']], $sub_setting['type'], $sub_setting['id'] );
209
 
210
  }
211
 
219
  } else {
220
 
221
  /* run through validattion */
222
+ $new = ot_validate_setting( $_POST[$field['id']], $field['type'], $field['id'] );
223
 
224
  }
225
 
includes/ot-settings-api.php CHANGED
@@ -525,7 +525,7 @@ if ( ! class_exists( 'OT_Settings' ) ) {
525
 
526
  if ( isset( $setting['std'] ) ) {
527
 
528
- $defaults[$setting['id']] = ot_validate_setting( $setting['std'], $setting['type'] );
529
 
530
  }
531
 
@@ -600,7 +600,7 @@ if ( ! class_exists( 'OT_Settings' ) ) {
600
  /* verify sub setting has a type & value */
601
  if ( isset( $sub_setting['type'] ) && isset( $input[$setting['id']][$k][$sub_setting['id']] ) ) {
602
 
603
- $input[$setting['id']][$k][$sub_setting['id']] = ot_validate_setting( $input[$setting['id']][$k][$sub_setting['id']], $sub_setting['type'] );
604
 
605
  }
606
 
@@ -610,7 +610,7 @@ if ( ! class_exists( 'OT_Settings' ) ) {
610
 
611
  } else {
612
 
613
- $input[$setting['id']] = ot_validate_setting( $input[$setting['id']], $setting['type'] );
614
 
615
  }
616
 
525
 
526
  if ( isset( $setting['std'] ) ) {
527
 
528
+ $defaults[$setting['id']] = ot_validate_setting( $setting['std'], $setting['type'], $setting['id'] );
529
 
530
  }
531
 
600
  /* verify sub setting has a type & value */
601
  if ( isset( $sub_setting['type'] ) && isset( $input[$setting['id']][$k][$sub_setting['id']] ) ) {
602
 
603
+ $input[$setting['id']][$k][$sub_setting['id']] = ot_validate_setting( $input[$setting['id']][$k][$sub_setting['id']], $sub_setting['type'], $sub_setting['id'] );
604
 
605
  }
606
 
610
 
611
  } else {
612
 
613
+ $input[$setting['id']] = ot_validate_setting( $input[$setting['id']], $setting['type'], $setting['id'] );
614
 
615
  }
616
 
languages/option-tree.pot CHANGED
@@ -4,7 +4,7 @@ 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-23 11:10:54+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -12,287 +12,287 @@ msgstr ""
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:212
50
  msgid "Option Tree"
51
  msgstr ""
52
 
53
- #: includes/ot-functions-admin.php:348
54
  msgid "General"
55
  msgstr ""
56
 
57
- #: includes/ot-functions-admin.php:354
58
  msgid "Sample Text Field Label"
59
  msgstr ""
60
 
61
- #: includes/ot-functions-admin.php:355
62
  msgid "Description for the sample text field."
63
  msgstr ""
64
 
65
- #: includes/ot-functions-admin.php:1457
66
  msgid "Layout activated."
67
  msgstr ""
68
 
69
- #: includes/ot-functions-admin.php:1470
70
  msgid "Settings updated."
71
  msgstr ""
72
 
73
- #: includes/ot-functions-admin.php:1474
74
  msgid "Settings could not be saved."
75
  msgstr ""
76
 
77
- #: includes/ot-functions-admin.php:1482
78
  msgid "Settings Imported."
79
  msgstr ""
80
 
81
- #: includes/ot-functions-admin.php:1486
82
  msgid "Settings could not be imported."
83
  msgstr ""
84
 
85
- #: includes/ot-functions-admin.php:1493
86
  msgid "Data Imported."
87
  msgstr ""
88
 
89
- #: includes/ot-functions-admin.php:1497
90
  msgid "Data could not be imported."
91
  msgstr ""
92
 
93
- #: includes/ot-functions-admin.php:1505
94
  msgid "Layouts Imported."
95
  msgstr ""
96
 
97
- #: includes/ot-functions-admin.php:1509
98
  msgid "Layouts could not be imported."
99
  msgstr ""
100
 
101
- #: includes/ot-functions-admin.php:1517
102
  msgid "Layouts Updated."
103
  msgstr ""
104
 
105
- #: includes/ot-functions-admin.php:1521
106
  msgid "Layouts could not be updated."
107
  msgstr ""
108
 
109
- #: includes/ot-functions-admin.php:1910
110
  msgid "Left Sidebar"
111
  msgstr ""
112
 
113
- #: includes/ot-functions-admin.php:1915
114
  msgid "Right Sidebar"
115
  msgstr ""
116
 
117
- #: includes/ot-functions-admin.php:1920
118
  msgid "Full Width (no sidebar)"
119
  msgstr ""
120
 
121
- #: includes/ot-functions-admin.php:1925
122
  msgid "Dual Sidebar"
123
  msgstr ""
124
 
125
- #: includes/ot-functions-admin.php:1930
126
  msgid "Left Dual Sidebar"
127
  msgstr ""
128
 
129
- #: includes/ot-functions-admin.php:1935
130
  msgid "Right Dual Sidebar"
131
  msgstr ""
132
 
133
- #: includes/ot-functions-admin.php:1965 includes/ot-functions-admin.php:2026
134
  msgid "Image"
135
  msgstr ""
136
 
137
- #: includes/ot-functions-admin.php:1976 includes/ot-functions-admin.php:2032
138
  msgid "Link"
139
  msgstr ""
140
 
141
- #: includes/ot-functions-admin.php:1987 includes/ot-functions-admin.php:2038
142
  #: includes/ot-functions-docs-page.php:43
143
  #: includes/ot-functions-docs-page.php:367
144
  #: includes/ot-functions-docs-page.php:417
145
  msgid "Description"
146
  msgstr ""
147
 
148
- #: includes/ot-functions-admin.php:2495
149
  msgid "edit"
150
  msgstr ""
151
 
152
- #: includes/ot-functions-admin.php:2496 includes/ot-functions-admin.php:2550
153
- #: includes/ot-functions-admin.php:2551 includes/ot-functions-admin.php:2686
154
- #: includes/ot-functions-admin.php:2687 includes/ot-functions-admin.php:2752
155
- #: includes/ot-functions-admin.php:2753 includes/ot-functions-admin.php:2880
156
- #: includes/ot-functions-admin.php:2881
157
  msgid "Edit"
158
  msgstr ""
159
 
160
- #: includes/ot-functions-admin.php:2498 includes/ot-functions-admin.php:2499
161
- #: includes/ot-functions-admin.php:2553 includes/ot-functions-admin.php:2554
162
- #: includes/ot-functions-admin.php:2689 includes/ot-functions-admin.php:2690
163
- #: includes/ot-functions-admin.php:2755 includes/ot-functions-admin.php:2756
164
- #: includes/ot-functions-admin.php:2814 includes/ot-functions-admin.php:2815
165
- #: includes/ot-functions-admin.php:2883 includes/ot-functions-admin.php:2884
166
  msgid "Delete"
167
  msgstr ""
168
 
169
- #: includes/ot-functions-admin.php:2505
170
  msgid ""
171
  "<strong>Section Title</strong>: Displayed as a menu item on the Theme "
172
  "Options page."
173
  msgstr ""
174
 
175
- #: includes/ot-functions-admin.php:2513
176
  msgid ""
177
  "<strong>Section ID</strong>: A unique lower case alphanumeric string, "
178
  "underscores allowed."
179
  msgstr ""
180
 
181
- #: includes/ot-functions-admin.php:2560
182
  msgid ""
183
  "<strong>Label</strong>: Displayed as the label of a form element on the "
184
  "Theme Options page."
185
  msgstr ""
186
 
187
- #: includes/ot-functions-admin.php:2568 includes/ot-functions-admin.php:2770
188
  msgid ""
189
  "<strong>ID</strong>: A unique lower case alphanumeric string, underscores "
190
  "allowed."
191
  msgstr ""
192
 
193
- #: includes/ot-functions-admin.php:2576
194
  msgid ""
195
  "<strong>Type</strong>: Choose one of the available option types from the "
196
  "dropdown."
197
  msgstr ""
198
 
199
- #: includes/ot-functions-admin.php:2587
200
  msgid ""
201
  "<strong>Description</strong>: Enter a detailed description for the users to "
202
  "read on the Theme Options page, HTML is allowed. This is also where you "
203
  "enter content for both the Textblock & Textblock Titled option types."
204
  msgstr ""
205
 
206
- #: includes/ot-functions-admin.php:2595
207
  msgid ""
208
  "<strong>Choices</strong>: This will only affect the following option types: "
209
  "Checkbox, Radio, Select & Select Image."
210
  msgstr ""
211
 
212
- #: includes/ot-functions-admin.php:2600
213
  msgid "Add Choice"
214
  msgstr ""
215
 
216
- #: includes/ot-functions-admin.php:2606
217
  msgid ""
218
  "<strong>Settings</strong>: This will only affect the List Item option type."
219
  msgstr ""
220
 
221
- #: includes/ot-functions-admin.php:2611
222
  #: includes/ot-functions-settings-page.php:93
223
  msgid "Add Setting"
224
  msgstr ""
225
 
226
- #: includes/ot-functions-admin.php:2617
227
  msgid ""
228
  "<strong>Standard</strong>: Setting the standard value for your option only "
229
  "works for some option types. Read the <code>OptionTree->Documentation</code> "
230
  "for more information on which ones."
231
  msgstr ""
232
 
233
- #: includes/ot-functions-admin.php:2625
234
  msgid ""
235
  "<strong>Rows</strong>: Enter a numeric value for the number of rows in your "
236
  "textarea. This will only affect the following option types: CSS, Textarea, & "
237
  "Textarea Simple."
238
  msgstr ""
239
 
240
- #: includes/ot-functions-admin.php:2633
241
  msgid ""
242
  "<strong>Post Type</strong>: Add a comma separated list of post type like "
243
  "'post,page'. This will only affect the following option types: Custom Post "
244
  "Type Checkbox, & Custom Post Type Select."
245
  msgstr ""
246
 
247
- #: includes/ot-functions-admin.php:2641
248
  msgid ""
249
  "<strong>Taxonomy</strong>: Add a comma separated list of any registered "
250
  "taxonomy like 'category,post_tag'. This will only affect the following "
251
  "option types: Taxonomy Checkbox, & Taxonomy Select."
252
  msgstr ""
253
 
254
- #: includes/ot-functions-admin.php:2649
255
  msgid "<strong>CSS Class</strong>: Add and optional class to this option type."
256
  msgstr ""
257
 
258
- #: includes/ot-functions-admin.php:2696 includes/ot-functions-docs-page.php:29
259
  msgid "Label"
260
  msgstr ""
261
 
262
- #: includes/ot-functions-admin.php:2706
263
  msgid "Value"
264
  msgstr ""
265
 
266
- #: includes/ot-functions-admin.php:2716
267
  msgid "Image Source (Radio Image only)"
268
  msgstr ""
269
 
270
- #: includes/ot-functions-admin.php:2762
271
  msgid ""
272
  "<strong>Title</strong>: Displayed as a contextual help menu item on the "
273
  "Theme Options page."
274
  msgstr ""
275
 
276
- #: includes/ot-functions-admin.php:2778
277
  msgid ""
278
  "<strong>Content</strong>: Enter the HTML content about this contextual help "
279
  "item displayed on the Theme Option page for end users to read."
280
  msgstr ""
281
 
282
- #: includes/ot-functions-admin.php:2809
283
  msgid "Layout"
284
  msgstr ""
285
 
286
- #: includes/ot-functions-admin.php:2811 includes/ot-functions-admin.php:2812
287
  msgid "Activate"
288
  msgstr ""
289
 
290
- #: includes/ot-functions-admin.php:2848 includes/ot-meta-box-api.php:177
291
  #: includes/ot-settings-api.php:572
292
  msgid "Title"
293
  msgstr ""
294
 
295
- #: includes/ot-functions-admin.php:2974
296
  msgid "New Layout"
297
  msgstr ""
298
 
@@ -1140,7 +1140,7 @@ msgid "Go to the <code>Appearance->Theme Options</code> tab."
1140
  msgstr ""
1141
 
1142
  #: includes/ot-functions-docs-page.php:674
1143
- #: includes/ot-functions-docs-page.php:752
1144
  msgid "How-to-guide"
1145
  msgstr ""
1146
 
@@ -1156,28 +1156,43 @@ msgid ""
1156
  msgstr ""
1157
 
1158
  #: includes/ot-functions-docs-page.php:678
1159
- msgid "Create and include your custom meta boxes file."
 
 
 
 
1160
  msgstr ""
1161
 
1162
  #: includes/ot-functions-docs-page.php:680
1163
  msgid ""
 
 
 
 
 
 
 
 
 
 
 
1164
  "Create a file and name it anything you want, maybe <code>meta-boxes.php</"
1165
  "code>."
1166
  msgstr ""
1167
 
1168
- #: includes/ot-functions-docs-page.php:681
1169
  msgid ""
1170
  "As well, you'll probably want to create a directory named <code>includes</"
1171
  "code> to put your <code>meta-boxes.php</code> into which will help keep you "
1172
  "file structure nice and tidy."
1173
  msgstr ""
1174
 
1175
- #: includes/ot-functions-docs-page.php:682
1176
- #: includes/ot-functions-docs-page.php:787
1177
  msgid "Add the following code to your <code>functions.php</code>."
1178
  msgstr ""
1179
 
1180
- #: includes/ot-functions-docs-page.php:692
1181
  msgid ""
1182
  "Add a variation of the following code to your <code>meta-boxes.php</code>. "
1183
  "You'll obviously need to fill it in with all your custom array values. It's "
@@ -1186,7 +1201,7 @@ msgid ""
1186
  "before OptionTree was loaded the sky would fall on your head."
1187
  msgstr ""
1188
 
1189
- #: includes/ot-functions-docs-page.php:754
1190
  msgid ""
1191
  "There are a few simple steps you need to take in order to use OptionTree as "
1192
  "a theme included module. In the code below I'll show you a basic demo of how "
@@ -1197,65 +1212,65 @@ msgid ""
1197
  "contains a file named <code>demo-theme-options.php</code> you can reference."
1198
  msgstr ""
1199
 
1200
- #: includes/ot-functions-docs-page.php:756
1201
  msgid "Step 1: Include the plugin & turn on theme mode."
1202
  msgstr ""
1203
 
1204
- #: includes/ot-functions-docs-page.php:758
1205
  msgid ""
1206
  "Download the latest version of <a href=\"http://wordpress.org/extend/plugins/"
1207
  "option-tree/\" rel=\"nofollow\" target=\"_blank\">OptionTree</a>."
1208
  msgstr ""
1209
 
1210
- #: includes/ot-functions-docs-page.php:759
1211
  msgid "Unpack the ZIP archive."
1212
  msgstr ""
1213
 
1214
- #: includes/ot-functions-docs-page.php:760
1215
  msgid ""
1216
  "Put the <code>option-tree</code> directory in the root of your theme. For "
1217
  "example, the server path would be <code>/wp-content/themes/theme-name/option-"
1218
  "tree/</code>."
1219
  msgstr ""
1220
 
1221
- #: includes/ot-functions-docs-page.php:761
1222
  msgid ""
1223
  "Add the following code to the beginning of your <code>functions.php</code>."
1224
  msgstr ""
1225
 
1226
- #: includes/ot-functions-docs-page.php:781
1227
  msgid ""
1228
  "It's that simple! You now have OptionTree built into your theme and anytime "
1229
  "there's an update to the plugin you just replace the old version and you're "
1230
  "good to go.."
1231
  msgstr ""
1232
 
1233
- #: includes/ot-functions-docs-page.php:783
1234
  msgid "Step 2: Create Theme Options without using the UI Builder."
1235
  msgstr ""
1236
 
1237
- #: includes/ot-functions-docs-page.php:785
1238
  msgid ""
1239
  "Create a file and name it anything you want, maybe <code>theme-options.php</"
1240
  "code>, or use the built in file export to create it for you. Remember, you "
1241
  "should always check the file for errors before including it in your theme."
1242
  msgstr ""
1243
 
1244
- #: includes/ot-functions-docs-page.php:786
1245
  msgid ""
1246
  "As well, you'll probably want to create a directory named <code>includes</"
1247
  "code> to put your <code>theme-options.php</code> into which will help keep "
1248
  "you file structure nice and tidy."
1249
  msgstr ""
1250
 
1251
- #: includes/ot-functions-docs-page.php:797
1252
  msgid ""
1253
  "Add a variation of the following code to your <code>theme-options.php</"
1254
  "code>. You'll obviously need to fill it in with all your custom array values "
1255
  "for contextual help (optional), sections (required), and settings (required)."
1256
  msgstr ""
1257
 
1258
- #: includes/ot-functions-docs-page.php:800
1259
  msgid ""
1260
  "The code below is a boilerplate to get your started. For a full list of the "
1261
  "available option types click the \"Option Types\" tab above. Also a quick "
@@ -1283,7 +1298,7 @@ msgid "background-position"
1283
  msgstr ""
1284
 
1285
  #: includes/ot-functions-option-types.php:140
1286
- #: includes/ot-functions-option-types.php:1685
1287
  msgid "Add Media"
1288
  msgstr ""
1289
 
@@ -1293,43 +1308,43 @@ msgid "No Categories Found"
1293
  msgstr ""
1294
 
1295
  #: includes/ot-functions-option-types.php:259
1296
- #: includes/ot-functions-option-types.php:530
1297
- #: includes/ot-functions-option-types.php:769
1298
- #: includes/ot-functions-option-types.php:953
1299
- #: includes/ot-functions-option-types.php:1207
1300
- #: includes/ot-functions-option-types.php:1323
1301
  msgid "Choose One"
1302
  msgstr ""
1303
 
1304
- #: includes/ot-functions-option-types.php:478
1305
- #: includes/ot-functions-option-types.php:536
1306
- #: includes/ot-functions-option-types.php:904
1307
- #: includes/ot-functions-option-types.php:959
1308
  msgid "No Posts Found"
1309
  msgstr ""
1310
 
1311
- #: includes/ot-functions-option-types.php:607
1312
- #: includes/ot-functions-option-types.php:846
1313
  msgid "Add New"
1314
  msgstr ""
1315
 
1316
- #: includes/ot-functions-option-types.php:610
1317
- #: includes/ot-functions-option-types.php:849
1318
  msgid "You can re-order with drag & drop, the order will update after saving."
1319
  msgstr ""
1320
 
1321
- #: includes/ot-functions-option-types.php:720
1322
- #: includes/ot-functions-option-types.php:775
1323
  msgid "No Pages Found"
1324
  msgstr ""
1325
 
1326
- #: includes/ot-functions-option-types.php:1158
1327
- #: includes/ot-functions-option-types.php:1212
1328
  msgid "No Tags Found"
1329
  msgstr ""
1330
 
1331
- #: includes/ot-functions-option-types.php:1271
1332
- #: includes/ot-functions-option-types.php:1328
1333
  msgid "No Taxonomies Found"
1334
  msgstr ""
1335
 
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-27 04:33:32+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
+ #: includes/ot-functions-admin.php:83
16
  msgid "The Colorpicker only allows valid hexadecimal values."
17
  msgstr ""
18
 
19
+ #: includes/ot-functions-admin.php:163
20
  msgid "Send to OptionTree"
21
  msgstr ""
22
 
23
+ #: includes/ot-functions-admin.php:164
24
  #: includes/ot-functions-option-types.php:152
25
+ #: includes/ot-functions-option-types.php:1683
26
  msgid "Remove Media"
27
  msgstr ""
28
 
29
+ #: includes/ot-functions-admin.php:165
30
  msgid "Are you sure you want to reset back to the defaults?"
31
  msgstr ""
32
 
33
+ #: includes/ot-functions-admin.php:166
34
  msgid "You can't remove this! But you can edit the values."
35
  msgstr ""
36
 
37
+ #: includes/ot-functions-admin.php:167
38
  msgid "Are you sure you want to remove this?"
39
  msgstr ""
40
 
41
+ #: includes/ot-functions-admin.php:168
42
  msgid "Are you sure you want to activate this layout?"
43
  msgstr ""
44
 
45
+ #: includes/ot-functions-admin.php:169
46
  msgid "Sorry, you can't have settings three levels deep."
47
  msgstr ""
48
 
49
+ #: includes/ot-functions-admin.php:215
50
  msgid "Option Tree"
51
  msgstr ""
52
 
53
+ #: includes/ot-functions-admin.php:351
54
  msgid "General"
55
  msgstr ""
56
 
57
+ #: includes/ot-functions-admin.php:357
58
  msgid "Sample Text Field Label"
59
  msgstr ""
60
 
61
+ #: includes/ot-functions-admin.php:358
62
  msgid "Description for the sample text field."
63
  msgstr ""
64
 
65
+ #: includes/ot-functions-admin.php:1460
66
  msgid "Layout activated."
67
  msgstr ""
68
 
69
+ #: includes/ot-functions-admin.php:1473
70
  msgid "Settings updated."
71
  msgstr ""
72
 
73
+ #: includes/ot-functions-admin.php:1477
74
  msgid "Settings could not be saved."
75
  msgstr ""
76
 
77
+ #: includes/ot-functions-admin.php:1485
78
  msgid "Settings Imported."
79
  msgstr ""
80
 
81
+ #: includes/ot-functions-admin.php:1489
82
  msgid "Settings could not be imported."
83
  msgstr ""
84
 
85
+ #: includes/ot-functions-admin.php:1496
86
  msgid "Data Imported."
87
  msgstr ""
88
 
89
+ #: includes/ot-functions-admin.php:1500
90
  msgid "Data could not be imported."
91
  msgstr ""
92
 
93
+ #: includes/ot-functions-admin.php:1508
94
  msgid "Layouts Imported."
95
  msgstr ""
96
 
97
+ #: includes/ot-functions-admin.php:1512
98
  msgid "Layouts could not be imported."
99
  msgstr ""
100
 
101
+ #: includes/ot-functions-admin.php:1520
102
  msgid "Layouts Updated."
103
  msgstr ""
104
 
105
+ #: includes/ot-functions-admin.php:1524
106
  msgid "Layouts could not be updated."
107
  msgstr ""
108
 
109
+ #: includes/ot-functions-admin.php:1913
110
  msgid "Left Sidebar"
111
  msgstr ""
112
 
113
+ #: includes/ot-functions-admin.php:1918
114
  msgid "Right Sidebar"
115
  msgstr ""
116
 
117
+ #: includes/ot-functions-admin.php:1923
118
  msgid "Full Width (no sidebar)"
119
  msgstr ""
120
 
121
+ #: includes/ot-functions-admin.php:1928
122
  msgid "Dual Sidebar"
123
  msgstr ""
124
 
125
+ #: includes/ot-functions-admin.php:1933
126
  msgid "Left Dual Sidebar"
127
  msgstr ""
128
 
129
+ #: includes/ot-functions-admin.php:1938
130
  msgid "Right Dual Sidebar"
131
  msgstr ""
132
 
133
+ #: includes/ot-functions-admin.php:1968 includes/ot-functions-admin.php:2029
134
  msgid "Image"
135
  msgstr ""
136
 
137
+ #: includes/ot-functions-admin.php:1979 includes/ot-functions-admin.php:2035
138
  msgid "Link"
139
  msgstr ""
140
 
141
+ #: includes/ot-functions-admin.php:1990 includes/ot-functions-admin.php:2041
142
  #: includes/ot-functions-docs-page.php:43
143
  #: includes/ot-functions-docs-page.php:367
144
  #: includes/ot-functions-docs-page.php:417
145
  msgid "Description"
146
  msgstr ""
147
 
148
+ #: includes/ot-functions-admin.php:2498
149
  msgid "edit"
150
  msgstr ""
151
 
152
+ #: includes/ot-functions-admin.php:2499 includes/ot-functions-admin.php:2553
153
+ #: includes/ot-functions-admin.php:2554 includes/ot-functions-admin.php:2689
154
+ #: includes/ot-functions-admin.php:2690 includes/ot-functions-admin.php:2755
155
+ #: includes/ot-functions-admin.php:2756 includes/ot-functions-admin.php:2883
156
+ #: includes/ot-functions-admin.php:2884
157
  msgid "Edit"
158
  msgstr ""
159
 
160
+ #: includes/ot-functions-admin.php:2501 includes/ot-functions-admin.php:2502
161
+ #: includes/ot-functions-admin.php:2556 includes/ot-functions-admin.php:2557
162
+ #: includes/ot-functions-admin.php:2692 includes/ot-functions-admin.php:2693
163
+ #: includes/ot-functions-admin.php:2758 includes/ot-functions-admin.php:2759
164
+ #: includes/ot-functions-admin.php:2817 includes/ot-functions-admin.php:2818
165
+ #: includes/ot-functions-admin.php:2886 includes/ot-functions-admin.php:2887
166
  msgid "Delete"
167
  msgstr ""
168
 
169
+ #: includes/ot-functions-admin.php:2508
170
  msgid ""
171
  "<strong>Section Title</strong>: Displayed as a menu item on the Theme "
172
  "Options page."
173
  msgstr ""
174
 
175
+ #: includes/ot-functions-admin.php:2516
176
  msgid ""
177
  "<strong>Section ID</strong>: A unique lower case alphanumeric string, "
178
  "underscores allowed."
179
  msgstr ""
180
 
181
+ #: includes/ot-functions-admin.php:2563
182
  msgid ""
183
  "<strong>Label</strong>: Displayed as the label of a form element on the "
184
  "Theme Options page."
185
  msgstr ""
186
 
187
+ #: includes/ot-functions-admin.php:2571 includes/ot-functions-admin.php:2773
188
  msgid ""
189
  "<strong>ID</strong>: A unique lower case alphanumeric string, underscores "
190
  "allowed."
191
  msgstr ""
192
 
193
+ #: includes/ot-functions-admin.php:2579
194
  msgid ""
195
  "<strong>Type</strong>: Choose one of the available option types from the "
196
  "dropdown."
197
  msgstr ""
198
 
199
+ #: includes/ot-functions-admin.php:2590
200
  msgid ""
201
  "<strong>Description</strong>: Enter a detailed description for the users to "
202
  "read on the Theme Options page, HTML is allowed. This is also where you "
203
  "enter content for both the Textblock & Textblock Titled option types."
204
  msgstr ""
205
 
206
+ #: includes/ot-functions-admin.php:2598
207
  msgid ""
208
  "<strong>Choices</strong>: This will only affect the following option types: "
209
  "Checkbox, Radio, Select & Select Image."
210
  msgstr ""
211
 
212
+ #: includes/ot-functions-admin.php:2603
213
  msgid "Add Choice"
214
  msgstr ""
215
 
216
+ #: includes/ot-functions-admin.php:2609
217
  msgid ""
218
  "<strong>Settings</strong>: This will only affect the List Item option type."
219
  msgstr ""
220
 
221
+ #: includes/ot-functions-admin.php:2614
222
  #: includes/ot-functions-settings-page.php:93
223
  msgid "Add Setting"
224
  msgstr ""
225
 
226
+ #: includes/ot-functions-admin.php:2620
227
  msgid ""
228
  "<strong>Standard</strong>: Setting the standard value for your option only "
229
  "works for some option types. Read the <code>OptionTree->Documentation</code> "
230
  "for more information on which ones."
231
  msgstr ""
232
 
233
+ #: includes/ot-functions-admin.php:2628
234
  msgid ""
235
  "<strong>Rows</strong>: Enter a numeric value for the number of rows in your "
236
  "textarea. This will only affect the following option types: CSS, Textarea, & "
237
  "Textarea Simple."
238
  msgstr ""
239
 
240
+ #: includes/ot-functions-admin.php:2636
241
  msgid ""
242
  "<strong>Post Type</strong>: Add a comma separated list of post type like "
243
  "'post,page'. This will only affect the following option types: Custom Post "
244
  "Type Checkbox, & Custom Post Type Select."
245
  msgstr ""
246
 
247
+ #: includes/ot-functions-admin.php:2644
248
  msgid ""
249
  "<strong>Taxonomy</strong>: Add a comma separated list of any registered "
250
  "taxonomy like 'category,post_tag'. This will only affect the following "
251
  "option types: Taxonomy Checkbox, & Taxonomy Select."
252
  msgstr ""
253
 
254
+ #: includes/ot-functions-admin.php:2652
255
  msgid "<strong>CSS Class</strong>: Add and optional class to this option type."
256
  msgstr ""
257
 
258
+ #: includes/ot-functions-admin.php:2699 includes/ot-functions-docs-page.php:29
259
  msgid "Label"
260
  msgstr ""
261
 
262
+ #: includes/ot-functions-admin.php:2709
263
  msgid "Value"
264
  msgstr ""
265
 
266
+ #: includes/ot-functions-admin.php:2719
267
  msgid "Image Source (Radio Image only)"
268
  msgstr ""
269
 
270
+ #: includes/ot-functions-admin.php:2765
271
  msgid ""
272
  "<strong>Title</strong>: Displayed as a contextual help menu item on the "
273
  "Theme Options page."
274
  msgstr ""
275
 
276
+ #: includes/ot-functions-admin.php:2781
277
  msgid ""
278
  "<strong>Content</strong>: Enter the HTML content about this contextual help "
279
  "item displayed on the Theme Option page for end users to read."
280
  msgstr ""
281
 
282
+ #: includes/ot-functions-admin.php:2812
283
  msgid "Layout"
284
  msgstr ""
285
 
286
+ #: includes/ot-functions-admin.php:2814 includes/ot-functions-admin.php:2815
287
  msgid "Activate"
288
  msgstr ""
289
 
290
+ #: includes/ot-functions-admin.php:2851 includes/ot-meta-box-api.php:177
291
  #: includes/ot-settings-api.php:572
292
  msgid "Title"
293
  msgstr ""
294
 
295
+ #: includes/ot-functions-admin.php:2977
296
  msgid "New Layout"
297
  msgstr ""
298
 
1140
  msgstr ""
1141
 
1142
  #: includes/ot-functions-docs-page.php:674
1143
+ #: includes/ot-functions-docs-page.php:756
1144
  msgid "How-to-guide"
1145
  msgstr ""
1146
 
1156
  msgstr ""
1157
 
1158
  #: includes/ot-functions-docs-page.php:678
1159
+ msgid ""
1160
+ "It's important to note that Meta Boxes do not support WYSIWYG editors at "
1161
+ "this time and if you set one of your options to Textarea it will "
1162
+ "automatically revert to a Textarea Simple until a valid solution is found. "
1163
+ "WordPress released this statement regarding the wp_editor() function:"
1164
  msgstr ""
1165
 
1166
  #: includes/ot-functions-docs-page.php:680
1167
  msgid ""
1168
+ "Once instantiated, the WYSIWYG editor cannot be moved around in the DOM. "
1169
+ "What this means in practical terms, is that you cannot put it in meta-boxes "
1170
+ "that can be dragged and placed elsewhere on the page."
1171
+ msgstr ""
1172
+
1173
+ #: includes/ot-functions-docs-page.php:682
1174
+ msgid "Create and include your custom meta boxes file."
1175
+ msgstr ""
1176
+
1177
+ #: includes/ot-functions-docs-page.php:684
1178
+ msgid ""
1179
  "Create a file and name it anything you want, maybe <code>meta-boxes.php</"
1180
  "code>."
1181
  msgstr ""
1182
 
1183
+ #: includes/ot-functions-docs-page.php:685
1184
  msgid ""
1185
  "As well, you'll probably want to create a directory named <code>includes</"
1186
  "code> to put your <code>meta-boxes.php</code> into which will help keep you "
1187
  "file structure nice and tidy."
1188
  msgstr ""
1189
 
1190
+ #: includes/ot-functions-docs-page.php:686
1191
+ #: includes/ot-functions-docs-page.php:791
1192
  msgid "Add the following code to your <code>functions.php</code>."
1193
  msgstr ""
1194
 
1195
+ #: includes/ot-functions-docs-page.php:696
1196
  msgid ""
1197
  "Add a variation of the following code to your <code>meta-boxes.php</code>. "
1198
  "You'll obviously need to fill it in with all your custom array values. It's "
1201
  "before OptionTree was loaded the sky would fall on your head."
1202
  msgstr ""
1203
 
1204
+ #: includes/ot-functions-docs-page.php:758
1205
  msgid ""
1206
  "There are a few simple steps you need to take in order to use OptionTree as "
1207
  "a theme included module. In the code below I'll show you a basic demo of how "
1212
  "contains a file named <code>demo-theme-options.php</code> you can reference."
1213
  msgstr ""
1214
 
1215
+ #: includes/ot-functions-docs-page.php:760
1216
  msgid "Step 1: Include the plugin & turn on theme mode."
1217
  msgstr ""
1218
 
1219
+ #: includes/ot-functions-docs-page.php:762
1220
  msgid ""
1221
  "Download the latest version of <a href=\"http://wordpress.org/extend/plugins/"
1222
  "option-tree/\" rel=\"nofollow\" target=\"_blank\">OptionTree</a>."
1223
  msgstr ""
1224
 
1225
+ #: includes/ot-functions-docs-page.php:763
1226
  msgid "Unpack the ZIP archive."
1227
  msgstr ""
1228
 
1229
+ #: includes/ot-functions-docs-page.php:764
1230
  msgid ""
1231
  "Put the <code>option-tree</code> directory in the root of your theme. For "
1232
  "example, the server path would be <code>/wp-content/themes/theme-name/option-"
1233
  "tree/</code>."
1234
  msgstr ""
1235
 
1236
+ #: includes/ot-functions-docs-page.php:765
1237
  msgid ""
1238
  "Add the following code to the beginning of your <code>functions.php</code>."
1239
  msgstr ""
1240
 
1241
+ #: includes/ot-functions-docs-page.php:785
1242
  msgid ""
1243
  "It's that simple! You now have OptionTree built into your theme and anytime "
1244
  "there's an update to the plugin you just replace the old version and you're "
1245
  "good to go.."
1246
  msgstr ""
1247
 
1248
+ #: includes/ot-functions-docs-page.php:787
1249
  msgid "Step 2: Create Theme Options without using the UI Builder."
1250
  msgstr ""
1251
 
1252
+ #: includes/ot-functions-docs-page.php:789
1253
  msgid ""
1254
  "Create a file and name it anything you want, maybe <code>theme-options.php</"
1255
  "code>, or use the built in file export to create it for you. Remember, you "
1256
  "should always check the file for errors before including it in your theme."
1257
  msgstr ""
1258
 
1259
+ #: includes/ot-functions-docs-page.php:790
1260
  msgid ""
1261
  "As well, you'll probably want to create a directory named <code>includes</"
1262
  "code> to put your <code>theme-options.php</code> into which will help keep "
1263
  "you file structure nice and tidy."
1264
  msgstr ""
1265
 
1266
+ #: includes/ot-functions-docs-page.php:801
1267
  msgid ""
1268
  "Add a variation of the following code to your <code>theme-options.php</"
1269
  "code>. You'll obviously need to fill it in with all your custom array values "
1270
  "for contextual help (optional), sections (required), and settings (required)."
1271
  msgstr ""
1272
 
1273
+ #: includes/ot-functions-docs-page.php:804
1274
  msgid ""
1275
  "The code below is a boilerplate to get your started. For a full list of the "
1276
  "available option types click the \"Option Types\" tab above. Also a quick "
1298
  msgstr ""
1299
 
1300
  #: includes/ot-functions-option-types.php:140
1301
+ #: includes/ot-functions-option-types.php:1671
1302
  msgid "Add Media"
1303
  msgstr ""
1304
 
1308
  msgstr ""
1309
 
1310
  #: includes/ot-functions-option-types.php:259
1311
+ #: includes/ot-functions-option-types.php:519
1312
+ #: includes/ot-functions-option-types.php:758
1313
+ #: includes/ot-functions-option-types.php:942
1314
+ #: includes/ot-functions-option-types.php:1196
1315
+ #: includes/ot-functions-option-types.php:1312
1316
  msgid "Choose One"
1317
  msgstr ""
1318
 
1319
+ #: includes/ot-functions-option-types.php:467
1320
+ #: includes/ot-functions-option-types.php:525
1321
+ #: includes/ot-functions-option-types.php:893
1322
+ #: includes/ot-functions-option-types.php:948
1323
  msgid "No Posts Found"
1324
  msgstr ""
1325
 
1326
+ #: includes/ot-functions-option-types.php:596
1327
+ #: includes/ot-functions-option-types.php:835
1328
  msgid "Add New"
1329
  msgstr ""
1330
 
1331
+ #: includes/ot-functions-option-types.php:599
1332
+ #: includes/ot-functions-option-types.php:838
1333
  msgid "You can re-order with drag & drop, the order will update after saving."
1334
  msgstr ""
1335
 
1336
+ #: includes/ot-functions-option-types.php:709
1337
+ #: includes/ot-functions-option-types.php:764
1338
  msgid "No Pages Found"
1339
  msgstr ""
1340
 
1341
+ #: includes/ot-functions-option-types.php:1147
1342
+ #: includes/ot-functions-option-types.php:1201
1343
  msgid "No Tags Found"
1344
  msgstr ""
1345
 
1346
+ #: includes/ot-functions-option-types.php:1260
1347
+ #: includes/ot-functions-option-types.php:1317
1348
  msgid "No Taxonomies Found"
1349
  msgstr ""
1350
 
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.8
7
  * Author: Derek Herman
8
  * Author URI: http://valendesigns.com
9
  * License: GPLv2
@@ -63,7 +63,7 @@ if ( ! class_exists( 'OT_Loader' ) ) {
63
  /**
64
  * Current Version number.
65
  */
66
- define( 'OT_VERSION', '2.0.8' );
67
 
68
  /**
69
  * For developers: Allow Unfiltered HTML in all the textareas.
@@ -307,7 +307,7 @@ if ( ! class_exists( 'OT_Loader' ) ) {
307
  * AJAX utility function for adding a new section.
308
  */
309
  public function add_section() {
310
- echo ot_sections_view( 'option_tree_settings[sections]', $_GET['count'] );
311
  die();
312
  }
313
 
@@ -315,7 +315,7 @@ if ( ! class_exists( 'OT_Loader' ) ) {
315
  * AJAX utility function for adding a new setting.
316
  */
317
  public function add_setting() {
318
- echo ot_settings_view( $_GET['name'], $_GET['count'] );
319
  die();
320
  }
321
 
@@ -323,7 +323,7 @@ if ( ! class_exists( 'OT_Loader' ) ) {
323
  * AJAX utility function for adding a new list item setting.
324
  */
325
  public function add_list_item_setting() {
326
- echo ot_settings_view( $_GET['name'] . '[settings]', $_GET['count'] );
327
  die();
328
  }
329
 
@@ -331,7 +331,7 @@ if ( ! class_exists( 'OT_Loader' ) ) {
331
  * AJAX utility function for adding new contextual help content.
332
  */
333
  public function add_contextual_help() {
334
- echo ot_contextual_help_view( $_GET['name'], $_GET['count'] );
335
  die();
336
  }
337
 
@@ -339,7 +339,7 @@ if ( ! class_exists( 'OT_Loader' ) ) {
339
  * AJAX utility function for adding a new choice.
340
  */
341
  public function add_choice() {
342
- echo ot_choices_view( $_GET['name'], $_GET['count'] );
343
  die();
344
  }
345
 
@@ -347,7 +347,7 @@ if ( ! class_exists( 'OT_Loader' ) ) {
347
  * AJAX utility function for adding a new layout.
348
  */
349
  public function add_layout() {
350
- echo ot_layout_view( $_GET['count'] );
351
  die();
352
  }
353
 
@@ -355,7 +355,7 @@ if ( ! class_exists( 'OT_Loader' ) ) {
355
  * AJAX utility function for adding a new list item.
356
  */
357
  public function add_list_item() {
358
- ot_list_item_view( $_GET['name'], $_GET['count'], array(), $_GET['post_id'], $_GET['get_option'], unserialize( base64_decode( $_GET['settings'] ) ), $_GET['type'] );
359
  die();
360
  }
361
 
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.9
7
  * Author: Derek Herman
8
  * Author URI: http://valendesigns.com
9
  * License: GPLv2
63
  /**
64
  * Current Version number.
65
  */
66
+ define( 'OT_VERSION', '2.0.9' );
67
 
68
  /**
69
  * For developers: Allow Unfiltered HTML in all the textareas.
307
  * AJAX utility function for adding a new section.
308
  */
309
  public function add_section() {
310
+ echo ot_sections_view( 'option_tree_settings[sections]', $_REQUEST['count'] );
311
  die();
312
  }
313
 
315
  * AJAX utility function for adding a new setting.
316
  */
317
  public function add_setting() {
318
+ echo ot_settings_view( $_REQUEST['name'], $_REQUEST['count'] );
319
  die();
320
  }
321
 
323
  * AJAX utility function for adding a new list item setting.
324
  */
325
  public function add_list_item_setting() {
326
+ echo ot_settings_view( $_REQUEST['name'] . '[settings]', $_REQUEST['count'] );
327
  die();
328
  }
329
 
331
  * AJAX utility function for adding new contextual help content.
332
  */
333
  public function add_contextual_help() {
334
+ echo ot_contextual_help_view( $_REQUEST['name'], $_REQUEST['count'] );
335
  die();
336
  }
337
 
339
  * AJAX utility function for adding a new choice.
340
  */
341
  public function add_choice() {
342
+ echo ot_choices_view( $_REQUEST['name'], $_REQUEST['count'] );
343
  die();
344
  }
345
 
347
  * AJAX utility function for adding a new layout.
348
  */
349
  public function add_layout() {
350
+ echo ot_layout_view( $_REQUEST['count'] );
351
  die();
352
  }
353
 
355
  * AJAX utility function for adding a new list item.
356
  */
357
  public function add_list_item() {
358
+ ot_list_item_view( $_REQUEST['name'], $_REQUEST['count'], array(), $_REQUEST['post_id'], $_REQUEST['get_option'], unserialize( base64_decode( $_REQUEST['settings'] ) ), $_REQUEST['type'] );
359
  die();
360
  }
361
 
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.8
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,12 +41,23 @@ Yes. OptionTree requires PHP5 to work correctly (so does WP 3.2+).
41
 
42
  == Changelog ==
43
 
 
 
 
 
 
 
 
 
 
 
 
44
  = 2.0.8 =
45
  * Add auto import for backwards compatibility of old 1.x files.
46
  * Added the ability to export settings into a fully functional theme-options.php.
47
  * Fix typo in docs regarding the filter demo code.
48
  * Removed slashes in the section and contextual help titles.
49
- * Attempt to align colorpicker inputs for other browsers (needs to be tested).
50
 
51
  = 2.0.7 =
52
  * Fixed the load order to be compatible with 1.x version themes that think the get_option_tree() function doesn't exist yet.
@@ -171,7 +182,7 @@ Yes. OptionTree requires PHP5 to work correctly (so does WP 3.2+).
171
 
172
  == Upgrade Notice ==
173
 
174
- = 2.0.8 =
175
  The plugin has undertaken a complete rebuild! If you are not the theme developer, I urge you to contact that person before you upgrade and ask them to test the themes compatibility.
176
 
177
  = 1.1.8.1 =
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.9
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.9 =
45
+ * Fixed the issue where the Textarea Simple and CSS option types were mysteriously being ran through wpautop.
46
+ * Added missing class setting to Textarea, Textarea Simple, & CSS option types.
47
+ * Fixed theme-options.php exported array where label values were not correct.
48
+ * Change GET to POST for all AJAX calls to fix a bug where some servers would not allow long strings to be passed in GET variables.
49
+ * Added the 'ot_after_validate_setting' filter to the validation function.
50
+ * Added $field_id to the ot_validate_setting() for more precise filtering.
51
+ * Added the ot_reverse_wpautop() function that you can run input through just incase you need it.
52
+ * Updated the docs to include information on why WYSIWYG editors are not allowed in meta boxes and that they revert to a Textarea Simple.
53
+ * Update option-tree.pot file.
54
+
55
  = 2.0.8 =
56
  * Add auto import for backwards compatibility of old 1.x files.
57
  * Added the ability to export settings into a fully functional theme-options.php.
58
  * Fix typo in docs regarding the filter demo code.
59
  * Removed slashes in the section and contextual help titles.
60
+ * Made colorpicker input field alignment more cross browser compatible.
61
 
62
  = 2.0.7 =
63
  * Fixed the load order to be compatible with 1.x version themes that think the get_option_tree() function doesn't exist yet.
182
 
183
  == Upgrade Notice ==
184
 
185
+ = 2.0.9 =
186
  The plugin has undertaken a complete rebuild! If you are not the theme developer, I urge you to contact that person before you upgrade and ask them to test the themes compatibility.
187
 
188
  = 1.1.8.1 =
screenshot-1.png CHANGED
Binary file