Version Description
- 13 October 2022 =
- Blog: Improved
Continue reading
output when non-Latin characters are present. - Blog: Fixed the Grid template responsive collapse behavior.
- Blog: Added a new Post Tags setting.
- Contact Form: Prevented a potential notice when inserting a new form.
- Post Carousel: Ensured navigation dots can appear when arrows are disabled.
- Post Carousel: Increased
Post Title > Color
specificity to avoid potential theme conflicts. - Widget Block: Removed the Widget Type field label.
Download this release
Release Info
Developer | SiteOrigin |
Plugin | SiteOrigin Widgets Bundle |
Version | 1.43.0 |
Comparing to | |
See all releases |
Code changes from version 1.42.2 to 1.43.0
- base/inc/widgets/base-carousel.class.php +2 -2
- base/inc/widgets/tpl/carousel.php +2 -2
- compat/block-editor/widget-block.css +1 -1
- lang/so-widgets-bundle.pot +85 -77
- readme.txt +12 -3
- so-widgets-bundle.php +2 -2
- widgets/blog/blog.php +12 -1
- widgets/blog/data/templates.json +5 -0
- widgets/blog/styles/grid.less +5 -4
- widgets/blog/tpl/offset.php +7 -0
- widgets/contact/contact.php +2 -1
- widgets/post-carousel/post-carousel.php +1 -0
- widgets/post-carousel/styles/base.less +97 -96
base/inc/widgets/base-carousel.class.php
CHANGED
@@ -165,7 +165,7 @@ abstract class SiteOrigin_Widget_Base_Carousel extends SiteOrigin_Widget {
|
|
165 |
);
|
166 |
}
|
167 |
|
168 |
-
if ( isset( $field['navigation_dots'] )
|
169 |
$section['fields']['navigation_dots'] = array(
|
170 |
'type' => 'checkbox',
|
171 |
'label' => $carousel_settings['navigation_dots_label'],
|
@@ -338,7 +338,7 @@ abstract class SiteOrigin_Widget_Base_Carousel extends SiteOrigin_Widget {
|
|
338 |
unset( $fields['fields']['arrows'] );
|
339 |
}
|
340 |
|
341 |
-
if ( ! isset( $carousel_settings['navigation_dots'] )
|
342 |
unset( $fields['fields']['dots'] );
|
343 |
}
|
344 |
|
165 |
);
|
166 |
}
|
167 |
|
168 |
+
if ( isset( $field['navigation_dots'] ) && ! empty( $carousel_settings['navigation_dots_label'] ) ) {
|
169 |
$section['fields']['navigation_dots'] = array(
|
170 |
'type' => 'checkbox',
|
171 |
'label' => $carousel_settings['navigation_dots_label'],
|
338 |
unset( $fields['fields']['arrows'] );
|
339 |
}
|
340 |
|
341 |
+
if ( ! isset( $carousel_settings['navigation_dots'] ) || empty( $carousel_settings['navigation_dots_label'] ) ) {
|
342 |
unset( $fields['fields']['dots'] );
|
343 |
}
|
344 |
|
base/inc/widgets/tpl/carousel.php
CHANGED
@@ -36,8 +36,8 @@
|
|
36 |
<?php include $settings['item_template']; ?>
|
37 |
</div>
|
38 |
<?php if ( $settings['navigation'] == 'container' ) : ?>
|
39 |
-
<div class="sow-carousel-nav" <?php echo ! $settings['navigation_arrows'] ? 'style="display: none;"' : ''; ?>>
|
40 |
-
<div class="sow-carousel-nav-arrows"
|
41 |
<?php $this->render_navigation( 'both' ); ?>
|
42 |
</div>
|
43 |
</div>
|
36 |
<?php include $settings['item_template']; ?>
|
37 |
</div>
|
38 |
<?php if ( $settings['navigation'] == 'container' ) : ?>
|
39 |
+
<div class="sow-carousel-nav" <?php echo ! $settings['navigation_arrows'] && empty( $settings['navigation_dots'] ) ? 'style="display: none;"' : ''; ?>>
|
40 |
+
<div class="sow-carousel-nav-arrows" <?php echo ! $settings['navigation_arrows'] ? 'style="display: none;"' : ''; ?>>
|
41 |
<?php $this->render_navigation( 'both' ); ?>
|
42 |
</div>
|
43 |
</div>
|
compat/block-editor/widget-block.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.so-widget-block-container ul.components-form-token-field__suggestions-list{margin:0;padding:0}
|
1 |
+
.so-widget-block-container ul.components-form-token-field__suggestions-list{margin:0;padding:0}.so-widget-block-container .components-base-control__label{display:none}
|
lang/so-widgets-bundle.pot
CHANGED
@@ -328,7 +328,7 @@ msgstr ""
|
|
328 |
msgid "Closed"
|
329 |
msgstr ""
|
330 |
|
331 |
-
#: widgets/accordion/accordion.php:111, widgets/blog/blog.php:
|
332 |
msgid "Design"
|
333 |
msgstr ""
|
334 |
|
@@ -400,7 +400,7 @@ msgstr ""
|
|
400 |
msgid "Item"
|
401 |
msgstr ""
|
402 |
|
403 |
-
#: widgets/anything-carousel/anything-carousel.php:108, widgets/blog/blog.php:
|
404 |
msgid "Font"
|
405 |
msgstr ""
|
406 |
|
@@ -408,7 +408,7 @@ msgstr ""
|
|
408 |
msgid "Font size"
|
409 |
msgstr ""
|
410 |
|
411 |
-
#: widgets/anything-carousel/anything-carousel.php:116, widgets/blog/blog.php:
|
412 |
msgid "Color"
|
413 |
msgstr ""
|
414 |
|
@@ -480,7 +480,7 @@ msgstr ""
|
|
480 |
msgid "Column Count"
|
481 |
msgstr ""
|
482 |
|
483 |
-
#: widgets/blog/blog.php:93, widgets/blog/blog.php:
|
484 |
msgid "Featured Image"
|
485 |
msgstr ""
|
486 |
|
@@ -529,219 +529,223 @@ msgid "Post Categories"
|
|
529 |
msgstr ""
|
530 |
|
531 |
#: widgets/blog/blog.php:166
|
|
|
|
|
|
|
|
|
532 |
msgid "Post Comment Count"
|
533 |
msgstr ""
|
534 |
|
535 |
-
#: widgets/blog/blog.php:
|
536 |
msgid "Post"
|
537 |
msgstr ""
|
538 |
|
539 |
-
#: widgets/blog/blog.php:
|
540 |
msgid "Border Color"
|
541 |
msgstr ""
|
542 |
|
543 |
-
#: widgets/blog/blog.php:
|
544 |
msgid "Background Color"
|
545 |
msgstr ""
|
546 |
|
547 |
-
#: widgets/blog/blog.php:
|
548 |
msgid "Post Title"
|
549 |
msgstr ""
|
550 |
|
551 |
-
#: widgets/blog/blog.php:
|
552 |
msgid "Font Size"
|
553 |
msgstr ""
|
554 |
|
555 |
-
#: widgets/blog/blog.php:
|
556 |
msgid "Hover Color"
|
557 |
msgstr ""
|
558 |
|
559 |
-
#: widgets/blog/blog.php:
|
560 |
msgid "Post Meta"
|
561 |
msgstr ""
|
562 |
|
563 |
-
#: widgets/blog/blog.php:
|
564 |
msgid "Offset Post Meta"
|
565 |
msgstr ""
|
566 |
|
567 |
-
#: widgets/blog/blog.php:
|
568 |
msgid "Link Color"
|
569 |
msgstr ""
|
570 |
|
571 |
-
#: widgets/blog/blog.php:
|
572 |
msgid "Link Color Hover"
|
573 |
msgstr ""
|
574 |
|
575 |
-
#: widgets/blog/blog.php:
|
576 |
msgid "Link Font Size"
|
577 |
msgstr ""
|
578 |
|
579 |
-
#: widgets/blog/blog.php:
|
580 |
msgid "Overlay Post Category"
|
581 |
msgstr ""
|
582 |
|
583 |
-
#: widgets/blog/blog.php:
|
584 |
msgid "Background"
|
585 |
msgstr ""
|
586 |
|
587 |
-
#: widgets/blog/blog.php:
|
588 |
msgid "Hover Background"
|
589 |
msgstr ""
|
590 |
|
591 |
-
#: widgets/blog/blog.php:
|
592 |
msgid "Background Opacity"
|
593 |
msgstr ""
|
594 |
|
595 |
-
#: widgets/blog/blog.php:
|
596 |
msgid "Background Hover Opacity"
|
597 |
msgstr ""
|
598 |
|
599 |
-
#: widgets/blog/blog.php:
|
600 |
msgid "Post Content"
|
601 |
msgstr ""
|
602 |
|
603 |
-
#: widgets/blog/blog.php:
|
604 |
msgid "Link Hover Color"
|
605 |
msgstr ""
|
606 |
|
607 |
-
#: widgets/blog/blog.php:
|
608 |
msgid "Filter Categories"
|
609 |
msgstr ""
|
610 |
|
611 |
-
#: widgets/blog/blog.php:
|
612 |
msgid "Capitalize Categories"
|
613 |
msgstr ""
|
614 |
|
615 |
-
#: widgets/blog/blog.php:
|
616 |
msgid "Selected Border Color"
|
617 |
msgstr ""
|
618 |
|
619 |
-
#: widgets/blog/blog.php:
|
620 |
msgid "Selected Border Thickness"
|
621 |
msgstr ""
|
622 |
|
623 |
-
#: widgets/blog/blog.php:
|
624 |
msgid "Hover Overlay Color"
|
625 |
msgstr ""
|
626 |
|
627 |
-
#: widgets/blog/blog.php:
|
628 |
msgid "Hover Overlay Opacity"
|
629 |
msgstr ""
|
630 |
|
631 |
-
#: widgets/blog/blog.php:
|
632 |
msgid "Post Title Font"
|
633 |
msgstr ""
|
634 |
|
635 |
-
#: widgets/blog/blog.php:
|
636 |
msgid "Post Title Font Size"
|
637 |
msgstr ""
|
638 |
|
639 |
-
#: widgets/blog/blog.php:
|
640 |
msgid "Post Title Color"
|
641 |
msgstr ""
|
642 |
|
643 |
-
#: widgets/blog/blog.php:
|
644 |
msgid "Divider Border Color"
|
645 |
msgstr ""
|
646 |
|
647 |
-
#: widgets/blog/blog.php:
|
648 |
msgid "Divider Border Thickness"
|
649 |
msgstr ""
|
650 |
|
651 |
-
#: widgets/blog/blog.php:
|
652 |
msgid "Divider Border Margin"
|
653 |
msgstr ""
|
654 |
|
655 |
-
#: widgets/blog/blog.php:
|
656 |
msgid "Post Meta Font"
|
657 |
msgstr ""
|
658 |
|
659 |
-
#: widgets/blog/blog.php:
|
660 |
msgid "Post Meta Font Size"
|
661 |
msgstr ""
|
662 |
|
663 |
-
#: widgets/blog/blog.php:
|
664 |
msgid "Post Meta Color"
|
665 |
msgstr ""
|
666 |
|
667 |
-
#: widgets/blog/blog.php:
|
668 |
msgid "Pagination"
|
669 |
msgstr ""
|
670 |
|
671 |
-
#: widgets/blog/blog.php:
|
672 |
msgid "Top Margin"
|
673 |
msgstr ""
|
674 |
|
675 |
-
#: widgets/blog/blog.php:
|
676 |
msgid "Link Margin"
|
677 |
msgstr ""
|
678 |
|
679 |
-
#: widgets/blog/blog.php:
|
680 |
msgid "Border Hover Color"
|
681 |
msgstr ""
|
682 |
|
683 |
-
#: widgets/blog/blog.php:
|
684 |
msgid "Border Radius"
|
685 |
msgstr ""
|
686 |
|
687 |
-
#: widgets/blog/blog.php:
|
688 |
msgid "Dots Color"
|
689 |
msgstr ""
|
690 |
|
691 |
-
#: widgets/blog/blog.php:
|
692 |
msgid "Width"
|
693 |
msgstr ""
|
694 |
|
695 |
-
#: widgets/blog/blog.php:
|
696 |
msgid "Height"
|
697 |
msgstr ""
|
698 |
|
699 |
-
#: widgets/blog/blog.php:
|
700 |
msgid "Posts Query"
|
701 |
msgstr ""
|
702 |
|
703 |
-
#: widgets/blog/blog.php:
|
704 |
msgid "Responsive Breakpoint"
|
705 |
msgstr ""
|
706 |
|
707 |
-
#: widgets/blog/blog.php:
|
708 |
msgid "Device width, in pixels, to collapse into a mobile view."
|
709 |
msgstr ""
|
710 |
|
711 |
-
#: widgets/blog/blog.php:
|
712 |
msgid "Sticky"
|
713 |
msgstr ""
|
714 |
|
715 |
#. translators: used between list items, there is a space after the comma
|
716 |
-
#: widgets/blog/blog.php:
|
717 |
msgid ", "
|
718 |
msgstr ""
|
719 |
|
720 |
-
#: widgets/blog/blog.php:
|
721 |
msgid "Leave a comment"
|
722 |
msgstr ""
|
723 |
|
724 |
-
#: widgets/blog/blog.php:
|
725 |
msgid "One Comment"
|
726 |
msgstr ""
|
727 |
|
728 |
-
#: widgets/blog/blog.php:
|
729 |
msgid "% Comments"
|
730 |
msgstr ""
|
731 |
|
732 |
-
#: widgets/blog/blog.php:
|
733 |
msgid "Continue reading"
|
734 |
msgstr ""
|
735 |
|
736 |
-
#: widgets/blog/blog.php:
|
737 |
msgid "Post navigation"
|
738 |
msgstr ""
|
739 |
|
740 |
-
#: widgets/blog/blog.php:
|
741 |
msgid "Get more pagination themes and Ajax reloading with %sSiteOrigin Premium%s"
|
742 |
msgstr ""
|
743 |
|
744 |
-
#: widgets/blog/blog.php:
|
745 |
msgid "Adjust the post Read More link text and choose a custom post date format with %sSiteOrigin Premium%s"
|
746 |
msgstr ""
|
747 |
|
@@ -1113,7 +1117,7 @@ msgstr ""
|
|
1113 |
msgid "Required Field"
|
1114 |
msgstr ""
|
1115 |
|
1116 |
-
#: widgets/contact/contact.php:183, widgets/contact/contact.php:190, widgets/contact/contact.php:
|
1117 |
msgid "Required field"
|
1118 |
msgstr ""
|
1119 |
|
@@ -1445,64 +1449,64 @@ msgstr ""
|
|
1445 |
msgid "This setting controls when the field max width will be disabled. The default value is 780px"
|
1446 |
msgstr ""
|
1447 |
|
1448 |
-
#: widgets/contact/contact.php:
|
1449 |
msgid "Invalid email address."
|
1450 |
msgstr ""
|
1451 |
|
1452 |
-
#: widgets/contact/contact.php:
|
1453 |
msgid "Invalid phone number. It should contain at least three digits."
|
1454 |
msgstr ""
|
1455 |
|
1456 |
-
#: widgets/contact/contact.php:
|
1457 |
msgid "Invalid number."
|
1458 |
msgstr ""
|
1459 |
|
1460 |
-
#: widgets/contact/contact.php:
|
1461 |
msgid "Error sending email, please try again later."
|
1462 |
msgstr ""
|
1463 |
|
1464 |
-
#: widgets/contact/contact.php:
|
1465 |
msgid "A valid email is required"
|
1466 |
msgstr ""
|
1467 |
|
1468 |
-
#: widgets/contact/contact.php:
|
1469 |
msgid "The email address is invalid"
|
1470 |
msgstr ""
|
1471 |
|
1472 |
-
#: widgets/contact/contact.php:
|
1473 |
msgid "Missing subject"
|
1474 |
msgstr ""
|
1475 |
|
1476 |
-
#: widgets/contact/contact.php:
|
1477 |
msgid "Error validating your Captcha response."
|
1478 |
msgstr ""
|
1479 |
|
1480 |
-
#: widgets/contact/contact.php:
|
1481 |
msgid "Unfortunately our system identified your message as spam."
|
1482 |
msgstr ""
|
1483 |
|
1484 |
-
#: widgets/contact/contact.php:
|
1485 |
msgid "Error validating your Captcha response. Really Simple CAPTCHA missing."
|
1486 |
msgstr ""
|
1487 |
|
1488 |
-
#: widgets/contact/contact.php:
|
1489 |
msgid "Error validating your Captcha response. Please try again."
|
1490 |
msgstr ""
|
1491 |
|
1492 |
-
#: widgets/contact/contact.php:
|
1493 |
msgid "Unfortunately, our system identified your message as spam."
|
1494 |
msgstr ""
|
1495 |
|
1496 |
-
#: widgets/contact/contact.php:
|
1497 |
msgctxt "The name of who sent this email"
|
1498 |
msgid "From"
|
1499 |
msgstr ""
|
1500 |
|
1501 |
-
#: widgets/contact/contact.php:
|
1502 |
msgid "Add a form autoresponder and additional fields, including a date and time picker with %sSiteOrigin Premium%s"
|
1503 |
msgstr ""
|
1504 |
|
1505 |
-
#: widgets/contact/contact.php:
|
1506 |
msgid "Use Google Fonts right inside the Contact Form Widget with %sSiteOrigin Premium%s"
|
1507 |
msgstr ""
|
1508 |
|
@@ -2745,7 +2749,7 @@ msgstr ""
|
|
2745 |
msgid "Set the number of posts preloaded in the background when clicking next. The default is 10."
|
2746 |
msgstr ""
|
2747 |
|
2748 |
-
#: widgets/post-carousel/post-carousel.php:
|
2749 |
msgid "Get access to additional carousel themes with %sSiteOrigin Premium%s"
|
2750 |
msgstr ""
|
2751 |
|
@@ -3817,19 +3821,23 @@ msgid "Posted in"
|
|
3817 |
msgstr ""
|
3818 |
|
3819 |
#: widgets/blog/tpl/offset.php:43
|
|
|
|
|
|
|
|
|
3820 |
msgid "Comments"
|
3821 |
msgstr ""
|
3822 |
|
3823 |
-
#: widgets/blog/tpl/offset.php:
|
3824 |
msgid "Post a comment"
|
3825 |
msgstr ""
|
3826 |
|
3827 |
-
#: widgets/blog/tpl/offset.php:
|
3828 |
msgid "1 Comment"
|
3829 |
msgstr ""
|
3830 |
|
3831 |
#. translators: %s: post date.
|
3832 |
-
#: widgets/blog/tpl/offset.php:
|
3833 |
msgctxt "post date"
|
3834 |
msgid "Posted on %s"
|
3835 |
msgstr ""
|
328 |
msgid "Closed"
|
329 |
msgstr ""
|
330 |
|
331 |
+
#: widgets/accordion/accordion.php:111, widgets/blog/blog.php:179, widgets/contact/contact.php:416, widgets/cta/cta.php:74, widgets/hero/hero.php:254, widgets/layout-slider/layout-slider.php:222, widgets/slider/slider.php:134, widgets/tabs/tabs.php:101, widgets/testimonial/testimonial.php:184, base/inc/widgets/base-carousel.class.php:352
|
332 |
msgid "Design"
|
333 |
msgstr ""
|
334 |
|
400 |
msgid "Item"
|
401 |
msgstr ""
|
402 |
|
403 |
+
#: widgets/anything-carousel/anything-carousel.php:108, widgets/blog/blog.php:206, widgets/blog/blog.php:233, widgets/blog/blog.php:260, widgets/blog/blog.php:297, widgets/blog/blog.php:350, widgets/blog/blog.php:382, widgets/blog/blog.php:556, widgets/button/button.php:201, widgets/contact/contact.php:470, widgets/contact/contact.php:520, widgets/features/features.php:158, widgets/features/features.php:179, widgets/features/features.php:200, widgets/headline/headline.php:88, widgets/headline/headline.php:169, base/inc/widgets/base-carousel.class.php:376
|
404 |
msgid "Font"
|
405 |
msgstr ""
|
406 |
|
408 |
msgid "Font size"
|
409 |
msgstr ""
|
410 |
|
411 |
+
#: widgets/anything-carousel/anything-carousel.php:116, widgets/blog/blog.php:215, widgets/blog/blog.php:242, widgets/blog/blog.php:269, widgets/blog/blog.php:306, widgets/blog/blog.php:359, widgets/blog/blog.php:408, widgets/contact/contact.php:480, widgets/contact/contact.php:604, widgets/contact/contact.php:773, widgets/features/features.php:167, widgets/features/features.php:188, widgets/features/features.php:209, widgets/google-map/google-map.php:376, widgets/headline/headline.php:80, widgets/headline/headline.php:161, widgets/headline/headline.php:231, widgets/icon/icon.php:36, widgets/taxonomy/taxonomy.php:56, base/inc/widgets/base-carousel.class.php:384
|
412 |
msgid "Color"
|
413 |
msgstr ""
|
414 |
|
480 |
msgid "Column Count"
|
481 |
msgstr ""
|
482 |
|
483 |
+
#: widgets/blog/blog.php:93, widgets/blog/blog.php:447
|
484 |
msgid "Featured Image"
|
485 |
msgstr ""
|
486 |
|
529 |
msgstr ""
|
530 |
|
531 |
#: widgets/blog/blog.php:166
|
532 |
+
msgid "Post Tags"
|
533 |
+
msgstr ""
|
534 |
+
|
535 |
+
#: widgets/blog/blog.php:171
|
536 |
msgid "Post Comment Count"
|
537 |
msgstr ""
|
538 |
|
539 |
+
#: widgets/blog/blog.php:184
|
540 |
msgid "Post"
|
541 |
msgstr ""
|
542 |
|
543 |
+
#: widgets/blog/blog.php:189, widgets/blog/blog.php:452, widgets/blog/blog.php:531
|
544 |
msgid "Border Color"
|
545 |
msgstr ""
|
546 |
|
547 |
+
#: widgets/blog/blog.php:194
|
548 |
msgid "Background Color"
|
549 |
msgstr ""
|
550 |
|
551 |
+
#: widgets/blog/blog.php:201
|
552 |
msgid "Post Title"
|
553 |
msgstr ""
|
554 |
|
555 |
+
#: widgets/blog/blog.php:210, widgets/blog/blog.php:237, widgets/blog/blog.php:264, widgets/blog/blog.php:301, widgets/blog/blog.php:354, widgets/blog/blog.php:390, widgets/blog/blog.php:560, widgets/button/button.php:207, widgets/headline/headline.php:93, widgets/headline/headline.php:174
|
556 |
msgid "Font Size"
|
557 |
msgstr ""
|
558 |
|
559 |
+
#: widgets/blog/blog.php:220, widgets/blog/blog.php:247, widgets/blog/blog.php:311, widgets/blog/blog.php:417, widgets/headline/headline.php:84, widgets/headline/headline.php:165
|
560 |
msgid "Hover Color"
|
561 |
msgstr ""
|
562 |
|
563 |
+
#: widgets/blog/blog.php:228
|
564 |
msgid "Post Meta"
|
565 |
msgstr ""
|
566 |
|
567 |
+
#: widgets/blog/blog.php:255
|
568 |
msgid "Offset Post Meta"
|
569 |
msgstr ""
|
570 |
|
571 |
+
#: widgets/blog/blog.php:274, widgets/blog/blog.php:364, widgets/blog/blog.php:565
|
572 |
msgid "Link Color"
|
573 |
msgstr ""
|
574 |
|
575 |
+
#: widgets/blog/blog.php:279
|
576 |
msgid "Link Color Hover"
|
577 |
msgstr ""
|
578 |
|
579 |
+
#: widgets/blog/blog.php:284
|
580 |
msgid "Link Font Size"
|
581 |
msgstr ""
|
582 |
|
583 |
+
#: widgets/blog/blog.php:292
|
584 |
msgid "Overlay Post Category"
|
585 |
msgstr ""
|
586 |
|
587 |
+
#: widgets/blog/blog.php:316, widgets/blog/blog.php:541, widgets/contact/contact.php:554, widgets/hero/hero.php:100, widgets/layout-slider/layout-slider.php:72, widgets/post-carousel/post-carousel.php:203
|
588 |
msgid "Background"
|
589 |
msgstr ""
|
590 |
|
591 |
+
#: widgets/blog/blog.php:321, widgets/blog/blog.php:545
|
592 |
msgid "Hover Background"
|
593 |
msgstr ""
|
594 |
|
595 |
+
#: widgets/blog/blog.php:326
|
596 |
msgid "Background Opacity"
|
597 |
msgstr ""
|
598 |
|
599 |
+
#: widgets/blog/blog.php:334
|
600 |
msgid "Background Hover Opacity"
|
601 |
msgstr ""
|
602 |
|
603 |
+
#: widgets/blog/blog.php:345
|
604 |
msgid "Post Content"
|
605 |
msgstr ""
|
606 |
|
607 |
+
#: widgets/blog/blog.php:369, widgets/blog/blog.php:570
|
608 |
msgid "Link Hover Color"
|
609 |
msgstr ""
|
610 |
|
611 |
+
#: widgets/blog/blog.php:377
|
612 |
msgid "Filter Categories"
|
613 |
msgstr ""
|
614 |
|
615 |
+
#: widgets/blog/blog.php:399
|
616 |
msgid "Capitalize Categories"
|
617 |
msgstr ""
|
618 |
|
619 |
+
#: widgets/blog/blog.php:426
|
620 |
msgid "Selected Border Color"
|
621 |
msgstr ""
|
622 |
|
623 |
+
#: widgets/blog/blog.php:435
|
624 |
msgid "Selected Border Thickness"
|
625 |
msgstr ""
|
626 |
|
627 |
+
#: widgets/blog/blog.php:457
|
628 |
msgid "Hover Overlay Color"
|
629 |
msgstr ""
|
630 |
|
631 |
+
#: widgets/blog/blog.php:461
|
632 |
msgid "Hover Overlay Opacity"
|
633 |
msgstr ""
|
634 |
|
635 |
+
#: widgets/blog/blog.php:470
|
636 |
msgid "Post Title Font"
|
637 |
msgstr ""
|
638 |
|
639 |
+
#: widgets/blog/blog.php:474
|
640 |
msgid "Post Title Font Size"
|
641 |
msgstr ""
|
642 |
|
643 |
+
#: widgets/blog/blog.php:479
|
644 |
msgid "Post Title Color"
|
645 |
msgstr ""
|
646 |
|
647 |
+
#: widgets/blog/blog.php:484
|
648 |
msgid "Divider Border Color"
|
649 |
msgstr ""
|
650 |
|
651 |
+
#: widgets/blog/blog.php:489
|
652 |
msgid "Divider Border Thickness"
|
653 |
msgstr ""
|
654 |
|
655 |
+
#: widgets/blog/blog.php:494
|
656 |
msgid "Divider Border Margin"
|
657 |
msgstr ""
|
658 |
|
659 |
+
#: widgets/blog/blog.php:499
|
660 |
msgid "Post Meta Font"
|
661 |
msgstr ""
|
662 |
|
663 |
+
#: widgets/blog/blog.php:503
|
664 |
msgid "Post Meta Font Size"
|
665 |
msgstr ""
|
666 |
|
667 |
+
#: widgets/blog/blog.php:508
|
668 |
msgid "Post Meta Color"
|
669 |
msgstr ""
|
670 |
|
671 |
+
#: widgets/blog/blog.php:516
|
672 |
msgid "Pagination"
|
673 |
msgstr ""
|
674 |
|
675 |
+
#: widgets/blog/blog.php:521
|
676 |
msgid "Top Margin"
|
677 |
msgstr ""
|
678 |
|
679 |
+
#: widgets/blog/blog.php:526
|
680 |
msgid "Link Margin"
|
681 |
msgstr ""
|
682 |
|
683 |
+
#: widgets/blog/blog.php:536
|
684 |
msgid "Border Hover Color"
|
685 |
msgstr ""
|
686 |
|
687 |
+
#: widgets/blog/blog.php:549
|
688 |
msgid "Border Radius"
|
689 |
msgstr ""
|
690 |
|
691 |
+
#: widgets/blog/blog.php:575
|
692 |
msgid "Dots Color"
|
693 |
msgstr ""
|
694 |
|
695 |
+
#: widgets/blog/blog.php:580, widgets/button/button.php:121, widgets/contact/contact.php:497, widgets/contact/contact.php:727, widgets/contact/contact.php:778, widgets/google-map/google-map.php:94, base/inc/fields/image-size.class.php:69
|
696 |
msgid "Width"
|
697 |
msgstr ""
|
698 |
|
699 |
+
#: widgets/blog/blog.php:586, widgets/contact/contact.php:546, widgets/google-map/google-map.php:98, widgets/hero/hero.php:187, widgets/hero/hero.php:223, widgets/layout-slider/layout-slider.php:155, widgets/layout-slider/layout-slider.php:191, widgets/slider/slider.php:142, base/inc/fields/image-size.class.php:76
|
700 |
msgid "Height"
|
701 |
msgstr ""
|
702 |
|
703 |
+
#: widgets/blog/blog.php:597
|
704 |
msgid "Posts Query"
|
705 |
msgstr ""
|
706 |
|
707 |
+
#: widgets/blog/blog.php:608, widgets/button/button.php:33, widgets/contact/contact.php:983, widgets/features/features.php:387, widgets/headline/headline.php:37, widgets/social-media-buttons/social-media-buttons.php:32, base/inc/widgets/base-slider.class.php:222
|
708 |
msgid "Responsive Breakpoint"
|
709 |
msgstr ""
|
710 |
|
711 |
+
#: widgets/blog/blog.php:610
|
712 |
msgid "Device width, in pixels, to collapse into a mobile view."
|
713 |
msgstr ""
|
714 |
|
715 |
+
#: widgets/blog/blog.php:953
|
716 |
msgid "Sticky"
|
717 |
msgstr ""
|
718 |
|
719 |
#. translators: used between list items, there is a space after the comma
|
720 |
+
#: widgets/blog/blog.php:990
|
721 |
msgid ", "
|
722 |
msgstr ""
|
723 |
|
724 |
+
#: widgets/blog/blog.php:1005
|
725 |
msgid "Leave a comment"
|
726 |
msgstr ""
|
727 |
|
728 |
+
#: widgets/blog/blog.php:1006
|
729 |
msgid "One Comment"
|
730 |
msgstr ""
|
731 |
|
732 |
+
#: widgets/blog/blog.php:1007, widgets/blog/tpl/offset.php:55
|
733 |
msgid "% Comments"
|
734 |
msgstr ""
|
735 |
|
736 |
+
#: widgets/blog/blog.php:1054, widgets/blog/blog.php:1088
|
737 |
msgid "Continue reading"
|
738 |
msgstr ""
|
739 |
|
740 |
+
#: widgets/blog/blog.php:1152
|
741 |
msgid "Post navigation"
|
742 |
msgstr ""
|
743 |
|
744 |
+
#: widgets/blog/blog.php:1165
|
745 |
msgid "Get more pagination themes and Ajax reloading with %sSiteOrigin Premium%s"
|
746 |
msgstr ""
|
747 |
|
748 |
+
#: widgets/blog/blog.php:1170
|
749 |
msgid "Adjust the post Read More link text and choose a custom post date format with %sSiteOrigin Premium%s"
|
750 |
msgstr ""
|
751 |
|
1117 |
msgid "Required Field"
|
1118 |
msgstr ""
|
1119 |
|
1120 |
+
#: widgets/contact/contact.php:183, widgets/contact/contact.php:190, widgets/contact/contact.php:1265
|
1121 |
msgid "Required field"
|
1122 |
msgstr ""
|
1123 |
|
1449 |
msgid "This setting controls when the field max width will be disabled. The default value is 780px"
|
1450 |
msgstr ""
|
1451 |
|
1452 |
+
#: widgets/contact/contact.php:1277
|
1453 |
msgid "Invalid email address."
|
1454 |
msgstr ""
|
1455 |
|
1456 |
+
#: widgets/contact/contact.php:1302
|
1457 |
msgid "Invalid phone number. It should contain at least three digits."
|
1458 |
msgstr ""
|
1459 |
|
1460 |
+
#: widgets/contact/contact.php:1313
|
1461 |
msgid "Invalid number."
|
1462 |
msgstr ""
|
1463 |
|
1464 |
+
#: widgets/contact/contact.php:1388
|
1465 |
msgid "Error sending email, please try again later."
|
1466 |
msgstr ""
|
1467 |
|
1468 |
+
#: widgets/contact/contact.php:1414
|
1469 |
msgid "A valid email is required"
|
1470 |
msgstr ""
|
1471 |
|
1472 |
+
#: widgets/contact/contact.php:1416
|
1473 |
msgid "The email address is invalid"
|
1474 |
msgstr ""
|
1475 |
|
1476 |
+
#: widgets/contact/contact.php:1420
|
1477 |
msgid "Missing subject"
|
1478 |
msgstr ""
|
1479 |
|
1480 |
+
#: widgets/contact/contact.php:1451
|
1481 |
msgid "Error validating your Captcha response."
|
1482 |
msgstr ""
|
1483 |
|
1484 |
+
#: widgets/contact/contact.php:1482
|
1485 |
msgid "Unfortunately our system identified your message as spam."
|
1486 |
msgstr ""
|
1487 |
|
1488 |
+
#: widgets/contact/contact.php:1489
|
1489 |
msgid "Error validating your Captcha response. Really Simple CAPTCHA missing."
|
1490 |
msgstr ""
|
1491 |
|
1492 |
+
#: widgets/contact/contact.php:1497
|
1493 |
msgid "Error validating your Captcha response. Please try again."
|
1494 |
msgstr ""
|
1495 |
|
1496 |
+
#: widgets/contact/contact.php:1504, widgets/contact/contact.php:1512
|
1497 |
msgid "Unfortunately, our system identified your message as spam."
|
1498 |
msgstr ""
|
1499 |
|
1500 |
+
#: widgets/contact/contact.php:1522
|
1501 |
msgctxt "The name of who sent this email"
|
1502 |
msgid "From"
|
1503 |
msgstr ""
|
1504 |
|
1505 |
+
#: widgets/contact/contact.php:1641
|
1506 |
msgid "Add a form autoresponder and additional fields, including a date and time picker with %sSiteOrigin Premium%s"
|
1507 |
msgstr ""
|
1508 |
|
1509 |
+
#: widgets/contact/contact.php:1646
|
1510 |
msgid "Use Google Fonts right inside the Contact Form Widget with %sSiteOrigin Premium%s"
|
1511 |
msgstr ""
|
1512 |
|
2749 |
msgid "Set the number of posts preloaded in the background when clicking next. The default is 10."
|
2750 |
msgstr ""
|
2751 |
|
2752 |
+
#: widgets/post-carousel/post-carousel.php:457
|
2753 |
msgid "Get access to additional carousel themes with %sSiteOrigin Premium%s"
|
2754 |
msgstr ""
|
2755 |
|
3821 |
msgstr ""
|
3822 |
|
3823 |
#: widgets/blog/tpl/offset.php:43
|
3824 |
+
msgid "Tags"
|
3825 |
+
msgstr ""
|
3826 |
+
|
3827 |
+
#: widgets/blog/tpl/offset.php:50
|
3828 |
msgid "Comments"
|
3829 |
msgstr ""
|
3830 |
|
3831 |
+
#: widgets/blog/tpl/offset.php:53
|
3832 |
msgid "Post a comment"
|
3833 |
msgstr ""
|
3834 |
|
3835 |
+
#: widgets/blog/tpl/offset.php:54
|
3836 |
msgid "1 Comment"
|
3837 |
msgstr ""
|
3838 |
|
3839 |
#. translators: %s: post date.
|
3840 |
+
#: widgets/blog/tpl/offset.php:80
|
3841 |
msgctxt "post date"
|
3842 |
msgid "Posted on %s"
|
3843 |
msgstr ""
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Tags: widget, button, slider, hero, google maps, image, carousel, lottie, featur
|
|
3 |
Requires at least: 4.2
|
4 |
Tested up to: 6.0
|
5 |
Requires PHP: 5.6.20
|
6 |
-
Stable tag: 1.
|
7 |
-
Build time: 2022-10-
|
8 |
License: GPLv3 or later
|
9 |
Contributors: gpriday, braam-genis, alexgso
|
10 |
Donate link: https://siteorigin.com/downloads/premium/
|
@@ -106,8 +106,17 @@ The Widgets Bundle global interface is available at Plugins > SiteOrigin Widgets
|
|
106 |
|
107 |
== Changelog ==
|
108 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
= 1.42.2 - 06 October 2022 =
|
110 |
-
* Blog: Resolved potential incorrect
|
111 |
* Blog: Removed the Blog Widget from the Widgets Block cache.
|
112 |
* Updated Google Fonts list.
|
113 |
* Updated Font Awesome 6.1.1 to 6.2.0.
|
3 |
Requires at least: 4.2
|
4 |
Tested up to: 6.0
|
5 |
Requires PHP: 5.6.20
|
6 |
+
Stable tag: 1.43.0
|
7 |
+
Build time: 2022-10-13T13:43:05+02:00
|
8 |
License: GPLv3 or later
|
9 |
Contributors: gpriday, braam-genis, alexgso
|
10 |
Donate link: https://siteorigin.com/downloads/premium/
|
106 |
|
107 |
== Changelog ==
|
108 |
|
109 |
+
= 1.43.0 - 13 October 2022 =
|
110 |
+
* Blog: Improved `Continue reading` output when non-Latin characters are present.
|
111 |
+
* Blog: Fixed the Grid template responsive collapse behavior.
|
112 |
+
* Blog: Added a new Post Tags setting.
|
113 |
+
* Contact Form: Prevented a potential notice when inserting a new form.
|
114 |
+
* Post Carousel: Ensured navigation dots can appear when arrows are disabled.
|
115 |
+
* Post Carousel: Increased `Post Title > Color` specificity to avoid potential theme conflicts.
|
116 |
+
* Widget Block: Removed the Widget Type field label.
|
117 |
+
|
118 |
= 1.42.2 - 06 October 2022 =
|
119 |
+
* Blog: Resolved potential incorrect Widget Block pagination URL.
|
120 |
* Blog: Removed the Blog Widget from the Widgets Block cache.
|
121 |
* Updated Google Fonts list.
|
122 |
* Updated Font Awesome 6.1.1 to 6.2.0.
|
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.
|
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.
|
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.43.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.43.0' );
|
16 |
define( 'SOW_BUNDLE_BASE_FILE', __FILE__ );
|
17 |
|
18 |
// Allow JS suffix to be pre-set.
|
widgets/blog/blog.php
CHANGED
@@ -161,6 +161,11 @@ class SiteOrigin_Widget_Blog_Widget extends SiteOrigin_Widget {
|
|
161 |
'label' => __( 'Post Categories', 'so-widgets-bundle' ),
|
162 |
'default' => true,
|
163 |
),
|
|
|
|
|
|
|
|
|
|
|
164 |
'comment_count' => array(
|
165 |
'type' => 'checkbox',
|
166 |
'label' => __( 'Post Comment Count', 'so-widgets-bundle' ),
|
@@ -987,6 +992,12 @@ class SiteOrigin_Widget_Blog_Widget extends SiteOrigin_Widget {
|
|
987 |
</span>
|
988 |
<?php endif; ?>
|
989 |
|
|
|
|
|
|
|
|
|
|
|
|
|
990 |
<?php if ( comments_open() && $settings['comment_count'] ) : ?>
|
991 |
<span class="sow-entry-comments">
|
992 |
<?php
|
@@ -1081,7 +1092,7 @@ class SiteOrigin_Widget_Blog_Widget extends SiteOrigin_Widget {
|
|
1081 |
|
1082 |
$length = get_query_var( 'siteorigin_blog_excerpt_length' );
|
1083 |
$excerpt = get_the_excerpt();
|
1084 |
-
$excerpt_add_read_more =
|
1085 |
if ( ! has_excerpt() ) {
|
1086 |
$excerpt = wp_trim_words(
|
1087 |
$excerpt,
|
161 |
'label' => __( 'Post Categories', 'so-widgets-bundle' ),
|
162 |
'default' => true,
|
163 |
),
|
164 |
+
'tags' => array(
|
165 |
+
'type' => 'checkbox',
|
166 |
+
'label' => __( 'Post Tags', 'so-widgets-bundle' ),
|
167 |
+
'default' => false,
|
168 |
+
),
|
169 |
'comment_count' => array(
|
170 |
'type' => 'checkbox',
|
171 |
'label' => __( 'Post Comment Count', 'so-widgets-bundle' ),
|
992 |
</span>
|
993 |
<?php endif; ?>
|
994 |
|
995 |
+
<?php if ( ! empty( $settings['tags'] ) && has_tag() ) : ?>
|
996 |
+
<span class="sow-entry-tags">
|
997 |
+
<?php the_tags( '' ); ?>
|
998 |
+
</span>
|
999 |
+
<?php endif; ?>
|
1000 |
+
|
1001 |
<?php if ( comments_open() && $settings['comment_count'] ) : ?>
|
1002 |
<span class="sow-entry-comments">
|
1003 |
<?php
|
1092 |
|
1093 |
$length = get_query_var( 'siteorigin_blog_excerpt_length' );
|
1094 |
$excerpt = get_the_excerpt();
|
1095 |
+
$excerpt_add_read_more = count( preg_split( '~[^\p{L}\p{N}\']+~u', $excerpt ) ) >= $length;
|
1096 |
if ( ! has_excerpt() ) {
|
1097 |
$excerpt = wp_trim_words(
|
1098 |
$excerpt,
|
widgets/blog/data/templates.json
CHANGED
@@ -10,6 +10,7 @@
|
|
10 |
"date": true,
|
11 |
"author": true,
|
12 |
"categories": true,
|
|
|
13 |
"comment_count": true,
|
14 |
"featured_image_size": "full"
|
15 |
},
|
@@ -69,6 +70,7 @@
|
|
69 |
"date": true,
|
70 |
"author": true,
|
71 |
"categories": true,
|
|
|
72 |
"comment_count": true,
|
73 |
"featured_image_size": "sow-blog-grid"
|
74 |
},
|
@@ -127,6 +129,7 @@
|
|
127 |
"date": true,
|
128 |
"author": true,
|
129 |
"categories": true,
|
|
|
130 |
"comment_count": true,
|
131 |
"featured_image_size": "full"
|
132 |
},
|
@@ -193,6 +196,7 @@
|
|
193 |
"date": true,
|
194 |
"author": true,
|
195 |
"categories": true,
|
|
|
196 |
"comment_count": true,
|
197 |
"featured_image_size": "sow-blog-alternate"
|
198 |
},
|
@@ -252,6 +256,7 @@
|
|
252 |
"date": true,
|
253 |
"author": true,
|
254 |
"categories": true,
|
|
|
255 |
"comment_count": true,
|
256 |
"featured_image_size": "full"
|
257 |
},
|
10 |
"date": true,
|
11 |
"author": true,
|
12 |
"categories": true,
|
13 |
+
"tags": false,
|
14 |
"comment_count": true,
|
15 |
"featured_image_size": "full"
|
16 |
},
|
70 |
"date": true,
|
71 |
"author": true,
|
72 |
"categories": true,
|
73 |
+
"tags": false,
|
74 |
"comment_count": true,
|
75 |
"featured_image_size": "sow-blog-grid"
|
76 |
},
|
129 |
"date": true,
|
130 |
"author": true,
|
131 |
"categories": true,
|
132 |
+
"tags": false,
|
133 |
"comment_count": true,
|
134 |
"featured_image_size": "full"
|
135 |
},
|
196 |
"date": true,
|
197 |
"author": true,
|
198 |
"categories": true,
|
199 |
+
"tags": false,
|
200 |
"comment_count": true,
|
201 |
"featured_image_size": "sow-blog-alternate"
|
202 |
},
|
256 |
"date": true,
|
257 |
"author": true,
|
258 |
"categories": true,
|
259 |
+
"tags": false,
|
260 |
"comment_count": true,
|
261 |
"featured_image_size": "full"
|
262 |
},
|
widgets/blog/styles/grid.less
CHANGED
@@ -51,19 +51,20 @@
|
|
51 |
@pagination_width: default;
|
52 |
|
53 |
.sow-blog-layout-grid {
|
|
|
54 |
.sow-blog-posts {
|
55 |
column-gap: @column_spacing;
|
56 |
display: grid;
|
57 |
grid-template-columns: repeat( @columns, 1fr );
|
58 |
|
|
|
|
|
|
|
|
|
59 |
article {
|
60 |
background: @post_background;
|
61 |
border: 1px solid @post_border_color;
|
62 |
|
63 |
-
@media (max-width: @responsive_breakpoint) {
|
64 |
-
width: 100%;
|
65 |
-
}
|
66 |
-
|
67 |
.sow-entry-header {
|
68 |
|
69 |
.sow-entry-title {
|
51 |
@pagination_width: default;
|
52 |
|
53 |
.sow-blog-layout-grid {
|
54 |
+
|
55 |
.sow-blog-posts {
|
56 |
column-gap: @column_spacing;
|
57 |
display: grid;
|
58 |
grid-template-columns: repeat( @columns, 1fr );
|
59 |
|
60 |
+
@media (max-width: @responsive_breakpoint) {
|
61 |
+
display: block;
|
62 |
+
}
|
63 |
+
|
64 |
article {
|
65 |
background: @post_background;
|
66 |
border: 1px solid @post_border_color;
|
67 |
|
|
|
|
|
|
|
|
|
68 |
.sow-entry-header {
|
69 |
|
70 |
.sow-entry-title {
|
widgets/blog/tpl/offset.php
CHANGED
@@ -38,6 +38,13 @@
|
|
38 |
</div>
|
39 |
<?php endif; ?>
|
40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
<?php if ( comments_open() && $settings['comment_count'] ) : ?>
|
42 |
<div class="sow-entry-comments">
|
43 |
<span class="sow-meta-text"><?php esc_html_e( 'Comments', 'so-widgets-bundle' ); ?></span>
|
38 |
</div>
|
39 |
<?php endif; ?>
|
40 |
|
41 |
+
<?php if ( ! empty( $settings['tags'] ) && has_tag() ) : ?>
|
42 |
+
<div class="sow-entry-tags">
|
43 |
+
<span class="sow-meta-text"><?php esc_html_e( 'Tags', 'so-widgets-bundle' ); ?></span>
|
44 |
+
<?php the_tags( '' ); ?>
|
45 |
+
</div>
|
46 |
+
<?php endif; ?>
|
47 |
+
|
48 |
<?php if ( comments_open() && $settings['comment_count'] ) : ?>
|
49 |
<div class="sow-entry-comments">
|
50 |
<span class="sow-meta-text"><?php esc_html_e( 'Comments', 'so-widgets-bundle' ); ?></span>
|
widgets/contact/contact.php
CHANGED
@@ -1251,7 +1251,8 @@ class SiteOrigin_Widgets_ContactForm_Widget extends SiteOrigin_Widget {
|
|
1251 |
if ( empty( $field['type'] ) ) {
|
1252 |
continue;
|
1253 |
}
|
1254 |
-
|
|
|
1255 |
$value = isset( $post_vars[ $field_name ] ) ? $post_vars[ $field_name ] : '';
|
1256 |
|
1257 |
// Can't just use `strlen` here as $value could be an array. E.g. for checkboxes field.
|
1251 |
if ( empty( $field['type'] ) ) {
|
1252 |
continue;
|
1253 |
}
|
1254 |
+
|
1255 |
+
$field_name = $this->name_from_label( ! empty( $field['label'] ) ? $field['label'] : $i, $field_ids ) . '-' . ( ! empty( $instance['_sow_form_id'] ) ? $instance['_sow_form_id'] : '' );
|
1256 |
$value = isset( $post_vars[ $field_name ] ) ? $post_vars[ $field_name ] : '';
|
1257 |
|
1258 |
// Can't just use `strlen` here as $value could be an array. E.g. for checkboxes field.
|
widgets/post-carousel/post-carousel.php
CHANGED
@@ -425,6 +425,7 @@ class SiteOrigin_Widget_PostCarousel_Widget extends SiteOrigin_Widget_Base_Carou
|
|
425 |
'item_template' => plugin_dir_path( __FILE__ ) . 'tpl/item.php',
|
426 |
'navigation' => 'title',
|
427 |
'navigation_arrows' => isset( $instance['carousel_settings']['arrows'] ) ? ! empty( $instance['carousel_settings']['arrows'] ) : true,
|
|
|
428 |
'height' => ! empty( $size['height'] ) ? 'min-height: ' . $size['height'] . 'px' : '',
|
429 |
'item_title_tag' => ! empty( $instance['design']['item_title']['tag'] ) ? $instance['design']['item_title']['tag'] : 'h3',
|
430 |
'attributes' => array(
|
425 |
'item_template' => plugin_dir_path( __FILE__ ) . 'tpl/item.php',
|
426 |
'navigation' => 'title',
|
427 |
'navigation_arrows' => isset( $instance['carousel_settings']['arrows'] ) ? ! empty( $instance['carousel_settings']['arrows'] ) : true,
|
428 |
+
'navigation_dots' => isset( $instance['carousel_settings']['dots'] ) ? ! empty( $instance['carousel_settings']['dots'] ) : false,
|
429 |
'height' => ! empty( $size['height'] ) ? 'min-height: ' . $size['height'] . 'px' : '',
|
430 |
'item_title_tag' => ! empty( $instance['design']['item_title']['tag'] ) ? $instance['design']['item_title']['tag'] : 'h3',
|
431 |
'attributes' => array(
|
widgets/post-carousel/styles/base.less
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
@thumbnail_hover_height: default;
|
6 |
|
7 |
@thumbnail_overlay_hover_opacity: 0.5;
|
8 |
-
@thumbnail_overlay_hover_color: #
|
9 |
@navigation_color: #fff;
|
10 |
@navigation_color_hover: default;
|
11 |
@navigation_background: #333;
|
@@ -25,103 +25,104 @@
|
|
25 |
|
26 |
.sow-carousel-title {
|
27 |
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
}
|
71 |
|
72 |
.sow-carousel-wrapper {
|
73 |
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
|
|
|
|
127 |
}
|
5 |
@thumbnail_hover_height: default;
|
6 |
|
7 |
@thumbnail_overlay_hover_opacity: 0.5;
|
8 |
+
@thumbnail_overlay_hover_color: #3279bb;
|
9 |
@navigation_color: #fff;
|
10 |
@navigation_color_hover: default;
|
11 |
@navigation_background: #333;
|
25 |
|
26 |
.sow-carousel-title {
|
27 |
|
28 |
+
.sow-carousel-navigation-hidden {
|
29 |
+
display: none !important;
|
30 |
+
}
|
31 |
+
|
32 |
+
a.sow-carousel-next,
|
33 |
+
a.sow-carousel-previous {
|
34 |
+
background: @navigation_background;
|
35 |
+
color: @navigation_color;
|
36 |
+
|
37 |
+
&:focus,
|
38 |
+
&:hover {
|
39 |
+
background: @navigation_hover_background;
|
40 |
+
color: @navigation_color_hover;
|
41 |
+
}
|
42 |
+
|
43 |
+
& when ( isnumber( @navigation_arrows ) ) {
|
44 |
+
& when not ( isnumber( @navigation_desktop ) ) {
|
45 |
+
@media (min-width: @breakpoint_tablet_landscape) {
|
46 |
+
display: none;
|
47 |
+
}
|
48 |
+
}
|
49 |
+
|
50 |
+
& when not ( isnumber( @navigation_tablet_landscape ) ) {
|
51 |
+
@media (min-width: @breakpoint_tablet_portrait) and (max-width: @breakpoint_tablet_landscape) {
|
52 |
+
display: none;
|
53 |
+
}
|
54 |
+
}
|
55 |
+
|
56 |
+
& when not ( isnumber( @navigation_tablet_portrait ) ) {
|
57 |
+
@media (min-width: @breakpoint_mobile) and (max-width: @breakpoint_tablet_portrait) {
|
58 |
+
display: none;
|
59 |
+
}
|
60 |
+
}
|
61 |
+
|
62 |
+
& when not ( isnumber( @navigation_mobile ) ) {
|
63 |
+
@media (max-width: @breakpoint_mobile) {
|
64 |
+
display: none;
|
65 |
+
}
|
66 |
+
}
|
67 |
+
}
|
68 |
+
}
|
|
|
69 |
}
|
70 |
|
71 |
.sow-carousel-wrapper {
|
72 |
|
73 |
+
.sow-carousel-items {
|
74 |
+
|
75 |
+
.sow-carousel-item {
|
76 |
+
width: @thumbnail_width;
|
77 |
+
|
78 |
+
.sow-carousel-thumbnail a {
|
79 |
+
background-repeat: no-repeat;
|
80 |
+
background-size: @thumbnail_width @thumbnail_height;
|
81 |
+
|
82 |
+
&,
|
83 |
+
span.overlay {
|
84 |
+
width: @thumbnail_width;
|
85 |
+
height: @thumbnail_height;
|
86 |
+
}
|
87 |
+
|
88 |
+
span.overlay {
|
89 |
+
background: @thumbnail_overlay_hover_color;
|
90 |
+
}
|
91 |
+
}
|
92 |
+
|
93 |
+
@{item_title_tag}.sow-carousel-item-title {
|
94 |
+
font-size: @item_title_font_size;
|
95 |
+
font-weight: 500;
|
96 |
+
margin: 10px 0 0 0;
|
97 |
+
text-align: center;
|
98 |
+
|
99 |
+
a {
|
100 |
+
text-decoration: none;
|
101 |
+
color: @item_title_color;
|
102 |
+
}
|
103 |
+
}
|
104 |
+
|
105 |
+
&:focus,
|
106 |
+
&:hover {
|
107 |
+
|
108 |
+
.sow-carousel-thumbnail a {
|
109 |
+
background-size: @thumbnail_hover_width @thumbnail_hover_height;
|
110 |
+
|
111 |
+
span.overlay {
|
112 |
+
opacity: @thumbnail_overlay_hover_opacity;
|
113 |
+
}
|
114 |
+
}
|
115 |
+
}
|
116 |
+
|
117 |
+
.sow-carousel-default-thumbnail {
|
118 |
+
width: @thumbnail_width;
|
119 |
+
height: @thumbnail_height;
|
120 |
+
}
|
121 |
+
}
|
122 |
+
|
123 |
+
.sow-carousel-loading {
|
124 |
+
width: @thumbnail_width;
|
125 |
+
height: @thumbnail_height;
|
126 |
+
}
|
127 |
+
}
|
128 |
}
|