OptionTree - Version 2.5.5

Version Description

  • Hotfix - Allow a 0 value to be saved with certain option types. Contributors via github @BassemN.
  • Hotfix - Stop media from being attached to the OptionTree post type when uploaded from the media manager or customizer. Contributors via github @earnjam, and @valendesigns.
  • Hotfix - Added filter ot_load_dynamic_css to explicitly turn the feature off if desired.
  • Hotfix - Stopped dynamic.css created with other themes from being loaded elsewhere.
Download this release

Release Info

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

Code changes from version 2.5.4 to 2.5.5

includes/ot-functions-admin.php CHANGED
@@ -511,7 +511,7 @@ if ( ! function_exists( 'ot_validate_setting' ) ) {
511
  }
512
 
513
  // Unset keys with empty values.
514
- if ( empty( $value ) ) {
515
  unset( $input[$key] );
516
  }
517
 
@@ -543,7 +543,7 @@ if ( ! function_exists( 'ot_validate_setting' ) ) {
543
 
544
  // Unset keys with empty values.
545
  foreach( $input as $key => $value ) {
546
- if ( empty( $value ) ) {
547
  unset( $input[$key] );
548
  }
549
  }
@@ -589,7 +589,7 @@ if ( ! function_exists( 'ot_validate_setting' ) ) {
589
  if ( ! empty( $value ) && ! is_numeric( $value ) && $key !== 'unit' ) {
590
  $errors[] = $key;
591
  }
592
- if ( empty( $value ) ) {
593
  unset( $input[$key] );
594
  }
595
  }
@@ -647,7 +647,7 @@ if ( ! function_exists( 'ot_validate_setting' ) ) {
647
  $input[0] = sanitize_text_field( $input[0] );
648
 
649
  // No value; set to empty
650
- if ( empty( $input[0] ) && empty( $input[1] ) ) {
651
  $input = '';
652
  }
653
 
@@ -658,7 +658,7 @@ if ( ! function_exists( 'ot_validate_setting' ) ) {
658
  if ( ! empty( $value ) && ! is_numeric( $value ) && $key !== 'unit' ) {
659
  $errors[] = $key;
660
  }
661
- if ( empty( $value ) ) {
662
  unset( $input[$key] );
663
  }
664
  }
@@ -3507,10 +3507,11 @@ if ( ! function_exists( 'ot_insert_css_with_markers' ) ) {
3507
 
3508
  // Measurement
3509
  if ( $option_type == 'measurement' ) {
3510
-
 
3511
  // Set $value with measurement properties
3512
- if ( isset( $value[0] ) && isset( $value[1] ) )
3513
- $value = $value[0].$value[1];
3514
 
3515
  // Border
3516
  } else if ( $option_type == 'border' ) {
@@ -3518,7 +3519,7 @@ if ( ! function_exists( 'ot_insert_css_with_markers' ) ) {
3518
 
3519
  $unit = ! empty( $value['unit'] ) ? $value['unit'] : 'px';
3520
 
3521
- if ( ! empty( $value['width'] ) )
3522
  $border[] = $value['width'].$unit;
3523
 
3524
  if ( ! empty( $value['style'] ) )
@@ -3542,10 +3543,10 @@ if ( ! function_exists( 'ot_insert_css_with_markers' ) ) {
3542
 
3543
  $unit = ! empty( $value['unit'] ) ? $value['unit'] : 'px';
3544
 
3545
- if ( ! empty( $value['width'] ) )
3546
  $dimension[] = $value['width'].$unit;
3547
 
3548
- if ( ! empty( $value['height'] ) )
3549
  $dimension[] = $value['height'].$unit;
3550
 
3551
  // Set $value with dimension properties or empty string
@@ -3557,16 +3558,16 @@ if ( ! function_exists( 'ot_insert_css_with_markers' ) ) {
3557
 
3558
  $unit = ! empty( $value['unit'] ) ? $value['unit'] : 'px';
3559
 
3560
- if ( ! empty( $value['top'] ) )
3561
  $spacing[] = $value['top'].$unit;
3562
 
3563
- if ( ! empty( $value['right'] ) )
3564
  $spacing[] = $value['right'].$unit;
3565
 
3566
- if ( ! empty( $value['bottom'] ) )
3567
  $spacing[] = $value['bottom'].$unit;
3568
 
3569
- if ( ! empty( $value['left'] ) )
3570
  $spacing[] = $value['left'].$unit;
3571
 
3572
  // Set $value with spacing properties or empty string
511
  }
512
 
513
  // Unset keys with empty values.
514
+ if ( empty( $value ) && strlen( $value ) == 0 ) {
515
  unset( $input[$key] );
516
  }
517
 
543
 
544
  // Unset keys with empty values.
545
  foreach( $input as $key => $value ) {
546
+ if ( empty( $value ) && strlen( $value ) == 0 ) {
547
  unset( $input[$key] );
548
  }
549
  }
589
  if ( ! empty( $value ) && ! is_numeric( $value ) && $key !== 'unit' ) {
590
  $errors[] = $key;
591
  }
592
+ if ( empty( $value ) && strlen( $value ) == 0 ) {
593
  unset( $input[$key] );
594
  }
595
  }
647
  $input[0] = sanitize_text_field( $input[0] );
648
 
649
  // No value; set to empty
650
+ if ( empty( $input[0] ) && strlen( $input[0] ) == 0 && empty( $input[1] ) ) {
651
  $input = '';
652
  }
653
 
658
  if ( ! empty( $value ) && ! is_numeric( $value ) && $key !== 'unit' ) {
659
  $errors[] = $key;
660
  }
661
+ if ( empty( $value ) && strlen( $value ) == 0 ) {
662
  unset( $input[$key] );
663
  }
664
  }
3507
 
3508
  // Measurement
3509
  if ( $option_type == 'measurement' ) {
3510
+ $unit = ! empty( $value[1] ) ? $value[1] : 'px';
3511
+
3512
  // Set $value with measurement properties
3513
+ if ( isset( $value[0] ) && strlen( $value[0] ) > 0 )
3514
+ $value = $value[0].$unit;
3515
 
3516
  // Border
3517
  } else if ( $option_type == 'border' ) {
3519
 
3520
  $unit = ! empty( $value['unit'] ) ? $value['unit'] : 'px';
3521
 
3522
+ if ( isset( $value['width'] ) && strlen( $value['width'] ) > 0 )
3523
  $border[] = $value['width'].$unit;
3524
 
3525
  if ( ! empty( $value['style'] ) )
3543
 
3544
  $unit = ! empty( $value['unit'] ) ? $value['unit'] : 'px';
3545
 
3546
+ if ( isset( $value['width'] ) && strlen( $value['width'] ) > 0 )
3547
  $dimension[] = $value['width'].$unit;
3548
 
3549
+ if ( isset( $value['height'] ) && strlen( $value['height'] ) > 0 )
3550
  $dimension[] = $value['height'].$unit;
3551
 
3552
  // Set $value with dimension properties or empty string
3558
 
3559
  $unit = ! empty( $value['unit'] ) ? $value['unit'] : 'px';
3560
 
3561
+ if ( isset( $value['top'] ) && strlen( $value['top'] ) > 0 )
3562
  $spacing[] = $value['top'].$unit;
3563
 
3564
+ if ( isset( $value['right'] ) && strlen( $value['right'] ) > 0 )
3565
  $spacing[] = $value['right'].$unit;
3566
 
3567
+ if ( isset( $value['bottom'] ) && strlen( $value['bottom'] ) > 0 )
3568
  $spacing[] = $value['bottom'].$unit;
3569
 
3570
+ if ( isset( $value['left'] ) && strlen( $value['left'] ) > 0 )
3571
  $spacing[] = $value['left'].$unit;
3572
 
3573
  // Set $value with spacing properties or empty string
includes/ot-functions.php CHANGED
@@ -219,8 +219,25 @@ if ( ! function_exists( 'ot_load_dynamic_css' ) ) {
219
  function ot_load_dynamic_css() {
220
 
221
  /* don't load in the admin */
222
- if ( is_admin() )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
223
  return;
 
224
 
225
  /* grab a copy of the paths */
226
  $ot_css_file_paths = get_option( 'ot_css_file_paths', array() );
@@ -238,8 +255,16 @@ if ( ! function_exists( 'ot_load_dynamic_css' ) ) {
238
  if ( '' != $path && file_exists( $path ) ) {
239
 
240
  $parts = explode( '/wp-content', $path );
241
-
242
  if ( isset( $parts[1] ) ) {
 
 
 
 
 
 
 
 
243
 
244
  $css = set_url_scheme( WP_CONTENT_URL ) . $parts[1];
245
 
219
  function ot_load_dynamic_css() {
220
 
221
  /* don't load in the admin */
222
+ if ( is_admin() ) {
223
+ return;
224
+ }
225
+
226
+ /**
227
+ * Filter whether or not to enqueue a `dynamic.css` file at the theme level.
228
+ *
229
+ * By filtering this to `false` OptionTree will not attempt to enqueue any CSS files.
230
+ *
231
+ * Example: add_filter( 'ot_load_dynamic_css', '__return_false' );
232
+ *
233
+ * @since 2.5.5
234
+ *
235
+ * @param bool $load_dynamic_css Default is `true`.
236
+ * @return bool
237
+ */
238
+ if ( false === (bool) apply_filters( 'ot_load_dynamic_css', true ) ) {
239
  return;
240
+ }
241
 
242
  /* grab a copy of the paths */
243
  $ot_css_file_paths = get_option( 'ot_css_file_paths', array() );
255
  if ( '' != $path && file_exists( $path ) ) {
256
 
257
  $parts = explode( '/wp-content', $path );
258
+
259
  if ( isset( $parts[1] ) ) {
260
+
261
+ $sub_parts = explode( '/', $parts[1] );
262
+
263
+ if ( isset( $sub_parts[1] ) && isset( $sub_parts[2] ) ) {
264
+ if ( $sub_parts[1] == 'themes' && $sub_parts[2] != get_template() ) {
265
+ continue;
266
+ }
267
+ }
268
 
269
  $css = set_url_scheme( WP_CONTENT_URL ) . $parts[1];
270
 
languages/option-tree-et.mo CHANGED
Binary file
languages/option-tree-et.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: OptionTree\n"
4
- "POT-Creation-Date: 2015-04-21 22:11-0800\n"
5
- "PO-Revision-Date: 2015-04-21 22:11-0800\n"
6
  "Last-Translator: Derek Herman <derek@valendesigns.com>\n"
7
  "Language-Team: Valen Designs\n"
8
  "Language: et_EE\n"
@@ -136,7 +136,7 @@ msgstr "Midagi läks valesti. Tabelit %s ei kustutatud."
136
 
137
  #: ../includes/ot-functions-admin.php:50 ../includes/ot-functions-admin.php:51
138
  #: ../includes/ot-functions-admin.php:169
139
- #: ../includes/ot-functions-admin.php:193 ../includes/ot-functions.php:363
140
  msgid "Theme Options"
141
  msgstr "Teema seaded"
142
 
@@ -294,7 +294,7 @@ msgstr "%s värvi valija lubab väärtuseid vaid kuueteistkümnendiksüsteemis."
294
 
295
  #: ../includes/ot-functions-admin.php:846
296
  #: ../includes/ot-functions-docs-page.php:398
297
- #: ../includes/ot-functions-settings-page.php:170 ../ot-loader.php:782
298
  msgid "Send to OptionTree"
299
  msgstr "Saada OptionTree-le"
300
 
@@ -500,7 +500,7 @@ msgid "Dimension"
500
  msgstr "Mõõtmed"
501
 
502
  #: ../includes/ot-functions-admin.php:2430
503
- #: ../includes/ot-functions-admin.php:5464
504
  #: ../includes/ot-functions-docs-page.php:168
505
  msgid "Gallery"
506
  msgstr "Galerii"
@@ -681,7 +681,7 @@ msgstr "Kaks küljendusmenüüd paremal"
681
 
682
  #: ../includes/ot-functions-admin.php:3261
683
  #: ../includes/ot-functions-admin.php:3317
684
- #: ../includes/ot-functions-admin.php:5504
685
  msgid "Link"
686
  msgstr "Viide"
687
 
@@ -714,47 +714,47 @@ msgstr ""
714
  "Sisesta link profiilile või lehele sellel sotsiaalmeedia veebilehel. Ära "
715
  "unusta lisada lingi ette %s osa."
716
 
717
- #: ../includes/ot-functions-admin.php:3754
718
  #, php-format
719
  msgid "Unable to write to file %s."
720
  msgstr ""
721
 
722
- #: ../includes/ot-functions-admin.php:4024
723
  msgid "edit"
724
  msgstr "muuda"
725
 
726
- #: ../includes/ot-functions-admin.php:4025
727
- #: ../includes/ot-functions-admin.php:4093
728
  #: ../includes/ot-functions-admin.php:4094
729
- #: ../includes/ot-functions-admin.php:4256
730
  #: ../includes/ot-functions-admin.php:4257
731
- #: ../includes/ot-functions-admin.php:4322
732
  #: ../includes/ot-functions-admin.php:4323
733
- #: ../includes/ot-functions-admin.php:4450
734
  #: ../includes/ot-functions-admin.php:4451
735
- #: ../includes/ot-functions-admin.php:4603
736
  #: ../includes/ot-functions-admin.php:4604
 
737
  msgid "Edit"
738
  msgstr "Muuda"
739
 
740
- #: ../includes/ot-functions-admin.php:4027
741
  #: ../includes/ot-functions-admin.php:4028
742
- #: ../includes/ot-functions-admin.php:4096
743
  #: ../includes/ot-functions-admin.php:4097
744
- #: ../includes/ot-functions-admin.php:4259
745
  #: ../includes/ot-functions-admin.php:4260
746
- #: ../includes/ot-functions-admin.php:4325
747
  #: ../includes/ot-functions-admin.php:4326
748
- #: ../includes/ot-functions-admin.php:4384
749
  #: ../includes/ot-functions-admin.php:4385
750
- #: ../includes/ot-functions-admin.php:4453
751
  #: ../includes/ot-functions-admin.php:4454
752
- #: ../includes/ot-functions-admin.php:4606
753
  #: ../includes/ot-functions-admin.php:4607
 
754
  msgid "Delete"
755
  msgstr "Kustuta"
756
 
757
- #: ../includes/ot-functions-admin.php:4034
758
  msgid ""
759
  "<strong>Section Title</strong>: Displayed as a menu item on the Theme "
760
  "Options page."
@@ -762,7 +762,7 @@ msgstr ""
762
  "<strong>Sektsiooni pealkiri</strong>: Näidatakse menüü elemendina teema "
763
  "valikute lehel."
764
 
765
- #: ../includes/ot-functions-admin.php:4042
766
  msgid ""
767
  "<strong>Section ID</strong>: A unique lower case alphanumeric string, "
768
  "underscores allowed."
@@ -770,7 +770,7 @@ msgstr ""
770
  "<strong>Sektsiooni ID</strong>: unikaalne väiketähtedega tähtnumbriline "
771
  "string, alakriipsud lubatud."
772
 
773
- #: ../includes/ot-functions-admin.php:4103
774
  msgid ""
775
  "<strong>Label</strong>: Displayed as the label of a form element on the "
776
  "Theme Options page."
@@ -778,8 +778,8 @@ msgstr ""
778
  "<strong>Nimetus</strong>: Näidatakse kui vormi elemendi nimetust teema "
779
  "valikute lehel."
780
 
781
- #: ../includes/ot-functions-admin.php:4111
782
- #: ../includes/ot-functions-admin.php:4340
783
  msgid ""
784
  "<strong>ID</strong>: A unique lower case alphanumeric string, underscores "
785
  "allowed."
@@ -787,14 +787,14 @@ msgstr ""
787
  "<strong>ID</strong>: unikaalne väiketähtedega tähtnumbriline string, "
788
  "alakriipsud lubatud."
789
 
790
- #: ../includes/ot-functions-admin.php:4119
791
  msgid ""
792
  "<strong>Type</strong>: Choose one of the available option types from the "
793
  "dropdown."
794
  msgstr ""
795
  "<strong>Tüüp</strong>: vali rippmenüüst üks pakutavatest valiku tüüpidest."
796
 
797
- #: ../includes/ot-functions-admin.php:4130
798
  msgid ""
799
  "<strong>Description</strong>: Enter a detailed description for the users to "
800
  "read on the Theme Options page, HTML is allowed. This is also where you "
@@ -804,7 +804,7 @@ msgstr ""
804
  "saavad lugeda teema valikute lehel. HTML on lubatud. See on ühtlasi ka koht, "
805
  "kuhu sisestada tekstibloki ja pealkirjaga tekstibloki valikutüüpide sisu."
806
 
807
- #: ../includes/ot-functions-admin.php:4138
808
  msgid ""
809
  "<strong>Choices</strong>: This will only affect the following option types: "
810
  "Checkbox, Radio, Select & Select Image."
@@ -812,21 +812,21 @@ msgstr ""
812
  "<strong>Valikud</strong>: mõjutab vaid järgnevaid valikutüüpe: valikkastid, "
813
  "raadiokastid, rippvalik ja pildi valik."
814
 
815
- #: ../includes/ot-functions-admin.php:4143
816
  msgid "Add Choice"
817
  msgstr "Lisa valik"
818
 
819
- #: ../includes/ot-functions-admin.php:4149
820
  msgid ""
821
  "<strong>Settings</strong>: This will only affect the List Item option type."
822
  msgstr "<strong>Sätted</strong>: mõjutab vaid nimekirja elemendi valikutüüpi."
823
 
824
- #: ../includes/ot-functions-admin.php:4154
825
  #: ../includes/ot-functions-settings-page.php:93
826
  msgid "Add Setting"
827
  msgstr "Lisa säte"
828
 
829
- #: ../includes/ot-functions-admin.php:4160
830
  msgid ""
831
  "<strong>Standard</strong>: Setting the standard value for your option only "
832
  "works for some option types. Read the <code>OptionTree->Documentation</code> "
@@ -836,7 +836,7 @@ msgstr ""
836
  "valikutüübile. Lisainfot leiad <code>OptionTree->Dokumentatsioon</code> "
837
  "lehelt."
838
 
839
- #: ../includes/ot-functions-admin.php:4168
840
  msgid ""
841
  "<strong>Rows</strong>: Enter a numeric value for the number of rows in your "
842
  "textarea. This will only affect the following option types: CSS, Textarea, & "
@@ -846,7 +846,7 @@ msgstr ""
846
  "tekstiväljal. Mõjutab vaid järgnevaid valikutüüpe: CSS, tekstiväli ja lihtne "
847
  "tekstiväli."
848
 
849
- #: ../includes/ot-functions-admin.php:4176
850
  msgid ""
851
  "<strong>Post Type</strong>: Add a comma separated list of post type like "
852
  "'post,page'. This will only affect the following option types: Custom Post "
@@ -857,7 +857,7 @@ msgstr ""
857
  "valikutüüpe: enda loodud postitüübi valikkastid ja enda loodud postitüübi "
858
  "rippvalik."
859
 
860
- #: ../includes/ot-functions-admin.php:4184
861
  msgid ""
862
  "<strong>Taxonomy</strong>: Add a comma separated list of any registered "
863
  "taxonomy like 'category,post_tag'. This will only affect the following "
@@ -867,7 +867,7 @@ msgstr ""
867
  "taksonoomiatest nagu 'category,post_tag'. See mõjutab vaid järgnevaid "
868
  "valikutüüpe: taksonoomia valikukastid & taksonoomia rippvalik."
869
 
870
- #: ../includes/ot-functions-admin.php:4192
871
  msgid ""
872
  "<strong>Min, Max, & Step</strong>: Add a comma separated list of options in "
873
  "the following format <code>0,100,1</code> (slide from <code>0-100</code> in "
@@ -880,12 +880,12 @@ msgstr ""
880
  "code> intervalliga <code>1</code> ). Need kolm väärtust näitavad miinimumi, "
881
  "maksimumi ja astme valikuid ning mõjutavad vaid numbriliuguri valikutüüpi."
882
 
883
- #: ../includes/ot-functions-admin.php:4200
884
  msgid "<strong>CSS Class</strong>: Add and optional class to this option type."
885
  msgstr ""
886
  "<strong>CSS klass</strong>: Soovi korral lisa sellele valikutüübile klass."
887
 
888
- #: ../includes/ot-functions-admin.php:4208
889
  #, php-format
890
  msgid ""
891
  "<strong>Condition</strong>: Add a comma separated list (no spaces) of "
@@ -898,7 +898,7 @@ msgstr ""
898
  "tühjaks. Nendes näidetes on <code>value</code> kohahoidja teie tingimustele, "
899
  "mis võivad olla kujul %s."
900
 
901
- #: ../includes/ot-functions-admin.php:4216
902
  msgid ""
903
  "<strong>Operator</strong>: Choose the logical operator to compute the result "
904
  "of the conditions."
@@ -906,30 +906,30 @@ msgstr ""
906
  "<strong>Operaator</strong>: vali loogiline operaator, millega arvutada välja "
907
  "tingimuste tulemus."
908
 
909
- #: ../includes/ot-functions-admin.php:4219
910
  #: ../includes/ot-functions-docs-page.php:111
911
  #: ../includes/ot-functions-docs-page.php:378
912
  msgid "and"
913
  msgstr "ja"
914
 
915
- #: ../includes/ot-functions-admin.php:4220
916
  msgid "or"
917
  msgstr "või"
918
 
919
- #: ../includes/ot-functions-admin.php:4266
920
  #: ../includes/ot-functions-docs-page.php:29
921
  msgid "Label"
922
  msgstr "Nimetus"
923
 
924
- #: ../includes/ot-functions-admin.php:4276
925
  msgid "Value"
926
  msgstr "Väärtus"
927
 
928
- #: ../includes/ot-functions-admin.php:4286
929
  msgid "Image Source (Radio Image only)"
930
  msgstr "Pildi allikas ( ainult pildiga raadiovaliku jaoks )"
931
 
932
- #: ../includes/ot-functions-admin.php:4332
933
  msgid ""
934
  "<strong>Title</strong>: Displayed as a contextual help menu item on the "
935
  "Theme Options page."
@@ -937,7 +937,7 @@ msgstr ""
937
  "<strong>Pealkiri</strong>: kuvatakse kui kontekstipõhine abimenüü element "
938
  "teema valikute lehel."
939
 
940
- #: ../includes/ot-functions-admin.php:4348
941
  msgid ""
942
  "<strong>Content</strong>: Enter the HTML content about this contextual help "
943
  "item displayed on the Theme Option page for end users to read."
@@ -945,57 +945,57 @@ msgstr ""
945
  "<strong>Sisu</strong>: sisesta HTML sisu selle kontekstipõhise elemendi "
946
  "kohta. Näidatakse teema valikute lehel lõppkasutajatele."
947
 
948
- #: ../includes/ot-functions-admin.php:4379
949
  msgid "Layout"
950
  msgstr "Paigutus"
951
 
952
- #: ../includes/ot-functions-admin.php:4381
953
  #: ../includes/ot-functions-admin.php:4382
 
954
  msgid "Activate"
955
  msgstr "Aktiveeri"
956
 
957
- #: ../includes/ot-functions-admin.php:4418 ../includes/ot-meta-box-api.php:231
958
  #: ../includes/ot-settings-api.php:610
959
  msgid "Title"
960
  msgstr "Pealkiri"
961
 
962
- #: ../includes/ot-functions-admin.php:4758
963
  msgid "New Layout"
964
  msgstr "Uus paigutus"
965
 
966
- #: ../includes/ot-functions-admin.php:5513
967
  msgid "Link URL"
968
  msgstr "Viide"
969
 
970
- #: ../includes/ot-functions-admin.php:5520
971
  msgid "Link Title"
972
  msgstr "Lingi pealkiri"
973
 
974
- #: ../includes/ot-functions-admin.php:5550
975
  msgid "Quote"
976
  msgstr "Tsitaat"
977
 
978
- #: ../includes/ot-functions-admin.php:5559
979
  msgid "Source Name (ex. author, singer, actor)"
980
  msgstr "Allika nimi (nt autor, laulja, näitleja)"
981
 
982
- #: ../includes/ot-functions-admin.php:5566
983
  msgid "Source URL"
984
  msgstr "Allika URL"
985
 
986
- #: ../includes/ot-functions-admin.php:5573
987
  msgid "Source Title (ex. book, song, movie)"
988
  msgstr "Allika pealkiri (nt raamat, laul, film)"
989
 
990
- #: ../includes/ot-functions-admin.php:5580
991
  msgid "Source Date"
992
  msgstr "Allika kuupäev"
993
 
994
- #: ../includes/ot-functions-admin.php:5610
995
  msgid "Video"
996
  msgstr "Video"
997
 
998
- #: ../includes/ot-functions-admin.php:5619
999
  #, php-format
1000
  msgid ""
1001
  "Embed video from services like Youtube, Vimeo, or Hulu. You can find a list "
@@ -1006,16 +1006,16 @@ msgstr ""
1006
  "Nimekirja toetatud oEmbed veebilehtedest leiad %1$s. Teine variant oleks "
1007
  "kasutada sisse ehitatud lühikoodi %2$s."
1008
 
1009
- #: ../includes/ot-functions-admin.php:5619
1010
- #: ../includes/ot-functions-admin.php:5658
1011
  msgid "Wordpress Codex"
1012
  msgstr "Wordpress Codex"
1013
 
1014
- #: ../includes/ot-functions-admin.php:5649
1015
  msgid "Audio"
1016
  msgstr "Audio"
1017
 
1018
- #: ../includes/ot-functions-admin.php:5658
1019
  #, php-format
1020
  msgid ""
1021
  "Embed audio from services like SoundCloud and Rdio. You can find a list of "
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: OptionTree\n"
4
+ "POT-Creation-Date: 2015-05-01 00:04-0800\n"
5
+ "PO-Revision-Date: 2015-05-01 00:04-0800\n"
6
  "Last-Translator: Derek Herman <derek@valendesigns.com>\n"
7
  "Language-Team: Valen Designs\n"
8
  "Language: et_EE\n"
136
 
137
  #: ../includes/ot-functions-admin.php:50 ../includes/ot-functions-admin.php:51
138
  #: ../includes/ot-functions-admin.php:169
139
+ #: ../includes/ot-functions-admin.php:193 ../includes/ot-functions.php:388
140
  msgid "Theme Options"
141
  msgstr "Teema seaded"
142
 
294
 
295
  #: ../includes/ot-functions-admin.php:846
296
  #: ../includes/ot-functions-docs-page.php:398
297
+ #: ../includes/ot-functions-settings-page.php:170 ../ot-loader.php:787
298
  msgid "Send to OptionTree"
299
  msgstr "Saada OptionTree-le"
300
 
500
  msgstr "Mõõtmed"
501
 
502
  #: ../includes/ot-functions-admin.php:2430
503
+ #: ../includes/ot-functions-admin.php:5465
504
  #: ../includes/ot-functions-docs-page.php:168
505
  msgid "Gallery"
506
  msgstr "Galerii"
681
 
682
  #: ../includes/ot-functions-admin.php:3261
683
  #: ../includes/ot-functions-admin.php:3317
684
+ #: ../includes/ot-functions-admin.php:5505
685
  msgid "Link"
686
  msgstr "Viide"
687
 
714
  "Sisesta link profiilile või lehele sellel sotsiaalmeedia veebilehel. Ära "
715
  "unusta lisada lingi ette %s osa."
716
 
717
+ #: ../includes/ot-functions-admin.php:3755
718
  #, php-format
719
  msgid "Unable to write to file %s."
720
  msgstr ""
721
 
722
+ #: ../includes/ot-functions-admin.php:4025
723
  msgid "edit"
724
  msgstr "muuda"
725
 
726
+ #: ../includes/ot-functions-admin.php:4026
 
727
  #: ../includes/ot-functions-admin.php:4094
728
+ #: ../includes/ot-functions-admin.php:4095
729
  #: ../includes/ot-functions-admin.php:4257
730
+ #: ../includes/ot-functions-admin.php:4258
731
  #: ../includes/ot-functions-admin.php:4323
732
+ #: ../includes/ot-functions-admin.php:4324
733
  #: ../includes/ot-functions-admin.php:4451
734
+ #: ../includes/ot-functions-admin.php:4452
735
  #: ../includes/ot-functions-admin.php:4604
736
+ #: ../includes/ot-functions-admin.php:4605
737
  msgid "Edit"
738
  msgstr "Muuda"
739
 
 
740
  #: ../includes/ot-functions-admin.php:4028
741
+ #: ../includes/ot-functions-admin.php:4029
742
  #: ../includes/ot-functions-admin.php:4097
743
+ #: ../includes/ot-functions-admin.php:4098
744
  #: ../includes/ot-functions-admin.php:4260
745
+ #: ../includes/ot-functions-admin.php:4261
746
  #: ../includes/ot-functions-admin.php:4326
747
+ #: ../includes/ot-functions-admin.php:4327
748
  #: ../includes/ot-functions-admin.php:4385
749
+ #: ../includes/ot-functions-admin.php:4386
750
  #: ../includes/ot-functions-admin.php:4454
751
+ #: ../includes/ot-functions-admin.php:4455
752
  #: ../includes/ot-functions-admin.php:4607
753
+ #: ../includes/ot-functions-admin.php:4608
754
  msgid "Delete"
755
  msgstr "Kustuta"
756
 
757
+ #: ../includes/ot-functions-admin.php:4035
758
  msgid ""
759
  "<strong>Section Title</strong>: Displayed as a menu item on the Theme "
760
  "Options page."
762
  "<strong>Sektsiooni pealkiri</strong>: Näidatakse menüü elemendina teema "
763
  "valikute lehel."
764
 
765
+ #: ../includes/ot-functions-admin.php:4043
766
  msgid ""
767
  "<strong>Section ID</strong>: A unique lower case alphanumeric string, "
768
  "underscores allowed."
770
  "<strong>Sektsiooni ID</strong>: unikaalne väiketähtedega tähtnumbriline "
771
  "string, alakriipsud lubatud."
772
 
773
+ #: ../includes/ot-functions-admin.php:4104
774
  msgid ""
775
  "<strong>Label</strong>: Displayed as the label of a form element on the "
776
  "Theme Options page."
778
  "<strong>Nimetus</strong>: Näidatakse kui vormi elemendi nimetust teema "
779
  "valikute lehel."
780
 
781
+ #: ../includes/ot-functions-admin.php:4112
782
+ #: ../includes/ot-functions-admin.php:4341
783
  msgid ""
784
  "<strong>ID</strong>: A unique lower case alphanumeric string, underscores "
785
  "allowed."
787
  "<strong>ID</strong>: unikaalne väiketähtedega tähtnumbriline string, "
788
  "alakriipsud lubatud."
789
 
790
+ #: ../includes/ot-functions-admin.php:4120
791
  msgid ""
792
  "<strong>Type</strong>: Choose one of the available option types from the "
793
  "dropdown."
794
  msgstr ""
795
  "<strong>Tüüp</strong>: vali rippmenüüst üks pakutavatest valiku tüüpidest."
796
 
797
+ #: ../includes/ot-functions-admin.php:4131
798
  msgid ""
799
  "<strong>Description</strong>: Enter a detailed description for the users to "
800
  "read on the Theme Options page, HTML is allowed. This is also where you "
804
  "saavad lugeda teema valikute lehel. HTML on lubatud. See on ühtlasi ka koht, "
805
  "kuhu sisestada tekstibloki ja pealkirjaga tekstibloki valikutüüpide sisu."
806
 
807
+ #: ../includes/ot-functions-admin.php:4139
808
  msgid ""
809
  "<strong>Choices</strong>: This will only affect the following option types: "
810
  "Checkbox, Radio, Select & Select Image."
812
  "<strong>Valikud</strong>: mõjutab vaid järgnevaid valikutüüpe: valikkastid, "
813
  "raadiokastid, rippvalik ja pildi valik."
814
 
815
+ #: ../includes/ot-functions-admin.php:4144
816
  msgid "Add Choice"
817
  msgstr "Lisa valik"
818
 
819
+ #: ../includes/ot-functions-admin.php:4150
820
  msgid ""
821
  "<strong>Settings</strong>: This will only affect the List Item option type."
822
  msgstr "<strong>Sätted</strong>: mõjutab vaid nimekirja elemendi valikutüüpi."
823
 
824
+ #: ../includes/ot-functions-admin.php:4155
825
  #: ../includes/ot-functions-settings-page.php:93
826
  msgid "Add Setting"
827
  msgstr "Lisa säte"
828
 
829
+ #: ../includes/ot-functions-admin.php:4161
830
  msgid ""
831
  "<strong>Standard</strong>: Setting the standard value for your option only "
832
  "works for some option types. Read the <code>OptionTree->Documentation</code> "
836
  "valikutüübile. Lisainfot leiad <code>OptionTree->Dokumentatsioon</code> "
837
  "lehelt."
838
 
839
+ #: ../includes/ot-functions-admin.php:4169
840
  msgid ""
841
  "<strong>Rows</strong>: Enter a numeric value for the number of rows in your "
842
  "textarea. This will only affect the following option types: CSS, Textarea, & "
846
  "tekstiväljal. Mõjutab vaid järgnevaid valikutüüpe: CSS, tekstiväli ja lihtne "
847
  "tekstiväli."
848
 
849
+ #: ../includes/ot-functions-admin.php:4177
850
  msgid ""
851
  "<strong>Post Type</strong>: Add a comma separated list of post type like "
852
  "'post,page'. This will only affect the following option types: Custom Post "
857
  "valikutüüpe: enda loodud postitüübi valikkastid ja enda loodud postitüübi "
858
  "rippvalik."
859
 
860
+ #: ../includes/ot-functions-admin.php:4185
861
  msgid ""
862
  "<strong>Taxonomy</strong>: Add a comma separated list of any registered "
863
  "taxonomy like 'category,post_tag'. This will only affect the following "
867
  "taksonoomiatest nagu 'category,post_tag'. See mõjutab vaid järgnevaid "
868
  "valikutüüpe: taksonoomia valikukastid & taksonoomia rippvalik."
869
 
870
+ #: ../includes/ot-functions-admin.php:4193
871
  msgid ""
872
  "<strong>Min, Max, & Step</strong>: Add a comma separated list of options in "
873
  "the following format <code>0,100,1</code> (slide from <code>0-100</code> in "
880
  "code> intervalliga <code>1</code> ). Need kolm väärtust näitavad miinimumi, "
881
  "maksimumi ja astme valikuid ning mõjutavad vaid numbriliuguri valikutüüpi."
882
 
883
+ #: ../includes/ot-functions-admin.php:4201
884
  msgid "<strong>CSS Class</strong>: Add and optional class to this option type."
885
  msgstr ""
886
  "<strong>CSS klass</strong>: Soovi korral lisa sellele valikutüübile klass."
887
 
888
+ #: ../includes/ot-functions-admin.php:4209
889
  #, php-format
890
  msgid ""
891
  "<strong>Condition</strong>: Add a comma separated list (no spaces) of "
898
  "tühjaks. Nendes näidetes on <code>value</code> kohahoidja teie tingimustele, "
899
  "mis võivad olla kujul %s."
900
 
901
+ #: ../includes/ot-functions-admin.php:4217
902
  msgid ""
903
  "<strong>Operator</strong>: Choose the logical operator to compute the result "
904
  "of the conditions."
906
  "<strong>Operaator</strong>: vali loogiline operaator, millega arvutada välja "
907
  "tingimuste tulemus."
908
 
909
+ #: ../includes/ot-functions-admin.php:4220
910
  #: ../includes/ot-functions-docs-page.php:111
911
  #: ../includes/ot-functions-docs-page.php:378
912
  msgid "and"
913
  msgstr "ja"
914
 
915
+ #: ../includes/ot-functions-admin.php:4221
916
  msgid "or"
917
  msgstr "või"
918
 
919
+ #: ../includes/ot-functions-admin.php:4267
920
  #: ../includes/ot-functions-docs-page.php:29
921
  msgid "Label"
922
  msgstr "Nimetus"
923
 
924
+ #: ../includes/ot-functions-admin.php:4277
925
  msgid "Value"
926
  msgstr "Väärtus"
927
 
928
+ #: ../includes/ot-functions-admin.php:4287
929
  msgid "Image Source (Radio Image only)"
930
  msgstr "Pildi allikas ( ainult pildiga raadiovaliku jaoks )"
931
 
932
+ #: ../includes/ot-functions-admin.php:4333
933
  msgid ""
934
  "<strong>Title</strong>: Displayed as a contextual help menu item on the "
935
  "Theme Options page."
937
  "<strong>Pealkiri</strong>: kuvatakse kui kontekstipõhine abimenüü element "
938
  "teema valikute lehel."
939
 
940
+ #: ../includes/ot-functions-admin.php:4349
941
  msgid ""
942
  "<strong>Content</strong>: Enter the HTML content about this contextual help "
943
  "item displayed on the Theme Option page for end users to read."
945
  "<strong>Sisu</strong>: sisesta HTML sisu selle kontekstipõhise elemendi "
946
  "kohta. Näidatakse teema valikute lehel lõppkasutajatele."
947
 
948
+ #: ../includes/ot-functions-admin.php:4380
949
  msgid "Layout"
950
  msgstr "Paigutus"
951
 
 
952
  #: ../includes/ot-functions-admin.php:4382
953
+ #: ../includes/ot-functions-admin.php:4383
954
  msgid "Activate"
955
  msgstr "Aktiveeri"
956
 
957
+ #: ../includes/ot-functions-admin.php:4419 ../includes/ot-meta-box-api.php:231
958
  #: ../includes/ot-settings-api.php:610
959
  msgid "Title"
960
  msgstr "Pealkiri"
961
 
962
+ #: ../includes/ot-functions-admin.php:4759
963
  msgid "New Layout"
964
  msgstr "Uus paigutus"
965
 
966
+ #: ../includes/ot-functions-admin.php:5514
967
  msgid "Link URL"
968
  msgstr "Viide"
969
 
970
+ #: ../includes/ot-functions-admin.php:5521
971
  msgid "Link Title"
972
  msgstr "Lingi pealkiri"
973
 
974
+ #: ../includes/ot-functions-admin.php:5551
975
  msgid "Quote"
976
  msgstr "Tsitaat"
977
 
978
+ #: ../includes/ot-functions-admin.php:5560
979
  msgid "Source Name (ex. author, singer, actor)"
980
  msgstr "Allika nimi (nt autor, laulja, näitleja)"
981
 
982
+ #: ../includes/ot-functions-admin.php:5567
983
  msgid "Source URL"
984
  msgstr "Allika URL"
985
 
986
+ #: ../includes/ot-functions-admin.php:5574
987
  msgid "Source Title (ex. book, song, movie)"
988
  msgstr "Allika pealkiri (nt raamat, laul, film)"
989
 
990
+ #: ../includes/ot-functions-admin.php:5581
991
  msgid "Source Date"
992
  msgstr "Allika kuupäev"
993
 
994
+ #: ../includes/ot-functions-admin.php:5611
995
  msgid "Video"
996
  msgstr "Video"
997
 
998
+ #: ../includes/ot-functions-admin.php:5620
999
  #, php-format
1000
  msgid ""
1001
  "Embed video from services like Youtube, Vimeo, or Hulu. You can find a list "
1006
  "Nimekirja toetatud oEmbed veebilehtedest leiad %1$s. Teine variant oleks "
1007
  "kasutada sisse ehitatud lühikoodi %2$s."
1008
 
1009
+ #: ../includes/ot-functions-admin.php:5620
1010
+ #: ../includes/ot-functions-admin.php:5659
1011
  msgid "Wordpress Codex"
1012
  msgstr "Wordpress Codex"
1013
 
1014
+ #: ../includes/ot-functions-admin.php:5650
1015
  msgid "Audio"
1016
  msgstr "Audio"
1017
 
1018
+ #: ../includes/ot-functions-admin.php:5659
1019
  #, php-format
1020
  msgid ""
1021
  "Embed audio from services like SoundCloud and Rdio. You can find a list of "
languages/option-tree.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: OptionTree\n"
4
- "POT-Creation-Date: 2015-04-21 22:10-0800\n"
5
- "PO-Revision-Date: 2015-04-21 22:10-0800\n"
6
  "Last-Translator: Derek Herman <derek@valendesigns.com>\n"
7
  "Language-Team: Valen Designs\n"
8
  "Language: en\n"
@@ -117,7 +117,7 @@ msgstr ""
117
 
118
  #: ../includes/ot-functions-admin.php:50 ../includes/ot-functions-admin.php:51
119
  #: ../includes/ot-functions-admin.php:169
120
- #: ../includes/ot-functions-admin.php:193 ../includes/ot-functions.php:363
121
  msgid "Theme Options"
122
  msgstr ""
123
 
@@ -272,7 +272,7 @@ msgstr ""
272
 
273
  #: ../includes/ot-functions-admin.php:846
274
  #: ../includes/ot-functions-docs-page.php:398
275
- #: ../includes/ot-functions-settings-page.php:170 ../ot-loader.php:782
276
  msgid "Send to OptionTree"
277
  msgstr ""
278
 
@@ -478,7 +478,7 @@ msgid "Dimension"
478
  msgstr ""
479
 
480
  #: ../includes/ot-functions-admin.php:2430
481
- #: ../includes/ot-functions-admin.php:5464
482
  #: ../includes/ot-functions-docs-page.php:168
483
  msgid "Gallery"
484
  msgstr ""
@@ -659,7 +659,7 @@ msgstr ""
659
 
660
  #: ../includes/ot-functions-admin.php:3261
661
  #: ../includes/ot-functions-admin.php:3317
662
- #: ../includes/ot-functions-admin.php:5504
663
  msgid "Link"
664
  msgstr ""
665
 
@@ -690,133 +690,133 @@ msgid ""
690
  "the %s part to the front of the link."
691
  msgstr ""
692
 
693
- #: ../includes/ot-functions-admin.php:3754
694
  #, php-format
695
  msgid "Unable to write to file %s."
696
  msgstr ""
697
 
698
- #: ../includes/ot-functions-admin.php:4024
699
  msgid "edit"
700
  msgstr ""
701
 
702
- #: ../includes/ot-functions-admin.php:4025
703
- #: ../includes/ot-functions-admin.php:4093
704
  #: ../includes/ot-functions-admin.php:4094
705
- #: ../includes/ot-functions-admin.php:4256
706
  #: ../includes/ot-functions-admin.php:4257
707
- #: ../includes/ot-functions-admin.php:4322
708
  #: ../includes/ot-functions-admin.php:4323
709
- #: ../includes/ot-functions-admin.php:4450
710
  #: ../includes/ot-functions-admin.php:4451
711
- #: ../includes/ot-functions-admin.php:4603
712
  #: ../includes/ot-functions-admin.php:4604
 
713
  msgid "Edit"
714
  msgstr ""
715
 
716
- #: ../includes/ot-functions-admin.php:4027
717
  #: ../includes/ot-functions-admin.php:4028
718
- #: ../includes/ot-functions-admin.php:4096
719
  #: ../includes/ot-functions-admin.php:4097
720
- #: ../includes/ot-functions-admin.php:4259
721
  #: ../includes/ot-functions-admin.php:4260
722
- #: ../includes/ot-functions-admin.php:4325
723
  #: ../includes/ot-functions-admin.php:4326
724
- #: ../includes/ot-functions-admin.php:4384
725
  #: ../includes/ot-functions-admin.php:4385
726
- #: ../includes/ot-functions-admin.php:4453
727
  #: ../includes/ot-functions-admin.php:4454
728
- #: ../includes/ot-functions-admin.php:4606
729
  #: ../includes/ot-functions-admin.php:4607
 
730
  msgid "Delete"
731
  msgstr ""
732
 
733
- #: ../includes/ot-functions-admin.php:4034
734
  msgid ""
735
  "<strong>Section Title</strong>: Displayed as a menu item on the Theme "
736
  "Options page."
737
  msgstr ""
738
 
739
- #: ../includes/ot-functions-admin.php:4042
740
  msgid ""
741
  "<strong>Section ID</strong>: A unique lower case alphanumeric string, "
742
  "underscores allowed."
743
  msgstr ""
744
 
745
- #: ../includes/ot-functions-admin.php:4103
746
  msgid ""
747
  "<strong>Label</strong>: Displayed as the label of a form element on the "
748
  "Theme Options page."
749
  msgstr ""
750
 
751
- #: ../includes/ot-functions-admin.php:4111
752
- #: ../includes/ot-functions-admin.php:4340
753
  msgid ""
754
  "<strong>ID</strong>: A unique lower case alphanumeric string, underscores "
755
  "allowed."
756
  msgstr ""
757
 
758
- #: ../includes/ot-functions-admin.php:4119
759
  msgid ""
760
  "<strong>Type</strong>: Choose one of the available option types from the "
761
  "dropdown."
762
  msgstr ""
763
 
764
- #: ../includes/ot-functions-admin.php:4130
765
  msgid ""
766
  "<strong>Description</strong>: Enter a detailed description for the users to "
767
  "read on the Theme Options page, HTML is allowed. This is also where you "
768
  "enter content for both the Textblock & Textblock Titled option types."
769
  msgstr ""
770
 
771
- #: ../includes/ot-functions-admin.php:4138
772
  msgid ""
773
  "<strong>Choices</strong>: This will only affect the following option types: "
774
  "Checkbox, Radio, Select & Select Image."
775
  msgstr ""
776
 
777
- #: ../includes/ot-functions-admin.php:4143
778
  msgid "Add Choice"
779
  msgstr ""
780
 
781
- #: ../includes/ot-functions-admin.php:4149
782
  msgid ""
783
  "<strong>Settings</strong>: This will only affect the List Item option type."
784
  msgstr ""
785
 
786
- #: ../includes/ot-functions-admin.php:4154
787
  #: ../includes/ot-functions-settings-page.php:93
788
  msgid "Add Setting"
789
  msgstr ""
790
 
791
- #: ../includes/ot-functions-admin.php:4160
792
  msgid ""
793
  "<strong>Standard</strong>: Setting the standard value for your option only "
794
  "works for some option types. Read the <code>OptionTree->Documentation</code> "
795
  "for more information on which ones."
796
  msgstr ""
797
 
798
- #: ../includes/ot-functions-admin.php:4168
799
  msgid ""
800
  "<strong>Rows</strong>: Enter a numeric value for the number of rows in your "
801
  "textarea. This will only affect the following option types: CSS, Textarea, & "
802
  "Textarea Simple."
803
  msgstr ""
804
 
805
- #: ../includes/ot-functions-admin.php:4176
806
  msgid ""
807
  "<strong>Post Type</strong>: Add a comma separated list of post type like "
808
  "'post,page'. This will only affect the following option types: Custom Post "
809
  "Type Checkbox, & Custom Post Type Select."
810
  msgstr ""
811
 
812
- #: ../includes/ot-functions-admin.php:4184
813
  msgid ""
814
  "<strong>Taxonomy</strong>: Add a comma separated list of any registered "
815
  "taxonomy like 'category,post_tag'. This will only affect the following "
816
  "option types: Taxonomy Checkbox, & Taxonomy Select."
817
  msgstr ""
818
 
819
- #: ../includes/ot-functions-admin.php:4192
820
  msgid ""
821
  "<strong>Min, Max, & Step</strong>: Add a comma separated list of options in "
822
  "the following format <code>0,100,1</code> (slide from <code>0-100</code> in "
@@ -825,11 +825,11 @@ msgid ""
825
  "type."
826
  msgstr ""
827
 
828
- #: ../includes/ot-functions-admin.php:4200
829
  msgid "<strong>CSS Class</strong>: Add and optional class to this option type."
830
  msgstr ""
831
 
832
- #: ../includes/ot-functions-admin.php:4208
833
  #, php-format
834
  msgid ""
835
  "<strong>Condition</strong>: Add a comma separated list (no spaces) of "
@@ -838,98 +838,98 @@ msgid ""
838
  "placeholder for your condition, which can be in the form of %s."
839
  msgstr ""
840
 
841
- #: ../includes/ot-functions-admin.php:4216
842
  msgid ""
843
  "<strong>Operator</strong>: Choose the logical operator to compute the result "
844
  "of the conditions."
845
  msgstr ""
846
 
847
- #: ../includes/ot-functions-admin.php:4219
848
  #: ../includes/ot-functions-docs-page.php:111
849
  #: ../includes/ot-functions-docs-page.php:378
850
  msgid "and"
851
  msgstr ""
852
 
853
- #: ../includes/ot-functions-admin.php:4220
854
  msgid "or"
855
  msgstr ""
856
 
857
- #: ../includes/ot-functions-admin.php:4266
858
  #: ../includes/ot-functions-docs-page.php:29
859
  msgid "Label"
860
  msgstr ""
861
 
862
- #: ../includes/ot-functions-admin.php:4276
863
  msgid "Value"
864
  msgstr ""
865
 
866
- #: ../includes/ot-functions-admin.php:4286
867
  msgid "Image Source (Radio Image only)"
868
  msgstr ""
869
 
870
- #: ../includes/ot-functions-admin.php:4332
871
  msgid ""
872
  "<strong>Title</strong>: Displayed as a contextual help menu item on the "
873
  "Theme Options page."
874
  msgstr ""
875
 
876
- #: ../includes/ot-functions-admin.php:4348
877
  msgid ""
878
  "<strong>Content</strong>: Enter the HTML content about this contextual help "
879
  "item displayed on the Theme Option page for end users to read."
880
  msgstr ""
881
 
882
- #: ../includes/ot-functions-admin.php:4379
883
  msgid "Layout"
884
  msgstr ""
885
 
886
- #: ../includes/ot-functions-admin.php:4381
887
  #: ../includes/ot-functions-admin.php:4382
 
888
  msgid "Activate"
889
  msgstr ""
890
 
891
- #: ../includes/ot-functions-admin.php:4418 ../includes/ot-meta-box-api.php:231
892
  #: ../includes/ot-settings-api.php:610
893
  msgid "Title"
894
  msgstr ""
895
 
896
- #: ../includes/ot-functions-admin.php:4758
897
  msgid "New Layout"
898
  msgstr ""
899
 
900
- #: ../includes/ot-functions-admin.php:5513
901
  msgid "Link URL"
902
  msgstr ""
903
 
904
- #: ../includes/ot-functions-admin.php:5520
905
  msgid "Link Title"
906
  msgstr ""
907
 
908
- #: ../includes/ot-functions-admin.php:5550
909
  msgid "Quote"
910
  msgstr ""
911
 
912
- #: ../includes/ot-functions-admin.php:5559
913
  msgid "Source Name (ex. author, singer, actor)"
914
  msgstr ""
915
 
916
- #: ../includes/ot-functions-admin.php:5566
917
  msgid "Source URL"
918
  msgstr ""
919
 
920
- #: ../includes/ot-functions-admin.php:5573
921
  msgid "Source Title (ex. book, song, movie)"
922
  msgstr ""
923
 
924
- #: ../includes/ot-functions-admin.php:5580
925
  msgid "Source Date"
926
  msgstr ""
927
 
928
- #: ../includes/ot-functions-admin.php:5610
929
  msgid "Video"
930
  msgstr ""
931
 
932
- #: ../includes/ot-functions-admin.php:5619
933
  #, php-format
934
  msgid ""
935
  "Embed video from services like Youtube, Vimeo, or Hulu. You can find a list "
@@ -937,16 +937,16 @@ msgid ""
937
  "built-in %2$s shortcode."
938
  msgstr ""
939
 
940
- #: ../includes/ot-functions-admin.php:5619
941
- #: ../includes/ot-functions-admin.php:5658
942
  msgid "Wordpress Codex"
943
  msgstr ""
944
 
945
- #: ../includes/ot-functions-admin.php:5649
946
  msgid "Audio"
947
  msgstr ""
948
 
949
- #: ../includes/ot-functions-admin.php:5658
950
  #, php-format
951
  msgid ""
952
  "Embed audio from services like SoundCloud and Rdio. You can find a list of "
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: OptionTree\n"
4
+ "POT-Creation-Date: 2015-05-01 00:04-0800\n"
5
+ "PO-Revision-Date: 2015-05-01 00:04-0800\n"
6
  "Last-Translator: Derek Herman <derek@valendesigns.com>\n"
7
  "Language-Team: Valen Designs\n"
8
  "Language: en\n"
117
 
118
  #: ../includes/ot-functions-admin.php:50 ../includes/ot-functions-admin.php:51
119
  #: ../includes/ot-functions-admin.php:169
120
+ #: ../includes/ot-functions-admin.php:193 ../includes/ot-functions.php:388
121
  msgid "Theme Options"
122
  msgstr ""
123
 
272
 
273
  #: ../includes/ot-functions-admin.php:846
274
  #: ../includes/ot-functions-docs-page.php:398
275
+ #: ../includes/ot-functions-settings-page.php:170 ../ot-loader.php:787
276
  msgid "Send to OptionTree"
277
  msgstr ""
278
 
478
  msgstr ""
479
 
480
  #: ../includes/ot-functions-admin.php:2430
481
+ #: ../includes/ot-functions-admin.php:5465
482
  #: ../includes/ot-functions-docs-page.php:168
483
  msgid "Gallery"
484
  msgstr ""
659
 
660
  #: ../includes/ot-functions-admin.php:3261
661
  #: ../includes/ot-functions-admin.php:3317
662
+ #: ../includes/ot-functions-admin.php:5505
663
  msgid "Link"
664
  msgstr ""
665
 
690
  "the %s part to the front of the link."
691
  msgstr ""
692
 
693
+ #: ../includes/ot-functions-admin.php:3755
694
  #, php-format
695
  msgid "Unable to write to file %s."
696
  msgstr ""
697
 
698
+ #: ../includes/ot-functions-admin.php:4025
699
  msgid "edit"
700
  msgstr ""
701
 
702
+ #: ../includes/ot-functions-admin.php:4026
 
703
  #: ../includes/ot-functions-admin.php:4094
704
+ #: ../includes/ot-functions-admin.php:4095
705
  #: ../includes/ot-functions-admin.php:4257
706
+ #: ../includes/ot-functions-admin.php:4258
707
  #: ../includes/ot-functions-admin.php:4323
708
+ #: ../includes/ot-functions-admin.php:4324
709
  #: ../includes/ot-functions-admin.php:4451
710
+ #: ../includes/ot-functions-admin.php:4452
711
  #: ../includes/ot-functions-admin.php:4604
712
+ #: ../includes/ot-functions-admin.php:4605
713
  msgid "Edit"
714
  msgstr ""
715
 
 
716
  #: ../includes/ot-functions-admin.php:4028
717
+ #: ../includes/ot-functions-admin.php:4029
718
  #: ../includes/ot-functions-admin.php:4097
719
+ #: ../includes/ot-functions-admin.php:4098
720
  #: ../includes/ot-functions-admin.php:4260
721
+ #: ../includes/ot-functions-admin.php:4261
722
  #: ../includes/ot-functions-admin.php:4326
723
+ #: ../includes/ot-functions-admin.php:4327
724
  #: ../includes/ot-functions-admin.php:4385
725
+ #: ../includes/ot-functions-admin.php:4386
726
  #: ../includes/ot-functions-admin.php:4454
727
+ #: ../includes/ot-functions-admin.php:4455
728
  #: ../includes/ot-functions-admin.php:4607
729
+ #: ../includes/ot-functions-admin.php:4608
730
  msgid "Delete"
731
  msgstr ""
732
 
733
+ #: ../includes/ot-functions-admin.php:4035
734
  msgid ""
735
  "<strong>Section Title</strong>: Displayed as a menu item on the Theme "
736
  "Options page."
737
  msgstr ""
738
 
739
+ #: ../includes/ot-functions-admin.php:4043
740
  msgid ""
741
  "<strong>Section ID</strong>: A unique lower case alphanumeric string, "
742
  "underscores allowed."
743
  msgstr ""
744
 
745
+ #: ../includes/ot-functions-admin.php:4104
746
  msgid ""
747
  "<strong>Label</strong>: Displayed as the label of a form element on the "
748
  "Theme Options page."
749
  msgstr ""
750
 
751
+ #: ../includes/ot-functions-admin.php:4112
752
+ #: ../includes/ot-functions-admin.php:4341
753
  msgid ""
754
  "<strong>ID</strong>: A unique lower case alphanumeric string, underscores "
755
  "allowed."
756
  msgstr ""
757
 
758
+ #: ../includes/ot-functions-admin.php:4120
759
  msgid ""
760
  "<strong>Type</strong>: Choose one of the available option types from the "
761
  "dropdown."
762
  msgstr ""
763
 
764
+ #: ../includes/ot-functions-admin.php:4131
765
  msgid ""
766
  "<strong>Description</strong>: Enter a detailed description for the users to "
767
  "read on the Theme Options page, HTML is allowed. This is also where you "
768
  "enter content for both the Textblock & Textblock Titled option types."
769
  msgstr ""
770
 
771
+ #: ../includes/ot-functions-admin.php:4139
772
  msgid ""
773
  "<strong>Choices</strong>: This will only affect the following option types: "
774
  "Checkbox, Radio, Select & Select Image."
775
  msgstr ""
776
 
777
+ #: ../includes/ot-functions-admin.php:4144
778
  msgid "Add Choice"
779
  msgstr ""
780
 
781
+ #: ../includes/ot-functions-admin.php:4150
782
  msgid ""
783
  "<strong>Settings</strong>: This will only affect the List Item option type."
784
  msgstr ""
785
 
786
+ #: ../includes/ot-functions-admin.php:4155
787
  #: ../includes/ot-functions-settings-page.php:93
788
  msgid "Add Setting"
789
  msgstr ""
790
 
791
+ #: ../includes/ot-functions-admin.php:4161
792
  msgid ""
793
  "<strong>Standard</strong>: Setting the standard value for your option only "
794
  "works for some option types. Read the <code>OptionTree->Documentation</code> "
795
  "for more information on which ones."
796
  msgstr ""
797
 
798
+ #: ../includes/ot-functions-admin.php:4169
799
  msgid ""
800
  "<strong>Rows</strong>: Enter a numeric value for the number of rows in your "
801
  "textarea. This will only affect the following option types: CSS, Textarea, & "
802
  "Textarea Simple."
803
  msgstr ""
804
 
805
+ #: ../includes/ot-functions-admin.php:4177
806
  msgid ""
807
  "<strong>Post Type</strong>: Add a comma separated list of post type like "
808
  "'post,page'. This will only affect the following option types: Custom Post "
809
  "Type Checkbox, & Custom Post Type Select."
810
  msgstr ""
811
 
812
+ #: ../includes/ot-functions-admin.php:4185
813
  msgid ""
814
  "<strong>Taxonomy</strong>: Add a comma separated list of any registered "
815
  "taxonomy like 'category,post_tag'. This will only affect the following "
816
  "option types: Taxonomy Checkbox, & Taxonomy Select."
817
  msgstr ""
818
 
819
+ #: ../includes/ot-functions-admin.php:4193
820
  msgid ""
821
  "<strong>Min, Max, & Step</strong>: Add a comma separated list of options in "
822
  "the following format <code>0,100,1</code> (slide from <code>0-100</code> in "
825
  "type."
826
  msgstr ""
827
 
828
+ #: ../includes/ot-functions-admin.php:4201
829
  msgid "<strong>CSS Class</strong>: Add and optional class to this option type."
830
  msgstr ""
831
 
832
+ #: ../includes/ot-functions-admin.php:4209
833
  #, php-format
834
  msgid ""
835
  "<strong>Condition</strong>: Add a comma separated list (no spaces) of "
838
  "placeholder for your condition, which can be in the form of %s."
839
  msgstr ""
840
 
841
+ #: ../includes/ot-functions-admin.php:4217
842
  msgid ""
843
  "<strong>Operator</strong>: Choose the logical operator to compute the result "
844
  "of the conditions."
845
  msgstr ""
846
 
847
+ #: ../includes/ot-functions-admin.php:4220
848
  #: ../includes/ot-functions-docs-page.php:111
849
  #: ../includes/ot-functions-docs-page.php:378
850
  msgid "and"
851
  msgstr ""
852
 
853
+ #: ../includes/ot-functions-admin.php:4221
854
  msgid "or"
855
  msgstr ""
856
 
857
+ #: ../includes/ot-functions-admin.php:4267
858
  #: ../includes/ot-functions-docs-page.php:29
859
  msgid "Label"
860
  msgstr ""
861
 
862
+ #: ../includes/ot-functions-admin.php:4277
863
  msgid "Value"
864
  msgstr ""
865
 
866
+ #: ../includes/ot-functions-admin.php:4287
867
  msgid "Image Source (Radio Image only)"
868
  msgstr ""
869
 
870
+ #: ../includes/ot-functions-admin.php:4333
871
  msgid ""
872
  "<strong>Title</strong>: Displayed as a contextual help menu item on the "
873
  "Theme Options page."
874
  msgstr ""
875
 
876
+ #: ../includes/ot-functions-admin.php:4349
877
  msgid ""
878
  "<strong>Content</strong>: Enter the HTML content about this contextual help "
879
  "item displayed on the Theme Option page for end users to read."
880
  msgstr ""
881
 
882
+ #: ../includes/ot-functions-admin.php:4380
883
  msgid "Layout"
884
  msgstr ""
885
 
 
886
  #: ../includes/ot-functions-admin.php:4382
887
+ #: ../includes/ot-functions-admin.php:4383
888
  msgid "Activate"
889
  msgstr ""
890
 
891
+ #: ../includes/ot-functions-admin.php:4419 ../includes/ot-meta-box-api.php:231
892
  #: ../includes/ot-settings-api.php:610
893
  msgid "Title"
894
  msgstr ""
895
 
896
+ #: ../includes/ot-functions-admin.php:4759
897
  msgid "New Layout"
898
  msgstr ""
899
 
900
+ #: ../includes/ot-functions-admin.php:5514
901
  msgid "Link URL"
902
  msgstr ""
903
 
904
+ #: ../includes/ot-functions-admin.php:5521
905
  msgid "Link Title"
906
  msgstr ""
907
 
908
+ #: ../includes/ot-functions-admin.php:5551
909
  msgid "Quote"
910
  msgstr ""
911
 
912
+ #: ../includes/ot-functions-admin.php:5560
913
  msgid "Source Name (ex. author, singer, actor)"
914
  msgstr ""
915
 
916
+ #: ../includes/ot-functions-admin.php:5567
917
  msgid "Source URL"
918
  msgstr ""
919
 
920
+ #: ../includes/ot-functions-admin.php:5574
921
  msgid "Source Title (ex. book, song, movie)"
922
  msgstr ""
923
 
924
+ #: ../includes/ot-functions-admin.php:5581
925
  msgid "Source Date"
926
  msgstr ""
927
 
928
+ #: ../includes/ot-functions-admin.php:5611
929
  msgid "Video"
930
  msgstr ""
931
 
932
+ #: ../includes/ot-functions-admin.php:5620
933
  #, php-format
934
  msgid ""
935
  "Embed video from services like Youtube, Vimeo, or Hulu. You can find a list "
937
  "built-in %2$s shortcode."
938
  msgstr ""
939
 
940
+ #: ../includes/ot-functions-admin.php:5620
941
+ #: ../includes/ot-functions-admin.php:5659
942
  msgid "Wordpress Codex"
943
  msgstr ""
944
 
945
+ #: ../includes/ot-functions-admin.php:5650
946
  msgid "Audio"
947
  msgstr ""
948
 
949
+ #: ../includes/ot-functions-admin.php:5659
950
  #, php-format
951
  msgid ""
952
  "Embed audio from services like SoundCloud and Rdio. You can find a list of "
ot-loader.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: OptionTree
4
  * Plugin URI: https://github.com/valendesigns/option-tree/
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.5.4
7
  * Author: Derek Herman
8
  * Author URI: http://valendesigns.com
9
  * License: GPLv3
@@ -178,7 +178,7 @@ if ( ! class_exists( 'OT_Loader' ) ) {
178
  /**
179
  * Current Version number.
180
  */
181
- define( 'OT_VERSION', '2.5.4' );
182
 
183
  /**
184
  * For developers: Theme mode.
@@ -689,7 +689,12 @@ if ( ! class_exists( 'OT_Loader' ) ) {
689
  * @since 2.2.0
690
  */
691
  public function shortcode( $settings, $post ) {
692
-
 
 
 
 
 
693
  // Set the OptionTree post ID
694
  if ( ! is_object( $post ) ) {
695
  $post_id = isset( $_GET['post'] ) ? $_GET['post'] : ( isset( $_GET['post_ID'] ) ? $_GET['post_ID'] : 0 );
3
  * Plugin Name: OptionTree
4
  * Plugin URI: https://github.com/valendesigns/option-tree/
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.5.5
7
  * Author: Derek Herman
8
  * Author URI: http://valendesigns.com
9
  * License: GPLv3
178
  /**
179
  * Current Version number.
180
  */
181
+ define( 'OT_VERSION', '2.5.5' );
182
 
183
  /**
184
  * For developers: Theme mode.
689
  * @since 2.2.0
690
  */
691
  public function shortcode( $settings, $post ) {
692
+ global $pagenow;
693
+
694
+ if ( in_array( $pagenow, array( 'upload.php', 'customize.php' ) ) ) {
695
+ return $settings;
696
+ }
697
+
698
  // Set the OptionTree post ID
699
  if ( ! is_object( $post ) ) {
700
  $post_id = isset( $_GET['post'] ) ? $_GET['post'] : ( isset( $_GET['post_ID'] ) ? $_GET['post_ID'] : 0 );
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://bit.ly/NuXI3T
4
  Tags: options, theme options, meta boxes
5
  Requires at least: 3.8
6
  Tested up to: 4.2
7
- Stable tag: 2.5.4
8
  License: GPLv3
9
 
10
  Theme Options UI Builder for WordPress. A simple way to create & save Theme Options and Meta Boxes for free or premium themes.
@@ -126,6 +126,12 @@ The most likely scenario is your theme already has OptionTree installed in Theme
126
 
127
  == Changelog ==
128
 
 
 
 
 
 
 
129
  = 2.5.4 =
130
  * Hotfix - Support for WordPress 4.2 term splitting.
131
  * Hotfix - Removed any potential XSS security issues with `add_query_arg` by escaping it.
4
  Tags: options, theme options, meta boxes
5
  Requires at least: 3.8
6
  Tested up to: 4.2
7
+ Stable tag: 2.5.5
8
  License: GPLv3
9
 
10
  Theme Options UI Builder for WordPress. A simple way to create & save Theme Options and Meta Boxes for free or premium themes.
126
 
127
  == Changelog ==
128
 
129
+ = 2.5.5 =
130
+ * Hotfix - Allow a `0` value to be saved with certain option types. Contributors via github @BassemN.
131
+ * Hotfix - Stop media from being attached to the OptionTree post type when uploaded from the media manager or customizer. Contributors via github @earnjam, and @valendesigns.
132
+ * Hotfix - Added filter `ot_load_dynamic_css` to explicitly turn the feature off if desired.
133
+ * Hotfix - Stopped `dynamic.css` created with other themes from being loaded elsewhere.
134
+
135
  = 2.5.4 =
136
  * Hotfix - Support for WordPress 4.2 term splitting.
137
  * Hotfix - Removed any potential XSS security issues with `add_query_arg` by escaping it.