SiteOrigin Widgets Bundle - Version 1.30.0

Version Description

  • 14 February 2022 =
  • Button and Contact Form: Migrated onclick to on_click to avoid a Worfence flag.
  • Call To Action: Remove Use default background colors setting.
  • Social Media Buttons: Added new settings: Icon color hover and Background color hover.
Download this release

Release Info

Developer SiteOrigin
Plugin Icon 128x128 SiteOrigin Widgets Bundle
Version 1.30.0
Comparing to
See all releases

Code changes from version 1.29.2 to 1.30.0

base/inc/widgets/base-slider.class.php CHANGED
@@ -238,6 +238,7 @@ abstract class SiteOrigin_Widget_Base_Slider extends SiteOrigin_Widget {
238
  'nav_always_show_mobile' => ! empty( $controls['nav_always_show_mobile'] ) ? true : '',
239
  'breakpoint' => ! empty( $controls['breakpoint'] ) ? $controls['breakpoint'] : '780px',
240
  'unmute' => ! empty( $controls['unmute'] ),
 
241
  );
242
 
243
  // Add the unmute translations.
238
  'nav_always_show_mobile' => ! empty( $controls['nav_always_show_mobile'] ) ? true : '',
239
  'breakpoint' => ! empty( $controls['breakpoint'] ) ? $controls['breakpoint'] : '780px',
240
  'unmute' => ! empty( $controls['unmute'] ),
241
+ 'anchor' => ! empty( $controls['anchor'] ) ? $controls['anchor'] : null,
242
  );
243
 
244
  // Add the unmute translations.
lang/so-widgets-bundle.pot CHANGED
@@ -340,11 +340,11 @@ msgstr ""
340
  msgid "Background color"
341
  msgstr ""
342
 
343
- #: widgets/accordion/accordion.php:125, widgets/tabs/tabs.php:134
344
  msgid "Background hover color"
345
  msgstr ""
346
 
347
- #: widgets/accordion/accordion.php:130, widgets/cta/cta.php:91, widgets/tabs/tabs.php:139
348
  msgid "Title color"
349
  msgstr ""
350
 
@@ -352,7 +352,7 @@ msgstr ""
352
  msgid "Title hover color"
353
  msgstr ""
354
 
355
- #: widgets/accordion/accordion.php:139, widgets/accordion/accordion.php:167, widgets/contact/contact.php:356, widgets/contact/contact.php:478, widgets/contact/contact.php:594, widgets/cta/cta.php:82, widgets/tabs/tabs.php:115, widgets/tabs/tabs.php:149, widgets/tabs/tabs.php:183
356
  msgid "Border color"
357
  msgstr ""
358
 
@@ -408,7 +408,7 @@ msgstr ""
408
  msgid "Color"
409
  msgstr ""
410
 
411
- #: widgets/anything-carousel/anything-carousel.php:107, widgets/contact/contact.php:453, widgets/social-media-buttons/social-media-buttons.php:171
412
  msgid "Margin"
413
  msgstr ""
414
 
@@ -416,7 +416,7 @@ msgstr ""
416
  msgid "Top"
417
  msgstr ""
418
 
419
- #: widgets/anything-carousel/anything-carousel.php:116, widgets/button/button.php:105, widgets/button/button.php:131, widgets/button/button.php:142, widgets/contact/contact.php:411, widgets/contact/contact.php:426, widgets/contact/contact.php:655, widgets/cta/cta.php:103, widgets/features/features.php:73, widgets/headline/headline.php:102, widgets/headline/headline.php:112, widgets/headline/headline.php:183, widgets/headline/headline.php:193, widgets/headline/headline.php:248, widgets/headline/headline.php:257, widgets/icon/icon.php:50, widgets/image/image.php:50, widgets/image/image.php:62, widgets/image-grid/image-grid.php:136, widgets/image-grid/image-grid.php:166, widgets/simple-masonry/simple-masonry.php:216, widgets/social-media-buttons/social-media-buttons.php:153, widgets/social-media-buttons/social-media-buttons.php:164, widgets/testimonial/testimonial.php:256
420
  msgid "Right"
421
  msgstr ""
422
 
@@ -424,7 +424,7 @@ msgstr ""
424
  msgid "Bottom"
425
  msgstr ""
426
 
427
- #: widgets/anything-carousel/anything-carousel.php:124, widgets/button/button.php:107, widgets/button/button.php:130, widgets/button/button.php:141, widgets/contact/contact.php:410, widgets/contact/contact.php:425, widgets/contact/contact.php:654, widgets/cta/cta.php:102, widgets/features/features.php:75, widgets/headline/headline.php:101, widgets/headline/headline.php:111, widgets/headline/headline.php:182, widgets/headline/headline.php:192, widgets/headline/headline.php:247, widgets/headline/headline.php:256, widgets/icon/icon.php:49, widgets/image/image.php:49, widgets/image/image.php:61, widgets/image-grid/image-grid.php:142, widgets/image-grid/image-grid.php:164, widgets/simple-masonry/simple-masonry.php:215, widgets/social-media-buttons/social-media-buttons.php:152, widgets/social-media-buttons/social-media-buttons.php:163, widgets/testimonial/testimonial.php:255
428
  msgid "Left"
429
  msgstr ""
430
 
@@ -468,7 +468,7 @@ msgstr ""
468
  msgid "SiteOrigin Button"
469
  msgstr ""
470
 
471
- #: widgets/button/button.php:33, widgets/contact/contact.php:793, widgets/features/features.php:346, widgets/headline/headline.php:37, widgets/social-media-buttons/social-media-buttons.php:33, base/inc/widgets/base-slider.class.php:222
472
  msgid "Responsive Breakpoint"
473
  msgstr ""
474
 
@@ -484,7 +484,7 @@ msgstr ""
484
  msgid "Destination URL"
485
  msgstr ""
486
 
487
- #: widgets/button/button.php:69, widgets/google-map/google-map.php:114, widgets/headline/headline.php:62, widgets/headline/headline.php:143, widgets/icon/icon.php:63, widgets/simple-masonry/simple-masonry.php:94, widgets/social-media-buttons/social-media-buttons.php:97, widgets/taxonomy/taxonomy.php:65, widgets/testimonial/testimonial.php:94
488
  msgid "Open in a new window"
489
  msgstr ""
490
 
@@ -528,15 +528,15 @@ msgstr ""
528
  msgid "Leave blank to let the button resize according to content."
529
  msgstr ""
530
 
531
- #: widgets/button/button.php:127, widgets/contact/contact.php:422, widgets/contact/contact.php:651, widgets/social-media-buttons/social-media-buttons.php:149
532
  msgid "Align"
533
  msgstr ""
534
 
535
- #: widgets/button/button.php:132, widgets/button/button.php:143, widgets/contact/contact.php:427, widgets/contact/contact.php:656, widgets/headline/headline.php:100, widgets/headline/headline.php:110, widgets/headline/headline.php:181, widgets/headline/headline.php:191, widgets/headline/headline.php:246, widgets/headline/headline.php:255, widgets/icon/icon.php:48, widgets/image/image.php:51, widgets/image/image.php:63, widgets/image-grid/image-grid.php:154, widgets/image-grid/image-grid.php:165, widgets/social-media-buttons/social-media-buttons.php:154, widgets/social-media-buttons/social-media-buttons.php:165
536
  msgid "Center"
537
  msgstr ""
538
 
539
- #: widgets/button/button.php:133, widgets/button/button.php:144, widgets/contact/contact.php:428, widgets/headline/headline.php:103, widgets/headline/headline.php:113, widgets/headline/headline.php:184, widgets/headline/headline.php:194, widgets/social-media-buttons/social-media-buttons.php:155, widgets/social-media-buttons/social-media-buttons.php:166
540
  msgid "Justify"
541
  msgstr ""
542
 
@@ -544,19 +544,19 @@ msgstr ""
544
  msgid "Mobile align"
545
  msgstr ""
