Version Description
- 11 August 2017 =
- Contact: Added user configurable field for 'From:' address.
- TinyMCE field: Use editor stylesheets for new TinyMCE editor.
- TinyMCE field: Use UTF-8 encoding for text output.
- Sliders: Check whether
$frames
is empty before using. - Google Maps: Prevent automatic center for routes.
Download this release
Release Info
Developer | gpriday |
Plugin | SiteOrigin Widgets Bundle |
Version | 1.9.7 |
Comparing to | |
See all releases |
Code changes from version 1.9.6 to 1.9.7
- banners/default.png +0 -0
- base/inc/fields/tinymce.class.php +25 -3
- lang/so-widgets-bundle.pot +154 -138
- readme.txt +10 -3
- so-widgets-bundle.php +2 -2
- widgets/contact/contact.php +14 -1
- widgets/google-map/google-map.php +5 -0
- widgets/google-map/js/js-map.js +1 -0
- widgets/google-map/js/js-map.min.js +1 -1
- widgets/slider/slider.php +8 -6
banners/default.png
DELETED
Binary file
|
base/inc/fields/tinymce.class.php
CHANGED
@@ -331,12 +331,33 @@ class SiteOrigin_Widget_Field_TinyMCE extends SiteOrigin_Widget_Field_Text_Input
|
|
331 |
'plugins' => array_unique( apply_filters( 'tiny_mce_plugins', $this->mce_plugins ) ),
|
332 |
);
|
333 |
|
334 |
-
foreach ( $tmce_settings as $name => $
|
335 |
-
$tmce_settings[ $name ] = is_array( $
|
336 |
}
|
337 |
|
338 |
$tmce_settings['external_plugins'] = array_unique( apply_filters( 'mce_external_plugins', $this->mce_external_plugins ) );
|
339 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
340 |
$qt_settings = apply_filters(
|
341 |
'quicktags_settings',
|
342 |
array( 'buttons' => $this->quicktags_buttons ),
|
@@ -372,6 +393,7 @@ class SiteOrigin_Widget_Field_TinyMCE extends SiteOrigin_Widget_Field_Text_Input
|
|
372 |
$value = preg_replace( '%</textarea%i', '</textarea', $value );
|
373 |
}
|
374 |
|
|
|
375 |
$media_buttons = $this->render_media_buttons( $this->element_id );
|
376 |
|
377 |
?><div class="siteorigin-widget-tinymce-container"
|
@@ -387,7 +409,7 @@ class SiteOrigin_Widget_Field_TinyMCE extends SiteOrigin_Widget_Field_Text_Input
|
|
387 |
<?php $this->render_data_attributes( $this->get_input_data_attributes() ) ?>
|
388 |
<?php $this->render_CSS_classes( $this->get_input_classes() ) ?>
|
389 |
<?php if ( ! empty( $this->placeholder ) ) echo 'placeholder="' . esc_attr( $this->placeholder ) . '"' ?>
|
390 |
-
<?php if( ! empty( $this->readonly ) ) echo 'readonly' ?>><?php echo htmlentities( $value ) ?></textarea>
|
391 |
</div>
|
392 |
<input type="hidden"
|
393 |
name="<?php echo esc_attr( $this->for_widget->so_get_field_name( $this->base_name . '_selected_editor', $this->parent_container) ) ?>"
|
331 |
'plugins' => array_unique( apply_filters( 'tiny_mce_plugins', $this->mce_plugins ) ),
|
332 |
);
|
333 |
|
334 |
+
foreach ( $tmce_settings as $name => $setting ) {
|
335 |
+
$tmce_settings[ $name ] = is_array( $setting ) ? implode( ',', $setting ) : '';
|
336 |
}
|
337 |
|
338 |
$tmce_settings['external_plugins'] = array_unique( apply_filters( 'mce_external_plugins', $this->mce_external_plugins ) );
|
339 |
|
340 |
+
$suffix = SCRIPT_DEBUG ? '' : '.min';
|
341 |
+
$version = 'ver=' . get_bloginfo( 'version' );
|
342 |
+
// Default stylesheets
|
343 |
+
$mce_css = includes_url( "css/dashicons$suffix.css?$version" ) . ',' .
|
344 |
+
includes_url( "js/tinymce/skins/wordpress/wp-content.css?$version" );
|
345 |
+
|
346 |
+
$editor_styles = get_editor_stylesheets();
|
347 |
+
|
348 |
+
if ( ! empty( $editor_styles ) ) {
|
349 |
+
// Force urlencoding of commas.
|
350 |
+
foreach ( $editor_styles as $key => $url ) {
|
351 |
+
if ( strpos( $url, ',' ) !== false ) {
|
352 |
+
$editor_styles[ $key ] = str_replace( ',', '%2C', $url );
|
353 |
+
}
|
354 |
+
}
|
355 |
+
|
356 |
+
$mce_css .= ',' . implode( ',', $editor_styles );
|
357 |
+
}
|
358 |
+
$mce_css = trim( apply_filters( 'mce_css', $mce_css ), ' ,' );
|
359 |
+
$tmce_settings['content_css'] = $mce_css;
|
360 |
+
|
361 |
$qt_settings = apply_filters(
|
362 |
'quicktags_settings',
|
363 |
array( 'buttons' => $this->quicktags_buttons ),
|
393 |
$value = preg_replace( '%</textarea%i', '</textarea', $value );
|
394 |
}
|
395 |
|
396 |
+
|
397 |
$media_buttons = $this->render_media_buttons( $this->element_id );
|
398 |
|
399 |
?><div class="siteorigin-widget-tinymce-container"
|
409 |
<?php $this->render_data_attributes( $this->get_input_data_attributes() ) ?>
|
410 |
<?php $this->render_CSS_classes( $this->get_input_classes() ) ?>
|
411 |
<?php if ( ! empty( $this->placeholder ) ) echo 'placeholder="' . esc_attr( $this->placeholder ) . '"' ?>
|
412 |
+
<?php if( ! empty( $this->readonly ) ) echo 'readonly' ?>><?php echo htmlentities( $value, ENT_QUOTES, 'UTF-8' ) ?></textarea>
|
413 |
</div>
|
414 |
<input type="hidden"
|
415 |
name="<?php echo esc_attr( $this->for_widget->so_get_field_name( $this->base_name . '_selected_editor', $this->parent_container) ) ?>"
|
lang/so-widgets-bundle.pot
CHANGED
@@ -109,7 +109,7 @@ msgstr ""
|
|
109 |
msgid "SiteOrigin Page Builder"
|
110 |
msgstr ""
|
111 |
|
112 |
-
#: tmp/base/inc/fields/date-range.class.php:31, tmp/base/inc/fields/date-range.class.php:45, tmp/widgets/contact/contact.php:
|
113 |
msgid "From"
|
114 |
msgstr ""
|
115 |
|
@@ -633,7 +633,7 @@ msgstr ""
|
|
633 |
msgid "Design and layout"
|
634 |
msgstr ""
|
635 |
|
636 |
-
#: tmp/widgets/button/button.php:89, tmp/widgets/contact/contact.php:
|
637 |
msgid "Width"
|
638 |
msgstr ""
|
639 |
|
@@ -641,23 +641,23 @@ msgstr ""
|
|
641 |
msgid "Leave blank to let the button resize according to content."
|
642 |
msgstr ""
|
643 |
|
644 |
-
#: tmp/widgets/button/button.php:95, tmp/widgets/contact/contact.php:
|
645 |
msgid "Align"
|
646 |
msgstr ""
|
647 |
|
648 |
-
#: tmp/widgets/button/button.php:98, tmp/widgets/contact/contact.php:
|
649 |
msgid "Left"
|
650 |
msgstr ""
|
651 |
|
652 |
-
#: tmp/widgets/button/button.php:99, tmp/widgets/contact/contact.php:
|
653 |
msgid "Right"
|
654 |
msgstr ""
|
655 |
|
656 |
-
#: tmp/widgets/button/button.php:100, tmp/widgets/contact/contact.php:
|
657 |
msgid "Center"
|
658 |
msgstr ""
|
659 |
|
660 |
-
#: tmp/widgets/button/button.php:101, tmp/widgets/contact/contact.php:
|
661 |
msgid "Justify"
|
662 |
msgstr ""
|
663 |
|
@@ -681,7 +681,7 @@ msgstr ""
|
|
681 |
msgid "Button color"
|
682 |
msgstr ""
|
683 |
|
684 |
-
#: tmp/widgets/button/button.php:124, tmp/widgets/contact/contact.php:
|
685 |
msgid "Text color"
|
686 |
msgstr ""
|
687 |
|
@@ -689,15 +689,15 @@ msgstr ""
|
|
689 |
msgid "Use hover effects"
|
690 |
msgstr ""
|
691 |
|
692 |
-
#: tmp/widgets/button/button.php:135, tmp/widgets/contact/contact.php:
|
693 |
msgid "Font"
|
694 |
msgstr ""
|
695 |
|
696 |
-
#: tmp/widgets/button/button.php:141, tmp/widgets/contact/contact.php:
|
697 |
msgid "Font size"
|
698 |
msgstr ""
|
699 |
|
700 |
-
#: tmp/widgets/button/button.php:143, tmp/widgets/contact/contact.php:
|
701 |
msgid "Normal"
|
702 |
msgstr ""
|
703 |
|
@@ -713,7 +713,7 @@ msgstr ""
|
|
713 |
msgid "Rounding"
|
714 |
msgstr ""
|
715 |
|
716 |
-
#: tmp/widgets/button/button.php:155, tmp/widgets/contact/contact.php:
|
717 |
msgid "None"
|
718 |
msgstr ""
|
719 |
|
@@ -729,7 +729,7 @@ msgstr ""
|
|
729 |
msgid "Completely rounded"
|
730 |
msgstr ""
|
731 |
|
732 |
-
#: tmp/widgets/button/button.php:164, tmp/widgets/contact/contact.php:
|
733 |
msgid "Padding"
|
734 |
msgstr ""
|
735 |
|
@@ -797,7 +797,7 @@ msgstr ""
|
|
797 |
msgid "Create a simple contact form for your users to get hold of you."
|
798 |
msgstr ""
|
799 |
|
800 |
-
#: tmp/widgets/contact/contact.php:48, tmp/widgets/contact/contact.php:
|
801 |
msgid "Contact Us"
|
802 |
msgstr ""
|
803 |
|
@@ -814,462 +814,470 @@ msgid "Where contact emails will be delivered to."
|
|
814 |
msgstr ""
|
815 |
|
816 |
#: tmp/widgets/contact/contact.php:69
|
817 |
-
msgid "
|
818 |
msgstr ""
|
819 |
|
820 |
#: tmp/widgets/contact/contact.php:70
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
821 |
msgid "Subject to use when there isn't one available."
|
822 |
msgstr ""
|
823 |
|
824 |
-
#: tmp/widgets/contact/contact.php:
|
825 |
msgid "Subject prefix"
|
826 |
msgstr ""
|
827 |
|
828 |
-
#: tmp/widgets/contact/contact.php:
|
829 |
msgid "Prefix added to all incoming email subjects."
|
830 |
msgstr ""
|
831 |
|
832 |
-
#: tmp/widgets/contact/contact.php:
|
833 |
msgid "Success message"
|
834 |
msgstr ""
|
835 |
|
836 |
-
#: tmp/widgets/contact/contact.php:
|
837 |
msgid "Message to display after message successfully sent."
|
838 |
msgstr ""
|
839 |
|
840 |
-
#: tmp/widgets/contact/contact.php:
|
841 |
msgid "Thanks for contacting us. We'll get back to you shortly."
|
842 |
msgstr ""
|
843 |
|
844 |
-
#: tmp/widgets/contact/contact.php:
|
845 |
msgid "Submit button text"
|
846 |
msgstr ""
|
847 |
|
848 |
-
#: tmp/widgets/contact/contact.php:
|
849 |
msgid "Indicate required fields with asterisk (*)"
|
850 |
msgstr ""
|
851 |
|
852 |
-
#: tmp/widgets/contact/contact.php:
|
853 |
msgid "Required field indicator message"
|
854 |
msgstr ""
|
855 |
|
856 |
-
#: tmp/widgets/contact/contact.php:
|
857 |
msgid "Fields marked with * are required"
|
858 |
msgstr ""
|
859 |
|
860 |
-
#: tmp/widgets/contact/contact.php:
|
861 |
msgid "Fields"
|
862 |
msgstr ""
|
863 |
|
864 |
-
#: tmp/widgets/contact/contact.php:
|
865 |
msgid "Field"
|
866 |
msgstr ""
|
867 |
|
868 |
-
#: tmp/widgets/contact/contact.php:
|
869 |
msgid "Field Type"
|
870 |
msgstr ""
|
871 |
|
872 |
-
#: tmp/widgets/contact/contact.php:
|
873 |
msgid "Name"
|
874 |
msgstr ""
|
875 |
|
876 |
-
#: tmp/widgets/contact/contact.php:
|
877 |
msgid "Email"
|
878 |
msgstr ""
|
879 |
|
880 |
-
#: tmp/widgets/contact/contact.php:
|
881 |
msgid "Subject"
|
882 |
msgstr ""
|
883 |
|
884 |
-
#: tmp/widgets/contact/contact.php:
|
885 |
msgid "Text"
|
886 |
msgstr ""
|
887 |
|
888 |
-
#: tmp/widgets/contact/contact.php:
|
889 |
msgid "Text Area"
|
890 |
msgstr ""
|
891 |
|
892 |
-
#: tmp/widgets/contact/contact.php:
|
893 |
msgid "Dropdown Select"
|
894 |
msgstr ""
|
895 |
|
896 |
-
#: tmp/widgets/contact/contact.php:
|
897 |
msgid "Checkboxes"
|
898 |
msgstr ""
|
899 |
|
900 |
-
#: tmp/widgets/contact/contact.php:
|
901 |
msgid "Radio"
|
902 |
msgstr ""
|
903 |
|
904 |
-
#: tmp/widgets/contact/contact.php:
|
905 |
msgid "Label"
|
906 |
msgstr ""
|
907 |
|
908 |
-
#: tmp/widgets/contact/contact.php:
|
909 |
msgid "Description"
|
910 |
msgstr ""
|
911 |
|
912 |
-
#: tmp/widgets/contact/contact.php:
|
913 |
msgid "This text will appear small beneath the input field."
|
914 |
msgstr ""
|
915 |
|
916 |
-
#: tmp/widgets/contact/contact.php:
|
917 |
msgid "Required Field"
|
918 |
msgstr ""
|
919 |
|
920 |
-
#: tmp/widgets/contact/contact.php:
|
921 |
msgid "Required field"
|
922 |
msgstr ""
|
923 |
|
924 |
-
#: tmp/widgets/contact/contact.php:
|
925 |
msgid "Is this field required?"
|
926 |
msgstr ""
|
927 |
|
928 |
-
#: tmp/widgets/contact/contact.php:
|
929 |
msgid "Missing message"
|
930 |
msgstr ""
|
931 |
|
932 |
-
#: tmp/widgets/contact/contact.php:
|
933 |
msgid "Error message to display if this field is missing."
|
934 |
msgstr ""
|
935 |
|
936 |
-
#: tmp/widgets/contact/contact.php:
|
937 |
msgid "Options"
|
938 |
msgstr ""
|
939 |
|
940 |
-
#: tmp/widgets/contact/contact.php:
|
941 |
msgid "Option"
|
942 |
msgstr ""
|
943 |
|
944 |
-
#: tmp/widgets/contact/contact.php:
|
945 |
msgid "Value"
|
946 |
msgstr ""
|
947 |
|
948 |
-
#: tmp/widgets/contact/contact.php:
|
949 |
msgid "Spam Protection"
|
950 |
msgstr ""
|
951 |
|
952 |
-
#: tmp/widgets/contact/contact.php:
|
953 |
msgid "reCAPTCHA"
|
954 |
msgstr ""
|
955 |
|
956 |
-
#: tmp/widgets/contact/contact.php:
|
957 |
msgid "Use reCAPTCHA"
|
958 |
msgstr ""
|
959 |
|
960 |
-
#: tmp/widgets/contact/contact.php:
|
961 |
msgid "reCAPTCHA Site Key"
|
962 |
msgstr ""
|
963 |
|
964 |
-
#: tmp/widgets/contact/contact.php:
|
965 |
msgid "reCAPTCHA Secret Key"
|
966 |
msgstr ""
|
967 |
|
968 |
-
#: tmp/widgets/contact/contact.php:
|
969 |
msgid "Theme"
|
970 |
msgstr ""
|
971 |
|
972 |
-
#: tmp/widgets/contact/contact.php:
|
973 |
msgid "Light"
|
974 |
msgstr ""
|
975 |
|
976 |
-
#: tmp/widgets/contact/contact.php:
|
977 |
msgid "Dark"
|
978 |
msgstr ""
|
979 |
|
980 |
-
#: tmp/widgets/contact/contact.php:
|
981 |
msgid "Challenge type"
|
982 |
msgstr ""
|
983 |
|
984 |
-
#: tmp/widgets/contact/contact.php:
|
985 |
msgid "Image"
|
986 |
msgstr ""
|
987 |
|
988 |
-
#: tmp/widgets/contact/contact.php:
|
989 |
msgid "Audio"
|
990 |
msgstr ""
|
991 |
|
992 |
-
#: tmp/widgets/contact/contact.php:
|
993 |
msgid "Size"
|
994 |
msgstr ""
|
995 |
|
996 |
-
#: tmp/widgets/contact/contact.php:
|
997 |
msgid "Compact"
|
998 |
msgstr ""
|
999 |
|
1000 |
-
#: tmp/widgets/contact/contact.php:
|
1001 |
msgid "Akismet"
|
1002 |
msgstr ""
|
1003 |
|
1004 |
-
#: tmp/widgets/contact/contact.php:
|
1005 |
msgid "Use Akismet filtering"
|
1006 |
msgstr ""
|
1007 |
|
1008 |
-
#: tmp/widgets/contact/contact.php:
|
1009 |
msgid "Spam action"
|
1010 |
msgstr ""
|
1011 |
|
1012 |
-
#: tmp/widgets/contact/contact.php:
|
1013 |
msgid "Show error message"
|
1014 |
msgstr ""
|
1015 |
|
1016 |
-
#: tmp/widgets/contact/contact.php:
|
1017 |
msgid "Tag as spam in subject"
|
1018 |
msgstr ""
|
1019 |
|
1020 |
-
#: tmp/widgets/contact/contact.php:
|
1021 |
msgid "How to handle submissions that are identified as spam."
|
1022 |
msgstr ""
|
1023 |
|
1024 |
-
#: tmp/widgets/contact/contact.php:
|
1025 |
msgid "Design"
|
1026 |
msgstr ""
|
1027 |
|
1028 |
-
#: tmp/widgets/contact/contact.php:
|
1029 |
msgid "Container"
|
1030 |
msgstr ""
|
1031 |
|
1032 |
-
#: tmp/widgets/contact/contact.php:
|
1033 |
msgid "Background color"
|
1034 |
msgstr ""
|
1035 |
|
1036 |
-
#: tmp/widgets/contact/contact.php:
|
1037 |
msgid "Border color"
|
1038 |
msgstr ""
|
1039 |
|
1040 |
-
#: tmp/widgets/contact/contact.php:
|
1041 |
msgid "Border width"
|
1042 |
msgstr ""
|
1043 |
|
1044 |
-
#: tmp/widgets/contact/contact.php:
|
1045 |
msgid "Border style"
|
1046 |
msgstr ""
|
1047 |
|
1048 |
-
#: tmp/widgets/contact/contact.php:
|
1049 |
msgid "Hidden"
|
1050 |
msgstr ""
|
1051 |
|
1052 |
-
#: tmp/widgets/contact/contact.php:
|
1053 |
msgid "Dotted"
|
1054 |
msgstr ""
|
1055 |
|
1056 |
-
#: tmp/widgets/contact/contact.php:
|
1057 |
msgid "Dashed"
|
1058 |
msgstr ""
|
1059 |
|
1060 |
-
#: tmp/widgets/contact/contact.php:
|
1061 |
msgid "Solid"
|
1062 |
msgstr ""
|
1063 |
|
1064 |
-
#: tmp/widgets/contact/contact.php:
|
1065 |
msgid "Double"
|
1066 |
msgstr ""
|
1067 |
|
1068 |
-
#: tmp/widgets/contact/contact.php:
|
1069 |
msgid "Groove"
|
1070 |
msgstr ""
|
1071 |
|
1072 |
-
#: tmp/widgets/contact/contact.php:
|
1073 |
msgid "Ridge"
|
1074 |
msgstr ""
|
1075 |
|
1076 |
-
#: tmp/widgets/contact/contact.php:
|
1077 |
msgid "Inset"
|
1078 |
msgstr ""
|
1079 |
|
1080 |
-
#: tmp/widgets/contact/contact.php:
|
1081 |
msgid "Outset"
|
1082 |
msgstr ""
|
1083 |
|
1084 |
-
#: tmp/widgets/contact/contact.php:
|
1085 |
msgid "Field labels"
|
1086 |
msgstr ""
|
1087 |
|
1088 |
-
#: tmp/widgets/contact/contact.php:
|
1089 |
msgid "Color"
|
1090 |
msgstr ""
|
1091 |
|
1092 |
-
#: tmp/widgets/contact/contact.php:
|
1093 |
msgid "Position"
|
1094 |
msgstr ""
|
1095 |
|
1096 |
-
#: tmp/widgets/contact/contact.php:
|
1097 |
msgid "Above"
|
1098 |
msgstr ""
|
1099 |
|
1100 |
-
#: tmp/widgets/contact/contact.php:
|
1101 |
msgid "Below"
|
1102 |
msgstr ""
|
1103 |
|
1104 |
-
#: tmp/widgets/contact/contact.php:
|
1105 |
msgid "Inside"
|
1106 |
msgstr ""
|
1107 |
|
1108 |
-
#: tmp/widgets/contact/contact.php:
|
1109 |
msgid "Font Size"
|
1110 |
msgstr ""
|
1111 |
|
1112 |
-
#: tmp/widgets/contact/contact.php:
|
1113 |
msgid "Text Color"
|
1114 |
msgstr ""
|
1115 |
|
1116 |
-
#: tmp/widgets/contact/contact.php:
|
1117 |
msgid "Margin"
|
1118 |
msgstr ""
|
1119 |
|
1120 |
-
#: tmp/widgets/contact/contact.php:
|
1121 |
msgid "Height"
|
1122 |
msgstr ""
|
1123 |
|
1124 |
-
#: tmp/widgets/contact/contact.php:
|
1125 |
msgid "Background"
|
1126 |
msgstr ""
|
1127 |
|
1128 |
-
#: tmp/widgets/contact/contact.php:
|
1129 |
msgid " Border style"
|
1130 |
msgstr ""
|
1131 |
|
1132 |
-
#: tmp/widgets/contact/contact.php:
|
1133 |
msgid "Border rounding"
|
1134 |
msgstr ""
|
1135 |
|
1136 |
-
#: tmp/widgets/contact/contact.php:
|
1137 |
msgid "Field descriptions"
|
1138 |
msgstr ""
|
1139 |
|
1140 |
-
#: tmp/widgets/contact/contact.php:
|
1141 |
msgid "Style"
|
1142 |
msgstr ""
|
1143 |
|
1144 |
-
#: tmp/widgets/contact/contact.php:
|
1145 |
msgid "Italic"
|
1146 |
msgstr ""
|
1147 |
|
1148 |
-
#: tmp/widgets/contact/contact.php:
|
1149 |
msgid "Error messages"
|
1150 |
msgstr ""
|
1151 |
|
1152 |
-
#: tmp/widgets/contact/contact.php:
|
1153 |
msgid "Error background color"
|
1154 |
msgstr ""
|
1155 |
|
1156 |
-
#: tmp/widgets/contact/contact.php:
|
1157 |
msgid "Error border color"
|
1158 |
msgstr ""
|
1159 |
|
1160 |
-
#: tmp/widgets/contact/contact.php:
|
1161 |
msgid "Error text color"
|
1162 |
msgstr ""
|
1163 |
|
1164 |
-
#: tmp/widgets/contact/contact.php:
|
1165 |
msgid "Error padding"
|
1166 |
msgstr ""
|
1167 |
|
1168 |
-
#: tmp/widgets/contact/contact.php:
|
1169 |
msgid "Error margin"
|
1170 |
msgstr ""
|
1171 |
|
1172 |
-
#: tmp/widgets/contact/contact.php:
|
1173 |
msgid "Submit button"
|
1174 |
msgstr ""
|
1175 |
|
1176 |
-
#: tmp/widgets/contact/contact.php:
|
1177 |
msgid "Style submit button"
|
1178 |
msgstr ""
|
1179 |
|
1180 |
-
#: tmp/widgets/contact/contact.php:
|
1181 |
msgid "Style the button or leave it with default theme styling."
|
1182 |
msgstr ""
|
1183 |
|
1184 |
-
#: tmp/widgets/contact/contact.php:
|
1185 |
msgid "Gradient intensity"
|
1186 |
msgstr ""
|
1187 |
|
1188 |
-
#: tmp/widgets/contact/contact.php:
|
1189 |
msgid "Font weight"
|
1190 |
msgstr ""
|
1191 |
|
1192 |
-
#: tmp/widgets/contact/contact.php:
|
1193 |
msgid "Semi-bold"
|
1194 |
msgstr ""
|
1195 |
|
1196 |
-
#: tmp/widgets/contact/contact.php:
|
1197 |
msgid "Bold"
|
1198 |
msgstr ""
|
1199 |
|
1200 |
-
#: tmp/widgets/contact/contact.php:
|
1201 |
msgid "Inset highlight"
|
1202 |
msgstr ""
|
1203 |
|
1204 |
-
#: tmp/widgets/contact/contact.php:
|
1205 |
msgid "The white highlight at the bottom of the button"
|
1206 |
msgstr ""
|
1207 |
|
1208 |
-
#: tmp/widgets/contact/contact.php:
|
1209 |
msgid "Input focus"
|
1210 |
msgstr ""
|
1211 |
|
1212 |
-
#: tmp/widgets/contact/contact.php:
|
1213 |
msgid "Get more form fields for the Contact Form Widget in %s"
|
1214 |
msgstr ""
|
1215 |
|
1216 |
-
#: tmp/widgets/contact/contact.php:
|
1217 |
msgid "SiteOrigin Premium"
|
1218 |
msgstr ""
|
1219 |
|
1220 |
-
#: tmp/widgets/contact/contact.php:
|
1221 |
msgid "Your Name"
|
1222 |
msgstr ""
|
1223 |
|
1224 |
-
#: tmp/widgets/contact/contact.php:
|
1225 |
msgid "Please enter your name"
|
1226 |
msgstr ""
|
1227 |
|
1228 |
-
#: tmp/widgets/contact/contact.php:
|
1229 |
msgid "Your Email"
|
1230 |
msgstr ""
|
1231 |
|
1232 |
-
#: tmp/widgets/contact/contact.php:
|
1233 |
msgid "Please enter a valid email address"
|
1234 |
msgstr ""
|
1235 |
|
1236 |
-
#: tmp/widgets/contact/contact.php:
|
1237 |
msgid "Please enter a subject"
|
1238 |
msgstr ""
|
1239 |
|
1240 |
-
#: tmp/widgets/contact/contact.php:
|
1241 |
msgid "Message"
|
1242 |
msgstr ""
|
1243 |
|
1244 |
-
#: tmp/widgets/contact/contact.php:
|
1245 |
msgid "Please write something"
|
1246 |
msgstr ""
|
1247 |
|
1248 |
-
#: tmp/widgets/contact/contact.php:
|
1249 |
msgid "Invalid email address."
|
1250 |
msgstr ""
|
1251 |
|
1252 |
-
#: tmp/widgets/contact/contact.php:
|
1253 |
msgid "Error sending email, please try again later."
|
1254 |
msgstr ""
|
1255 |
|
1256 |
-
#: tmp/widgets/contact/contact.php:
|
1257 |
msgid "A valid email is required"
|
1258 |
msgstr ""
|
1259 |
|
1260 |
-
#: tmp/widgets/contact/contact.php:
|
1261 |
msgid "The email address is invalid"
|
1262 |
msgstr ""
|
1263 |
|
1264 |
-
#: tmp/widgets/contact/contact.php:
|
1265 |
msgid "Missing subject"
|
1266 |
msgstr ""
|
1267 |
|
1268 |
-
#: tmp/widgets/contact/contact.php:
|
1269 |
msgid "Error validating your Captcha response."
|
1270 |
msgstr ""
|
1271 |
|
1272 |
-
#: tmp/widgets/contact/contact.php:
|
1273 |
msgid "Unfortunately our system identified your message as spam."
|
1274 |
msgstr ""
|
1275 |
|
@@ -1437,7 +1445,7 @@ msgstr ""
|
|
1437 |
msgid "The name of a place, town, city, or even a country. Can be an exact address too. Please ensure you have enabled the <strong>Geocoding API</strong> in the %sGoogle APIs Dashboard%s."
|
1438 |
msgstr ""
|
1439 |
|
1440 |
-
#: tmp/widgets/google-map/google-map.php:53, tmp/widgets/google-map/google-map.php:58, tmp/widgets/google-map/google-map.php:
|
1441 |
msgid "API key"
|
1442 |
msgstr ""
|
1443 |
|
@@ -1758,42 +1766,50 @@ msgid "Avoid tolls"
|
|
1758 |
msgstr ""
|
1759 |
|
1760 |
#: tmp/widgets/google-map/google-map.php:403
|
1761 |
-
msgid "
|
1762 |
msgstr ""
|
1763 |
|
1764 |
#: tmp/widgets/google-map/google-map.php:404
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1765 |
msgid "Waypoint"
|
1766 |
msgstr ""
|
1767 |
|
1768 |
-
#: tmp/widgets/google-map/google-map.php:
|
1769 |
msgid "Location"
|
1770 |
msgstr ""
|
1771 |
|
1772 |
-
#: tmp/widgets/google-map/google-map.php:
|
1773 |
msgid "Stopover"
|
1774 |
msgstr ""
|
1775 |
|
1776 |
-
#: tmp/widgets/google-map/google-map.php:
|
1777 |
msgid "Whether or not this is a stop on the route or just a route preference."
|
1778 |
msgstr ""
|
1779 |
|
1780 |
-
#: tmp/widgets/google-map/google-map.php:
|
1781 |
msgid "Optimize waypoints"
|
1782 |
msgstr ""
|
1783 |
|
1784 |
-
#: tmp/widgets/google-map/google-map.php:
|
1785 |
msgid "Allow the Google Maps service to reorder waypoints for the shortest travelling distance."
|
1786 |
msgstr ""
|
1787 |
|
1788 |
-
#: tmp/widgets/google-map/google-map.php:
|
1789 |
msgid "Enter your %sAPI key%s. Your map won't function correctly without one."
|
1790 |
msgstr ""
|
1791 |
|
1792 |
-
#: tmp/widgets/google-map/google-map.php:
|
1793 |
msgid "There were no results for the place you entered. Please try another."
|
1794 |
msgstr ""
|
1795 |
|
1796 |
-
#: tmp/widgets/google-map/google-map.php:
|
1797 |
msgid "Custom Map"
|
1798 |
msgstr ""
|
1799 |
|
109 |
msgid "SiteOrigin Page Builder"
|
110 |
msgstr ""
|
111 |
|
112 |
+
#: tmp/base/inc/fields/date-range.class.php:31, tmp/base/inc/fields/date-range.class.php:45, tmp/widgets/contact/contact.php:1146
|
113 |
msgid "From"
|
114 |
msgstr ""
|
115 |
|
633 |
msgid "Design and layout"
|
634 |
msgstr ""
|
635 |
|
636 |
+
#: tmp/widgets/button/button.php:89, tmp/widgets/contact/contact.php:357, tmp/widgets/contact/contact.php:615, tmp/widgets/google-map/google-map.php:95
|
637 |
msgid "Width"
|
638 |
msgstr ""
|
639 |
|
641 |
msgid "Leave blank to let the button resize according to content."
|
642 |
msgstr ""
|
643 |
|
644 |
+
#: tmp/widgets/button/button.php:95, tmp/widgets/contact/contact.php:362, tmp/widgets/social-media-buttons/social-media-buttons.php:137
|
645 |
msgid "Align"
|
646 |
msgstr ""
|
647 |
|
648 |
+
#: tmp/widgets/button/button.php:98, tmp/widgets/contact/contact.php:350, tmp/widgets/contact/contact.php:365, tmp/widgets/cta/cta.php:96, tmp/widgets/features/features.php:66, tmp/widgets/headline/headline.php:88, tmp/widgets/headline/headline.php:159, tmp/widgets/headline/headline.php:214, tmp/widgets/icon/icon.php:48, tmp/widgets/image/image.php:47, tmp/widgets/social-media-buttons/social-media-buttons.php:140, tmp/widgets/testimonial/testimonial.php:253
|
649 |
msgid "Left"
|
650 |
msgstr ""
|
651 |
|
652 |
+
#: tmp/widgets/button/button.php:99, tmp/widgets/contact/contact.php:351, tmp/widgets/contact/contact.php:366, tmp/widgets/cta/cta.php:97, tmp/widgets/features/features.php:64, tmp/widgets/headline/headline.php:89, tmp/widgets/headline/headline.php:160, tmp/widgets/headline/headline.php:215, tmp/widgets/icon/icon.php:49, tmp/widgets/image/image.php:48, tmp/widgets/social-media-buttons/social-media-buttons.php:141, tmp/widgets/testimonial/testimonial.php:254
|
653 |
msgid "Right"
|
654 |
msgstr ""
|
655 |
|
656 |
+
#: tmp/widgets/button/button.php:100, tmp/widgets/contact/contact.php:367, tmp/widgets/headline/headline.php:87, tmp/widgets/headline/headline.php:158, tmp/widgets/headline/headline.php:213, tmp/widgets/icon/icon.php:47, tmp/widgets/image/image.php:49, tmp/widgets/social-media-buttons/social-media-buttons.php:142
|
657 |
msgid "Center"
|
658 |
msgstr ""
|
659 |
|
660 |
+
#: tmp/widgets/button/button.php:101, tmp/widgets/contact/contact.php:368, tmp/widgets/headline/headline.php:90, tmp/widgets/headline/headline.php:161, tmp/widgets/social-media-buttons/social-media-buttons.php:143
|
661 |
msgid "Justify"
|
662 |
msgstr ""
|
663 |
|
681 |
msgid "Button color"
|
682 |
msgstr ""
|
683 |
|
684 |
+
#: tmp/widgets/button/button.php:124, tmp/widgets/contact/contact.php:553, tmp/widgets/hero/hero.php:244, tmp/widgets/layout-slider/layout-slider.php:181
|
685 |
msgid "Text color"
|
686 |
msgstr ""
|
687 |
|
689 |
msgid "Use hover effects"
|
690 |
msgstr ""
|
691 |
|
692 |
+
#: tmp/widgets/button/button.php:135, tmp/widgets/contact/contact.php:330, tmp/widgets/contact/contact.php:380, tmp/widgets/features/features.php:137, tmp/widgets/features/features.php:158, tmp/widgets/features/features.php:179, tmp/widgets/headline/headline.php:75, tmp/widgets/headline/headline.php:146
|
693 |
msgid "Font"
|
694 |
msgstr ""
|
695 |
|
696 |
+
#: tmp/widgets/button/button.php:141, tmp/widgets/contact/contact.php:335, tmp/widgets/contact/contact.php:558
|
697 |
msgid "Font size"
|
698 |
msgstr ""
|
699 |
|
700 |
+
#: tmp/widgets/button/button.php:143, tmp/widgets/contact/contact.php:243, tmp/widgets/contact/contact.php:464, tmp/widgets/contact/contact.php:566, tmp/widgets/social-media-buttons/social-media-buttons.php:107
|
701 |
msgid "Normal"
|
702 |
msgstr ""
|
703 |
|
713 |
msgid "Rounding"
|
714 |
msgstr ""
|
715 |
|
716 |
+
#: tmp/widgets/button/button.php:155, tmp/widgets/contact/contact.php:309, tmp/widgets/contact/contact.php:422, tmp/widgets/contact/contact.php:533, tmp/widgets/contact/contact.php:604, tmp/widgets/headline/headline.php:185, tmp/widgets/social-media-buttons/social-media-buttons.php:118
|
717 |
msgid "None"
|
718 |
msgstr ""
|
719 |
|
729 |
msgid "Completely rounded"
|
730 |
msgstr ""
|
731 |
|
732 |
+
#: tmp/widgets/button/button.php:164, tmp/widgets/contact/contact.php:291, tmp/widgets/contact/contact.php:397, tmp/widgets/contact/contact.php:573, tmp/widgets/social-media-buttons/social-media-buttons.php:126, tmp/widgets/testimonial/testimonial.php:233
|
733 |
msgid "Padding"
|
734 |
msgstr ""
|
735 |
|
797 |
msgid "Create a simple contact form for your users to get hold of you."
|
798 |
msgstr ""
|
799 |
|
800 |
+
#: tmp/widgets/contact/contact.php:48, tmp/widgets/contact/contact.php:92
|
801 |
msgid "Contact Us"
|
802 |
msgstr ""
|
803 |
|
814 |
msgstr ""
|
815 |
|
816 |
#: tmp/widgets/contact/contact.php:69
|
817 |
+
msgid "From email address"
|
818 |
msgstr ""
|
819 |
|
820 |
#: tmp/widgets/contact/contact.php:70
|
821 |
+
msgid "It will appear as if emails are sent from this address. Ideally this should be in the same domain as this server to avoid spam filters."
|
822 |
+
msgstr ""
|
823 |
+
|
824 |
+
#: tmp/widgets/contact/contact.php:75
|
825 |
+
msgid "Default subject"
|
826 |
+
msgstr ""
|
827 |
+
|
828 |
+
#: tmp/widgets/contact/contact.php:76
|
829 |
msgid "Subject to use when there isn't one available."
|
830 |
msgstr ""
|
831 |
|
832 |
+
#: tmp/widgets/contact/contact.php:80
|
833 |
msgid "Subject prefix"
|
834 |
msgstr ""
|
835 |
|
836 |
+
#: tmp/widgets/contact/contact.php:81
|
837 |
msgid "Prefix added to all incoming email subjects."
|
838 |
msgstr ""
|
839 |
|
840 |
+
#: tmp/widgets/contact/contact.php:85
|
841 |
msgid "Success message"
|
842 |
msgstr ""
|
843 |
|
844 |
+
#: tmp/widgets/contact/contact.php:86
|
845 |
msgid "Message to display after message successfully sent."
|
846 |
msgstr ""
|
847 |
|
848 |
+
#: tmp/widgets/contact/contact.php:87
|
849 |
msgid "Thanks for contacting us. We'll get back to you shortly."
|
850 |
msgstr ""
|
851 |
|
852 |
+
#: tmp/widgets/contact/contact.php:91
|
853 |
msgid "Submit button text"
|
854 |
msgstr ""
|
855 |
|
856 |
+
#: tmp/widgets/contact/contact.php:96
|
857 |
msgid "Indicate required fields with asterisk (*)"
|
858 |
msgstr ""
|
859 |
|
860 |
+
#: tmp/widgets/contact/contact.php:107
|
861 |
msgid "Required field indicator message"
|
862 |
msgstr ""
|
863 |
|
864 |
+
#: tmp/widgets/contact/contact.php:108
|
865 |
msgid "Fields marked with * are required"
|
866 |
msgstr ""
|
867 |
|
868 |
+
#: tmp/widgets/contact/contact.php:121, tmp/widgets/contact/contact.php:376
|
869 |
msgid "Fields"
|
870 |
msgstr ""
|
871 |
|
872 |
+
#: tmp/widgets/contact/contact.php:122
|
873 |
msgid "Field"
|
874 |
msgstr ""
|
875 |
|
876 |
+
#: tmp/widgets/contact/contact.php:130
|
877 |
msgid "Field Type"
|
878 |
msgstr ""
|
879 |
|
880 |
+
#: tmp/widgets/contact/contact.php:132, tmp/widgets/testimonial/testimonial.php:54
|
881 |
msgid "Name"
|
882 |
msgstr ""
|
883 |
|
884 |
+
#: tmp/widgets/contact/contact.php:133, tmp/widgets/social-media-buttons/data/networks.php:29
|
885 |
msgid "Email"
|
886 |
msgstr ""
|
887 |
|
888 |
+
#: tmp/widgets/contact/contact.php:134, tmp/widgets/contact/contact.php:679
|
889 |
msgid "Subject"
|
890 |
msgstr ""
|
891 |
|
892 |
+
#: tmp/widgets/contact/contact.php:135, tmp/widgets/features/features.php:110, tmp/widgets/features/features.php:153, tmp/widgets/headline/headline.php:40, tmp/widgets/headline/headline.php:111, tmp/widgets/price-table/price-table.php:110, tmp/widgets/taxonomy/taxonomy.php:50, tmp/widgets/testimonial/testimonial.php:81
|
893 |
msgid "Text"
|
894 |
msgstr ""
|
895 |
|
896 |
+
#: tmp/widgets/contact/contact.php:136
|
897 |
msgid "Text Area"
|
898 |
msgstr ""
|
899 |
|
900 |
+
#: tmp/widgets/contact/contact.php:137
|
901 |
msgid "Dropdown Select"
|
902 |
msgstr ""
|
903 |
|
904 |
+
#: tmp/widgets/contact/contact.php:138
|
905 |
msgid "Checkboxes"
|
906 |
msgstr ""
|
907 |
|
908 |
+
#: tmp/widgets/contact/contact.php:139
|
909 |
msgid "Radio"
|
910 |
msgstr ""
|
911 |
|
912 |
+
#: tmp/widgets/contact/contact.php:149, tmp/widgets/taxonomy/taxonomy.php:42
|
913 |
msgid "Label"
|
914 |
msgstr ""
|
915 |
|
916 |
+
#: tmp/widgets/contact/contact.php:154
|
917 |
msgid "Description"
|
918 |
msgstr ""
|
919 |
|
920 |
+
#: tmp/widgets/contact/contact.php:155
|
921 |
msgid "This text will appear small beneath the input field."
|
922 |
msgstr ""
|
923 |
|
924 |
+
#: tmp/widgets/contact/contact.php:160
|
925 |
msgid "Required Field"
|
926 |
msgstr ""
|
927 |
|
928 |
+
#: tmp/widgets/contact/contact.php:164, tmp/widgets/contact/contact.php:962
|
929 |
msgid "Required field"
|
930 |
msgstr ""
|
931 |
|
932 |
+
#: tmp/widgets/contact/contact.php:165
|
933 |
msgid "Is this field required?"
|
934 |
msgstr ""
|
935 |
|
936 |
+
#: tmp/widgets/contact/contact.php:169
|
937 |
msgid "Missing message"
|
938 |
msgstr ""
|
939 |
|
940 |
+
#: tmp/widgets/contact/contact.php:170
|
941 |
msgid "Error message to display if this field is missing."
|
942 |
msgstr ""
|
943 |
|
944 |
+
#: tmp/widgets/contact/contact.php:178
|
945 |
msgid "Options"
|
946 |
msgstr ""
|
947 |
|
948 |
+
#: tmp/widgets/contact/contact.php:179
|
949 |
msgid "Option"
|
950 |
msgstr ""
|
951 |
|
952 |
+
#: tmp/widgets/contact/contact.php:184
|
953 |
msgid "Value"
|
954 |
msgstr ""
|
955 |
|
956 |
+
#: tmp/widgets/contact/contact.php:199
|
957 |
msgid "Spam Protection"
|
958 |
msgstr ""
|
959 |
|
960 |
+
#: tmp/widgets/contact/contact.php:205
|
961 |
msgid "reCAPTCHA"
|
962 |
msgstr ""
|
963 |
|
964 |
+
#: tmp/widgets/contact/contact.php:209
|
965 |
msgid "Use reCAPTCHA"
|
966 |
msgstr ""
|
967 |
|
968 |
+
#: tmp/widgets/contact/contact.php:214
|
969 |
msgid "reCAPTCHA Site Key"
|
970 |
msgstr ""
|
971 |
|
972 |
+
#: tmp/widgets/contact/contact.php:218
|
973 |
msgid "reCAPTCHA Secret Key"
|
974 |
msgstr ""
|
975 |
|
976 |
+
#: tmp/widgets/contact/contact.php:222
|
977 |
msgid "Theme"
|
978 |
msgstr ""
|
979 |
|
980 |
+
#: tmp/widgets/contact/contact.php:225
|
981 |
msgid "Light"
|
982 |
msgstr ""
|
983 |
|
984 |
+
#: tmp/widgets/contact/contact.php:226
|
985 |
msgid "Dark"
|
986 |
msgstr ""
|
987 |
|
988 |
+
#: tmp/widgets/contact/contact.php:231
|
989 |
msgid "Challenge type"
|
990 |
msgstr ""
|
991 |
|
992 |
+
#: tmp/widgets/contact/contact.php:234, tmp/widgets/image-grid/image-grid.php:54, tmp/widgets/image-grid/image-grid.php:63, tmp/widgets/price-table/price-table.php:69, tmp/widgets/simple-masonry/simple-masonry.php:54, tmp/widgets/testimonial/testimonial.php:71, tmp/widgets/testimonial/testimonial.php:187
|
993 |
msgid "Image"
|
994 |
msgstr ""
|
995 |
|
996 |
+
#: tmp/widgets/contact/contact.php:235
|
997 |
msgid "Audio"
|
998 |
msgstr ""
|
999 |
|
1000 |
+
#: tmp/widgets/contact/contact.php:240, tmp/widgets/contact/contact.php:450, tmp/widgets/features/features.php:142, tmp/widgets/features/features.php:163, tmp/widgets/features/features.php:184, tmp/widgets/icon/icon.php:40
|
1001 |
msgid "Size"
|
1002 |
msgstr ""
|
1003 |
|
1004 |
+
#: tmp/widgets/contact/contact.php:244
|
1005 |
msgid "Compact"
|
1006 |
msgstr ""
|
1007 |
|
1008 |
+
#: tmp/widgets/contact/contact.php:252
|
1009 |
msgid "Akismet"
|
1010 |
msgstr ""
|
1011 |
|
1012 |
+
#: tmp/widgets/contact/contact.php:256
|
1013 |
msgid "Use Akismet filtering"
|
1014 |
msgstr ""
|
1015 |
|
1016 |
+
#: tmp/widgets/contact/contact.php:261
|
1017 |
msgid "Spam action"
|
1018 |
msgstr ""
|
1019 |
|
1020 |
+
#: tmp/widgets/contact/contact.php:263
|
1021 |
msgid "Show error message"
|
1022 |
msgstr ""
|
1023 |
|
1024 |
+
#: tmp/widgets/contact/contact.php:264
|
1025 |
msgid "Tag as spam in subject"
|
1026 |
msgstr ""
|
1027 |
|
1028 |
+
#: tmp/widgets/contact/contact.php:266
|
1029 |
msgid "How to handle submissions that are identified as spam."
|
1030 |
msgstr ""
|
1031 |
|
1032 |
+
#: tmp/widgets/contact/contact.php:276, tmp/widgets/cta/cta.php:73, tmp/widgets/testimonial/testimonial.php:182
|
1033 |
msgid "Design"
|
1034 |
msgstr ""
|
1035 |
|
1036 |
+
#: tmp/widgets/contact/contact.php:282
|
1037 |
msgid "Container"
|
1038 |
msgstr ""
|
1039 |
|
1040 |
+
#: tmp/widgets/contact/contact.php:286, tmp/widgets/contact/contact.php:515, tmp/widgets/cta/cta.php:77, tmp/widgets/hero/hero.php:113, tmp/widgets/layout-slider/layout-slider.php:81, tmp/widgets/social-media-buttons/social-media-buttons.php:74
|
1041 |
msgid "Background color"
|
1042 |
msgstr ""
|
1043 |
|
1044 |
+
#: tmp/widgets/contact/contact.php:296, tmp/widgets/contact/contact.php:409, tmp/widgets/contact/contact.php:525, tmp/widgets/cta/cta.php:81
|
1045 |
msgid "Border color"
|
1046 |
msgstr ""
|
1047 |
|
1048 |
+
#: tmp/widgets/contact/contact.php:301, tmp/widgets/contact/contact.php:414, tmp/widgets/contact/contact.php:541
|
1049 |
msgid "Border width"
|
1050 |
msgstr ""
|
1051 |
|
1052 |
+
#: tmp/widgets/contact/contact.php:306, tmp/widgets/contact/contact.php:530
|
1053 |
msgid "Border style"
|
1054 |
msgstr ""
|
1055 |
|
1056 |
+
#: tmp/widgets/contact/contact.php:310, tmp/widgets/contact/contact.php:423, tmp/widgets/contact/contact.php:605, tmp/widgets/image/image.php:63
|
1057 |
msgid "Hidden"
|
1058 |
msgstr ""
|
1059 |
|
1060 |
+
#: tmp/widgets/contact/contact.php:311, tmp/widgets/contact/contact.php:424, tmp/widgets/contact/contact.php:535, tmp/widgets/contact/contact.php:596, tmp/widgets/headline/headline.php:187
|
1061 |
msgid "Dotted"
|
1062 |
msgstr ""
|
1063 |
|
1064 |
+
#: tmp/widgets/contact/contact.php:312, tmp/widgets/contact/contact.php:425, tmp/widgets/contact/contact.php:536, tmp/widgets/contact/contact.php:597, tmp/widgets/headline/headline.php:188
|
1065 |
msgid "Dashed"
|
1066 |
msgstr ""
|
1067 |
|
1068 |
+
#: tmp/widgets/contact/contact.php:313, tmp/widgets/contact/contact.php:426, tmp/widgets/contact/contact.php:534, tmp/widgets/contact/contact.php:598, tmp/widgets/headline/headline.php:186
|
1069 |
msgid "Solid"
|
1070 |
msgstr ""
|
1071 |
|
1072 |
+
#: tmp/widgets/contact/contact.php:314, tmp/widgets/contact/contact.php:427, tmp/widgets/contact/contact.php:599, tmp/widgets/headline/headline.php:189
|
1073 |
msgid "Double"
|
1074 |
msgstr ""
|
1075 |
|
1076 |
+
#: tmp/widgets/contact/contact.php:315, tmp/widgets/contact/contact.php:428, tmp/widgets/contact/contact.php:600, tmp/widgets/headline/headline.php:190
|
1077 |
msgid "Groove"
|
1078 |
msgstr ""
|
1079 |
|
1080 |
+
#: tmp/widgets/contact/contact.php:316, tmp/widgets/contact/contact.php:429, tmp/widgets/contact/contact.php:601, tmp/widgets/headline/headline.php:191
|
1081 |
msgid "Ridge"
|
1082 |
msgstr ""
|
1083 |
|
1084 |
+
#: tmp/widgets/contact/contact.php:317, tmp/widgets/contact/contact.php:430, tmp/widgets/contact/contact.php:602, tmp/widgets/headline/headline.php:192
|
1085 |
msgid "Inset"
|
1086 |
msgstr ""
|
1087 |
|
1088 |
+
#: tmp/widgets/contact/contact.php:318, tmp/widgets/contact/contact.php:431, tmp/widgets/contact/contact.php:603, tmp/widgets/headline/headline.php:193
|
1089 |
msgid "Outset"
|
1090 |
msgstr ""
|
1091 |
|
1092 |
+
#: tmp/widgets/contact/contact.php:326
|
1093 |
msgid "Field labels"
|
1094 |
msgstr ""
|
1095 |
|
1096 |
+
#: tmp/widgets/contact/contact.php:340, tmp/widgets/contact/contact.php:455, tmp/widgets/contact/contact.php:610, tmp/widgets/features/features.php:146, tmp/widgets/features/features.php:167, tmp/widgets/features/features.php:188, tmp/widgets/google-map/google-map.php:354, tmp/widgets/headline/headline.php:67, tmp/widgets/headline/headline.php:138, tmp/widgets/headline/headline.php:198, tmp/widgets/icon/icon.php:35, tmp/widgets/taxonomy/taxonomy.php:55
|
1097 |
msgid "Color"
|
1098 |
msgstr ""
|
1099 |
|
1100 |
+
#: tmp/widgets/contact/contact.php:345
|
1101 |
msgid "Position"
|
1102 |
msgstr ""
|
1103 |
|
1104 |
+
#: tmp/widgets/contact/contact.php:348, tmp/widgets/image/image.php:64
|
1105 |
msgid "Above"
|
1106 |
msgstr ""
|
1107 |
|
1108 |
+
#: tmp/widgets/contact/contact.php:349, tmp/widgets/image/image.php:65
|
1109 |
msgid "Below"
|
1110 |
msgstr ""
|
1111 |
|
1112 |
+
#: tmp/widgets/contact/contact.php:352
|
1113 |
msgid "Inside"
|
1114 |
msgstr ""
|
1115 |
|
1116 |
+
#: tmp/widgets/contact/contact.php:385, tmp/widgets/headline/headline.php:80, tmp/widgets/headline/headline.php:151
|
1117 |
msgid "Font Size"
|
1118 |
msgstr ""
|
1119 |
|
1120 |
+
#: tmp/widgets/contact/contact.php:389, tmp/widgets/testimonial/testimonial.php:225
|
1121 |
msgid "Text Color"
|
1122 |
msgstr ""
|
1123 |
|
1124 |
+
#: tmp/widgets/contact/contact.php:393, tmp/widgets/social-media-buttons/social-media-buttons.php:148
|
1125 |
msgid "Margin"
|
1126 |
msgstr ""
|
1127 |
|
1128 |
+
#: tmp/widgets/contact/contact.php:401, tmp/widgets/google-map/google-map.php:100, tmp/widgets/hero/hero.php:156, tmp/widgets/layout-slider/layout-slider.php:124
|
1129 |
msgid "Height"
|
1130 |
msgstr ""
|
1131 |
|
1132 |
+
#: tmp/widgets/contact/contact.php:405, tmp/widgets/hero/hero.php:85, tmp/widgets/layout-slider/layout-slider.php:52
|
1133 |
msgid "Background"
|
1134 |
msgstr ""
|
1135 |
|
1136 |
+
#: tmp/widgets/contact/contact.php:419
|
1137 |
msgid " Border style"
|
1138 |
msgstr ""
|
1139 |
|
1140 |
+
#: tmp/widgets/contact/contact.php:436, tmp/widgets/contact/contact.php:546
|
1141 |
msgid "Border rounding"
|
1142 |
msgstr ""
|
1143 |
|
1144 |
+
#: tmp/widgets/contact/contact.php:446
|
1145 |
msgid "Field descriptions"
|
1146 |
msgstr ""
|
1147 |
|
1148 |
+
#: tmp/widgets/contact/contact.php:460, tmp/widgets/contact/contact.php:593, tmp/widgets/google-map/google-map.php:307, tmp/widgets/headline/headline.php:182
|
1149 |
msgid "Style"
|
1150 |
msgstr ""
|
1151 |
|
1152 |
+
#: tmp/widgets/contact/contact.php:463
|
1153 |
msgid "Italic"
|
1154 |
msgstr ""
|
1155 |
|
1156 |
+
#: tmp/widgets/contact/contact.php:472
|
1157 |
msgid "Error messages"
|
1158 |
msgstr ""
|
1159 |
|
1160 |
+
#: tmp/widgets/contact/contact.php:476
|
1161 |
msgid "Error background color"
|
1162 |
msgstr ""
|
1163 |
|
1164 |
+
#: tmp/widgets/contact/contact.php:481
|
1165 |
msgid "Error border color"
|
1166 |
msgstr ""
|
1167 |
|
1168 |
+
#: tmp/widgets/contact/contact.php:486
|
1169 |
msgid "Error text color"
|
1170 |
msgstr ""
|
1171 |
|
1172 |
+
#: tmp/widgets/contact/contact.php:491
|
1173 |
msgid "Error padding"
|
1174 |
msgstr ""
|
1175 |
|
1176 |
+
#: tmp/widgets/contact/contact.php:496
|
1177 |
msgid "Error margin"
|
1178 |
msgstr ""
|
1179 |
|
1180 |
+
#: tmp/widgets/contact/contact.php:504
|
1181 |
msgid "Submit button"
|
1182 |
msgstr ""
|
1183 |
|
1184 |
+
#: tmp/widgets/contact/contact.php:508
|
1185 |
msgid "Style submit button"
|
1186 |
msgstr ""
|
1187 |
|
1188 |
+
#: tmp/widgets/contact/contact.php:509
|
1189 |
msgid "Style the button or leave it with default theme styling."
|
1190 |
msgstr ""
|
1191 |
|
1192 |
+
#: tmp/widgets/contact/contact.php:520
|
1193 |
msgid "Gradient intensity"
|
1194 |
msgstr ""
|
1195 |
|
1196 |
+
#: tmp/widgets/contact/contact.php:563
|
1197 |
msgid "Font weight"
|
1198 |
msgstr ""
|
1199 |
|
1200 |
+
#: tmp/widgets/contact/contact.php:567
|
1201 |
msgid "Semi-bold"
|
1202 |
msgstr ""
|
1203 |
|
1204 |
+
#: tmp/widgets/contact/contact.php:568
|
1205 |
msgid "Bold"
|
1206 |
msgstr ""
|
1207 |
|
1208 |
+
#: tmp/widgets/contact/contact.php:578
|
1209 |
msgid "Inset highlight"
|
1210 |
msgstr ""
|
1211 |
|
1212 |
+
#: tmp/widgets/contact/contact.php:579
|
1213 |
msgid "The white highlight at the bottom of the button"
|
1214 |
msgstr ""
|
1215 |
|
1216 |
+
#: tmp/widgets/contact/contact.php:589
|
1217 |
msgid "Input focus"
|
1218 |
msgstr ""
|
1219 |
|
1220 |
+
#: tmp/widgets/contact/contact.php:636
|
1221 |
msgid "Get more form fields for the Contact Form Widget in %s"
|
1222 |
msgstr ""
|
1223 |
|
1224 |
+
#: tmp/widgets/contact/contact.php:637
|
1225 |
msgid "SiteOrigin Premium"
|
1226 |
msgstr ""
|
1227 |
|
1228 |
+
#: tmp/widgets/contact/contact.php:663
|
1229 |
msgid "Your Name"
|
1230 |
msgstr ""
|
1231 |
|
1232 |
+
#: tmp/widgets/contact/contact.php:666
|
1233 |
msgid "Please enter your name"
|
1234 |
msgstr ""
|
1235 |
|
1236 |
+
#: tmp/widgets/contact/contact.php:671
|
1237 |
msgid "Your Email"
|
1238 |
msgstr ""
|
1239 |
|
1240 |
+
#: tmp/widgets/contact/contact.php:674
|
1241 |
msgid "Please enter a valid email address"
|
1242 |
msgstr ""
|
1243 |
|
1244 |
+
#: tmp/widgets/contact/contact.php:682
|
1245 |
msgid "Please enter a subject"
|
1246 |
msgstr ""
|
1247 |
|
1248 |
+
#: tmp/widgets/contact/contact.php:687
|
1249 |
msgid "Message"
|
1250 |
msgstr ""
|
1251 |
|
1252 |
+
#: tmp/widgets/contact/contact.php:690
|
1253 |
msgid "Please write something"
|
1254 |
msgstr ""
|
1255 |
|
1256 |
+
#: tmp/widgets/contact/contact.php:974
|
1257 |
msgid "Invalid email address."
|
1258 |
msgstr ""
|
1259 |
|
1260 |
+
#: tmp/widgets/contact/contact.php:1048
|
1261 |
msgid "Error sending email, please try again later."
|
1262 |
msgstr ""
|
1263 |
|
1264 |
+
#: tmp/widgets/contact/contact.php:1066
|
1265 |
msgid "A valid email is required"
|
1266 |
msgstr ""
|
1267 |
|
1268 |
+
#: tmp/widgets/contact/contact.php:1068
|
1269 |
msgid "The email address is invalid"
|
1270 |
msgstr ""
|
1271 |
|
1272 |
+
#: tmp/widgets/contact/contact.php:1072
|
1273 |
msgid "Missing subject"
|
1274 |
msgstr ""
|
1275 |
|
1276 |
+
#: tmp/widgets/contact/contact.php:1106
|
1277 |
msgid "Error validating your Captcha response."
|
1278 |
msgstr ""
|
1279 |
|
1280 |
+
#: tmp/widgets/contact/contact.php:1138
|
1281 |
msgid "Unfortunately our system identified your message as spam."
|
1282 |
msgstr ""
|
1283 |
|
1445 |
msgid "The name of a place, town, city, or even a country. Can be an exact address too. Please ensure you have enabled the <strong>Geocoding API</strong> in the %sGoogle APIs Dashboard%s."
|
1446 |
msgstr ""
|
1447 |
|
1448 |
+
#: tmp/widgets/google-map/google-map.php:53, tmp/widgets/google-map/google-map.php:58, tmp/widgets/google-map/google-map.php:444
|
1449 |
msgid "API key"
|
1450 |
msgstr ""
|
1451 |
|
1766 |
msgstr ""
|
1767 |
|
1768 |
#: tmp/widgets/google-map/google-map.php:403
|
1769 |
+
msgid "Preserve viewport"
|
1770 |
msgstr ""
|
1771 |
|
1772 |
#: tmp/widgets/google-map/google-map.php:404
|
1773 |
+
msgid "This will prevent the map from centering and zooming around the directions. Use this when you have other markers or features on your map."
|
1774 |
+
msgstr ""
|
1775 |
+
|
1776 |
+
#: tmp/widgets/google-map/google-map.php:408
|
1777 |
+
msgid "Waypoints"
|
1778 |
+
msgstr ""
|
1779 |
+
|
1780 |
+
#: tmp/widgets/google-map/google-map.php:409
|
1781 |
msgid "Waypoint"
|
1782 |
msgstr ""
|
1783 |
|
1784 |
+
#: tmp/widgets/google-map/google-map.php:419, tmp/widgets/testimonial/testimonial.php:65
|
1785 |
msgid "Location"
|
1786 |
msgstr ""
|
1787 |
|
1788 |
+
#: tmp/widgets/google-map/google-map.php:424
|
1789 |
msgid "Stopover"
|
1790 |
msgstr ""
|
1791 |
|
1792 |
+
#: tmp/widgets/google-map/google-map.php:425
|
1793 |
msgid "Whether or not this is a stop on the route or just a route preference."
|
1794 |
msgstr ""
|
1795 |
|
1796 |
+
#: tmp/widgets/google-map/google-map.php:431
|
1797 |
msgid "Optimize waypoints"
|
1798 |
msgstr ""
|
1799 |
|
1800 |
+
#: tmp/widgets/google-map/google-map.php:433
|
1801 |
msgid "Allow the Google Maps service to reorder waypoints for the shortest travelling distance."
|
1802 |
msgstr ""
|
1803 |
|
1804 |
+
#: tmp/widgets/google-map/google-map.php:447
|
1805 |
msgid "Enter your %sAPI key%s. Your map won't function correctly without one."
|
1806 |
msgstr ""
|
1807 |
|
1808 |
+
#: tmp/widgets/google-map/google-map.php:559
|
1809 |
msgid "There were no results for the place you entered. Please try another."
|
1810 |
msgstr ""
|
1811 |
|
1812 |
+
#: tmp/widgets/google-map/google-map.php:612
|
1813 |
msgid "Custom Map"
|
1814 |
msgstr ""
|
1815 |
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== SiteOrigin Widgets Bundle ===
|
2 |
Tags: bundle, widget, button, slider, image, carousel, price table, google maps, tinymce, social links
|
3 |
Requires at least: 4.2
|
4 |
-
Tested up to: 4.8
|
5 |
-
Stable tag: 1.9.
|
6 |
-
Build time: 2017-08-
|
7 |
License: GPLv3 or later
|
8 |
Contributors: gpriday, braam-genis
|
9 |
Donate link: https://siteorigin.com/downloads/contribution/
|
@@ -54,6 +54,13 @@ The SiteOrigin Widgets Bundle is the perfect platform to build widgets for your
|
|
54 |
|
55 |
== Changelog ==
|
56 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
= 1.9.6 - 4 August 2017 =
|
58 |
* Slider: Background Video: Try embedding the video if oEmbed fails.
|
59 |
* Contact: Added some nonce checks.
|
1 |
=== SiteOrigin Widgets Bundle ===
|
2 |
Tags: bundle, widget, button, slider, image, carousel, price table, google maps, tinymce, social links
|
3 |
Requires at least: 4.2
|
4 |
+
Tested up to: 4.8.1
|
5 |
+
Stable tag: 1.9.7
|
6 |
+
Build time: 2017-08-11T11:57:54+02:00
|
7 |
License: GPLv3 or later
|
8 |
Contributors: gpriday, braam-genis
|
9 |
Donate link: https://siteorigin.com/downloads/contribution/
|
54 |
|
55 |
== Changelog ==
|
56 |
|
57 |
+
= 1.9.7 - 11 August 2017 =
|
58 |
+
* Contact: Added user configurable field for 'From:' address.
|
59 |
+
* TinyMCE field: Use editor stylesheets for new TinyMCE editor.
|
60 |
+
* TinyMCE field: Use UTF-8 encoding for text output.
|
61 |
+
* Sliders: Check whether `$frames` is empty before using.
|
62 |
+
* Google Maps: Prevent automatic center for routes.
|
63 |
+
|
64 |
= 1.9.6 - 4 August 2017 =
|
65 |
* Slider: Background Video: Try embedding the video if oEmbed fails.
|
66 |
* Contact: Added some nonce checks.
|
so-widgets-bundle.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: SiteOrigin Widgets Bundle
|
4 |
Description: A collection of all widgets, neatly bundled into a single plugin. It's also a framework to code your own widgets on top of.
|
5 |
-
Version: 1.9.
|
6 |
Text Domain: so-widgets-bundle
|
7 |
Domain Path: /lang
|
8 |
Author: SiteOrigin
|
@@ -12,7 +12,7 @@ License: GPL3
|
|
12 |
License URI: https://www.gnu.org/licenses/gpl-3.0.txt
|
13 |
*/
|
14 |
|
15 |
-
define('SOW_BUNDLE_VERSION', '1.9.
|
16 |
define('SOW_BUNDLE_BASE_FILE', __FILE__);
|
17 |
|
18 |
// Allow JS suffix to be pre-set
|
2 |
/*
|
3 |
Plugin Name: SiteOrigin Widgets Bundle
|
4 |
Description: A collection of all widgets, neatly bundled into a single plugin. It's also a framework to code your own widgets on top of.
|
5 |
+
Version: 1.9.7
|
6 |
Text Domain: so-widgets-bundle
|
7 |
Domain Path: /lang
|
8 |
Author: SiteOrigin
|
12 |
License URI: https://www.gnu.org/licenses/gpl-3.0.txt
|
13 |
*/
|
14 |
|
15 |
+
define('SOW_BUNDLE_VERSION', '1.9.7');
|
16 |
define('SOW_BUNDLE_BASE_FILE', __FILE__);
|
17 |
|
18 |
// Allow JS suffix to be pre-set
|
widgets/contact/contact.php
CHANGED
@@ -64,6 +64,12 @@ class SiteOrigin_Widgets_ContactForm_Widget extends SiteOrigin_Widget {
|
|
64 |
'description' => __( 'Where contact emails will be delivered to.', 'so-widgets-bundle' ),
|
65 |
'sanitize' => 'multiple_emails',
|
66 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
'default_subject' => array(
|
68 |
'type' => 'text',
|
69 |
'label' => __( 'Default subject', 'so-widgets-bundle' ),
|
@@ -647,6 +653,9 @@ class SiteOrigin_Widgets_ContactForm_Widget extends SiteOrigin_Widget {
|
|
647 |
$current_user = wp_get_current_user();
|
648 |
$instance['settings']['to'] = $current_user->user_email;
|
649 |
}
|
|
|
|
|
|
|
650 |
if ( empty( $instance['fields'] ) ) {
|
651 |
$instance['fields'] = array(
|
652 |
array(
|
@@ -1148,10 +1157,14 @@ class SiteOrigin_Widgets_ContactForm_Widget extends SiteOrigin_Widget {
|
|
1148 |
// Also replaces the email address that comes from the prebuilt layout directory
|
1149 |
$instance['settings']['to'] = get_option( 'admin_email' );
|
1150 |
}
|
|
|
|
|
|
|
|
|
1151 |
|
1152 |
$headers = array(
|
1153 |
'Content-Type: text/html; charset=UTF-8',
|
1154 |
-
'From: ' . $this->sanitize_header( $email_fields['name'] ) . ' <' .
|
1155 |
'Reply-To: ' . $this->sanitize_header( $email_fields['name'] ) . ' <' . sanitize_email( $email_fields['email'] ) . '>',
|
1156 |
);
|
1157 |
|
64 |
'description' => __( 'Where contact emails will be delivered to.', 'so-widgets-bundle' ),
|
65 |
'sanitize' => 'multiple_emails',
|
66 |
),
|
67 |
+
'from' => array(
|
68 |
+
'type' => 'text',
|
69 |
+
'label' => __( 'From email address', 'so-widgets-bundle' ),
|
70 |
+
'description' => __( 'It will appear as if emails are sent from this address. Ideally this should be in the same domain as this server to avoid spam filters.', 'so-widgets-bundle' ),
|
71 |
+
'sanitize' => 'email',
|
72 |
+
),
|
73 |
'default_subject' => array(
|
74 |
'type' => 'text',
|
75 |
'label' => __( 'Default subject', 'so-widgets-bundle' ),
|
653 |
$current_user = wp_get_current_user();
|
654 |
$instance['settings']['to'] = $current_user->user_email;
|
655 |
}
|
656 |
+
if ( empty( $instance['settings']['from'] ) ) {
|
657 |
+
$instance['settings']['from'] = get_option( 'admin_email' );
|
658 |
+
}
|
659 |
if ( empty( $instance['fields'] ) ) {
|
660 |
$instance['fields'] = array(
|
661 |
array(
|
1157 |
// Also replaces the email address that comes from the prebuilt layout directory
|
1158 |
$instance['settings']['to'] = get_option( 'admin_email' );
|
1159 |
}
|
1160 |
+
|
1161 |
+
if ( $instance['settings']['from'] == 'test@example.com' || empty( $instance['settings']['from'] ) ) {
|
1162 |
+
$instance['settings']['from'] = get_option( 'admin_email' );
|
1163 |
+
}
|
1164 |
|
1165 |
$headers = array(
|
1166 |
'Content-Type: text/html; charset=UTF-8',
|
1167 |
+
'From: ' . $this->sanitize_header( $email_fields['name'] ) . ' <' . $instance['settings']['from'] . '>',
|
1168 |
'Reply-To: ' . $this->sanitize_header( $email_fields['name'] ) . ' <' . sanitize_email( $email_fields['email'] ) . '>',
|
1169 |
);
|
1170 |
|
widgets/google-map/google-map.php
CHANGED
@@ -398,6 +398,11 @@ class SiteOrigin_Widget_GoogleMap_Widget extends SiteOrigin_Widget {
|
|
398 |
'type' => 'checkbox',
|
399 |
'label' => __( 'Avoid tolls', 'so-widgets-bundle' ),
|
400 |
),
|
|
|
|
|
|
|
|
|
|
|
401 |
'waypoints' => array(
|
402 |
'type' => 'repeater',
|
403 |
'label' => __( 'Waypoints', 'so-widgets-bundle' ),
|
398 |
'type' => 'checkbox',
|
399 |
'label' => __( 'Avoid tolls', 'so-widgets-bundle' ),
|
400 |
),
|
401 |
+
'preserve_viewport' => array(
|
402 |
+
'type' => 'checkbox',
|
403 |
+
'label' => __( 'Preserve viewport', 'so-widgets-bundle' ),
|
404 |
+
'description' => __( 'This will prevent the map from centering and zooming around the directions. Use this when you have other markers or features on your map.', 'so-widgets-bundle' ),
|
405 |
+
),
|
406 |
'waypoints' => array(
|
407 |
'type' => 'repeater',
|
408 |
'label' => __( 'Waypoints', 'so-widgets-bundle' ),
|
widgets/google-map/js/js-map.js
CHANGED
@@ -254,6 +254,7 @@ sowb.SiteOriginGoogleMap = function($) {
|
|
254 |
},
|
255 |
function(result, status) {
|
256 |
if (status === google.maps.DirectionsStatus.OK) {
|
|
|
257 |
directionsRenderer.setDirections(result);
|
258 |
}
|
259 |
});
|
254 |
},
|
255 |
function(result, status) {
|
256 |
if (status === google.maps.DirectionsStatus.OK) {
|
257 |
+
directionsRenderer.setOptions( { preserveViewport: directions.preserveViewport } );
|
258 |
directionsRenderer.setDirections(result);
|
259 |
}
|
260 |
});
|
widgets/google-map/js/js-map.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function soGoogleMapInitialize(){new sowb.SiteOriginGoogleMap(jQuery).initMaps()}var sowb=window.sowb||{};sowb.SiteOriginGoogleMap=function(e){return{DEFAULT_LOCATIONS:["Addo Elephant National Park, R335, Addo","Cape Town, Western Cape, South Africa","San Francisco Bay Area, CA, United States","New York, NY, United States"],showMap:function(e,o,t){var i=Number(t.zoom);i||(i=14);var
|
1 |
+
function soGoogleMapInitialize(){new sowb.SiteOriginGoogleMap(jQuery).initMaps()}var sowb=window.sowb||{};sowb.SiteOriginGoogleMap=function(e){return{DEFAULT_LOCATIONS:["Addo Elephant National Park, R335, Addo","Cape Town, Western Cape, South Africa","San Francisco Bay Area, CA, United States","New York, NY, United States"],showMap:function(e,o,t){var i=Number(t.zoom);i||(i=14);var n={zoom:i,scrollwheel:t.scrollZoom,draggable:t.draggable,disableDefaultUI:t.disableUi,zoomControl:t.zoomControl,panControl:t.panControl,center:o,mapTypeControlOptions:{mapTypeIds:[google.maps.MapTypeId.ROADMAP,"user_map_style"]}},a=new google.maps.Map(e,n),s={name:t.mapName},r=t.mapStyles;if(r){var l=new google.maps.StyledMapType(r,s);a.mapTypes.set("user_map_style",l),a.setMapTypeId("user_map_style")}if(t.markerAtCenter&&(this.centerMarker=new google.maps.Marker({position:o,map:a,draggable:t.markersDraggable,icon:t.markerIcon,title:""})),t.keepCentered){var c;google.maps.event.addDomListener(a,"idle",function(){c=a.getCenter()}),google.maps.event.addDomListener(window,"resize",function(){a.setCenter(c)})}this.linkAutocompleteField(t.autocomplete,t.autocompleteElement,a,t),this.showMarkers(t.markerPositions,a,t),this.showDirections(t.directions,a,t)},linkAutocompleteField:function(o,t,i,n){if(o&&t){var a=function(e){this.inputAddress!==e&&(this.inputAddress=e,this.getLocation(this.inputAddress).done(function(e){i.setZoom(15),i.setCenter(e),this.centerMarker&&(this.centerMarker.setPosition(e),this.centerMarker.setTitle(this.inputAddress))}.bind(this)))}.bind(this),s=e(t);o.addListener("place_changed",function(){var e=o.getPlace();i.setZoom(15),e.geometry&&(i.setCenter(e.geometry.location),this.centerMarker&&this.centerMarker.setPosition(e.geometry.location))}.bind(this)),google.maps.event.addDomListener(t,"keypress",function(e){"13"===(e.keyCode||e.which)&&e.preventDefault()}),s.focusin(function(){if(!this.resultsObserver){var o=document.querySelector(".pac-container");this.resultsObserver=new MutationObserver(function(){var o=e(e(".pac-item").get(0)),t=o.find(".pac-item-query").text(),i=o.find("span").not("[class]").text(),n=t+(i?", "+i:"");n&&a(n)});var t={attributes:!0,childList:!0,characterData:!0};this.resultsObserver.observe(o,t)}}.bind(this));var r=function(e){this.getGeocoder().geocode({location:e},function(o,t){if(t===google.maps.GeocoderStatus.OK&&o.length>0){var i=o[0].formatted_address;s.val(i),this.centerMarker&&(this.centerMarker.setPosition(e),this.centerMarker.setTitle(i))}}.bind(this))}.bind(this);i.addListener("click",function(e){r(e.latLng)}),this.centerMarker.addListener("dragend",function(e){r(e.latLng)})}},showMarkers:function(e,o,t){if(e&&e.length){this.infoWindows=[];for(var i=[],n=0;n<e.length;n++){var a=parseInt(n/10);i.length===a&&(i[a]=[]),i[a][n%10]=e[n]}var s=function(e,i){var n=0;e.forEach(function(a){this.getLocation(a.place).done(function(r){var l=t.markerIcon;a.custom_marker_icon&&(l=a.custom_marker_icon);var c=new google.maps.Marker({position:r,map:o,draggable:t.markersDraggable,icon:l,title:""});if(a.hasOwnProperty("info")&&a.info){var d={content:a.info};a.hasOwnProperty("info_max_width")&&a.info_max_width&&(d.maxWidth=a.info_max_width);var p=t.markerInfoDisplay;d.disableAutoPan="always"===p;var g=new google.maps.InfoWindow(d);this.infoWindows.push(g);var h=p;"always"===p&&(h="click",g.open(o,c)),c.addListener(h,function(){g.open(o,c),"always"===p||t.markerInfoMultiple||this.infoWindows.forEach(function(e){e!==g&&e.close()})}.bind(this)),"mouseover"===p&&c.addListener("mouseout",function(){setTimeout(function(){g.close()},100)})}++n===e.length&&i.length&&s(i.shift(),i)}.bind(this))}.bind(this))}.bind(this);s(i.shift(),i)}},showDirections:function(e,o){if(e){e.waypoints&&e.waypoints.length&&e.waypoints.map(function(e){e.stopover=Boolean(e.stopover)});var t=new google.maps.DirectionsRenderer;t.setMap(o);(new google.maps.DirectionsService).route({origin:e.origin,destination:e.destination,travelMode:e.travelMode.toUpperCase(),avoidHighways:e.avoidHighways,avoidTolls:e.avoidTolls,waypoints:e.waypoints,optimizeWaypoints:e.optimizeWaypoints},function(o,i){i===google.maps.DirectionsStatus.OK&&(t.setOptions({preserveViewport:e.preserveViewport}),t.setDirections(o))})}},initMaps:function(){var o=e(".sow-google-map-autocomplete"),t=new e.Deferred;0===o.length?t.resolve():o.each(function(o,i){if(void 0===google.maps.places)return void t.reject('Sorry, we couldn\'t load the "places" library due to another plugin, so the autocomplete feature is not available.');var n=new google.maps.places.Autocomplete(i,{types:["address"]}),a=e(i).siblings(".sow-google-map-canvas");if(a.length>0){var s=a.data("options");s.autocomplete=n,s.autocompleteElement=i,this.getLocation(s.address).done(function(e){this.showMap(a.get(0),e,s),a.data("initialized",!0),t.resolve()}.bind(this)).fail(function(){a.append("<div><p><strong>"+soWidgetsGoogleMap.geocode.noResults+"</strong></p></div>"),t.reject()})}}.bind(this)),t.always(function(){e(".sow-google-map-canvas").each(function(o,t){var i=e(t);if(i.data("initialized"))return!0;var n=i.data("options"),a=n.address;if(!a){var s=n.markerPositions;s&&s.length&&(a=s[0].place)}this.getLocation(a).done(function(e){this.showMap(i.get(0),e,n),i.data("initialized")}.bind(this)).fail(function(){i.append("<div><p><strong>"+soWidgetsGoogleMap.geocode.noResults+"</strong></p></div>")})}.bind(this))}.bind(this)).fail(function(e){console.log(e)})},getGeocoder:function(){return this._geocoder||(this._geocoder=new google.maps.Geocoder),this._geocoder},getLocation:function(o){var t,i=new e.Deferred,n={address:o};if(o&&o.indexOf(",")>-1){var a=o.split(",");a&&2===a.length&&(t=new google.maps.LatLng(a[0],a[1]),isNaN(t.lat())||isNaN(t.lng())||(n={location:{lat:t.lat(),lng:t.lng()}}))}if(n.hasOwnProperty("location"))i.resolve(n.location);else if(n.hasOwnProperty("address")){if(!n.address){var s=parseInt(Math.random()*this.DEFAULT_LOCATIONS.length);n.address=this.DEFAULT_LOCATIONS[s]}var r=function(e,o){o===google.maps.GeocoderStatus.OK?i.resolve(e[0].geometry.location):o===google.maps.GeocoderStatus.OVER_QUERY_LIMIT?setTimeout(function(){this.getGeocoder().geocode.call(this,n,r)}.bind(this),100):o===google.maps.GeocoderStatus.ZERO_RESULTS&&i.reject(o)}.bind(this);this.getGeocoder().geocode(n,r)}return i}}},jQuery(function(e){sowb.setupGoogleMaps=function(){var o,t=[];if(e(".sow-google-map-canvas").each(function(i,n){var a=e(n),s=a.data("options");s&&(void 0!==s.libraries&&null!==s.libraries&&(t=t.concat(s.libraries)),!o&&s.apiKey&&(o=s.apiKey))}),void 0!==window.google&&void 0!==window.google.maps)soGoogleMapInitialize();else{var i="https://maps.googleapis.com/maps/api/js?callback=soGoogleMapInitialize";if(t&&t.length&&(i+="&libraries="+t.join(",")),o&&(i+="&key="+o),window.console&&window.console.error){var n=window.console.error;sowb.onLoadMapsApiError=function(o){var t=o.match(/^Google Maps API (error|warning): ([^\s]*)\s([^\s]*)(?:\s(.*))?/);t&&t.length&&t[0]&&e(".sow-google-map-canvas").each(function(o,t){var i=e(t);if(i.data("fallbackImage")){var n=i.data("fallbackImage");n.hasOwnProperty("img")&&i.append(n.img)}}),n.apply(window.console,arguments)},window.console.error=sowb.onLoadMapsApiError}e("body").append('<script async type="text/javascript" src="'+i+'">')}},sowb.setupGoogleMaps(),e(sowb).on("setup_widgets",sowb.setupGoogleMaps)}),window.sowb=sowb;
|
widgets/slider/slider.php
CHANGED
@@ -193,16 +193,18 @@ class SiteOrigin_Widget_Slider_Widget extends SiteOrigin_Widget_Base_Slider {
|
|
193 |
|
194 |
function get_template_variables( $instance, $args ) {
|
195 |
$frames = $instance['frames'];
|
196 |
-
|
197 |
-
$
|
198 |
-
|
199 |
-
$
|
|
|
|
|
|
|
200 |
}
|
201 |
-
$frame['link_attributes'] = $link_atts;
|
202 |
}
|
203 |
return array(
|
204 |
'controls' => $instance['controls'],
|
205 |
-
'frames' => $frames,
|
206 |
);
|
207 |
}
|
208 |
|
193 |
|
194 |
function get_template_variables( $instance, $args ) {
|
195 |
$frames = $instance['frames'];
|
196 |
+
if ( ! empty( $frames ) ) {
|
197 |
+
foreach ( $frames as &$frame ) {
|
198 |
+
$link_atts = array();
|
199 |
+
if ( ! empty( $frame['new_window'] ) ) {
|
200 |
+
$link_atts['target'] = '_blank';
|
201 |
+
}
|
202 |
+
$frame['link_attributes'] = $link_atts;
|
203 |
}
|
|
|
204 |
}
|
205 |
return array(
|
206 |
'controls' => $instance['controls'],
|
207 |
+
'frames' => empty( $frames ) ? array() : $frames,
|
208 |
);
|
209 |
}
|
210 |
|