546
 
547
- #: widgets/button/button.php:149, widgets/social-media-buttons/social-media-buttons.php:102
548
  msgid "Button theme"
549
  msgstr ""
550
 
551
- #: widgets/button/button.php:152, widgets/price-table/price-table.php:134, widgets/social-media-buttons/social-media-buttons.php:105
552
  msgid "Atom"
553
  msgstr ""
554
 
555
- #: widgets/button/button.php:153, widgets/social-media-buttons/social-media-buttons.php:106
556
  msgid "Flat"
557
  msgstr ""
558
 
559
- #: widgets/button/button.php:154, widgets/social-media-buttons/social-media-buttons.php:107
560
  msgid "Wire"
561
  msgstr ""
562
 
@@ -568,7 +568,7 @@ msgstr ""
568
  msgid "Text color"
569
  msgstr ""
570
 
571
- #: widgets/button/button.php:172, widgets/social-media-buttons/social-media-buttons.php:112
572
  msgid "Use hover effects"
573
  msgstr ""
574
 
@@ -580,55 +580,55 @@ msgstr ""
580
  msgid "Hover text color"
581
  msgstr ""
582
 
583
- #: widgets/button/button.php:211, widgets/contact/contact.php:299, widgets/contact/contact.php:533, widgets/contact/contact.php:635, widgets/social-media-buttons/social-media-buttons.php:119
584
  msgid "Normal"
585
  msgstr ""
586
 
587
- #: widgets/button/button.php:212, widgets/button/button.php:236, widgets/social-media-buttons/social-media-buttons.php:120, widgets/social-media-buttons/social-media-buttons.php:142, widgets/social-media-buttons/social-media-buttons.php:175, base/inc/widgets/base-slider.class.php:113
588
  msgid "Medium"
589
  msgstr ""
590
 
591
- #: widgets/button/button.php:213, widgets/social-media-buttons/social-media-buttons.php:121
592
  msgid "Large"
593
  msgstr ""
594
 
595
- #: widgets/button/button.php:214, widgets/social-media-buttons/social-media-buttons.php:122
596
  msgid "Extra large"
597
  msgstr ""
598
 
599
- #: widgets/button/button.php:220, widgets/social-media-buttons/social-media-buttons.php:127
600
  msgid "Rounding"
601
  msgstr ""
602
 
603
- #: widgets/button/button.php:223, widgets/contact/contact.php:369, widgets/contact/contact.php:491, widgets/contact/contact.php:602, widgets/contact/contact.php:687, widgets/google-map/google-map.php:158, widgets/headline/headline.php:218, widgets/social-media-buttons/social-media-buttons.php:130
604
  msgid "None"
605
  msgstr ""
606
 
607
- #: widgets/button/button.php:224, widgets/social-media-buttons/social-media-buttons.php:131
608
  msgid "Slightly rounded"
609
  msgstr ""
610
 
611
- #: widgets/button/button.php:225, widgets/social-media-buttons/social-media-buttons.php:132
612
  msgid "Very rounded"
613
  msgstr ""
614
 
615
- #: widgets/button/button.php:226, widgets/social-media-buttons/social-media-buttons.php:133
616
  msgid "Completely rounded"
617
  msgstr ""
618
 
619
- #: widgets/button/button.php:232, widgets/contact/contact.php:351, widgets/contact/contact.php:457, widgets/contact/contact.php:642, widgets/social-media-buttons/social-media-buttons.php:138, widgets/testimonial/testimonial.php:235
620
  msgid "Padding"
621
  msgstr ""
622
 
623
- #: widgets/button/button.php:235, widgets/social-media-buttons/social-media-buttons.php:141, widgets/social-media-buttons/social-media-buttons.php:174
624
  msgid "Low"
625
  msgstr ""
626
 
627
- #: widgets/button/button.php:237, widgets/social-media-buttons/social-media-buttons.php:143, widgets/social-media-buttons/social-media-buttons.php:176
628
  msgid "High"
629
  msgstr ""
630
 
631
- #: widgets/button/button.php:238, widgets/social-media-buttons/social-media-buttons.php:144, widgets/social-media-buttons/social-media-buttons.php:177
632
  msgid "Very high"
633
  msgstr ""
634
 
@@ -840,7 +840,7 @@ msgstr ""
840
  msgid "Required Field"
841
  msgstr ""
842
 
843
- #: widgets/contact/contact.php:183, widgets/contact/contact.php:190, widgets/contact/contact.php:1072
844
  msgid "Required field"
845
  msgstr ""
846
 
@@ -1136,88 +1136,84 @@ msgstr ""
1136
  msgid "Please write something"
1137
  msgstr ""
1138
 
1139
- #: widgets/contact/contact.php:795
1140
  msgid "This setting controls when the field max width will be disabled. The default value is 780px"
1141
  msgstr ""
1142
 
1143
- #: widgets/contact/contact.php:1084
1144
  msgid "Invalid email address."
1145
  msgstr ""
1146
 
1147
- #: widgets/contact/contact.php:1109
1148
  msgid "Invalid phone number. It should contain at least three digits."
1149
  msgstr ""
1150
 
1151
- #: widgets/contact/contact.php:1120
1152
  msgid "Invalid number."
1153
  msgstr ""
1154
 
1155
- #: widgets/contact/contact.php:1186
1156
  msgid "Error sending email, please try again later."
1157
  msgstr ""
1158
 
1159
- #: widgets/contact/contact.php:1212
1160
  msgid "A valid email is required"
1161
  msgstr ""
1162
 
1163
- #: widgets/contact/contact.php:1214
1164
  msgid "The email address is invalid"
1165
  msgstr ""
1166
 
1167
- #: widgets/contact/contact.php:1218
1168
  msgid "Missing subject"
1169
  msgstr ""
1170
 
1171
- #: widgets/contact/contact.php:1252
1172
  msgid "Error validating your Captcha response."
1173
  msgstr ""
1174
 
1175
- #: widgets/contact/contact.php:1284
1176
  msgid "Unfortunately our system identified your message as spam."
1177
  msgstr ""
1178
 
1179
- #: widgets/contact/contact.php:1292
1180
  msgctxt "The name of who sent this email"
1181
  msgid "From"
1182
  msgstr ""
1183
 
1184
- #: widgets/contact/contact.php:1392
1185
  msgid "Add a form autoresponder and additional fields, including a date and time picker with %sSiteOrigin Premium%s"
1186
  msgstr ""
1187
 
1188
- #: widgets/contact/contact.php:1397
1189
  msgid "Use Google Fonts right inside the Contact Form Widget with %sSiteOrigin Premium%s"
1190
  msgstr ""
1191
 
1192
  #: widgets/cta/cta.php:4, widgets/cta/cta.php:18
1193
- msgid "A simple call-to-action widget. You can do what ever you want with a call-to-action widget."
1194
  msgstr ""
1195
 
1196
  #: widgets/cta/cta.php:16
1197
- msgid "SiteOrigin Call-to-action"
1198
  msgstr ""
1199
 
1200
  #: widgets/cta/cta.php:69, widgets/price-table/price-table.php:65
1201
  msgid "Subtitle"
1202
  msgstr ""
1203
 
1204
- #: widgets/cta/cta.php:86
1205
- msgid "Use default background colors"
1206
- msgstr ""
1207
-
1208
- #: widgets/cta/cta.php:95
1209
  msgid "Subtitle color"
1210
  msgstr ""
1211
 
1212
- #: widgets/cta/cta.php:99
1213
  msgid "Button align"
1214
  msgstr ""
1215
 
1216
- #: widgets/cta/cta.php:112, widgets/google-map/google-map.php:498, widgets/hero/hero.php:79, widgets/hero/hero.php:91
1217
  msgid "Button"
1218
  msgstr ""
1219
 
1220
- #: widgets/cta/cta.php:157
1221
  msgid "Get more font customization options with %sSiteOrigin Premium%s"
1222
  msgstr ""
1223
 
@@ -1305,7 +1301,7 @@ msgstr ""
1305
  msgid "Icon container size"
1306
  msgstr ""
1307
 
1308
- #: widgets/features/features.php:218, widgets/social-media-buttons/social-media-buttons.php:117
1309
  msgid "Icon size"
1310
  msgstr ""
1311
 
@@ -2588,15 +2584,19 @@ msgstr ""
2588
  msgid "Select network"
2589
  msgstr ""
2590
 
2591
- #: widgets/social-media-buttons/social-media-buttons.php:92
 
 
 
 
2592
  msgid "Design and Layout"
2593
  msgstr ""
2594
 
2595
- #: widgets/social-media-buttons/social-media-buttons.php:160
2596
  msgid "Mobile Align"
2597
  msgstr ""
2598
 
2599
- #: widgets/social-media-buttons/social-media-buttons.php:335
2600
  msgid "Add custom social networks with %sSiteOrigin Premium%s"
2601
  msgstr ""
2602
 
@@ -3381,31 +3381,31 @@ msgstr ""
3381
  msgid "This setting controls when the Slider will switch to the responsive mode. This breakpoint will only be used if always show navigation on mobile is enabled. The default value is 780px."
3382
  msgstr ""
3383
 
3384
- #: base/inc/widgets/base-slider.class.php:247
3385
  msgid "Unmute slide"
3386
  msgstr ""
3387
 
3388
- #: base/inc/widgets/base-slider.class.php:248
3389
  msgid "Mute slide"
3390
  msgstr ""
3391
 
3392
- #: base/inc/widgets/base-slider.class.php:258
3393
  msgid "Loop slide background videos"
3394
  msgstr ""
3395
 
3396
- #: base/inc/widgets/base-slider.class.php:262
3397
  msgid "Background video opacity"
3398
  msgstr ""
3399
 
3400
- #: base/inc/widgets/base-slider.class.php:403
3401
  msgid "display slide %s"
3402
  msgstr ""
3403
 
3404
- #: base/inc/widgets/base-slider.class.php:408
3405
  msgid "next slide"
3406
  msgstr ""
3407
 
3408
- #: base/inc/widgets/base-slider.class.php:414
3409
  msgid "previous slide"
3410
  msgstr ""
3411
 
340
  msgid "Background color"
341
  msgstr ""
342
 
343
+ #: widgets/accordion/accordion.php:125, widgets/social-media-buttons/social-media-buttons.php:98, widgets/tabs/tabs.php:134
344
  msgid "Background hover color"
345
  msgstr ""
346
 
347
+ #: widgets/accordion/accordion.php:130, widgets/cta/cta.php:88, widgets/tabs/tabs.php:139
348
  msgid "Title color"
349
  msgstr ""
350
 
352
  msgid "Title hover color"
353
  msgstr ""
354
 
355
+ #: widgets/accordion/accordion.php:139, widgets/accordion/accordion.php:167, widgets/contact/contact.php:356, widgets/contact/contact.php:478, widgets/contact/contact.php:594, widgets/cta/cta.php:83, widgets/tabs/tabs.php:115, widgets/tabs/tabs.php:149, widgets/tabs/tabs.php:183
356
  msgid "Border color"
357
  msgstr ""
358
 
408
  msgid "Color"
409
  msgstr ""
410
 
411
+ #: widgets/anything-carousel/anything-carousel.php:107, widgets/contact/contact.php:453, widgets/social-media-buttons/social-media-buttons.php:194
412
  msgid "Margin"
413
  msgstr ""
414
 
416
  msgid "Top"
417
  msgstr ""
418
 
419
+ #: widgets/anything-carousel/anything-carousel.php:116, widgets/button/button.php:105, widgets/button/button.php:131, widgets/button/button.php:142, widgets/contact/contact.php:411, widgets/contact/contact.php:426, widgets/contact/contact.php:655, widgets/cta/cta.php:100, widgets/features/features.php:73, widgets/headline/headline.php:102, widgets/headline/headline.php:112, widgets/headline/headline.php:183, widgets/headline/headline.php:193, widgets/headline/headline.php:248, widgets/headline/headline.php:257, widgets/icon/icon.php:50, widgets/image/image.php:50, widgets/image/image.php:62, widgets/image-grid/image-grid.php:136, widgets/image-grid/image-grid.php:166, widgets/simple-masonry/simple-masonry.php:216, widgets/social-media-buttons/social-media-buttons.php:176, widgets/social-media-buttons/social-media-buttons.php:187, widgets/testimonial/testimonial.php:256
420
  msgid "Right"
421
  msgstr ""
422
 
424
  msgid "Bottom"
425
  msgstr ""
426
 
427
+ #: widgets/anything-carousel/anything-carousel.php:124, widgets/button/button.php:107, widgets/button/button.php:130, widgets/button/button.php:141, widgets/contact/contact.php:410, widgets/contact/contact.php:425, widgets/contact/contact.php:654, widgets/cta/cta.php:99, widgets/features/features.php:75, widgets/headline/headline.php:101, widgets/headline/headline.php:111, widgets/headline/headline.php:182, widgets/headline/headline.php:192, widgets/headline/headline.php:247, widgets/headline/headline.php:256, widgets/icon/icon.php:49, widgets/image/image.php:49, widgets/image/image.php:61, widgets/image-grid/image-grid.php:142, widgets/image-grid/image-grid.php:164, widgets/simple-masonry/simple-masonry.php:215, widgets/social-media-buttons/social-media-buttons.php:175, widgets/social-media-buttons/social-media-buttons.php:186, widgets/testimonial/testimonial.php:255
428
  msgid "Left"
429
  msgstr ""
430
 
468
  msgid "SiteOrigin Button"
469
  msgstr ""
470
 
471
+ #: widgets/button/button.php:33, widgets/contact/contact.php:801, widgets/features/features.php:346, widgets/headline/headline.php:37, widgets/social-media-buttons/social-media-buttons.php:33, base/inc/widgets/base-slider.class.php:222
472
  msgid "Responsive Breakpoint"
473
  msgstr ""
474
 
484
  msgid "Destination URL"
485
  msgstr ""
486
 
487
+ #: widgets/button/button.php:69, widgets/google-map/google-map.php:114, widgets/headline/headline.php:62, widgets/headline/headline.php:143, widgets/icon/icon.php:63, widgets/simple-masonry/simple-masonry.php:94, widgets/social-media-buttons/social-media-buttons.php:113, widgets/taxonomy/taxonomy.php:65, widgets/testimonial/testimonial.php:94
488
  msgid "Open in a new window"
489
  msgstr ""
490
 
528
  msgid "Leave blank to let the button resize according to content."
529
  msgstr ""
530
 
531
+ #: widgets/button/button.php:127, widgets/contact/contact.php:422, widgets/contact/contact.php:651, widgets/social-media-buttons/social-media-buttons.php:172
532
  msgid "Align"
533
  msgstr ""
534
 
535
+ #: widgets/button/button.php:132, widgets/button/button.php:143, widgets/contact/contact.php:427, widgets/contact/contact.php:656, widgets/headline/headline.php:100, widgets/headline/headline.php:110, widgets/headline/headline.php:181, widgets/headline/headline.php:191, widgets/headline/headline.php:246, widgets/headline/headline.php:255, widgets/icon/icon.php:48, widgets/image/image.php:51, widgets/image/image.php:63, widgets/image-grid/image-grid.php:154, widgets/image-grid/image-grid.php:165, widgets/social-media-buttons/social-media-buttons.php:177, widgets/social-media-buttons/social-media-buttons.php:188
536
  msgid "Center"
537
  msgstr ""
538
 
539
+ #: widgets/button/button.php:133, widgets/button/button.php:144, widgets/contact/contact.php:428, widgets/headline/headline.php:103, widgets/headline/headline.php:113, widgets/headline/headline.php:184, widgets/headline/headline.php:194, widgets/social-media-buttons/social-media-buttons.php:178, widgets/social-media-buttons/social-media-buttons.php:189
540
  msgid "Justify"
541
  msgstr ""
542
 
544
  msgid "Mobile align"
545
  msgstr ""
546
 
547
+ #: widgets/button/button.php:149, widgets/social-media-buttons/social-media-buttons.php:118
548
  msgid "Button theme"
549
  msgstr ""
550
 
551
+ #: widgets/button/button.php:152, widgets/price-table/price-table.php:134, widgets/social-media-buttons/social-media-buttons.php:121
552
  msgid "Atom"
553
  msgstr ""
554
 
555
+ #: widgets/button/button.php:153, widgets/social-media-buttons/social-media-buttons.php:122
556
  msgid "Flat"
557
  msgstr ""
558
 
559
+ #: widgets/button/button.php:154, widgets/social-media-buttons/social-media-buttons.php:123
560
  msgid "Wire"
561
  msgstr ""
562
 
568
  msgid "Text color"
569
  msgstr ""
570
 
571
+ #: widgets/button/button.php:172, widgets/social-media-buttons/social-media-buttons.php:128
572
  msgid "Use hover effects"
573
  msgstr ""
574
 
580
  msgid "Hover text color"
581
  msgstr ""
582
 
583
+ #: widgets/button/button.php:211, widgets/contact/contact.php:299, widgets/contact/contact.php:533, widgets/contact/contact.php:635, widgets/social-media-buttons/social-media-buttons.php:142
584
  msgid "Normal"
585
  msgstr ""
586
 
587
+ #: widgets/button/button.php:212, widgets/button/button.php:236, widgets/social-media-buttons/social-media-buttons.php:143, widgets/social-media-buttons/social-media-buttons.php:165, widgets/social-media-buttons/social-media-buttons.php:198, base/inc/widgets/base-slider.class.php:113
588
  msgid "Medium"
589
  msgstr ""
590
 
591
+ #: widgets/button/button.php:213, widgets/social-media-buttons/social-media-buttons.php:144
592
  msgid "Large"
593
  msgstr ""
594
 
595
+ #: widgets/button/button.php:214, widgets/social-media-buttons/social-media-buttons.php:145
596
  msgid "Extra large"
597
  msgstr ""
598
 
599
+ #: widgets/button/button.php:220, widgets/social-media-buttons/social-media-buttons.php:150
600
  msgid "Rounding"
601
  msgstr ""
602
 
603
+ #: widgets/button/button.php:223, widgets/contact/contact.php:369, widgets/contact/contact.php:491, widgets/contact/contact.php:602, widgets/contact/contact.php:687, widgets/google-map/google-map.php:158, widgets/headline/headline.php:218, widgets/social-media-buttons/social-media-buttons.php:153
604
  msgid "None"
605
  msgstr ""
606
 
607
+ #: widgets/button/button.php:224, widgets/social-media-buttons/social-media-buttons.php:154
608
  msgid "Slightly rounded"
609
  msgstr ""
610
 
611
+ #: widgets/button/button.php:225, widgets/social-media-buttons/social-media-buttons.php:155
612
  msgid "Very rounded"
613
  msgstr ""
614
 
615
+ #: widgets/button/button.php:226, widgets/social-media-buttons/social-media-buttons.php:156
616
  msgid "Completely rounded"
617
  msgstr ""
618
 
619
+ #: widgets/button/button.php:232, widgets/contact/contact.php:351, widgets/contact/contact.php:457, widgets/contact/contact.php:642, widgets/social-media-buttons/social-media-buttons.php:161, widgets/testimonial/testimonial.php:235
620
  msgid "Padding"
621
  msgstr ""
622
 
623
+ #: widgets/button/button.php:235, widgets/social-media-buttons/social-media-buttons.php:164, widgets/social-media-buttons/social-media-buttons.php:197
624
  msgid "Low"
625
  msgstr ""
626
 
627
+ #: widgets/button/button.php:237, widgets/social-media-buttons/social-media-buttons.php:166, widgets/social-media-buttons/social-media-buttons.php:199
628
  msgid "High"
629
  msgstr ""
630
 
631
+ #: widgets/button/button.php:238, widgets/social-media-buttons/social-media-buttons.php:167, widgets/social-media-buttons/social-media-buttons.php:200
632
  msgid "Very high"
633
  msgstr ""
634
 
840
  msgid "Required Field"
841
  msgstr ""
842
 
843
+ #: widgets/contact/contact.php:183, widgets/contact/contact.php:190, widgets/contact/contact.php:1080
844
  msgid "Required field"
845
  msgstr ""
846
 
1136
  msgid "Please write something"
1137
  msgstr ""
1138
 
1139
+ #: widgets/contact/contact.php:803
1140
  msgid "This setting controls when the field max width will be disabled. The default value is 780px"
1141
  msgstr ""
1142
 
1143
+ #: widgets/contact/contact.php:1092
1144
  msgid "Invalid email address."
1145
  msgstr ""
1146
 
1147
+ #: widgets/contact/contact.php:1117
1148
  msgid "Invalid phone number. It should contain at least three digits."
1149
  msgstr ""
1150
 
1151
+ #: widgets/contact/contact.php:1128
1152
  msgid "Invalid number."
1153
  msgstr ""
1154
 
1155
+ #: widgets/contact/contact.php:1194
1156
  msgid "Error sending email, please try again later."
1157
  msgstr ""
1158
 
1159
+ #: widgets/contact/contact.php:1220
1160
  msgid "A valid email is required"
1161
  msgstr ""
1162
 
1163
+ #: widgets/contact/contact.php:1222
1164
  msgid "The email address is invalid"
1165
  msgstr ""
1166
 
1167
+ #: widgets/contact/contact.php:1226
1168
  msgid "Missing subject"
1169
  msgstr ""
1170
 
1171
+ #: widgets/contact/contact.php:1260
1172
  msgid "Error validating your Captcha response."
1173
  msgstr ""
1174
 
1175
+ #: widgets/contact/contact.php:1292
1176
  msgid "Unfortunately our system identified your message as spam."
1177
  msgstr ""
1178
 
1179
+ #: widgets/contact/contact.php:1300
1180
  msgctxt "The name of who sent this email"
1181
  msgid "From"
1182
  msgstr ""
1183
 
1184
+ #: widgets/contact/contact.php:1400
1185
  msgid "Add a form autoresponder and additional fields, including a date and time picker with %sSiteOrigin Premium%s"
1186
  msgstr ""
1187
 
1188
+ #: widgets/contact/contact.php:1405
1189
  msgid "Use Google Fonts right inside the Contact Form Widget with %sSiteOrigin Premium%s"
1190
  msgstr ""
1191
 
1192
  #: widgets/cta/cta.php:4, widgets/cta/cta.php:18
1193
+ msgid "Insert a title, subtitle, and button. Get visitors moving in the right direction."
1194
  msgstr ""
1195
 
1196
  #: widgets/cta/cta.php:16
1197
+ msgid "SiteOrigin Call To Action"
1198
  msgstr ""
1199
 
1200
  #: widgets/cta/cta.php:69, widgets/price-table/price-table.php:65
1201
  msgid "Subtitle"
1202
  msgstr ""
1203
 
1204
+ #: widgets/cta/cta.php:92
 
 
 
 
1205
  msgid "Subtitle color"
1206
  msgstr ""
1207
 
1208
+ #: widgets/cta/cta.php:96
1209
  msgid "Button align"
1210
  msgstr ""
1211
 
1212
+ #: widgets/cta/cta.php:109, widgets/google-map/google-map.php:498, widgets/hero/hero.php:79, widgets/hero/hero.php:91
1213
  msgid "Button"
1214
  msgstr ""
1215
 
1216
+ #: widgets/cta/cta.php:137
1217
  msgid "Get more font customization options with %sSiteOrigin Premium%s"
1218
  msgstr ""
1219
 
1301
  msgid "Icon container size"
1302
  msgstr ""
1303
 
1304
+ #: widgets/features/features.php:218, widgets/social-media-buttons/social-media-buttons.php:140
1305
  msgid "Icon size"
1306
  msgstr ""
1307
 
2584
  msgid "Select network"
2585
  msgstr ""
2586
 
2587
+ #: widgets/social-media-buttons/social-media-buttons.php:90
2588
+ msgid "Icon hover color"
2589
+ msgstr ""
2590
+
2591
+ #: widgets/social-media-buttons/social-media-buttons.php:108
2592
  msgid "Design and Layout"
2593
  msgstr ""
2594
 
2595
+ #: widgets/social-media-buttons/social-media-buttons.php:183
2596
  msgid "Mobile Align"
2597
  msgstr ""
2598
 
2599
+ #: widgets/social-media-buttons/social-media-buttons.php:362
2600
  msgid "Add custom social networks with %sSiteOrigin Premium%s"
2601
  msgstr ""
2602
 
3381
  msgid "This setting controls when the Slider will switch to the responsive mode. This breakpoint will only be used if always show navigation on mobile is enabled. The default value is 780px."
3382
  msgstr ""
3383
 
3384
+ #: base/inc/widgets/base-slider.class.php:248
3385
  msgid "Unmute slide"
3386
  msgstr ""
3387
 
3388
+ #: base/inc/widgets/base-slider.class.php:249
3389
  msgid "Mute slide"
3390
  msgstr ""
3391
 
3392
+ #: base/inc/widgets/base-slider.class.php:259
3393
  msgid "Loop slide background videos"
3394
  msgstr ""
3395
 
3396
+ #: base/inc/widgets/base-slider.class.php:263
3397
  msgid "Background video opacity"
3398
  msgstr ""
3399
 
3400
+ #: base/inc/widgets/base-slider.class.php:404
3401
  msgid "display slide %s"
3402
  msgstr ""
3403
 
3404
+ #: base/inc/widgets/base-slider.class.php:409
3405
  msgid "next slide"
3406
  msgstr ""
3407
 
3408
+ #: base/inc/widgets/base-slider.class.php:415
3409
  msgid "previous slide"
3410
  msgstr ""
3411
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Tags: widget, button, slider, hero, google maps, image, carousel, features, icon
3
  Requires at least: 4.2
4
  Tested up to: 5.9
5
  Requires PHP: 5.6.20
6
- Stable tag: 1.29.2
7
- Build time: 2022-02-04T19:11:41+02:00
8
  License: GPLv3 or later
9
  Contributors: gpriday, braam-genis, alexgso
10
  Donate link: https://siteorigin.com/downloads/premium/
@@ -100,6 +100,11 @@ The Widgets Bundle global interface is available at Plugins > SiteOrigin Widgets
100
 
101
  == Changelog ==
102
 
 
 
 
 
 
103
  = 1.29.2 - 04 February 2022 =
104
  * Widgets Block: Excluded the Contact Form from caching. Resolves error on first submission.
105
 
3
  Requires at least: 4.2
4
  Tested up to: 5.9
5
  Requires PHP: 5.6.20
6
+ Stable tag: 1.30.0
7
+ Build time: 2022-02-14T16:18:21+02:00
8
  License: GPLv3 or later
9
  Contributors: gpriday, braam-genis, alexgso
10
  Donate link: https://siteorigin.com/downloads/premium/
100
 
101
  == Changelog ==
102
 
103
+ = 1.30.0 - 14 February 2022 =
104
+ * Button and Contact Form: Migrated `onclick` to `on_click` to avoid a Worfence flag.
105
+ * Call To Action: Remove `Use default background colors` setting.
106
+ * Social Media Buttons: Added new settings: `Icon color hover` and `Background color hover`.
107
+
108
  = 1.29.2 - 04 February 2022 =
109
  * Widgets Block: Excluded the Contact Form from caching. Resolves error on first submission.
110
 
so-widgets-bundle.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: SiteOrigin Widgets Bundle
4
  Description: A highly customizable collection of widgets, ready to be used anywhere, neatly bundled into a single plugin.
5
- Version: 1.29.2
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.29.2' );
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 highly customizable collection of widgets, ready to be used anywhere, neatly bundled into a single plugin.
5
+ Version: 1.30.0
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.30.0' );
16
  define( 'SOW_BUNDLE_BASE_FILE', __FILE__ );
17
 
18
  // Allow JS suffix to be pre-set.
widgets/button/button.php CHANGED
@@ -265,7 +265,7 @@ class SiteOrigin_Widget_Button_Widget extends SiteOrigin_Widget {
265
  'description' => __( 'Adds a title attribute to the button link.', 'so-widgets-bundle' ),
266
  ),
267
 
268
- 'onclick' => array(
269
  'type' => 'text',
270
  'label' => __( 'Onclick', 'so-widgets-bundle' ),
271
  'description' => __( 'Run this Javascript when the button is clicked. Ideal for tracking.', 'so-widgets-bundle' ),
@@ -349,7 +349,7 @@ class SiteOrigin_Widget_Button_Widget extends SiteOrigin_Widget {
349
  return array(
350
  'button_attributes' => $button_attributes,
351
  'href' => ! empty( $instance['url'] ) ? $instance['url'] : '#',
352
- 'onclick' => ! empty( $attributes['onclick'] ) ? $attributes['onclick'] : '',
353
  'align' => $instance['design']['align'],
354
  'icon_image_url' => $icon_image_url,
355
  'icon' => $instance['button_icon']['icon_selected'],
@@ -444,6 +444,14 @@ class SiteOrigin_Widget_Button_Widget extends SiteOrigin_Widget {
444
  }
445
  }
446
 
 
 
 
 
 
 
 
 
447
  // If the mobile_align setting isn't set, set it to the same value as the align value.
448
  if (
449
  ! empty( $instance['design'] ) &&
265
  'description' => __( 'Adds a title attribute to the button link.', 'so-widgets-bundle' ),
266
  ),
267
 
268
+ 'on_click' => array(
269
  'type' => 'text',
270
  'label' => __( 'Onclick', 'so-widgets-bundle' ),
271
  'description' => __( 'Run this Javascript when the button is clicked. Ideal for tracking.', 'so-widgets-bundle' ),
349
  return array(
350
  'button_attributes' => $button_attributes,
351
  'href' => ! empty( $instance['url'] ) ? $instance['url'] : '#',
352
+ 'on_click' => ! empty( $attributes['on_click'] ) ? $attributes['on_click'] : '',
353
  'align' => $instance['design']['align'],
354
  'icon_image_url' => $icon_image_url,
355
  'icon' => $instance['button_icon']['icon_selected'],
444
  }
445
  }
446
 
447
+ // Migrate onclick setting to prevent Wordfence flag.
448
+ if (
449
+ ! empty( $instance['attributes'] ) &&
450
+ ! empty( $instance['attributes']['onclick'] )
451
+ ) {
452
+ $instance['attributes']['on_click'] = $instance['attributes']['onclick'];
453
+ }
454
+
455
  // If the mobile_align setting isn't set, set it to the same value as the align value.
456
  if (
457
  ! empty( $instance['design'] ) &&
widgets/button/tpl/default.php CHANGED
@@ -13,7 +13,7 @@
13
  ?>
14
  <div class="ow-button-base ow-button-align-<?php echo esc_attr( $align ) ?>">
15
  <a href="<?php echo sow_esc_url( do_shortcode( $href ) ) ?>" <?php foreach( $button_attributes as $name => $val ) echo $name . '="' . esc_attr( $val ) . '" ' ?>
16
- <?php if ( ! empty( $onclick ) ) echo 'onclick="' . wp_unslash( esc_js( $onclick ) ) . '"'; ?>>
17
  <span>
18
  <?php
19
  if( ! empty( $icon_image_url ) ) {
13
  ?>
14
  <div class="ow-button-base ow-button-align-<?php echo esc_attr( $align ) ?>">
15
  <a href="<?php echo sow_esc_url( do_shortcode( $href ) ) ?>" <?php foreach( $button_attributes as $name => $val ) echo $name . '="' . esc_attr( $val ) . '" ' ?>
16
+ <?php if ( ! empty( $on_click ) ) echo 'onclick="' . wp_unslash( esc_js( $on_click ) ) . '"'; ?>>
17
  <span>
18
  <?php
19
  if( ! empty( $icon_image_url ) ) {
widgets/contact/contact.php CHANGED
@@ -97,7 +97,7 @@ class SiteOrigin_Widgets_ContactForm_Widget extends SiteOrigin_Widget {
97
  'label' => __( 'Button ID', 'so-widgets-bundle' ),
98
  'description' => __( 'An ID attribute allows you to target this button in JavaScript.', 'so-widgets-bundle' ),
99
  ),
100
- 'onclick' => array(
101
  'type' => 'text',
102
  'label' => __( 'Onclick', 'so-widgets-bundle' ),
103
  'description' => __( 'Run this JavaScript when the button is clicked. Ideal for tracking.', 'so-widgets-bundle' ),
@@ -761,6 +761,14 @@ class SiteOrigin_Widgets_ContactForm_Widget extends SiteOrigin_Widget {
761
  );
762
  }
763
 
 
 
 
 
 
 
 
 
764
  return $instance;
765
  }
766
 
@@ -782,7 +790,7 @@ class SiteOrigin_Widgets_ContactForm_Widget extends SiteOrigin_Widget {
782
  return array(
783
  'instance_hash' => $instance_hash,
784
  'submit_attributes' => $submit_attributes,
785
- 'onclick' => ! empty( $instance['settings']['onclick'] ) ? $instance['settings']['onclick'] : '',
786
  );
787
  }
788
 
97
  'label' => __( 'Button ID', 'so-widgets-bundle' ),
98
  'description' => __( 'An ID attribute allows you to target this button in JavaScript.', 'so-widgets-bundle' ),
99
  ),
100
+ 'on_click' => array(
101
  'type' => 'text',
102
  'label' => __( 'Onclick', 'so-widgets-bundle' ),
103
  'description' => __( 'Run this JavaScript when the button is clicked. Ideal for tracking.', 'so-widgets-bundle' ),
761
  );
762
  }
763
 
764
+ // Migrate onclick setting to prevent Wordfence flag.
765
+ if (
766
+ ! empty( $instance['settings'] ) &&
767
+ ! empty( $instance['settings']['onclick'] )
768
+ ) {
769
+ $instance['settings']['on_click'] = $instance['settings']['onclick'];
770
+ }
771
+
772
  return $instance;
773
  }
774
 
790
  return array(
791
  'instance_hash' => $instance_hash,
792
  'submit_attributes' => $submit_attributes,
793
+ 'onclick' => ! empty( $instance['settings']['on_click'] ) ? $instance['settings']['on_click'] : '',
794
  );
795
  }
796
 
widgets/cta/cta.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
- Widget Name: Call-To-Action
4
- Description: A simple call-to-action widget. You can do what ever you want with a call-to-action widget.
5
  Author: SiteOrigin
6
  Author URI: https://siteorigin.com
7
  Documentation: https://siteorigin.com/widgets-bundle/call-action-widget/
@@ -13,32 +13,32 @@ class SiteOrigin_Widget_Cta_Widget extends SiteOrigin_Widget {
13
 
14
  parent::__construct(
15
  'sow-cta',
16
- __('SiteOrigin Call-to-action', 'so-widgets-bundle'),
17
  array(
18
- 'description' => __('A simple call-to-action widget. You can do what ever you want with a call-to-action widget.', 'so-widgets-bundle'),
19
  'help' => 'https://siteorigin.com/widgets-bundle/call-action-widget/'
20
  ),
21
  array(
22
 
23
  ),
24
  false ,
25
- plugin_dir_path(__FILE__)
26
  );
27
  }
28
 
29
  /**
30
- * Initialize the CTA widget
31
  */
32
- function initialize(){
33
- // This widget requires the button widget
34
- if( !class_exists('SiteOrigin_Widget_Button_Widget') ) {
35
  SiteOrigin_Widgets_Bundle::single()->include_widget( 'button' );
36
  }
37
  $this->register_frontend_styles(
38
  array(
39
  array(
40
  'sow-cta-main',
41
- plugin_dir_url(__FILE__) . 'css/style.css',
42
  array(),
43
  SOW_BUNDLE_VERSION
44
  )
@@ -48,7 +48,7 @@ class SiteOrigin_Widget_Cta_Widget extends SiteOrigin_Widget {
48
  array(
49
  array(
50
  'sow-cta-main',
51
- plugin_dir_url(__FILE__) . 'js/cta' . SOW_BUNDLE_JS_SUFFIX . '.js',
52
  array( 'jquery' ),
53
  SOW_BUNDLE_VERSION
54
  )
@@ -56,51 +56,48 @@ class SiteOrigin_Widget_Cta_Widget extends SiteOrigin_Widget {
56
  );
57
  }
58
 
59
- function get_widget_form(){
60
  return array(
61
 
62
  'title' => array(
63
  'type' => 'text',
64
- 'label' => __('Title', 'so-widgets-bundle'),
65
  ),
66
 
67
  'sub_title' => array(
68
  'type' => 'text',
69
- 'label' => __('Subtitle', 'so-widgets-bundle')
70
  ),
71
 
72
  'design' => array(
73
  'type' => 'section',
74
- 'label' => __('Design', 'so-widgets-bundle'),
75
  'fields' => array(
76
  'background_color' => array(
77
  'type' => 'color',
78
- 'label' => __('Background color', 'so-widgets-bundle'),
 
79
  ),
80
  'border_color' => array(
81
  'type' => 'color',
82
- 'label' => __('Border color', 'so-widgets-bundle'),
83
- ),
84
- 'use_default_background' => array(
85
- 'type' => 'checkbox',
86
- 'label' => __( 'Use default background colors', 'so-widgets-bundle' ),
87
- 'default' => true,
88
  ),
89
  'title_color' => array(
90
  'type' => 'color',
91
- 'label' => __('Title color', 'so-widgets-bundle'),
92
  ),
93
  'subtitle_color' => array(
94
  'type' => 'color',
95
- 'label' => __('Subtitle color', 'so-widgets-bundle'),
96
  ),
97
  'button_align' => array(
98
  'type' => 'select',
99
  'label' => __( 'Button align', 'so-widgets-bundle' ),
100
  'default' => 'right',
101
  'options' => array(
102
- 'left' => __( 'Left', 'so-widgets-bundle'),
103
- 'right' => __( 'Right', 'so-widgets-bundle'),
104
  )
105
  )
106
  )
@@ -109,13 +106,13 @@ class SiteOrigin_Widget_Cta_Widget extends SiteOrigin_Widget {
109
  'button' => array(
110
  'type' => 'widget',
111
  'class' => 'SiteOrigin_Widget_Button_Widget',
112
- 'label' => __('Button', 'so-widgets-bundle'),
113
  ),
114
 
115
  );
116
  }
117
 
118
- function get_less_variables($instance) {
119
  if ( empty( $instance ) || empty( $instance['design'] ) ) {
120
  return array();
121
  }
@@ -129,30 +126,13 @@ class SiteOrigin_Widget_Cta_Widget extends SiteOrigin_Widget {
129
  );
130
  }
131
 
132
- function modify_child_widget_form($child_widget_form, $child_widget) {
133
  unset( $child_widget_form['design']['fields']['align'] );
134
  return $child_widget_form;
135
  }
136
-
137
- function modify_instance( $instance ) {
138
- if ( ! isset( $instance['design']['use_default_background'] ) ) {
139
- $instance['design']['use_default_background'] = true;
140
- }
141
-
142
- if ( ! empty( $instance['design']['use_default_background'] ) ) {
143
- if ( empty( $instance['design']['background_color'] ) ) {
144
- $instance['design']['background_color'] = '#F8F8F8';
145
- }
146
- if ( empty( $instance['design']['border_color'] ) ) {
147
- $instance['design']['border_color'] = '#E3E3E3';
148
- }
149
- }
150
-
151
- return $instance;
152
- }
153
 
154
- function get_form_teaser(){
155
- if( class_exists( 'SiteOrigin_Premium' ) ) return false;
156
  return sprintf(
157
  __( 'Get more font customization options with %sSiteOrigin Premium%s', 'so-widgets-bundle' ),
158
  '<a href="https://siteorigin.com/downloads/premium/?featured_addon=plugin/cta" target="_blank" rel="noopener noreferrer">',
1
  <?php
2
  /*
3
+ Widget Name: Call To Action
4
+ Description: Insert a title, subtitle, and button. Get visitors moving in the right direction.
5
  Author: SiteOrigin
6
  Author URI: https://siteorigin.com
7
  Documentation: https://siteorigin.com/widgets-bundle/call-action-widget/
13
 
14
  parent::__construct(
15
  'sow-cta',
16
+ __( 'SiteOrigin Call To Action', 'so-widgets-bundle' ),
17
  array(
18
+ 'description' => __( 'Insert a title, subtitle, and button. Get visitors moving in the right direction.', 'so-widgets-bundle' ),
19
  'help' => 'https://siteorigin.com/widgets-bundle/call-action-widget/'
20
  ),
21
  array(
22
 
23
  ),
24
  false ,
25
+ plugin_dir_path( __FILE__ )
26
  );
27
  }
28
 
29
  /**
30
+ * Initialize the CTA Widget.
31
  */
32
+ function initialize() {
33
+ // This widget requires the Button Widget.
34
+ if ( ! class_exists( 'SiteOrigin_Widget_Button_Widget' ) ) {
35
  SiteOrigin_Widgets_Bundle::single()->include_widget( 'button' );
36
  }
37
  $this->register_frontend_styles(
38
  array(
39
  array(
40
  'sow-cta-main',
41
+ plugin_dir_url( __FILE__ ) . 'css/style.css',
42
  array(),
43
  SOW_BUNDLE_VERSION
44
  )
48
  array(
49
  array(
50
  'sow-cta-main',
51
+ plugin_dir_url( __FILE__ ) . 'js/cta' . SOW_BUNDLE_JS_SUFFIX . '.js',
52
  array( 'jquery' ),
53
  SOW_BUNDLE_VERSION
54
  )
56
  );
57
  }
58
 
59
+ function get_widget_form() {
60
  return array(
61
 
62
  'title' => array(
63
  'type' => 'text',
64
+ 'label' => __( 'Title', 'so-widgets-bundle' ),
65
  ),
66
 
67
  'sub_title' => array(
68
  'type' => 'text',
69
+ 'label' => __( 'Subtitle', 'so-widgets-bundle' )
70
  ),
71
 
72
  'design' => array(
73
  'type' => 'section',
74
+ 'label' => __( 'Design', 'so-widgets-bundle' ),
75
  'fields' => array(
76
  'background_color' => array(
77
  'type' => 'color',
78
+ 'label' => __( 'Background color', 'so-widgets-bundle' ),
79
+ 'default' => '#F8F8F8'
80
  ),
81
  'border_color' => array(
82
  'type' => 'color',
83
+ 'label' => __( 'Border color', 'so-widgets-bundle' ),
84
+ 'default' => '#E3E3E3',
 
 
 
 
85
  ),
86
  'title_color' => array(
87
  'type' => 'color',
88
+ 'label' => __( 'Title color', 'so-widgets-bundle' ),
89
  ),
90
  'subtitle_color' => array(
91
  'type' => 'color',
92
+ 'label' => __( 'Subtitle color', 'so-widgets-bundle' ),
93
  ),
94
  'button_align' => array(
95
  'type' => 'select',
96
  'label' => __( 'Button align', 'so-widgets-bundle' ),
97
  'default' => 'right',
98
  'options' => array(
99
+ 'left' => __( 'Left', 'so-widgets-bundle' ),
100
+ 'right' => __( 'Right', 'so-widgets-bundle' ),
101
  )
102
  )
103
  )
106
  'button' => array(
107
  'type' => 'widget',
108
  'class' => 'SiteOrigin_Widget_Button_Widget',
109
+ 'label' => __( 'Button', 'so-widgets-bundle' ),
110
  ),
111
 
112
  );
113
  }
114
 
115
+ function get_less_variables( $instance ) {
116
  if ( empty( $instance ) || empty( $instance['design'] ) ) {
117
  return array();
118
  }
126
  );
127
  }
128
 
129
+ function modify_child_widget_form( $child_widget_form, $child_widget ) {
130
  unset( $child_widget_form['design']['fields']['align'] );
131
  return $child_widget_form;
132
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
133
 
134
+ function get_form_teaser() {
135
+ if ( class_exists( 'SiteOrigin_Premium' ) ) return false;
136
  return sprintf(
137
  __( 'Get more font customization options with %sSiteOrigin Premium%s', 'so-widgets-bundle' ),
138
  '<a href="https://siteorigin.com/downloads/premium/?featured_addon=plugin/cta" target="_blank" rel="noopener noreferrer">',
widgets/social-media-buttons/social-media-buttons.php CHANGED
@@ -84,7 +84,23 @@ class SiteOrigin_Widget_SocialMediaButtons_Widget extends SiteOrigin_Widget {
84
  'button_color' => array(
85
  'type' => 'color',
86
  'label' => __( 'Background color', 'so-widgets-bundle' )
87
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
88
  )
89
  ),
90
  'design' => array(
@@ -110,7 +126,14 @@ class SiteOrigin_Widget_SocialMediaButtons_Widget extends SiteOrigin_Widget {
110
  'hover' => array(
111
  'type' => 'checkbox',
112
  'label' => __( 'Use hover effects', 'so-widgets-bundle' ),
113
- 'default' => true
 
 
 
 
 
 
 
114
  ),
115
  'icon_size' => array(
116
  'type' => 'select',
@@ -267,9 +290,13 @@ class SiteOrigin_Widget_SocialMediaButtons_Widget extends SiteOrigin_Widget {
267
  $calls = array();
268
  foreach ( $networks as $network ) {
269
  if ( ! empty( $network['name'] ) ) {
 
 
270
  $call = $args[0] . '( @name:' . $network['css_class_name'];
271
  $call .= ! empty( $network['icon_color'] ) ? ', @icon_color:' . $network['icon_color'] : '';
272
  $call .= ! empty( $network['button_color'] ) ? ', @button_color:' . $network['button_color'] : '';
 
 
273
  $call .= ');';
274
  $calls[] = $call;
275
  }
84
  'button_color' => array(
85
  'type' => 'color',
86
  'label' => __( 'Background color', 'so-widgets-bundle' )
87
+ ),
88
+ 'icon_color_hover' => array(
89
+ 'type' => 'color',
90
+ 'label' => __( 'Icon hover color', 'so-widgets-bundle' ),
91
+ 'state_handler' => array(
92
+ 'hover_effects[enabled]' => array( 'show' ),
93
+ 'hover_effects[disabled]' => array( 'hide' ),
94
+ ),
95
+ ),
96
+ 'button_color_hover' => array(
97
+ 'type' => 'color',
98
+ 'label' => __( 'Background hover color', 'so-widgets-bundle' ),
99
+ 'state_handler' => array(
100
+ 'hover_effects[enabled]' => array( 'show' ),
101
+ 'hover_effects[disabled]' => array( 'hide' ),
102
+ ),
103
+ ),
104
  )
105
  ),
106
  'design' => array(
126
  'hover' => array(
127
  'type' => 'checkbox',
128
  'label' => __( 'Use hover effects', 'so-widgets-bundle' ),
129
+ 'default' => true,
130
+ 'state_emitter' => array(
131
+ 'callback' => 'conditional',
132
+ 'args' => array(
133
+ 'hover_effects[enabled]: val',
134
+ 'hover_effects[disabled]: ! val',
135
+ ),
136
+ ),
137
  ),
138
  'icon_size' => array(
139
  'type' => 'select',
290
  $calls = array();
291
  foreach ( $networks as $network ) {
292
  if ( ! empty( $network['name'] ) ) {
293
+ $icon_color_hover_fallback = ! empty( $network['icon_color'] ) ? ', @icon_color_hover:' . $network['icon_color'] : '';
294
+ $button_color_hover_fallback = ! empty( $network['button_color'] ) ? ', @button_color_hover:' . $network['button_color'] : '';
295
  $call = $args[0] . '( @name:' . $network['css_class_name'];
296
  $call .= ! empty( $network['icon_color'] ) ? ', @icon_color:' . $network['icon_color'] : '';
297
  $call .= ! empty( $network['button_color'] ) ? ', @button_color:' . $network['button_color'] : '';
298
+ $call .= ! empty( $network['icon_color_hover'] ) ? ', @icon_color_hover:' . $network['icon_color_hover'] : $icon_color_hover_fallback;
299
+ $call .= ! empty( $network['button_color_hover'] ) ? ', @button_color_hover:' . $network['button_color_hover'] : $button_color_hover_fallback;
300
  $call .= ');';
301
  $calls[] = $call;
302
  }
widgets/social-media-buttons/styles/atom.less CHANGED
@@ -7,7 +7,7 @@
7
  .social-media-button-base();
8
  }
9
 
10
- .create_social_media_button_style(@name, @icon_color:'', @button_color:'') {
11
 
12
  .sow-social-media-button-@{name} {
13
  border: 1px solid;
@@ -20,8 +20,9 @@
20
  .gradient(@button_color, darken(@button_color, 10%), @button_color);
21
 
22
  &.ow-button-hover:hover {
23
- border-color: lighten(lighten(@border_color, 2%), 2%) lighten(@border_color, 2%) darken(lighten(@border_color, 2%), 3%) lighten(@border_color, 2%);
24
- .gradient(lighten(@button_color, 2%), lighten(darken(@button_color, 10%), 2%), lighten(@button_color, 2%));
 
25
  }
26
  }
27
 
@@ -33,8 +34,18 @@
33
  color: @icon_color !important;
34
  }
35
 
36
- &.ow-button-hover:hover {
37
- color: lighten(@icon_color, 2%);
 
 
 
 
 
 
 
 
 
 
38
  }
39
  }
40
  }
7
  .social-media-button-base();
8
  }
9
 
10
+ .create_social_media_button_style( @name, @icon_color:'', @button_color:'', @icon_color_hover: '', @button_color_hover: '' ) {
11
 
12
  .sow-social-media-button-@{name} {
13
  border: 1px solid;
20
  .gradient(@button_color, darken(@button_color, 10%), @button_color);
21
 
22
  &.ow-button-hover:hover {
23
+ @border_color_hover: darken( @button_color_hover, 15% );
24
+ .gradient( lighten( @button_color_hover, 2% ), lighten( darken( @button_color_hover, 10% ), 2% ), lighten( @button_color_hover, 2% ) );
25
+ border-color: lighten( lighten( @border_color_hover, 2%), 2%) lighten( @border_color_hover, 2% ) darken( lighten( @border_color_hover, 2% ), 3% ) lighten( @border_color_hover, 2% );
26
  }
27
  }
28
 
34
  color: @icon_color !important;
35
  }
36
 
37
+ &.ow-button-hover {
38
+ &:visited,
39
+ &:active,
40
+ &:hover {
41
+ & when not( iscolor( @icon_color_hover ) ) {
42
+ color: lighten( @icon_color, 2% ) !important;
43
+ }
44
+
45
+ & when( iscolor( @icon_color_hover ) ) {
46
+ color: @icon_color_hover !important;
47
+ }
48
+ }
49
  }
50
  }
51
  }
widgets/social-media-buttons/styles/flat.less CHANGED
@@ -7,7 +7,7 @@
7
  .social-media-button-base();
8
  }
9
 
10
- .create_social_media_button_style(@name, @icon_color:'', @button_color:'') {
11
 
12
  .sow-social-media-button-@{name} {
13
 
@@ -16,8 +16,14 @@
16
 
17
  &:visited,
18
  &:active,
19
- &:hover{
20
- color: @icon_color !important;
 
 
 
 
 
 
21
  }
22
 
23
  &.ow-button-hover:hover {
@@ -30,8 +36,15 @@
30
  border: 1px solid @button_color;
31
 
32
  &.ow-button-hover:hover {
33
- background: lighten(@button_color, 4%);
34
- border-bottom-color: lighten(@button_color, 4%);
 
 
 
 
 
 
 
35
  }
36
  }
37
  }
7
  .social-media-button-base();
8
  }
9
 
10
+ .create_social_media_button_style( @name, @icon_color:'', @button_color:'', @icon_color_hover: '', @button_color_hover: '' ) {
11
 
12
  .sow-social-media-button-@{name} {
13
 
16
 
17
  &:visited,
18
  &:active,
19
+ &:hover {
20
+ & when not( iscolor( @icon_color_hover ) ) {
21
+ color: @icon_color !important;
22
+ }
23
+
24
+ & when( iscolor( @icon_color_hover ) ) {
25
+ color: @icon_color_hover !important;
26
+ }
27
  }
28
 
29
  &.ow-button-hover:hover {
36
  border: 1px solid @button_color;
37
 
38
  &.ow-button-hover:hover {
39
+ & when not( iscolor( @button_color_hover ) ) {
40
+ background-color: lighten( @button_color, 4% );
41
+ border-bottom-color: lighten( @button_color, 4% );
42
+ }
43
+
44
+ & when( iscolor( @button_color_hover ) ) {
45
+ background-color: @button_color_hover;
46
+ border-color: @button_color_hover;
47
+ }
48
  }
49
  }
50
  }
widgets/social-media-buttons/styles/wire.less CHANGED
@@ -7,7 +7,7 @@
7
  .social-media-button-base();
8
  }
9
 
10
- .create_social_media_button_style(@name, @icon_color:'', @button_color:'') {
11
 
12
  .sow-social-media-button-@{name} {
13
  background: transparent;
@@ -21,7 +21,13 @@
21
  &:visited,
22
  &:active,
23
  &:hover{
24
- color: @button_color !important;
 
 
 
 
 
 
25
  }
26
 
27
  &.ow-button-hover:hover {
@@ -31,7 +37,13 @@
31
 
32
  & when( iscolor( @icon_color ) ) {
33
  &.ow-button-hover:hover {
34
- color: @icon_color !important;
 
 
 
 
 
 
35
  }
36
  }
37
  }
7
  .social-media-button-base();
8
  }
9
 
10
+ .create_social_media_button_style( @name, @icon_color:'', @button_color:'', @icon_color_hover: '', @button_color_hover: '' ) {
11
 
12
  .sow-social-media-button-@{name} {
13
  background: transparent;
21
  &:visited,
22
  &:active,
23
  &:hover{
24
+ & when not( iscolor( @button_color_hover ) ) {
25
+ color: @button_color !important;
26
+ }
27
+
28
+ & when( iscolor( @button_color_hover ) ) {
29
+ color: @button_color !important;
30
+ }
31
  }
32
 
33
  &.ow-button-hover:hover {
37
 
38
  & when( iscolor( @icon_color ) ) {
39
  &.ow-button-hover:hover {
40
+ & when not( iscolor( @icon_color_hover ) ) {
41
+ color: @icon_color !important;
42
+ }
43
+
44
+ & when( iscolor( @icon_color_hover ) ) {
45
+ color: @icon_color_hover !important;
46
+ }
47
  }
48
  }
49
  }