Version Description
- Overall lots of improvements and updates done, some outlined bellow.
- Service Widget: CSS updates
- Service Widget: Changes slider field to text field for width
- Service Widget: Bug Fixes
- Service Widget: Add button styling
- Service Widget: Add border options
- Blog Widget: Ending Dots Link's to post now
- Blog Widget: CSS updates
- Blog Widget: Bug Fixes
- Toggle Widget: CSS Updates
- Toggle Widget: Bug Fixes
- Toggle Widget: Add icon field, deleted static icon
- Toggle Widget: Add icon position left or right
- Toggle Widget: Add title bg color
- Toggle Widget: Add title bg hover
- Toggle Widget: Add content bg color
- Toggle Widget: Add icon color
- Toggle Widget: Add title text alignment
- FAQ Widget: CSS Updates
- FAQ Widget: Bug Fixes
- FAQ Widget: Add title bg color
- FAQ Widget: Add title bg hover
- FAQ Widget: Add content bg color
- FAQ Widget: Add icon color
- FAQ Widget: Add title text alignment
- TAB Widget: CSS Updates
- TAB Widget: Bug Fixes
- TAB Widget: Add active tab bg color
- TAB Widget: Add active tab font color
- TAB Widget: Add inactive tab font color
- TAB Widget: Add tab icon
- TAB Widget: Add icon position
- Testimonials: Arrow Color Fix
- Team Widget: Image size fix
Download this release
Release Info
Developer | munirkamal |
Plugin | Ultimate Addons for SiteOrigin |
Version | 2.4.0 |
Comparing to | |
See all releases |
Code changes from version 2.3.0 to 2.4.0
- addon-so-widgets-bundle.php +3 -13
- cmb-functions.php +0 -0
- cmb/.gitignore +0 -0
- cmb/.travis.yml +0 -0
- cmb/CONTRIBUTING.md +0 -0
- cmb/Gruntfile.js +0 -0
- cmb/helpers/cmb_Meta_Box_Sanitize.php +0 -0
- cmb/helpers/cmb_Meta_Box_Show_Filters.php +0 -0
- cmb/helpers/cmb_Meta_Box_ajax.php +0 -0
- cmb/helpers/cmb_Meta_Box_field.php +0 -0
- cmb/helpers/cmb_Meta_Box_types.php +0 -0
- cmb/images/ico-delete.png +0 -0
- cmb/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- cmb/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- cmb/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- cmb/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- cmb/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- cmb/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- cmb/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- cmb/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- cmb/images/ui-icons_222222_256x240.png +0 -0
- cmb/images/ui-icons_2e83ff_256x240.png +0 -0
- cmb/images/ui-icons_454545_256x240.png +0 -0
- cmb/images/ui-icons_888888_256x240.png +0 -0
- cmb/images/ui-icons_cd0a0a_256x240.png +0 -0
- cmb/init.php +0 -0
- cmb/js/cmb.js +0 -0
- cmb/js/cmb.min.js +0 -0
- cmb/js/jquery.datePicker.min.js +0 -0
- cmb/js/jquery.timePicker.min.js +0 -0
- cmb/package.json +0 -0
- cmb/phpunit.xml +0 -0
- cmb/readme.md +0 -0
- cmb/style.css +0 -0
- cmb/style.min.css +0 -0
- cmb/tests/README.md +0 -0
- cmb/tests/bin/install-wp-tests.sh +0 -0
- cmb/tests/phpunit/includes/bootstrap.php +0 -0
- cmb/tests/phpunit/tests/CMB_Core_Test.php +0 -0
- css/owl.carousel.css +0 -0
- css/widgets.css +0 -0
- extra-widgets/blog-style-one/assets/banner.svg +0 -0
- extra-widgets/blog-style-one/blog-style-one.php +2 -2
- extra-widgets/blog-style-one/styles/blog-style-one-style.less +5 -0
- extra-widgets/blog-style-one/tpl/blog-style-one-template.php +4 -3
- extra-widgets/blog-style-two/assets/banner.svg +0 -0
- extra-widgets/blog-style-two/blog-style-two.php +1 -1
- extra-widgets/blog-style-two/styles/blog-style-two-style.less +4 -0
- extra-widgets/blog-style-two/tpl/blog-style-two-template.php +1 -3
- extra-widgets/divider/assets/banner.svg +0 -0
- extra-widgets/divider/divider.php +2 -2
- extra-widgets/divider/styles/divider-style.less +0 -0
- extra-widgets/divider/tpl/divider-template.php +0 -0
- extra-widgets/faqs/assets/banner.svg +0 -0
- extra-widgets/faqs/faqs.php +90 -4
- extra-widgets/faqs/styles/faqs-style.less +24 -33
- extra-widgets/faqs/tpl/faqs-template.php +12 -2
- extra-widgets/service-box/assets/banner.svg +0 -0
- extra-widgets/service-box/service-box.php +80 -32
- extra-widgets/service-box/styles/service-box-style.less +33 -16
- extra-widgets/service-box/tpl/service-box-template.php +12 -7
- extra-widgets/spacer/assets/banner.svg +0 -0
- extra-widgets/spacer/spacer.php +3 -3
- extra-widgets/spacer/styles/spacer-style.less +0 -0
- extra-widgets/spacer/tpl/spacer-template.php +0 -0
- extra-widgets/tabs/assets/banner.svg +0 -0
- extra-widgets/tabs/styles/tabs-style.less +43 -26
- extra-widgets/tabs/tabs.php +67 -8
- extra-widgets/tabs/tpl/tabs-template.php +59 -2
- extra-widgets/team/team.php +1 -22
- extra-widgets/team/tpl/team-template.php +2 -2
- extra-widgets/testimonials/assets/banner.svg +0 -0
- extra-widgets/testimonials/styles/testimonials-style.less +2 -3
- extra-widgets/testimonials/testimonials.php +5 -5
- extra-widgets/testimonials/tpl/testimonials-template.php +0 -0
- extra-widgets/toggles/assets/banner.svg +0 -0
- extra-widgets/toggles/styles/toggles-style.less +34 -33
- extra-widgets/toggles/toggles.php +111 -3
- extra-widgets/toggles/tpl/toggles-template.php +32 -3
- js/npm.js +0 -0
- js/owl.carousel.min.js +0 -0
- readme.txt +42 -3
- tmp-addon-so-widgets-bundle-readme.pot +198 -0
addon-so-widgets-bundle.php
CHANGED
@@ -1,9 +1,8 @@
|
|
1 |
Â
<?php
|
2 |
-
|
3 |
Â
/*
|
4 |
Â
Plugin Name: Ultimate Addons for SiteOrigin
|
5 |
Â
Description: An ultimate collection of addons for SiteOrigin. SiteOrigin Widgets Bundle is required.
|
6 |
-
Version: 2.
|
7 |
Â
Author: Ingenious Solution
|
8 |
Â
Author URI: http://ingenious-web.com/
|
9 |
Â
Plugin URI: http://ingenious-web.com/ultimate-addons-for-siteorigin/
|
@@ -169,7 +168,7 @@ function excerpt($limit) {
|
|
169 |
Â
$excerpt = explode(' ', get_the_excerpt(), $limit);
|
170 |
Â
if (count($excerpt)>=$limit) {
|
171 |
Â
array_pop($excerpt);
|
172 |
-
$excerpt = implode(" ",$excerpt).'
|
173 |
Â
} else {
|
174 |
Â
$excerpt = implode(" ",$excerpt);
|
175 |
Â
}
|
@@ -178,14 +177,5 @@ function excerpt($limit) {
|
|
178 |
Â
}
|
179 |
Â
|
180 |
Â
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
Â
|
1 |
Â
<?php
|
Â
|
|
2 |
Â
/*
|
3 |
Â
Plugin Name: Ultimate Addons for SiteOrigin
|
4 |
Â
Description: An ultimate collection of addons for SiteOrigin. SiteOrigin Widgets Bundle is required.
|
5 |
+
Version: 2.4.0
|
6 |
Â
Author: Ingenious Solution
|
7 |
Â
Author URI: http://ingenious-web.com/
|
8 |
Â
Plugin URI: http://ingenious-web.com/ultimate-addons-for-siteorigin/
|
168 |
Â
$excerpt = explode(' ', get_the_excerpt(), $limit);
|
169 |
Â
if (count($excerpt)>=$limit) {
|
170 |
Â
array_pop($excerpt);
|
171 |
+
$excerpt = implode(" ",$excerpt).'';
|
172 |
Â
} else {
|
173 |
Â
$excerpt = implode(" ",$excerpt);
|
174 |
Â
}
|
177 |
Â
}
|
178 |
Â
|
179 |
Â
|
180 |
+
add_image_size( 'widgets_image_size', 800, 9999 , true);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
181 |
Â
|
cmb-functions.php
CHANGED
File without changes
|
cmb/.gitignore
CHANGED
File without changes
|
cmb/.travis.yml
CHANGED
File without changes
|
cmb/CONTRIBUTING.md
CHANGED
File without changes
|
cmb/Gruntfile.js
CHANGED
File without changes
|
cmb/helpers/cmb_Meta_Box_Sanitize.php
CHANGED
File without changes
|
cmb/helpers/cmb_Meta_Box_Show_Filters.php
CHANGED
File without changes
|
cmb/helpers/cmb_Meta_Box_ajax.php
CHANGED
File without changes
|
cmb/helpers/cmb_Meta_Box_field.php
CHANGED
File without changes
|
cmb/helpers/cmb_Meta_Box_types.php
CHANGED
File without changes
|
cmb/images/ico-delete.png
CHANGED
File without changes
|
cmb/images/ui-bg_flat_0_aaaaaa_40x100.png
CHANGED
File without changes
|
cmb/images/ui-bg_flat_75_ffffff_40x100.png
CHANGED
File without changes
|
cmb/images/ui-bg_glass_55_fbf9ee_1x400.png
CHANGED
File without changes
|
cmb/images/ui-bg_glass_65_ffffff_1x400.png
CHANGED
File without changes
|
cmb/images/ui-bg_glass_75_dadada_1x400.png
CHANGED
File without changes
|
cmb/images/ui-bg_glass_75_e6e6e6_1x400.png
CHANGED
File without changes
|
cmb/images/ui-bg_glass_95_fef1ec_1x400.png
CHANGED
File without changes
|
cmb/images/ui-bg_highlight-soft_75_cccccc_1x100.png
CHANGED
File without changes
|
cmb/images/ui-icons_222222_256x240.png
CHANGED
File without changes
|
cmb/images/ui-icons_2e83ff_256x240.png
CHANGED
File without changes
|
cmb/images/ui-icons_454545_256x240.png
CHANGED
File without changes
|
cmb/images/ui-icons_888888_256x240.png
CHANGED
File without changes
|
cmb/images/ui-icons_cd0a0a_256x240.png
CHANGED
File without changes
|
cmb/init.php
CHANGED
File without changes
|
cmb/js/cmb.js
CHANGED
File without changes
|
cmb/js/cmb.min.js
CHANGED
File without changes
|
cmb/js/jquery.datePicker.min.js
CHANGED
File without changes
|
cmb/js/jquery.timePicker.min.js
CHANGED
File without changes
|
cmb/package.json
CHANGED
File without changes
|
cmb/phpunit.xml
CHANGED
File without changes
|
cmb/readme.md
CHANGED
File without changes
|
cmb/style.css
CHANGED
File without changes
|
cmb/style.min.css
CHANGED
File without changes
|
cmb/tests/README.md
CHANGED
File without changes
|
cmb/tests/bin/install-wp-tests.sh
CHANGED
File without changes
|
cmb/tests/phpunit/includes/bootstrap.php
CHANGED
File without changes
|
cmb/tests/phpunit/tests/CMB_Core_Test.php
CHANGED
File without changes
|
css/owl.carousel.css
CHANGED
File without changes
|
css/widgets.css
CHANGED
File without changes
|
extra-widgets/blog-style-one/assets/banner.svg
CHANGED
File without changes
|
extra-widgets/blog-style-one/blog-style-one.php
CHANGED
@@ -70,13 +70,13 @@ class Blog_Style_One extends SiteOrigin_Widget {
|
|
70 |
Â
|
71 |
Â
'title_linkable' => array(
|
72 |
Â
'type' => 'checkbox',
|
73 |
-
'label' => __( '
|
74 |
Â
'default' => true
|
75 |
Â
),
|
76 |
Â
|
77 |
Â
'image_linkable' => array(
|
78 |
Â
'type' => 'checkbox',
|
79 |
-
'label' => __( '
|
80 |
Â
'default' => true
|
81 |
Â
),
|
82 |
Â
|
70 |
Â
|
71 |
Â
'title_linkable' => array(
|
72 |
Â
'type' => 'checkbox',
|
73 |
+
'label' => __( 'Title Linkable', 'addon-so-widgets-bundle' ),
|
74 |
Â
'default' => true
|
75 |
Â
),
|
76 |
Â
|
77 |
Â
'image_linkable' => array(
|
78 |
Â
'type' => 'checkbox',
|
79 |
+
'label' => __( 'Image Linkable', 'addon-so-widgets-bundle' ),
|
80 |
Â
'default' => true
|
81 |
Â
),
|
82 |
Â
|
extra-widgets/blog-style-one/styles/blog-style-one-style.less
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
Â
.blog_one_style{margin-bottom: 20px;}
|
2 |
Â
.blog_one_style .image img{display: block; width: 100%; height: 100%;}
|
Â
|
|
3 |
Â
.blog_one_style .content h4{margin-top:0; margin-bottom: 10px;}
|
4 |
Â
.blog_one_style .meta{ border-top: 1px solid #e0dede; border-bottom: 1px solid #e0dede; margin: 10px 0; padding: 10px; font-size: 12px;}
|
5 |
Â
.blog_one_style .meta .glyphicon{top: 0;}
|
@@ -17,6 +18,10 @@
|
|
17 |
Â
color: @title_color;
|
18 |
Â
}
|
19 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
20 |
Â
.blog_one_style .content {
|
21 |
Â
color: @content_color;
|
22 |
Â
}
|
1 |
Â
.blog_one_style{margin-bottom: 20px;}
|
2 |
Â
.blog_one_style .image img{display: block; width: 100%; height: 100%;}
|
3 |
+
.blog_list_main .columns{margin: 0 1% 2% 1%;}
|
4 |
Â
.blog_one_style .content h4{margin-top:0; margin-bottom: 10px;}
|
5 |
Â
.blog_one_style .meta{ border-top: 1px solid #e0dede; border-bottom: 1px solid #e0dede; margin: 10px 0; padding: 10px; font-size: 12px;}
|
6 |
Â
.blog_one_style .meta .glyphicon{top: 0;}
|
18 |
Â
color: @title_color;
|
19 |
Â
}
|
20 |
Â
|
21 |
+
.blog_one_style .content h4 a{
|
22 |
+
color: @title_color;
|
23 |
+
}
|
24 |
+
|
25 |
Â
.blog_one_style .content {
|
26 |
Â
color: @content_color;
|
27 |
Â
}
|
extra-widgets/blog-style-one/tpl/blog-style-one-template.php
CHANGED
@@ -16,6 +16,7 @@ $image_linkable = wp_kses_post($instance['image_linkable']);
|
|
16 |
Â
</h3>
|
17 |
Â
<?php } ?>
|
18 |
Â
|
Â
|
|
19 |
Â
<?php while ($the_query->have_posts()) : $the_query->the_post(); ?>
|
20 |
Â
|
21 |
Â
<?php if($alignment == 'left'): ?>
|
@@ -44,7 +45,7 @@ $image_linkable = wp_kses_post($instance['image_linkable']);
|
|
44 |
Â
<h4><?php the_title(); ?></h4>
|
45 |
Â
<?php endif; ?>
|
46 |
Â
|
47 |
-
<?php echo excerpt($excerpt_lengt); ?>
|
48 |
Â
</div>
|
49 |
Â
|
50 |
Â
<div class="clearfix"></div>
|
@@ -70,7 +71,7 @@ $image_linkable = wp_kses_post($instance['image_linkable']);
|
|
70 |
Â
<h4><?php the_title(); ?></h4>
|
71 |
Â
<?php endif; ?>
|
72 |
Â
|
73 |
-
<?php echo excerpt($excerpt_lengt); ?>
|
74 |
Â
</div>
|
75 |
Â
|
76 |
Â
<div class="four columns image alpha">
|
@@ -103,4 +104,4 @@ $image_linkable = wp_kses_post($instance['image_linkable']);
|
|
103 |
Â
|
104 |
Â
|
105 |
Â
<?php endwhile; ?>
|
106 |
-
|
16 |
Â
</h3>
|
17 |
Â
<?php } ?>
|
18 |
Â
|
19 |
+
<div class="blog_list_main">
|
20 |
Â
<?php while ($the_query->have_posts()) : $the_query->the_post(); ?>
|
21 |
Â
|
22 |
Â
<?php if($alignment == 'left'): ?>
|
45 |
Â
<h4><?php the_title(); ?></h4>
|
46 |
Â
<?php endif; ?>
|
47 |
Â
|
48 |
+
<?php echo excerpt($excerpt_lengt); ?><a href="<?php the_permalink(); ?>">...</a>
|
49 |
Â
</div>
|
50 |
Â
|
51 |
Â
<div class="clearfix"></div>
|
71 |
Â
<h4><?php the_title(); ?></h4>
|
72 |
Â
<?php endif; ?>
|
73 |
Â
|
74 |
+
<?php echo excerpt($excerpt_lengt); ?><a href="<?php the_permalink(); ?>">...</a>
|
75 |
Â
</div>
|
76 |
Â
|
77 |
Â
<div class="four columns image alpha">
|
104 |
Â
|
105 |
Â
|
106 |
Â
<?php endwhile; ?>
|
107 |
+
</div>
|
extra-widgets/blog-style-two/assets/banner.svg
CHANGED
File without changes
|
extra-widgets/blog-style-two/blog-style-two.php
CHANGED
@@ -39,7 +39,7 @@ class Blog_Style_Two extends SiteOrigin_Widget {
|
|
39 |
Â
'layout' => array(
|
40 |
Â
'type' => 'radio',
|
41 |
Â
'label' => __( 'Choose a Layout', 'addon-so-widgets-bundle' ),
|
42 |
-
'default' => '
|
43 |
Â
'options' => array(
|
44 |
Â
'six columns' => __( '2 Column Layout', 'addon-so-widgets-bundle' ),
|
45 |
Â
'one-third column' => __( '3 Column Layout', 'addon-so-widgets-bundle' ),
|
39 |
Â
'layout' => array(
|
40 |
Â
'type' => 'radio',
|
41 |
Â
'label' => __( 'Choose a Layout', 'addon-so-widgets-bundle' ),
|
42 |
+
'default' => 'six columns',
|
43 |
Â
'options' => array(
|
44 |
Â
'six columns' => __( '2 Column Layout', 'addon-so-widgets-bundle' ),
|
45 |
Â
'one-third column' => __( '3 Column Layout', 'addon-so-widgets-bundle' ),
|
extra-widgets/blog-style-two/styles/blog-style-two-style.less
CHANGED
@@ -13,6 +13,10 @@
|
|
13 |
Â
color: @title_color;
|
14 |
Â
}
|
15 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
16 |
Â
.blog_two_style .content {
|
17 |
Â
color: @content_color;
|
18 |
Â
}
|
13 |
Â
color: @title_color;
|
14 |
Â
}
|
15 |
Â
|
16 |
+
.blog_two_style .content h4 a{
|
17 |
+
color: @title_color;
|
18 |
+
}
|
19 |
+
|
20 |
Â
.blog_two_style .content {
|
21 |
Â
color: @content_color;
|
22 |
Â
}
|
extra-widgets/blog-style-two/tpl/blog-style-two-template.php
CHANGED
@@ -24,13 +24,11 @@ $image_linkable = wp_kses_post($instance['image_linkable']);
|
|
24 |
Â
<div class="image">
|
25 |
Â
|
26 |
Â
<?php if(has_post_thumbnail()): ?>
|
27 |
-
|
28 |
Â
<?php if($image_linkable): ?>
|
29 |
Â
<a href="<?php the_permalink(); ?>"> <?php the_post_thumbnail();?> </a>
|
30 |
Â
<?php else: ?>
|
31 |
Â
<?php the_post_thumbnail(); ?>
|
32 |
Â
<?php endif; ?>
|
33 |
-
|
34 |
Â
<?php endif; ?>
|
35 |
Â
|
36 |
Â
</div>
|
@@ -47,7 +45,7 @@ $image_linkable = wp_kses_post($instance['image_linkable']);
|
|
47 |
Â
by <?php the_author(); ?> | <?php echo get_the_date(); ?> | <?php the_category(', '); ?>
|
48 |
Â
</div>
|
49 |
Â
<div class="border"></div>
|
50 |
-
<?php echo excerpt($excerpt_lengt); ?>
|
51 |
Â
<div class="clearfix"></div>
|
52 |
Â
<small><a href="<?php the_permalink(); ?>"><?php echo $read_more_text ?></a></small>
|
53 |
Â
</div>
|
24 |
Â
<div class="image">
|
25 |
Â
|
26 |
Â
<?php if(has_post_thumbnail()): ?>
|
Â
|
|
27 |
Â
<?php if($image_linkable): ?>
|
28 |
Â
<a href="<?php the_permalink(); ?>"> <?php the_post_thumbnail();?> </a>
|
29 |
Â
<?php else: ?>
|
30 |
Â
<?php the_post_thumbnail(); ?>
|
31 |
Â
<?php endif; ?>
|
Â
|
|
32 |
Â
<?php endif; ?>
|
33 |
Â
|
34 |
Â
</div>
|
45 |
Â
by <?php the_author(); ?> | <?php echo get_the_date(); ?> | <?php the_category(', '); ?>
|
46 |
Â
</div>
|
47 |
Â
<div class="border"></div>
|
48 |
+
<?php echo excerpt($excerpt_lengt); ?><a href="<?php the_permalink(); ?>">...</a>
|
49 |
Â
<div class="clearfix"></div>
|
50 |
Â
<small><a href="<?php the_permalink(); ?>"><?php echo $read_more_text ?></a></small>
|
51 |
Â
</div>
|
extra-widgets/divider/assets/banner.svg
CHANGED
File without changes
|
extra-widgets/divider/divider.php
CHANGED
@@ -58,13 +58,13 @@ class Divider extends SiteOrigin_Widget {
|
|
58 |
Â
|
59 |
Â
'margin_top' => array(
|
60 |
Â
'type' => 'number',
|
61 |
-
'label' => __( 'Top Margin', 'addon-so-widgets-bundle' ),
|
62 |
Â
'default' => ''
|
63 |
Â
),
|
64 |
Â
|
65 |
Â
'margin_bottom' => array(
|
66 |
Â
'type' => 'number',
|
67 |
-
'label' => __( 'Bottom Margin', 'addon-so-widgets-bundle' ),
|
68 |
Â
'default' => ''
|
69 |
Â
),
|
70 |
Â
|
58 |
Â
|
59 |
Â
'margin_top' => array(
|
60 |
Â
'type' => 'number',
|
61 |
+
'label' => __( 'Top Margin (without px)', 'addon-so-widgets-bundle' ),
|
62 |
Â
'default' => ''
|
63 |
Â
),
|
64 |
Â
|
65 |
Â
'margin_bottom' => array(
|
66 |
Â
'type' => 'number',
|
67 |
+
'label' => __( 'Bottom Margin (without px)', 'addon-so-widgets-bundle' ),
|
68 |
Â
'default' => ''
|
69 |
Â
),
|
70 |
Â
|
extra-widgets/divider/styles/divider-style.less
CHANGED
File without changes
|
extra-widgets/divider/tpl/divider-template.php
CHANGED
File without changes
|
extra-widgets/faqs/assets/banner.svg
CHANGED
File without changes
|
extra-widgets/faqs/faqs.php
CHANGED
@@ -39,25 +39,104 @@ class Faqs extends SiteOrigin_Widget
|
|
39 |
Â
'hide' => true,
|
40 |
Â
'fields' => array(
|
41 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
42 |
Â
'title_color' => array(
|
43 |
Â
'type' => 'color',
|
44 |
Â
'label' => __( 'Title color', 'addon-so-widgets-bundle' ),
|
45 |
Â
'default' => ''
|
46 |
Â
),
|
47 |
Â
|
48 |
-
'
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
49 |
Â
'type' => 'color',
|
50 |
-
'label' => __( '
|
51 |
Â
'default' => ''
|
52 |
Â
),
|
53 |
Â
|
54 |
Â
'content_color' => array(
|
55 |
Â
'type' => 'color',
|
56 |
-
'label' => __( 'Content color', 'addon-so-widgets-bundle' ),
|
57 |
Â
'default' => ''
|
58 |
Â
),
|
59 |
Â
|
60 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
61 |
Â
|
62 |
Â
)
|
63 |
Â
),
|
@@ -80,9 +159,16 @@ class Faqs extends SiteOrigin_Widget
|
|
80 |
Â
|
81 |
Â
function get_less_variables( $instance ) {
|
82 |
Â
return array(
|
Â
|
|
Â
|
|
Â
|
|
83 |
Â
'title_color' => $instance['faqs_styling']['title_color'],
|
84 |
-
'
|
85 |
Â
'content_color' => $instance['faqs_styling']['content_color'],
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
86 |
Â
);
|
87 |
Â
}
|
88 |
Â
|
39 |
Â
'hide' => true,
|
40 |
Â
'fields' => array(
|
41 |
Â
|
42 |
+
'toggle_padding' => array(
|
43 |
+
'type' => 'text',
|
44 |
+
'label' => __('Title Padding (shorthand Format)', 'widget-form-fields-text-domain'),
|
45 |
+
'default' => '0px 0px 0px 0px'
|
46 |
+
),
|
47 |
+
|
48 |
+
'title_bg' => array(
|
49 |
+
'type' => 'color',
|
50 |
+
'label' => __( 'backgorund color', 'addon-so-widgets-bundle' ),
|
51 |
+
'default' => ''
|
52 |
+
),
|
53 |
+
|
54 |
+
'title_bg_hover' => array(
|
55 |
+
'type' => 'color',
|
56 |
+
'label' => __( 'backgorund Hover color', 'addon-so-widgets-bundle' ),
|
57 |
+
'default' => ''
|
58 |
+
),
|
59 |
+
|
60 |
Â
'title_color' => array(
|
61 |
Â
'type' => 'color',
|
62 |
Â
'label' => __( 'Title color', 'addon-so-widgets-bundle' ),
|
63 |
Â
'default' => ''
|
64 |
Â
),
|
65 |
Â
|
66 |
+
'title_bar_alignment' => array(
|
67 |
+
'type' => 'select',
|
68 |
+
'label' => __( 'Title Alignment', 'addon-so-widgets-bundle' ),
|
69 |
+
'default' => 'left',
|
70 |
+
'options' => array(
|
71 |
+
'left' => __( 'Left Align', 'addon-so-widgets-bundle' ),
|
72 |
+
'center' => __( 'Center Align', 'addon-so-widgets-bundle' ),
|
73 |
+
'right' => __( 'Right Align', 'addon-so-widgets-bundle' ),
|
74 |
+
)
|
75 |
+
),
|
76 |
+
|
77 |
+
'content_bg_color' => array(
|
78 |
Â
'type' => 'color',
|
79 |
+
'label' => __( 'Content backgorund color', 'addon-so-widgets-bundle' ),
|
80 |
Â
'default' => ''
|
81 |
Â
),
|
82 |
Â
|
83 |
Â
'content_color' => array(
|
84 |
Â
'type' => 'color',
|
85 |
+
'label' => __( 'Content Text color', 'addon-so-widgets-bundle' ),
|
86 |
Â
'default' => ''
|
87 |
Â
),
|
88 |
Â
|
89 |
Â
|
90 |
+
'toggle_border' => array(
|
91 |
+
'type' => 'select',
|
92 |
+
'label' => __( 'Border style', 'addon-so-widgets-bundle' ),
|
93 |
+
'default' => '',
|
94 |
+
'options' => array(
|
95 |
+
'none' => __( 'No Border', 'addon-so-widgets-bundle' ),
|
96 |
+
'solid' => __( 'Solid', 'addon-so-widgets-bundle' ),
|
97 |
+
'dashed' => __( 'Dashed', 'addon-so-widgets-bundle' ),
|
98 |
+
'dotted' => __( 'Dotted', 'addon-so-widgets-bundle' ),
|
99 |
+
)
|
100 |
+
),
|
101 |
+
|
102 |
+
'toggle_border_width' => array(
|
103 |
+
'type' => 'number',
|
104 |
+
'label' => __( 'Border Width (without px)', 'addon-so-widgets-bundle' ),
|
105 |
+
'default' => ''
|
106 |
+
),
|
107 |
+
|
108 |
+
'toggle_border_color' => array(
|
109 |
+
'type' => 'color',
|
110 |
+
'label' => __( 'Border color', 'addon-so-widgets-bundle' ),
|
111 |
+
'default' => ''
|
112 |
+
),
|
113 |
+
|
114 |
+
'toggle_top_border' => array(
|
115 |
+
'type' => 'checkbox',
|
116 |
+
'label' => __( 'Box Top Border', 'widget-form-fields-text-domain' ),
|
117 |
+
'default' => false
|
118 |
+
),
|
119 |
+
|
120 |
+
'toggle_right_border' => array(
|
121 |
+
'type' => 'checkbox',
|
122 |
+
'label' => __( 'Box Right Border', 'widget-form-fields-text-domain' ),
|
123 |
+
'default' => false
|
124 |
+
),
|
125 |
+
|
126 |
+
'toggle_bottom_border' => array(
|
127 |
+
'type' => 'checkbox',
|
128 |
+
'label' => __( 'Box Bottom Border', 'widget-form-fields-text-domain' ),
|
129 |
+
'default' => false
|
130 |
+
),
|
131 |
+
|
132 |
+
'toggle_left_border' => array(
|
133 |
+
'type' => 'checkbox',
|
134 |
+
'label' => __( 'Box Left Border', 'widget-form-fields-text-domain' ),
|
135 |
+
'default' => false
|
136 |
+
),
|
137 |
+
|
138 |
+
|
139 |
+
|
140 |
Â
|
141 |
Â
)
|
142 |
Â
),
|
159 |
Â
|
160 |
Â
function get_less_variables( $instance ) {
|
161 |
Â
return array(
|
162 |
+
'title_bar_alignment' => $instance['faqs_styling']['title_bar_alignment'],
|
163 |
+
'title_bg' => $instance['faqs_styling']['title_bg'],
|
164 |
+
'title_bg_hover' => $instance['faqs_styling']['title_bg_hover'],
|
165 |
Â
'title_color' => $instance['faqs_styling']['title_color'],
|
166 |
+
'content_bg_color' => $instance['faqs_styling']['content_bg_color'],
|
167 |
Â
'content_color' => $instance['faqs_styling']['content_color'],
|
168 |
+
'toggle_border' => $instance['faqs_styling']['toggle_border'],
|
169 |
+
'toggle_border_width' => $instance['faqs_styling']['toggle_border_width'].'px',
|
170 |
+
'toggle_border_color' => $instance['faqs_styling']['toggle_border_color'],
|
171 |
+
'toggle_padding' => $instance['faqs_styling']['toggle_padding'],
|
172 |
Â
);
|
173 |
Â
}
|
174 |
Â
|
extra-widgets/faqs/styles/faqs-style.less
CHANGED
@@ -1,66 +1,57 @@
|
|
1 |
-
.soua-main{
|
2 |
Â
margin: 0; padding: 0; list-style: none;
|
3 |
Â
}
|
4 |
Â
.soua-main .soua-accordion {
|
5 |
Â
position: relative;
|
6 |
Â
padding: 0 !important;
|
7 |
-
margin: 0 !important;
|
8 |
Â
}
|
9 |
Â
.soua-main .soua-accordion .soua-accordion-content {
|
10 |
Â
display: none;
|
Â
|
|
11 |
Â
}
|
12 |
Â
.soua-main .soua-accordion-title {
|
13 |
Â
width: 100%;
|
14 |
Â
display: block;
|
15 |
Â
cursor: pointer;
|
16 |
Â
line-height: 3;
|
17 |
-
text-indent: 15px;
|
18 |
Â
user-select: none;
|
19 |
Â
text-decoration: none;
|
20 |
-
padding: 0 20px;
|
21 |
Â
}
|
22 |
-
.soua-main .soua-accordion-title:after {
|
23 |
-
width: 8px;
|
24 |
-
height: 8px;
|
25 |
-
border-right: 1px solid #4a6e78;
|
26 |
-
border-bottom: 1px solid #4a6e78;
|
27 |
-
position: absolute;
|
28 |
-
left: 10px;
|
29 |
-
content: " ";
|
30 |
-
top: 20px;
|
31 |
-
transform: rotate(-45deg);
|
32 |
-
-webkit-transition: all 0.2s ease-in-out;
|
33 |
-
-moz-transition: all 0.2s ease-in-out;
|
34 |
-
transition: all 0.2s ease-in-out;
|
35 |
-
}
|
36 |
-
.soua-main .soua-accordion .soua-accordion-content{
|
37 |
-
padding: 10px;
|
38 |
-
}
|
39 |
-
|
40 |
-
.soua-accordion-title.active:after{
|
41 |
-
transform: rotate(45deg);
|
42 |
-
-webkit-transition: all 0.2s ease-in-out;
|
43 |
-
-moz-transition: all 0.2s ease-in-out;
|
44 |
-
transition: all 0.2s ease-in-out;
|
45 |
-
}
|
46 |
-
|
47 |
Â
|
48 |
Â
|
49 |
-
@
|
50 |
-
@
|
Â
|
|
Â
|
|
Â
|
|
51 |
Â
@content_color: #000000 ;
|
Â
|
|
Â
|
|
52 |
Â
|
53 |
Â
.soua-main .soua-accordion .soua-accordion-title{
|
54 |
Â
color: @title_color;
|
Â
|
|
Â
|
|
55 |
Â
}
|
56 |
Â
|
57 |
-
.soua-main .soua-accordion .soua-accordion-title:hover
|
58 |
-
color: @
|
59 |
Â
}
|
60 |
Â
|
Â
|
|
61 |
Â
.soua-main .soua-accordion .soua-accordion-content{
|
62 |
Â
color: @content_color;
|
Â
|
|
63 |
Â
}
|
64 |
Â
|
65 |
Â
|
Â
|
|
Â
|
|
Â
|
|
66 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
.soua-main {
|
2 |
Â
margin: 0; padding: 0; list-style: none;
|
3 |
Â
}
|
4 |
Â
.soua-main .soua-accordion {
|
5 |
Â
position: relative;
|
6 |
Â
padding: 0 !important;
|
7 |
+
margin: 5px 0 !important;
|
8 |
Â
}
|
9 |
Â
.soua-main .soua-accordion .soua-accordion-content {
|
10 |
Â
display: none;
|
11 |
+
padding: 15px 0;
|
12 |
Â
}
|
13 |
Â
.soua-main .soua-accordion-title {
|
14 |
Â
width: 100%;
|
15 |
Â
display: block;
|
16 |
Â
cursor: pointer;
|
17 |
Â
line-height: 3;
|
Â
|
|
18 |
Â
user-select: none;
|
19 |
Â
text-decoration: none;
|
Â
|
|
20 |
Â
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
21 |
Â
|
22 |
Â
|
23 |
+
@title_bar_alignment: none;
|
24 |
+
@title_bg: transparent;
|
25 |
+
@title_bg_hover: transparent;
|
26 |
+
@title_color: #000000;;
|
27 |
+
@content_bg_color: transparent;
|
28 |
Â
@content_color: #000000 ;
|
29 |
+
@toggle_padding: 0px;
|
30 |
+
|
31 |
Â
|
32 |
Â
.soua-main .soua-accordion .soua-accordion-title{
|
33 |
Â
color: @title_color;
|
34 |
+
background-color: @title_bg;
|
35 |
+
text-align: @title_bar_alignment;
|
36 |
Â
}
|
37 |
Â
|
38 |
+
.soua-main .soua-accordion .soua-accordion-title:hover{
|
39 |
+
background-color: @title_bg_hover;
|
40 |
Â
}
|
41 |
Â
|
42 |
+
|
43 |
Â
.soua-main .soua-accordion .soua-accordion-content{
|
44 |
Â
color: @content_color;
|
45 |
+
background-color: @content_bg_color;
|
46 |
Â
}
|
47 |
Â
|
48 |
Â
|
49 |
+
@toggle_border:none;
|
50 |
+
@toggle_border_width:0;
|
51 |
+
@toggle_border_color:transparent;
|
52 |
Â
|
53 |
+
.top_b, .right_b, .bottom_b, .left_b, .bg{padding: @toggle_padding;}
|
54 |
+
.top_b{border-top: @toggle_border; border-width: @toggle_border_width; border-color: @toggle_border_color;}
|
55 |
+
.right_b{border-right: @toggle_border; border-width: @toggle_border_width; border-color: @toggle_border_color;}
|
56 |
+
.bottom_b{border-bottom: @toggle_border; border-width: @toggle_border_width; border-color: @toggle_border_color;}
|
57 |
+
.left_b{border-left: @toggle_border; border-width: @toggle_border_width; border-color: @toggle_border_color;}
|
extra-widgets/faqs/tpl/faqs-template.php
CHANGED
@@ -3,6 +3,12 @@ $widget_title = wp_kses_post($instance['widget_title']);
|
|
3 |
Â
$query = siteorigin_widget_post_selector_process_query($instance['posts']);
|
4 |
Â
$the_query = new WP_Query($query);
|
5 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
6 |
Â
?>
|
7 |
Â
|
8 |
Â
|
@@ -16,8 +22,12 @@ $the_query = new WP_Query($query);
|
|
16 |
Â
<div class="soua-main">
|
17 |
Â
<?php while ($the_query->have_posts()) : $the_query->the_post(); ?>
|
18 |
Â
<div class="soua-accordion">
|
19 |
-
|
20 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
21 |
Â
</div>
|
22 |
Â
<?php endwhile; ?>
|
23 |
Â
</div> <!-- / accordion -->
|
3 |
Â
$query = siteorigin_widget_post_selector_process_query($instance['posts']);
|
4 |
Â
$the_query = new WP_Query($query);
|
5 |
Â
|
6 |
+
$toggle_top_border = wp_kses_post($instance['faqs_styling']['toggle_top_border']);
|
7 |
+
$toggle_right_border = wp_kses_post($instance['faqs_styling']['toggle_right_border']);
|
8 |
+
$toggle_bottom_border = wp_kses_post($instance['faqs_styling']['toggle_bottom_border']);
|
9 |
+
$toggle_left_border = wp_kses_post($instance['faqs_styling']['toggle_left_border']);
|
10 |
+
$title_bg = wp_kses_post($instance['faqs_styling']['title_bg']);
|
11 |
+
|
12 |
Â
?>
|
13 |
Â
|
14 |
Â
|
22 |
Â
<div class="soua-main">
|
23 |
Â
<?php while ($the_query->have_posts()) : $the_query->the_post(); ?>
|
24 |
Â
<div class="soua-accordion">
|
25 |
+
<a class="soua-accordion-title">
|
26 |
+
<div class="<?php if($toggle_top_border){ echo " top_b "; } if($toggle_right_border){ echo " right_b "; } if($toggle_bottom_border){ echo " bottom_b "; } if($toggle_left_border){ echo " left_b "; } if($title_bg){ echo " bg "; } ?>">
|
27 |
+
<?php the_title(); ?>
|
28 |
+
</div>
|
29 |
+
</a>
|
30 |
+
<div class="soua-accordion-content" <?php if(wp_kses_post($instance['faqs_styling']['content_bg_color'])): ?> style="padding: 15px";<?php endif; ?>><?php the_content();?></div>
|
31 |
Â
</div>
|
32 |
Â
<?php endwhile; ?>
|
33 |
Â
</div> <!-- / accordion -->
|
extra-widgets/service-box/assets/banner.svg
CHANGED
File without changes
|
extra-widgets/service-box/service-box.php
CHANGED
@@ -29,14 +29,14 @@ class Service_Box extends SiteOrigin_Widget {
|
|
29 |
Â
),
|
30 |
Â
'opt_selector' => array(
|
31 |
Â
'type' => 'select',
|
32 |
-
'label' => __( 'First choose an
|
33 |
Â
'default' => 'blank',
|
34 |
Â
'state_emitter' => array(
|
35 |
Â
'callback' => 'select',
|
36 |
Â
'args' => array( 'opt_selector' )
|
37 |
Â
),
|
38 |
Â
'options' => array(
|
39 |
-
'blank' => __( '
|
40 |
Â
'icon' => __( 'Icon', 'addon-so-widgets-bundle' ),
|
41 |
Â
'icon_image' => __( 'Icon Image', 'addon-so-widgets-bundle' ),
|
42 |
Â
)
|
@@ -68,12 +68,9 @@ class Service_Box extends SiteOrigin_Widget {
|
|
68 |
Â
'fields' => array(
|
69 |
Â
|
70 |
Â
'icon_size' => array(
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
'min' => 2,
|
75 |
-
'max' => 500,
|
76 |
-
'integer' => true
|
77 |
Â
),
|
78 |
Â
|
79 |
Â
'icon' => array(
|
@@ -99,18 +96,15 @@ class Service_Box extends SiteOrigin_Widget {
|
|
99 |
Â
'fields' => array(
|
100 |
Â
|
101 |
Â
'icon_img_width' => array(
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
'min' => 2,
|
106 |
-
'max' => 500,
|
107 |
-
'integer' => true
|
108 |
Â
),
|
109 |
Â
|
110 |
Â
'icon_image' => array(
|
111 |
Â
'type' => 'media',
|
112 |
-
'label' => __( 'Choose
|
113 |
-
'choose' => __( 'Choose image', 'addon-so-widgets-bundle' ),
|
114 |
Â
'update' => __( 'Set image', 'addon-so-widgets-bundle' ),
|
115 |
Â
'library' => 'image'
|
116 |
Â
),
|
@@ -154,8 +148,6 @@ class Service_Box extends SiteOrigin_Widget {
|
|
154 |
Â
),
|
155 |
Â
|
156 |
Â
|
157 |
-
|
158 |
-
|
159 |
Â
'styling' => array(
|
160 |
Â
'type' => 'section',
|
161 |
Â
'label' => __( 'Widget styling' , 'addon-so-widgets-bundle' ),
|
@@ -171,8 +163,15 @@ class Service_Box extends SiteOrigin_Widget {
|
|
171 |
Â
'icon_color' => array(
|
172 |
Â
'type' => 'color',
|
173 |
Â
'label' => __( 'Icon color', 'addon-so-widgets-bundle' ),
|
174 |
-
'default' => ''
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
175 |
Â
),
|
Â
|
|
176 |
Â
'title_color' => array(
|
177 |
Â
'type' => 'color',
|
178 |
Â
'label' => __( 'Title color', 'addon-so-widgets-bundle' ),
|
@@ -191,16 +190,38 @@ class Service_Box extends SiteOrigin_Widget {
|
|
191 |
Â
),
|
192 |
Â
|
193 |
Â
'box_padding' => array(
|
194 |
-
'type' => '
|
195 |
-
'label' => __( '
|
196 |
-
'default' =>
|
197 |
-
|
198 |
-
|
199 |
-
|
Â
|
|
Â
|
|
Â
|
|
200 |
Â
),
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
201 |
Â
'box_border' => array(
|
202 |
Â
'type' => 'select',
|
203 |
-
'label' => __( 'Border
|
204 |
Â
'default' => '',
|
205 |
Â
'options' => array(
|
206 |
Â
'solid' => __( 'Solid', 'addon-so-widgets-bundle' ),
|
@@ -208,15 +229,36 @@ class Service_Box extends SiteOrigin_Widget {
|
|
208 |
Â
'dotted' => __( 'Dotted', 'addon-so-widgets-bundle' ),
|
209 |
Â
)
|
210 |
Â
),
|
Â
|
|
211 |
Â
'box_border_width' => array(
|
212 |
-
'type' => '
|
213 |
-
'label' => __( 'Border Width', '
|
214 |
-
'default' =>
|
215 |
-
'min' => 2,
|
216 |
-
'max' => 37,
|
217 |
-
'integer' => true
|
218 |
Â
),
|
219 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
220 |
Â
|
221 |
Â
|
222 |
Â
|
@@ -241,6 +283,7 @@ class Service_Box extends SiteOrigin_Widget {
|
|
241 |
Â
return array(
|
242 |
Â
'background_color' => $instance['styling']['bg_color'],
|
243 |
Â
'icon_color' => $instance['styling']['icon_color'],
|
Â
|
|
244 |
Â
'title_color' => $instance['styling']['title_color'],
|
245 |
Â
'content_color' => $instance['styling']['content_color'],
|
246 |
Â
'box_padding' => $instance['styling']['box_padding'].'px',
|
@@ -249,6 +292,11 @@ class Service_Box extends SiteOrigin_Widget {
|
|
249 |
Â
'box_border_color' => $instance['styling']['border_color'],
|
250 |
Â
'square_shape_bg_color' => $instance['styling']['square_shape_bg_color'],
|
251 |
Â
'square_shape_padding' => $instance['styling']['square_shape_padding'].'px',
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
252 |
Â
);
|
253 |
Â
}
|
254 |
Â
|
29 |
Â
),
|
30 |
Â
'opt_selector' => array(
|
31 |
Â
'type' => 'select',
|
32 |
+
'label' => __( 'First choose an icon or image', 'addon-so-widgets-bundle' ),
|
33 |
Â
'default' => 'blank',
|
34 |
Â
'state_emitter' => array(
|
35 |
Â
'callback' => 'select',
|
36 |
Â
'args' => array( 'opt_selector' )
|
37 |
Â
),
|
38 |
Â
'options' => array(
|
39 |
+
'blank' => __( 'No image or icon', 'addon-so-widgets-bundle' ),
|
40 |
Â
'icon' => __( 'Icon', 'addon-so-widgets-bundle' ),
|
41 |
Â
'icon_image' => __( 'Icon Image', 'addon-so-widgets-bundle' ),
|
42 |
Â
)
|
68 |
Â
'fields' => array(
|
69 |
Â
|
70 |
Â
'icon_size' => array(
|
71 |
+
'type' => 'number',
|
72 |
+
'label' => __( 'Set icon size (without px)', 'addon-so-widgets-bundle' ),
|
73 |
+
'default' => ''
|
Â
|
|
Â
|
|
Â
|
|
74 |
Â
),
|
75 |
Â
|
76 |
Â
'icon' => array(
|
96 |
Â
'fields' => array(
|
97 |
Â
|
98 |
Â
'icon_img_width' => array(
|
99 |
+
'type' => 'number',
|
100 |
+
'label' => __( 'Set Image Width (without px)', 'addon-so-widgets-bundle' ),
|
101 |
+
'default' => '40'
|
Â
|
|
Â
|
|
Â
|
|
102 |
Â
),
|
103 |
Â
|
104 |
Â
'icon_image' => array(
|
105 |
Â
'type' => 'media',
|
106 |
+
'label' => __( 'Choose an image', 'addon-so-widgets-bundle' ),
|
107 |
+
'choose' => __( 'Choose an image', 'addon-so-widgets-bundle' ),
|
108 |
Â
'update' => __( 'Set image', 'addon-so-widgets-bundle' ),
|
109 |
Â
'library' => 'image'
|
110 |
Â
),
|
148 |
Â
),
|
149 |
Â
|
150 |
Â
|
Â
|
|
Â
|
|
151 |
Â
'styling' => array(
|
152 |
Â
'type' => 'section',
|
153 |
Â
'label' => __( 'Widget styling' , 'addon-so-widgets-bundle' ),
|
163 |
Â
'icon_color' => array(
|
164 |
Â
'type' => 'color',
|
165 |
Â
'label' => __( 'Icon color', 'addon-so-widgets-bundle' ),
|
166 |
+
'default' => '',
|
167 |
+
'state_handler' => array(
|
168 |
+
'opt_selector[icon]' => array('show'),
|
169 |
+
'opt_selector[icon_image]' => array('hide'),
|
170 |
+
'opt_selector[blank]' => array('hide'),
|
171 |
+
),
|
172 |
+
|
173 |
Â
),
|
174 |
+
|
175 |
Â
'title_color' => array(
|
176 |
Â
'type' => 'color',
|
177 |
Â
'label' => __( 'Title color', 'addon-so-widgets-bundle' ),
|
190 |
Â
),
|
191 |
Â
|
192 |
Â
'box_padding' => array(
|
193 |
+
'type' => 'number',
|
194 |
+
'label' => __( 'Box Padding (without Pixel)', 'widget-form-fields-text-domain' ),
|
195 |
+
'default' => ''
|
196 |
+
),
|
197 |
+
|
198 |
+
'box_top_border' => array(
|
199 |
+
'type' => 'checkbox',
|
200 |
+
'label' => __( 'Box Top Border', 'widget-form-fields-text-domain' ),
|
201 |
+
'default' => false
|
202 |
Â
),
|
203 |
+
|
204 |
+
'box_right_border' => array(
|
205 |
+
'type' => 'checkbox',
|
206 |
+
'label' => __( 'Box Right Border', 'widget-form-fields-text-domain' ),
|
207 |
+
'default' => false
|
208 |
+
),
|
209 |
+
|
210 |
+
'box_bottom_border' => array(
|
211 |
+
'type' => 'checkbox',
|
212 |
+
'label' => __( 'Box Bottom Border', 'widget-form-fields-text-domain' ),
|
213 |
+
'default' => false
|
214 |
+
),
|
215 |
+
|
216 |
+
'box_left_border' => array(
|
217 |
+
'type' => 'checkbox',
|
218 |
+
'label' => __( 'Box Left Border', 'widget-form-fields-text-domain' ),
|
219 |
+
'default' => false
|
220 |
+
),
|
221 |
+
|
222 |
Â
'box_border' => array(
|
223 |
Â
'type' => 'select',
|
224 |
+
'label' => __( 'Border style', 'addon-so-widgets-bundle' ),
|
225 |
Â
'default' => '',
|
226 |
Â
'options' => array(
|
227 |
Â
'solid' => __( 'Solid', 'addon-so-widgets-bundle' ),
|
229 |
Â
'dotted' => __( 'Dotted', 'addon-so-widgets-bundle' ),
|
230 |
Â
)
|
231 |
Â
),
|
232 |
+
|
233 |
Â
'box_border_width' => array(
|
234 |
+
'type' => 'number',
|
235 |
+
'label' => __( 'Border Width (without px)', 'widget-form-fields-text-domain' ),
|
236 |
+
'default' => ''
|
Â
|
|
Â
|
|
Â
|
|
237 |
Â
),
|
238 |
Â
|
239 |
+
'button_bg_color' => array(
|
240 |
+
'type' => 'color',
|
241 |
+
'label' => __( 'Button Bg color', 'addon-so-widgets-bundle' ),
|
242 |
+
'default' => ''
|
243 |
+
),
|
244 |
+
|
245 |
+
'button_bg_hover_color' => array(
|
246 |
+
'type' => 'color',
|
247 |
+
'label' => __( 'Button Bg hover color', 'addon-so-widgets-bundle' ),
|
248 |
+
'default' => ''
|
249 |
+
),
|
250 |
+
|
251 |
+
'button_font_color' => array(
|
252 |
+
'type' => 'color',
|
253 |
+
'label' => __( 'Button text color', 'addon-so-widgets-bundle' ),
|
254 |
+
'default' => ''
|
255 |
+
),
|
256 |
+
|
257 |
+
'button_font_hover_color' => array(
|
258 |
+
'type' => 'color',
|
259 |
+
'label' => __( 'Button text hover color', 'addon-so-widgets-bundle' ),
|
260 |
+
'default' => ''
|
261 |
+
),
|
262 |
Â
|
263 |
Â
|
264 |
Â
|
283 |
Â
return array(
|
284 |
Â
'background_color' => $instance['styling']['bg_color'],
|
285 |
Â
'icon_color' => $instance['styling']['icon_color'],
|
286 |
+
'icon_bg_color' => $instance['styling']['icon_bg_color'],
|
287 |
Â
'title_color' => $instance['styling']['title_color'],
|
288 |
Â
'content_color' => $instance['styling']['content_color'],
|
289 |
Â
'box_padding' => $instance['styling']['box_padding'].'px',
|
292 |
Â
'box_border_color' => $instance['styling']['border_color'],
|
293 |
Â
'square_shape_bg_color' => $instance['styling']['square_shape_bg_color'],
|
294 |
Â
'square_shape_padding' => $instance['styling']['square_shape_padding'].'px',
|
295 |
+
'btn_bg' => $instance['styling']['button_bg_color'],
|
296 |
+
'btn_bg_hover' => $instance['styling']['button_bg_hover_color'],
|
297 |
+
'btn_font_color' => $instance['styling']['button_font_color'],
|
298 |
+
'btn_font_hover_color' => $instance['styling']['button_font_hover_color'],
|
299 |
+
|
300 |
Â
);
|
301 |
Â
}
|
302 |
Â
|
extra-widgets/service-box/styles/service-box-style.less
CHANGED
@@ -2,47 +2,52 @@
|
|
2 |
Â
|
3 |
Â
.service_top{text-align: center;}
|
4 |
Â
.service_top .content h3{margin: 10px;}
|
5 |
-
.service_top .content .btn_style{margin: 10px 0; display: block}
|
6 |
Â
|
7 |
Â
|
8 |
Â
.service_left{text-align: left;}
|
9 |
-
.service_left .icon{
|
10 |
-
.service_left .icon_image{
|
11 |
-
.service_left .
|
Â
|
|
12 |
Â
.service_left .content h3{margin-top: 0;}
|
13 |
-
.service_left .content .btn_style{margin: 10px 0; display: block;}
|
14 |
Â
|
15 |
Â
|
16 |
Â
.service_right{text-align: right;}
|
17 |
-
.service_right .icon{
|
18 |
-
.service_right .icon_image{
|
19 |
-
.service_right .
|
Â
|
|
20 |
Â
.service_right .content h3{margin-top: 0;}
|
21 |
-
.service_right .content .btn_style{margin: 10px 0; display: block;}
|
22 |
Â
|
23 |
Â
|
24 |
Â
|
25 |
Â
|
26 |
Â
|
27 |
-
@background_color: transparent
|
28 |
Â
@icon_color: #000000;
|
29 |
Â
@title_color: #000000;
|
30 |
Â
@content_color: #000000;
|
31 |
Â
@box_padding: 10px;
|
32 |
Â
@box_border: solid;
|
33 |
Â
@box_border_width: 0px;
|
34 |
-
@box_border_color: #e4e4e4
|
35 |
-
|
36 |
-
|
Â
|
|
Â
|
|
37 |
Â
|
38 |
Â
.service_top, .service_left, .service_right {
|
39 |
Â
background-color: @background_color;
|
40 |
Â
padding: @box_padding;
|
41 |
-
border: @box_border;
|
42 |
-
border-width: @box_border_width;
|
43 |
-
border-color: @box_border_color;
|
44 |
Â
}
|
45 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
46 |
Â
|
47 |
Â
|
48 |
Â
.icon{
|
@@ -62,3 +67,15 @@
|
|
62 |
Â
.content {
|
63 |
Â
color: @content_color;
|
64 |
Â
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
2 |
Â
|
3 |
Â
.service_top{text-align: center;}
|
4 |
Â
.service_top .content h3{margin: 10px;}
|
5 |
+
.service_top .content .btn_style{margin: 10px 0; display: inline-block; text-decoration: none; outline: none;}
|
6 |
Â
|
7 |
Â
|
8 |
Â
.service_left{text-align: left;}
|
9 |
+
.service_left .icon{vertical-align: top; padding-right: 15px; display: table-cell;}
|
10 |
+
.service_left .icon_image{vertical-align: top; padding-right: 15px; display: table-cell;}
|
11 |
+
.service_left .icon_image img{max-width: none;}
|
12 |
+
.service_left .content{display: table-cell;}
|
13 |
Â
.service_left .content h3{margin-top: 0;}
|
14 |
+
.service_left .content .btn_style{margin: 10px 0; display: inline-block; text-decoration: none; outline: none;}
|
15 |
Â
|
16 |
Â
|
17 |
Â
.service_right{text-align: right;}
|
18 |
+
.service_right .icon{vertical-align: top; padding-left: 15px; display: table-cell;}
|
19 |
+
.service_right .icon_image{vertical-align: top; padding-left: 15px; display: table-cell;}
|
20 |
+
.service_right .icon_image img{max-width: none;}
|
21 |
+
.service_right .content{display: table-cell;}
|
22 |
Â
.service_right .content h3{margin-top: 0;}
|
23 |
+
.service_right .content .btn_style{margin: 10px 0; display: inline-block; text-decoration: none; outline: none;}
|
24 |
Â
|
25 |
Â
|
26 |
Â
|
27 |
Â
|
28 |
Â
|
29 |
+
@background_color: transparent;
|
30 |
Â
@icon_color: #000000;
|
31 |
Â
@title_color: #000000;
|
32 |
Â
@content_color: #000000;
|
33 |
Â
@box_padding: 10px;
|
34 |
Â
@box_border: solid;
|
35 |
Â
@box_border_width: 0px;
|
36 |
+
@box_border_color: #e4e4e4;
|
37 |
+
@btn_bg:transparent;
|
38 |
+
@btn_bg_hover:transparent;
|
39 |
+
@btn_font_color:#000000;
|
40 |
+
@btn_font_hover_color:#000000;
|
41 |
Â
|
42 |
Â
.service_top, .service_left, .service_right {
|
43 |
Â
background-color: @background_color;
|
44 |
Â
padding: @box_padding;
|
Â
|
|
Â
|
|
Â
|
|
45 |
Â
}
|
46 |
Â
|
47 |
+
.top_b{border-top: @box_border; border-width: @box_border_width; border-color: @box_border_color;}
|
48 |
+
.right_b{border-right: @box_border; border-width: @box_border_width; border-color: @box_border_color;}
|
49 |
+
.bottom_b{border-bottom: @box_border; border-width: @box_border_width; border-color: @box_border_color;}
|
50 |
+
.left_b{border-left: @box_border; border-width: @box_border_width; border-color: @box_border_color;}
|
51 |
Â
|
52 |
Â
|
53 |
Â
.icon{
|
67 |
Â
.content {
|
68 |
Â
color: @content_color;
|
69 |
Â
}
|
70 |
+
|
71 |
+
|
72 |
+
.service_top .content .btn_style, .service_left .content .btn_style, .service_right .content .btn_style{
|
73 |
+
background-color: @btn_bg;
|
74 |
+
color: @btn_font_color;
|
75 |
+
}
|
76 |
+
|
77 |
+
.service_top .content .btn_style:hover, .service_left .content .btn_style:hover, .service_right .content .btn_style:hover{
|
78 |
+
background-color: @btn_bg_hover;
|
79 |
+
color: @btn_font_hover_color;
|
80 |
+
}
|
81 |
+
|
extra-widgets/service-box/tpl/service-box-template.php
CHANGED
@@ -8,10 +8,15 @@ $icon_img_height = wp_kses_post($instance['icon_image_section']['icon_img_height
|
|
8 |
Â
$icon_selection = wp_kses_post($instance['icon_selection']);
|
9 |
Â
$selection = wp_kses_post($instance['opt_selector']);
|
10 |
Â
$icon = siteorigin_widget_get_icon($instance['icon_section']['icon']);
|
11 |
-
$icon_image = wp_get_attachment_image_src($instance['icon_image_section']['icon_image']);
|
12 |
Â
$title = wp_kses_post($instance['title']);
|
13 |
Â
$content = wp_kses_post($instance['content']);
|
14 |
Â
$shape = wp_kses_post($instance['styling']['shapes']);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
15 |
Â
?>
|
16 |
Â
|
17 |
Â
<?php if ($widget_title) { ?>
|
@@ -22,7 +27,7 @@ $shape = wp_kses_post($instance['styling']['shapes']);
|
|
22 |
Â
|
23 |
Â
|
24 |
Â
<?php if ($icon_selection == 'top') { ?>
|
25 |
-
<div class="service_top clearfix <?php echo $icon_selection ?>">
|
26 |
Â
<?php if($selection == 'icon'){ ?>
|
27 |
Â
<div class="icon <?php echo $shape ?>" style="font-size: <?php echo $icon_size; ?>px">
|
28 |
Â
<?php echo $icon; ?>
|
@@ -37,13 +42,13 @@ $shape = wp_kses_post($instance['styling']['shapes']);
|
|
37 |
Â
<?php echo $content; ?>
|
38 |
Â
<div class="clearfix"></div>
|
39 |
Â
<?php if($btn_text): ?>
|
40 |
-
<a class="btn_style clearfix" href="<?php echo $btn_url; ?>" role="button"
|
41 |
Â
<?php endif; ?>
|
42 |
Â
</div>
|
43 |
Â
</div>
|
44 |
Â
|
45 |
Â
<?php } elseif ($icon_selection == 'left') { ?>
|
46 |
-
<div class="service_left clearfix <?php echo $icon_selection ?>">
|
47 |
Â
<?php if($selection == 'icon'){ ?>
|
48 |
Â
<div class="icon" style="font-size: <?php echo $icon_size; ?>px">
|
49 |
Â
<?php echo $icon; ?>
|
@@ -58,7 +63,7 @@ $shape = wp_kses_post($instance['styling']['shapes']);
|
|
58 |
Â
<?php echo $content; ?>
|
59 |
Â
<div class="clearfix"></div>
|
60 |
Â
<?php if($btn_text): ?>
|
61 |
-
<a class="
|
62 |
Â
<?php endif; ?>
|
63 |
Â
</div>
|
64 |
Â
</div>
|
@@ -66,13 +71,13 @@ $shape = wp_kses_post($instance['styling']['shapes']);
|
|
66 |
Â
<?php } elseif ($icon_selection == 'right') {?>
|
67 |
Â
|
68 |
Â
|
69 |
-
<div class="service_right clearfix <?php echo $icon_selection ?>">
|
70 |
Â
<div class="content">
|
71 |
Â
<h3><?php echo $title; ?></h3>
|
72 |
Â
<?php echo $content; ?>
|
73 |
Â
<div class="clearfix"></div>
|
74 |
Â
<?php if($btn_text): ?>
|
75 |
-
<a class="
|
76 |
Â
<?php endif; ?>
|
77 |
Â
</div>
|
78 |
Â
|
8 |
Â
$icon_selection = wp_kses_post($instance['icon_selection']);
|
9 |
Â
$selection = wp_kses_post($instance['opt_selector']);
|
10 |
Â
$icon = siteorigin_widget_get_icon($instance['icon_section']['icon']);
|
11 |
+
$icon_image = wp_get_attachment_image_src($instance['icon_image_section']['icon_image'],'widgets_image_size');
|
12 |
Â
$title = wp_kses_post($instance['title']);
|
13 |
Â
$content = wp_kses_post($instance['content']);
|
14 |
Â
$shape = wp_kses_post($instance['styling']['shapes']);
|
15 |
+
|
16 |
+
$box_top_border = wp_kses_post($instance['styling']['box_top_border']);
|
17 |
+
$box_right_border = wp_kses_post($instance['styling']['box_right_border']);
|
18 |
+
$box_bottom_border = wp_kses_post($instance['styling']['box_bottom_border']);
|
19 |
+
$box_left_border = wp_kses_post($instance['styling']['box_left_border']);
|
20 |
Â
?>
|
21 |
Â
|
22 |
Â
<?php if ($widget_title) { ?>
|
27 |
Â
|
28 |
Â
|
29 |
Â
<?php if ($icon_selection == 'top') { ?>
|
30 |
+
<div class="service_top clearfix <?php echo $icon_selection; ?><?php if($box_top_border){ echo " top_b "; } if($box_right_border){ echo " right_b "; } if($box_bottom_border){ echo " bottom_b "; } if($box_left_border){ echo " left_b "; } ?>">
|
31 |
Â
<?php if($selection == 'icon'){ ?>
|
32 |
Â
<div class="icon <?php echo $shape ?>" style="font-size: <?php echo $icon_size; ?>px">
|
33 |
Â
<?php echo $icon; ?>
|
42 |
Â
<?php echo $content; ?>
|
43 |
Â
<div class="clearfix"></div>
|
44 |
Â
<?php if($btn_text): ?>
|
45 |
+
<a class="btn_style clearfix" href="<?php echo $btn_url; ?>" role="button" <?php if(wp_kses_post($instance['styling']['button_bg_color'])): ?> style="padding: 5px 20px;"<?php endif; ?>><?php echo $btn_text; ?></a>
|
46 |
Â
<?php endif; ?>
|
47 |
Â
</div>
|
48 |
Â
</div>
|
49 |
Â
|
50 |
Â
<?php } elseif ($icon_selection == 'left') { ?>
|
51 |
+
<div class="service_left clearfix <?php echo $icon_selection ?><?php if($box_top_border){ echo " top_b "; } if($box_right_border){ echo " right_b "; } if($box_bottom_border){ echo " bottom_b "; } if($box_left_border){ echo " left_b "; } ?>">
|
52 |
Â
<?php if($selection == 'icon'){ ?>
|
53 |
Â
<div class="icon" style="font-size: <?php echo $icon_size; ?>px">
|
54 |
Â
<?php echo $icon; ?>
|
63 |
Â
<?php echo $content; ?>
|
64 |
Â
<div class="clearfix"></div>
|
65 |
Â
<?php if($btn_text): ?>
|
66 |
+
<a class="btn_style clearfix" href="<?php echo $btn_url; ?>" role="button" <?php if(wp_kses_post($instance['styling']['button_bg_color'])): ?> style="padding: 5px 20px;"<?php endif; ?>><?php echo $btn_text; ?></a>
|
67 |
Â
<?php endif; ?>
|
68 |
Â
</div>
|
69 |
Â
</div>
|
71 |
Â
<?php } elseif ($icon_selection == 'right') {?>
|
72 |
Â
|
73 |
Â
|
74 |
+
<div class="service_right clearfix <?php echo $icon_selection ?><?php if($box_top_border){ echo " top_b "; } if($box_right_border){ echo " right_b "; } if($box_bottom_border){ echo " bottom_b "; } if($box_left_border){ echo " left_b "; } ?>">
|
75 |
Â
<div class="content">
|
76 |
Â
<h3><?php echo $title; ?></h3>
|
77 |
Â
<?php echo $content; ?>
|
78 |
Â
<div class="clearfix"></div>
|
79 |
Â
<?php if($btn_text): ?>
|
80 |
+
<a class="btn_style clearfix" href="<?php echo $btn_url; ?>" role="button" <?php if(wp_kses_post($instance['styling']['button_bg_color'])): ?> style="padding: 5px 20px;"<?php endif; ?>><?php echo $btn_text; ?></a>
|
81 |
Â
<?php endif; ?>
|
82 |
Â
</div>
|
83 |
Â
|
extra-widgets/spacer/assets/banner.svg
CHANGED
File without changes
|
extra-widgets/spacer/spacer.php
CHANGED
@@ -31,9 +31,9 @@ class Spacer extends SiteOrigin_Widget
|
|
31 |
Â
'spacer' => array(
|
32 |
Â
'type' => 'slider',
|
33 |
Â
'label' => __( 'Set Height', 'addon-so-widgets-bundle' ),
|
34 |
-
'default' =>
|
35 |
-
'min' =>
|
36 |
-
'max' =>
|
37 |
Â
'integer' => true
|
38 |
Â
),
|
39 |
Â
|
31 |
Â
'spacer' => array(
|
32 |
Â
'type' => 'slider',
|
33 |
Â
'label' => __( 'Set Height', 'addon-so-widgets-bundle' ),
|
34 |
+
'default' => 0,
|
35 |
+
'min' => 0,
|
36 |
+
'max' => 1000,
|
37 |
Â
'integer' => true
|
38 |
Â
),
|
39 |
Â
|
extra-widgets/spacer/styles/spacer-style.less
CHANGED
File without changes
|
extra-widgets/spacer/tpl/spacer-template.php
CHANGED
File without changes
|
extra-widgets/tabs/assets/banner.svg
CHANGED
File without changes
|
extra-widgets/tabs/styles/tabs-style.less
CHANGED
@@ -1,11 +1,9 @@
|
|
1 |
Â
.soua-tab {
|
2 |
Â
position: relative;
|
3 |
Â
overflow: hidden;
|
4 |
-
background: #eee;
|
5 |
Â
margin: 0 auto;
|
6 |
Â
line-height: 1.5;
|
7 |
Â
font-weight: 300;
|
8 |
-
color: #888;
|
9 |
Â
-webkit-font-smoothing: antialiased;
|
10 |
Â
padding: 3px;
|
11 |
Â
}
|
@@ -20,7 +18,6 @@
|
|
20 |
Â
|
21 |
Â
li {
|
22 |
Â
float: left;
|
23 |
-
line-height: 38px;
|
24 |
Â
overflow: hidden;
|
25 |
Â
padding: 0 !important;
|
26 |
Â
position: relative;
|
@@ -29,30 +26,24 @@
|
|
29 |
Â
}
|
30 |
Â
|
31 |
Â
a {
|
32 |
-
color: #888;
|
33 |
Â
font-weight: 500;
|
34 |
Â
display: block;
|
35 |
Â
letter-spacing: 0;
|
36 |
Â
outline: none;
|
37 |
-
padding:
|
38 |
Â
text-decoration: none;
|
39 |
Â
-webkit-transition: all 0.2s ease-in-out;
|
40 |
Â
-moz-transition: all 0.2s ease-in-out;
|
41 |
Â
transition: all 0.2s ease-in-out;
|
42 |
Â
}
|
43 |
Â
}
|
44 |
-
.tab_content{background: #ffffff;}
|
45 |
Â
.tabs_item {
|
46 |
Â
display: none;
|
47 |
-
padding: 15px;
|
48 |
Â
|
49 |
Â
&:first-child {display: block;}
|
50 |
Â
}
|
51 |
Â
|
52 |
-
.current a {
|
53 |
-
background: #ffffff;
|
54 |
-
}
|
55 |
-
|
56 |
Â
|
57 |
Â
|
58 |
Â
//verticle tabs
|
@@ -60,7 +51,6 @@
|
|
60 |
Â
.vertical {
|
61 |
Â
position: relative;
|
62 |
Â
overflow: hidden;
|
63 |
-
background: #eee;
|
64 |
Â
margin: 0 auto;
|
65 |
Â
line-height: 1.5;
|
66 |
Â
font-weight: 300;
|
@@ -81,7 +71,7 @@
|
|
81 |
Â
|
82 |
Â
li {
|
83 |
Â
float: none;
|
84 |
-
|
85 |
Â
overflow: hidden;
|
86 |
Â
padding: 0 !important;
|
87 |
Â
position: relative;
|
@@ -95,7 +85,7 @@
|
|
95 |
Â
display: block;
|
96 |
Â
letter-spacing: 0;
|
97 |
Â
outline: none;
|
98 |
-
padding:
|
99 |
Â
text-decoration: none;
|
100 |
Â
-webkit-transition: all 0.2s ease-in-out;
|
101 |
Â
-moz-transition: all 0.2s ease-in-out;
|
@@ -105,7 +95,7 @@
|
|
105 |
Â
.vertical .tab_content{display: table-cell; vertical-align: top; width: 75%; background: #ffffff;}
|
106 |
Â
.vertical .tabs_item {
|
107 |
Â
display: none;
|
108 |
-
padding: 15px;
|
109 |
Â
|
110 |
Â
h4 {
|
111 |
Â
font-weight: bold;
|
@@ -122,25 +112,52 @@
|
|
122 |
Â
&:first-child {display: block;}
|
123 |
Â
}
|
124 |
Â
|
125 |
-
.vertical .current a {
|
126 |
-
background: #ffffff;
|
127 |
-
}
|
128 |
-
|
129 |
Â
|
130 |
Â
|
131 |
Â
|
132 |
-
@bg_color: #eeeeee;
|
133 |
Â
@inactive_tab_color: #888888 ;
|
134 |
-
@active_tab_color: #888888
|
Â
|
|
135 |
Â
@tab_content_color: #888888 ;
|
136 |
Â
|
137 |
Â
|
138 |
-
.soua-tab {
|
139 |
Â
.soua-tab .soua-tabs a{color: @inactive_tab_color;}
|
140 |
-
.soua-tab .current a{color: @active_tab_color;}
|
141 |
Â
.soua-tab .tab_content .tabs_item{color: @tab_content_color;}
|
142 |
Â
|
143 |
-
.vertical {
|
144 |
Â
.vertical .soua-tabs a{color: @inactive_tab_color;}
|
145 |
-
.vertical .current a{color: @active_tab_color;}
|
146 |
-
.vertical .tab_content .tabs_item{color: @tab_content_color;}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
Â
.soua-tab {
|
2 |
Â
position: relative;
|
3 |
Â
overflow: hidden;
|
Â
|
|
4 |
Â
margin: 0 auto;
|
5 |
Â
line-height: 1.5;
|
6 |
Â
font-weight: 300;
|
Â
|
|
7 |
Â
-webkit-font-smoothing: antialiased;
|
8 |
Â
padding: 3px;
|
9 |
Â
}
|
18 |
Â
|
19 |
Â
li {
|
20 |
Â
float: left;
|
Â
|
|
21 |
Â
overflow: hidden;
|
22 |
Â
padding: 0 !important;
|
23 |
Â
position: relative;
|
26 |
Â
}
|
27 |
Â
|
28 |
Â
a {
|
Â
|
|
29 |
Â
font-weight: 500;
|
30 |
Â
display: block;
|
31 |
Â
letter-spacing: 0;
|
32 |
Â
outline: none;
|
33 |
+
padding: 10px 20px;
|
34 |
Â
text-decoration: none;
|
35 |
Â
-webkit-transition: all 0.2s ease-in-out;
|
36 |
Â
-moz-transition: all 0.2s ease-in-out;
|
37 |
Â
transition: all 0.2s ease-in-out;
|
38 |
Â
}
|
39 |
Â
}
|
Â
|
|
40 |
Â
.tabs_item {
|
41 |
Â
display: none;
|
42 |
+
padding: 15px 0;
|
43 |
Â
|
44 |
Â
&:first-child {display: block;}
|
45 |
Â
}
|
46 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
47 |
Â
|
48 |
Â
|
49 |
Â
//verticle tabs
|
51 |
Â
.vertical {
|
52 |
Â
position: relative;
|
53 |
Â
overflow: hidden;
|
Â
|
|
54 |
Â
margin: 0 auto;
|
55 |
Â
line-height: 1.5;
|
56 |
Â
font-weight: 300;
|
71 |
Â
|
72 |
Â
li {
|
73 |
Â
float: none;
|
74 |
+
text-align:center;
|
75 |
Â
overflow: hidden;
|
76 |
Â
padding: 0 !important;
|
77 |
Â
position: relative;
|
85 |
Â
display: block;
|
86 |
Â
letter-spacing: 0;
|
87 |
Â
outline: none;
|
88 |
+
padding: 10px;
|
89 |
Â
text-decoration: none;
|
90 |
Â
-webkit-transition: all 0.2s ease-in-out;
|
91 |
Â
-moz-transition: all 0.2s ease-in-out;
|
95 |
Â
.vertical .tab_content{display: table-cell; vertical-align: top; width: 75%; background: #ffffff;}
|
96 |
Â
.vertical .tabs_item {
|
97 |
Â
display: none;
|
98 |
+
padding: 0 15px;
|
99 |
Â
|
100 |
Â
h4 {
|
101 |
Â
font-weight: bold;
|
112 |
Â
&:first-child {display: block;}
|
113 |
Â
}
|
114 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
115 |
Â
|
116 |
Â
|
117 |
Â
|
Â
|
|
118 |
Â
@inactive_tab_color: #888888 ;
|
119 |
+
@active_tab_color: #888888;
|
120 |
+
@active_tab_bg_color: transparent;
|
121 |
Â
@tab_content_color: #888888 ;
|
122 |
Â
|
123 |
Â
|
124 |
+
.soua-tab {}
|
125 |
Â
.soua-tab .soua-tabs a{color: @inactive_tab_color;}
|
126 |
+
.soua-tab .current a{color: @active_tab_color; background-color:@active_tab_bg_color;}
|
127 |
Â
.soua-tab .tab_content .tabs_item{color: @tab_content_color;}
|
128 |
Â
|
129 |
+
.vertical {}
|
130 |
Â
.vertical .soua-tabs a{color: @inactive_tab_color;}
|
131 |
+
.vertical .current a{color: @active_tab_color; background-color:@active_tab_bg_color;}
|
132 |
+
.vertical .tab_content .tabs_item{color: @tab_content_color;}
|
133 |
+
|
134 |
+
|
135 |
+
.soua-tab .soua-tabs a .tab-icon-top{color: @inactive_tab_color; text-align:center;}
|
136 |
+
.soua-tab .soua-tabs a .tab-icon-left{color: @inactive_tab_color; display:inline-block; margin-right:5px;}
|
137 |
+
.soua-tab .soua-tabs a .tab-icon-right{color: @inactive_tab_color; display:inline-block; margin-left:5px;}
|
138 |
+
|
139 |
+
.vertical .soua-tab .soua-tabs a .tab-icon-top{color: @inactive_tab_color; text-align:center;}
|
140 |
+
.vertical .soua-tab .soua-tabs a .tab-icon-left{color: @inactive_tab_color; display:inline-block; margin-right:5px;}
|
141 |
+
.vertical .soua-tab .soua-tabs a .tab-icon-right{color: @inactive_tab_color; display:inline-block; margin-left:5px;}
|
142 |
+
|
143 |
+
|
144 |
+
@tab_border_top:solid;
|
145 |
+
@tab_border_right:solid;
|
146 |
+
@tab_border_bottom:solid;
|
147 |
+
@tab_border_left:solid;
|
148 |
+
@tab_border_width:2px;
|
149 |
+
@tab_border_color:black;
|
150 |
+
|
151 |
+
.soua-tab .current a .tab-icon-top{color: @active_tab_color;}
|
152 |
+
.soua-tab .current a .tab-icon-left{color: @active_tab_color;}
|
153 |
+
.soua-tab .current a .tab-icon-right{color: @active_tab_color;}
|
154 |
+
|
155 |
+
|
156 |
+
.soua-tab .current a {
|
157 |
+
border-color:@tab_border_color;
|
158 |
+
border-top-style:@tab_border_top;
|
159 |
+
border-right-style:@tab_border_right;
|
160 |
+
border-bottom-style:@tab_border_bottom;
|
161 |
+
border-left-style:@tab_border_left;
|
162 |
+
border-width:@tab_border_width;
|
163 |
+
}
|
extra-widgets/tabs/tabs.php
CHANGED
@@ -40,15 +40,17 @@ class Tabs extends SiteOrigin_Widget {
|
|
40 |
Â
),
|
41 |
Â
'fields' => array(
|
42 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
43 |
Â
'tab_title' => array(
|
44 |
Â
'type' => 'text',
|
45 |
Â
'label' => __('Tab Title', 'addon-so-widgets-bundle'),
|
46 |
Â
'default' => ''
|
47 |
Â
),
|
48 |
Â
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
Â
'tab_content' => array(
|
53 |
Â
'type' => 'tinymce',
|
54 |
Â
'label' => __( 'Tab Content', 'addon-so-widgets-bundle' ),
|
@@ -86,10 +88,15 @@ class Tabs extends SiteOrigin_Widget {
|
|
86 |
Â
'hide' => true,
|
87 |
Â
'fields' => array(
|
88 |
Â
|
89 |
-
'
|
90 |
-
'type' => '
|
91 |
-
'label' => __( '
|
92 |
-
'default' => ''
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
93 |
Â
),
|
94 |
Â
|
95 |
Â
'inactive_tab_color' => array(
|
@@ -104,6 +111,48 @@ class Tabs extends SiteOrigin_Widget {
|
|
104 |
Â
'default' => ''
|
105 |
Â
),
|
106 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
107 |
Â
'tab_content_color' => array(
|
108 |
Â
'type' => 'color',
|
109 |
Â
'label' => __( 'Tab Content Color', 'addon-so-widgets-bundle' ),
|
@@ -112,6 +161,8 @@ class Tabs extends SiteOrigin_Widget {
|
|
112 |
Â
|
113 |
Â
|
114 |
Â
|
Â
|
|
Â
|
|
115 |
Â
)
|
116 |
Â
),
|
117 |
Â
|
@@ -131,8 +182,16 @@ class Tabs extends SiteOrigin_Widget {
|
|
131 |
Â
|
132 |
Â
function get_less_variables( $instance ) {
|
133 |
Â
return array(
|
134 |
-
'
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
135 |
Â
'inactive_tab_color' => $instance['tabs_styling']['inactive_tab_color'],
|
Â
|
|
136 |
Â
'active_tab_color' => $instance['tabs_styling']['active_tab_color'],
|
137 |
Â
'tab_content_color' => $instance['tabs_styling']['tab_content_color'],
|
138 |
Â
);
|
40 |
Â
),
|
41 |
Â
'fields' => array(
|
42 |
Â
|
43 |
+
'tab_icon' => array(
|
44 |
+
'type' => 'icon',
|
45 |
+
'label' => __('Select an Teb icon', 'addon-so-widgets-bundle'),
|
46 |
+
),
|
47 |
+
|
48 |
Â
'tab_title' => array(
|
49 |
Â
'type' => 'text',
|
50 |
Â
'label' => __('Tab Title', 'addon-so-widgets-bundle'),
|
51 |
Â
'default' => ''
|
52 |
Â
),
|
53 |
Â
|
Â
|
|
Â
|
|
Â
|
|
54 |
Â
'tab_content' => array(
|
55 |
Â
'type' => 'tinymce',
|
56 |
Â
'label' => __( 'Tab Content', 'addon-so-widgets-bundle' ),
|
88 |
Â
'hide' => true,
|
89 |
Â
'fields' => array(
|
90 |
Â
|
91 |
+
'tab_icon_position' => array(
|
92 |
+
'type' => 'select',
|
93 |
+
'label' => __( 'Choose a icon position', 'addon-so-widgets-bundle' ),
|
94 |
+
'default' => 'left',
|
95 |
+
'options' => array(
|
96 |
+
'left' => __( 'Left', 'addon-so-widgets-bundle' ),
|
97 |
+
'right' => __( 'Right', 'addon-so-widgets-bundle' ),
|
98 |
+
'top' => __( 'Top', 'addon-so-widgets-bundle' ),
|
99 |
+
)
|
100 |
Â
),
|
101 |
Â
|
102 |
Â
'inactive_tab_color' => array(
|
111 |
Â
'default' => ''
|
112 |
Â
),
|
113 |
Â
|
114 |
+
'active_tab_bg_color' => array(
|
115 |
+
'type' => 'color',
|
116 |
+
'label' => __( 'Active Tab Bg Color', 'addon-so-widgets-bundle' ),
|
117 |
+
'default' => ''
|
118 |
+
),
|
119 |
+
|
120 |
+
'active_tab_top_border' => array(
|
121 |
+
'type' => 'checkbox',
|
122 |
+
'label' => __( 'Disable Top Border', 'addon-so-widgets-bundle' ),
|
123 |
+
'default' => true
|
124 |
+
),
|
125 |
+
|
126 |
+
'active_tab_right_border' => array(
|
127 |
+
'type' => 'checkbox',
|
128 |
+
'label' => __( 'Disable Right Border', 'addon-so-widgets-bundle' ),
|
129 |
+
'default' => true
|
130 |
+
),
|
131 |
+
|
132 |
+
'active_tab_bottom_border' => array(
|
133 |
+
'type' => 'checkbox',
|
134 |
+
'label' => __( 'Disable Bottm Border', 'addon-so-widgets-bundle' ),
|
135 |
+
'default' => true
|
136 |
+
),
|
137 |
+
|
138 |
+
'active_tab_left_border' => array(
|
139 |
+
'type' => 'checkbox',
|
140 |
+
'label' => __( 'Disable Left Border', 'addon-so-widgets-bundle' ),
|
141 |
+
'default' => true
|
142 |
+
),
|
143 |
+
|
144 |
+
'tab_border_width' => array(
|
145 |
+
'type' => 'text',
|
146 |
+
'label' => __( 'Border Width (without px)', 'widget-form-fields-text-domain' ),
|
147 |
+
'default' => ''
|
148 |
+
),
|
149 |
+
|
150 |
+
'tab_border_color' => array(
|
151 |
+
'type' => 'color',
|
152 |
+
'label' => __( 'Tab Border Color', 'addon-so-widgets-bundle' ),
|
153 |
+
'default' => ''
|
154 |
+
),
|
155 |
+
|
156 |
Â
'tab_content_color' => array(
|
157 |
Â
'type' => 'color',
|
158 |
Â
'label' => __( 'Tab Content Color', 'addon-so-widgets-bundle' ),
|
161 |
Â
|
162 |
Â
|
163 |
Â
|
164 |
+
|
165 |
+
|
166 |
Â
)
|
167 |
Â
),
|
168 |
Â
|
182 |
Â
|
183 |
Â
function get_less_variables( $instance ) {
|
184 |
Â
return array(
|
185 |
+
'tab_border_top' => $instance['tabs_styling']['active_tab_top_border'],
|
186 |
+
'tab_border_right' => $instance['tabs_styling']['active_tab_right_border'],
|
187 |
+
'tab_border_bottom' => $instance['tabs_styling']['active_tab_bottom_border'],
|
188 |
+
'tab_border_left' => $instance['tabs_styling']['active_tab_left_border'],
|
189 |
+
'tab_border_width' => $instance['tabs_styling']['tab_border_width']. "px",
|
190 |
+
'tab_border_color' => $instance['tabs_styling']['tab_border_color'],
|
191 |
+
|
192 |
+
|
193 |
Â
'inactive_tab_color' => $instance['tabs_styling']['inactive_tab_color'],
|
194 |
+
'active_tab_bg_color' => $instance['tabs_styling']['active_tab_bg_color'],
|
195 |
Â
'active_tab_color' => $instance['tabs_styling']['active_tab_color'],
|
196 |
Â
'tab_content_color' => $instance['tabs_styling']['tab_content_color'],
|
197 |
Â
);
|
extra-widgets/tabs/tpl/tabs-template.php
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
Â
<?php
|
2 |
Â
$widget_title = wp_kses_post($instance['widget_title']);
|
3 |
Â
$tabs_selection = wp_kses_post($instance['tabs_selection']);
|
Â
|
|
4 |
Â
?>
|
5 |
Â
|
6 |
Â
|
@@ -17,7 +18,35 @@ $tabs_selection = wp_kses_post($instance['tabs_selection']);
|
|
17 |
Â
|
18 |
Â
<ul class="soua-tabs">
|
19 |
Â
<?php foreach( $instance['repeater'] as $i => $repeater ) : ?>
|
20 |
-
<li><a href="#">
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
21 |
Â
<?php endforeach; ?>
|
22 |
Â
</ul> <!-- / tabs -->
|
23 |
Â
|
@@ -38,7 +67,35 @@ $tabs_selection = wp_kses_post($instance['tabs_selection']);
|
|
38 |
Â
|
39 |
Â
<ul class="soua-tabs ">
|
40 |
Â
<?php foreach( $instance['repeater'] as $i => $repeater ) : ?>
|
41 |
-
<li><a href="#">
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
42 |
Â
<?php endforeach; ?>
|
43 |
Â
</ul> <!-- / tabs -->
|
44 |
Â
|
1 |
Â
<?php
|
2 |
Â
$widget_title = wp_kses_post($instance['widget_title']);
|
3 |
Â
$tabs_selection = wp_kses_post($instance['tabs_selection']);
|
4 |
+
$tab_icon_position = wp_kses_post($instance['tabs_styling']['tab_icon_position']);
|
5 |
Â
?>
|
6 |
Â
|
7 |
Â
|
18 |
Â
|
19 |
Â
<ul class="soua-tabs">
|
20 |
Â
<?php foreach( $instance['repeater'] as $i => $repeater ) : ?>
|
21 |
+
<li><a href="#">
|
22 |
+
|
23 |
+
<?php if($tab_icon_position == 'top'):?>
|
24 |
+
<?php if(siteorigin_widget_get_icon( $repeater['tab_icon'])): ?>
|
25 |
+
<div class="tab-icon-top">
|
26 |
+
<?php echo siteorigin_widget_get_icon( $repeater['tab_icon'] ); ?>
|
27 |
+
</div>
|
28 |
+
<?php endif; ?>
|
29 |
+
<?php endif; ?>
|
30 |
+
|
31 |
+
<?php if($tab_icon_position == 'left'):?>
|
32 |
+
<?php if(siteorigin_widget_get_icon( $repeater['tab_icon'])): ?>
|
33 |
+
<div class="tab-icon-left">
|
34 |
+
<?php echo siteorigin_widget_get_icon( $repeater['tab_icon'] ); ?>
|
35 |
+
</div>
|
36 |
+
<?php endif; ?>
|
37 |
+
<?php endif; ?>
|
38 |
+
|
39 |
+
<?php echo $repeater['tab_title']; ?>
|
40 |
+
|
41 |
+
<?php if($tab_icon_position == 'right'):?>
|
42 |
+
<?php if(siteorigin_widget_get_icon( $repeater['tab_icon'])): ?>
|
43 |
+
<div class="tab-icon-right">
|
44 |
+
<?php echo siteorigin_widget_get_icon( $repeater['tab_icon'] ); ?>
|
45 |
+
</div>
|
46 |
+
<?php endif; ?>
|
47 |
+
<?php endif; ?>
|
48 |
+
|
49 |
+
</a></li>
|
50 |
Â
<?php endforeach; ?>
|
51 |
Â
</ul> <!-- / tabs -->
|
52 |
Â
|
67 |
Â
|
68 |
Â
<ul class="soua-tabs ">
|
69 |
Â
<?php foreach( $instance['repeater'] as $i => $repeater ) : ?>
|
70 |
+
<li><a href="#">
|
71 |
+
|
72 |
+
<?php if($tab_icon_position == 'top'):?>
|
73 |
+
<?php if(siteorigin_widget_get_icon( $repeater['tab_icon'])): ?>
|
74 |
+
<div class="tab-icon-top">
|
75 |
+
<?php echo siteorigin_widget_get_icon( $repeater['tab_icon'] ); ?>
|
76 |
+
</div>
|
77 |
+
<?php endif; ?>
|
78 |
+
<?php endif; ?>
|
79 |
+
|
80 |
+
<?php if($tab_icon_position == 'left'):?>
|
81 |
+
<?php if(siteorigin_widget_get_icon( $repeater['tab_icon'])): ?>
|
82 |
+
<div class="tab-icon-left">
|
83 |
+
<?php echo siteorigin_widget_get_icon( $repeater['tab_icon'] ); ?>
|
84 |
+
</div>
|
85 |
+
<?php endif; ?>
|
86 |
+
<?php endif; ?>
|
87 |
+
|
88 |
+
<?php echo $repeater['tab_title']; ?>
|
89 |
+
|
90 |
+
<?php if($tab_icon_position == 'right'):?>
|
91 |
+
<?php if(siteorigin_widget_get_icon( $repeater['tab_icon'])): ?>
|
92 |
+
<div class="tab-icon-right">
|
93 |
+
<?php echo siteorigin_widget_get_icon( $repeater['tab_icon'] ); ?>
|
94 |
+
</div>
|
95 |
+
<?php endif; ?>
|
96 |
+
<?php endif; ?>
|
97 |
+
|
98 |
+
</a></li>
|
99 |
Â
<?php endforeach; ?>
|
100 |
Â
</ul> <!-- / tabs -->
|
101 |
Â
|
extra-widgets/team/team.php
CHANGED
@@ -127,27 +127,6 @@ class Team extends SiteOrigin_Widget
|
|
127 |
Â
)
|
128 |
Â
),
|
129 |
Â
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
Â
),
|
152 |
Â
|
153 |
Â
|
@@ -168,7 +147,7 @@ class Team extends SiteOrigin_Widget
|
|
168 |
Â
function get_less_variables( $instance ) {
|
169 |
Â
return array(
|
170 |
Â
'title_color' => $instance['team_styling']['title_color'],
|
171 |
-
'company_name_color' => $instance['team_styling']['
|
172 |
Â
'content_color' => $instance['team_styling']['content_color'],
|
173 |
Â
'social_icon_color' => $instance['team_styling']['social_icon_color'],
|
174 |
Â
'social_icon_size' => $instance['team_styling']['social_icon_size'].'px',
|
127 |
Â
)
|
128 |
Â
),
|
129 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
130 |
Â
),
|
131 |
Â
|
132 |
Â
|
147 |
Â
function get_less_variables( $instance ) {
|
148 |
Â
return array(
|
149 |
Â
'title_color' => $instance['team_styling']['title_color'],
|
150 |
+
'company_name_color' => $instance['team_styling']['company_name_color'],
|
151 |
Â
'content_color' => $instance['team_styling']['content_color'],
|
152 |
Â
'social_icon_color' => $instance['team_styling']['social_icon_color'],
|
153 |
Â
'social_icon_size' => $instance['team_styling']['social_icon_size'].'px',
|
extra-widgets/team/tpl/team-template.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
Â
<?php
|
2 |
Â
$widget_title = wp_kses_post($instance['widget_title']);
|
3 |
-
$team_image = wp_get_attachment_image_src($instance['team_image']);
|
4 |
Â
$team_title = wp_kses_post($instance['team_title']);
|
5 |
Â
$company_title = wp_kses_post($instance['company_title']);
|
6 |
Â
$detail_box = wp_kses_post($instance['detail_box']);
|
@@ -20,7 +20,7 @@ $social_icon_size = wp_kses_post($instance['team_styling']['social_icon_size']);
|
|
20 |
Â
|
21 |
Â
<?php if ($team_image) { ?>
|
22 |
Â
<div class="member_image">
|
23 |
-
<img src=" <?php echo $team_image[0]; ?>" alt=""
|
24 |
Â
</div>
|
25 |
Â
<?php } ?>
|
26 |
Â
|
1 |
Â
<?php
|
2 |
Â
$widget_title = wp_kses_post($instance['widget_title']);
|
3 |
+
$team_image = wp_get_attachment_image_src($instance['team_image'],'widgets_image_size');
|
4 |
Â
$team_title = wp_kses_post($instance['team_title']);
|
5 |
Â
$company_title = wp_kses_post($instance['company_title']);
|
6 |
Â
$detail_box = wp_kses_post($instance['detail_box']);
|
20 |
Â
|
21 |
Â
<?php if ($team_image) { ?>
|
22 |
Â
<div class="member_image">
|
23 |
+
<img src=" <?php echo $team_image[0]; ?>" alt="" />
|
24 |
Â
</div>
|
25 |
Â
<?php } ?>
|
26 |
Â
|
extra-widgets/testimonials/assets/banner.svg
CHANGED
File without changes
|
extra-widgets/testimonials/styles/testimonials-style.less
CHANGED
@@ -1,6 +1,4 @@
|
|
1 |
Â
/*testimonial Rotator*/
|
2 |
-
.margin_zero .column{margin: 0 !important;}
|
3 |
-
.margin_zero .columns{margin: 0 !important;}
|
4 |
Â
.testimonials_grid{margin: 10px;}
|
5 |
Â
.testimonials_grid .testimonial_content{position: relative; background: #f6f6f6; padding: 15px 20px 20px 20px; margin-bottom: 25px; border-radius: 3px;}
|
6 |
Â
.testimonials_grid .testimonial_content p{font-style: italic; }
|
@@ -17,4 +15,5 @@
|
|
17 |
Â
@content_color: #888 ;
|
18 |
Â
|
19 |
Â
.testimonial_content {background-color: @bg_color ;}
|
20 |
-
.testimonial_content p{color: @content_color;}
|
Â
|
1 |
Â
/*testimonial Rotator*/
|
Â
|
|
Â
|
|
2 |
Â
.testimonials_grid{margin: 10px;}
|
3 |
Â
.testimonials_grid .testimonial_content{position: relative; background: #f6f6f6; padding: 15px 20px 20px 20px; margin-bottom: 25px; border-radius: 3px;}
|
4 |
Â
.testimonials_grid .testimonial_content p{font-style: italic; }
|
15 |
Â
@content_color: #888 ;
|
16 |
Â
|
17 |
Â
.testimonial_content {background-color: @bg_color ;}
|
18 |
+
.testimonial_content p{color: @content_color;}
|
19 |
+
.testimonials_grid .testimonial_content:after {border-top-color: @bg_color;}
|
extra-widgets/testimonials/testimonials.php
CHANGED
@@ -50,12 +50,12 @@ class Testimonials extends SiteOrigin_Widget {
|
|
50 |
Â
'grid_selection' => array(
|
51 |
Â
'type' => 'radio',
|
52 |
Â
'label' => __( 'Choose a Gird Layout ( Only for Testimonial Grid )', 'addon-so-widgets-bundle' ),
|
53 |
-
'default' => '
|
54 |
Â
'options' => array(
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
Â
)
|
60 |
Â
),
|
61 |
Â
|
50 |
Â
'grid_selection' => array(
|
51 |
Â
'type' => 'radio',
|
52 |
Â
'label' => __( 'Choose a Gird Layout ( Only for Testimonial Grid )', 'addon-so-widgets-bundle' ),
|
53 |
+
'default' => 'six columns',
|
54 |
Â
'options' => array(
|
55 |
+
'six columns' => __( 'Two Columns', 'addon-so-widgets-bundle' ),
|
56 |
+
'four columns' => __( 'Three Columns', 'addon-so-widgets-bundle' ),
|
57 |
+
'three columns' => __( 'Four Columns', 'addon-so-widgets-bundle' ),
|
58 |
+
'twelve columns' => __( 'Full Width', 'addon-so-widgets-bundle' ),
|
59 |
Â
)
|
60 |
Â
),
|
61 |
Â
|
extra-widgets/testimonials/tpl/testimonials-template.php
CHANGED
File without changes
|
extra-widgets/toggles/assets/banner.svg
CHANGED
File without changes
|
extra-widgets/toggles/styles/toggles-style.less
CHANGED
@@ -1,69 +1,70 @@
|
|
1 |
-
|
2 |
-
|
3 |
Â
.soua-main {
|
4 |
Â
margin: 0; padding: 0; list-style: none;
|
5 |
Â
}
|
6 |
Â
.soua-main .soua-accordion {
|
7 |
Â
position: relative;
|
8 |
Â
padding: 0 !important;
|
9 |
-
margin: 0 !important;
|
10 |
Â
}
|
11 |
Â
.soua-main .soua-accordion .soua-accordion-content {
|
12 |
Â
display: none;
|
Â
|
|
13 |
Â
}
|
14 |
Â
.soua-main .soua-accordion-title {
|
15 |
Â
width: 100%;
|
16 |
Â
display: block;
|
17 |
Â
cursor: pointer;
|
18 |
Â
line-height: 3;
|
19 |
-
text-indent: 15px;
|
20 |
Â
user-select: none;
|
21 |
Â
text-decoration: none;
|
22 |
-
padding: 0 20px;
|
23 |
-
}
|
24 |
-
.soua-main .soua-accordion-title:after {
|
25 |
-
width: 8px;
|
26 |
-
height: 8px;
|
27 |
-
border-right: 1px solid #4a6e78;
|
28 |
-
border-bottom: 1px solid #4a6e78;
|
29 |
-
position: absolute;
|
30 |
-
left: 10px;
|
31 |
-
content: " ";
|
32 |
-
top: 17px;
|
33 |
-
transform: rotate(-45deg);
|
34 |
-
-webkit-transition: all 0.2s ease-in-out;
|
35 |
-
-moz-transition: all 0.2s ease-in-out;
|
36 |
-
transition: all 0.2s ease-in-out;
|
37 |
-
}
|
38 |
-
.soua-main .soua-accordion .soua-accordion-content {
|
39 |
-
padding: 10px;
|
40 |
Â
}
|
41 |
Â
|
42 |
-
.soua-accordion-
|
43 |
-
|
44 |
-
-webkit-transition: all 0.2s ease-in-out;
|
45 |
-
-moz-transition: all 0.2s ease-in-out;
|
46 |
-
transition: all 0.2s ease-in-out;
|
47 |
-
}
|
48 |
Â
|
49 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
50 |
Â
|
51 |
Â
|
52 |
Â
|
53 |
-
@title_color: #000000;
|
54 |
-
@title_hover_color: #000000 ;
|
55 |
-
@content_color: #000000 ;
|
56 |
Â
|
57 |
Â
.soua-main .soua-accordion .soua-accordion-title{
|
58 |
Â
color: @title_color;
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
59 |
Â
}
|
60 |
Â
|
61 |
-
.soua-main .soua-accordion .soua-accordion-
|
62 |
-
color: @
|
63 |
Â
}
|
64 |
Â
|
Â
|
|
65 |
Â
.soua-main .soua-accordion .soua-accordion-content{
|
66 |
Â
color: @content_color;
|
Â
|
|
67 |
Â
}
|
68 |
Â
|
69 |
Â
|
Â
|
|
Â
|
|
1 |
Â
.soua-main {
|
2 |
Â
margin: 0; padding: 0; list-style: none;
|
3 |
Â
}
|
4 |
Â
.soua-main .soua-accordion {
|
5 |
Â
position: relative;
|
6 |
Â
padding: 0 !important;
|
7 |
+
margin: 5px 0 !important;
|
8 |
Â
}
|
9 |
Â
.soua-main .soua-accordion .soua-accordion-content {
|
10 |
Â
display: none;
|
11 |
+
padding: 15px 0;
|
12 |
Â
}
|
13 |
Â
.soua-main .soua-accordion-title {
|
14 |
Â
width: 100%;
|
15 |
Â
display: block;
|
16 |
Â
cursor: pointer;
|
17 |
Â
line-height: 3;
|
Â
|
|
18 |
Â
user-select: none;
|
19 |
Â
text-decoration: none;
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
20 |
Â
}
|
21 |
Â
|
22 |
+
.soua-accordion-icon-left{margin-right:10px; display:inline-block;}
|
23 |
+
.soua-accordion-icon-right{margin-left:10px; display:inline-block;}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
24 |
Â
|
25 |
Â
|
26 |
+
@bg: transparent;
|
27 |
+
@bg_hover: transparent;
|
28 |
+
@title_bar_alignment:left;
|
29 |
+
@icon_color: #000000;
|
30 |
+
@title_color: #000000;
|
31 |
+
@content_bg_color: transparent;
|
32 |
+
@content_color: #000000 ;
|
33 |
+
|
34 |
+
@toggle_border:none;
|
35 |
+
@toggle_border_width:0;
|
36 |
+
@toggle_border_color:transparent;
|
37 |
+
|
38 |
+
@toggle_padding: 0px;
|
39 |
Â
|
40 |
Â
|
41 |
Â
|
Â
|
|
Â
|
|
Â
|
|
42 |
Â
|
43 |
Â
.soua-main .soua-accordion .soua-accordion-title{
|
44 |
Â
color: @title_color;
|
45 |
+
background-color: @bg;
|
46 |
+
text-align: @title_bar_alignment;
|
47 |
+
}
|
48 |
+
|
49 |
+
.top_b, .right_b, .bottom_b, .left_b, .bg{padding: @toggle_padding;}
|
50 |
+
.top_b{border-top: @toggle_border; border-width: @toggle_border_width; border-color: @toggle_border_color;}
|
51 |
+
.right_b{border-right: @toggle_border; border-width: @toggle_border_width; border-color: @toggle_border_color;}
|
52 |
+
.bottom_b{border-bottom: @toggle_border; border-width: @toggle_border_width; border-color: @toggle_border_color;}
|
53 |
+
.left_b{border-left: @toggle_border; border-width: @toggle_border_width; border-color: @toggle_border_color;}
|
54 |
+
|
55 |
+
|
56 |
+
.soua-main .soua-accordion .soua-accordion-title:hover{
|
57 |
+
background-color: @bg_hover;
|
58 |
Â
}
|
59 |
Â
|
60 |
+
.soua-main .soua-accordion .soua-accordion-icon-left, .soua-main .soua-accordion .soua-accordion-icon-right{
|
61 |
+
color: @icon_color;
|
62 |
Â
}
|
63 |
Â
|
64 |
+
|
65 |
Â
.soua-main .soua-accordion .soua-accordion-content{
|
66 |
Â
color: @content_color;
|
67 |
+
background-color: @content_bg_color;
|
68 |
Â
}
|
69 |
Â
|
70 |
Â
|
extra-widgets/toggles/toggles.php
CHANGED
@@ -40,6 +40,21 @@ class Toggles extends SiteOrigin_Widget {
|
|
40 |
Â
),
|
41 |
Â
'fields' => array(
|
42 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
43 |
Â
'toggle_title' => array(
|
44 |
Â
'type' => 'text',
|
45 |
Â
'label' => __('Toggle Title', 'addon-so-widgets-bundle'),
|
@@ -72,15 +87,50 @@ class Toggles extends SiteOrigin_Widget {
|
|
72 |
Â
'hide' => true,
|
73 |
Â
'fields' => array(
|
74 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
75 |
Â
'title_color' => array(
|
76 |
Â
'type' => 'color',
|
77 |
Â
'label' => __( 'Title color', 'addon-so-widgets-bundle' ),
|
78 |
Â
'default' => ''
|
79 |
Â
),
|
80 |
Â
|
81 |
-
'
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
82 |
Â
'type' => 'color',
|
83 |
-
'label' => __( '
|
84 |
Â
'default' => ''
|
85 |
Â
),
|
86 |
Â
|
@@ -90,6 +140,56 @@ class Toggles extends SiteOrigin_Widget {
|
|
90 |
Â
'default' => ''
|
91 |
Â
),
|
92 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
93 |
Â
|
94 |
Â
|
95 |
Â
)
|
@@ -111,9 +211,17 @@ class Toggles extends SiteOrigin_Widget {
|
|
111 |
Â
|
112 |
Â
function get_less_variables( $instance ) {
|
113 |
Â
return array(
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
114 |
Â
'title_color' => $instance['toggle_styling']['title_color'],
|
115 |
-
'
|
116 |
Â
'content_color' => $instance['toggle_styling']['content_color'],
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
117 |
Â
);
|
118 |
Â
}
|
119 |
Â
|
40 |
Â
),
|
41 |
Â
'fields' => array(
|
42 |
Â
|
43 |
+
'toggle_icon' => array(
|
44 |
+
'type' => 'icon',
|
45 |
+
'label' => __('Select an icon', 'widget-form-fields-text-domain'),
|
46 |
+
),
|
47 |
+
|
48 |
+
|
49 |
+
'icon_position' => array(
|
50 |
+
'type' => 'select',
|
51 |
+
'prompt' => __( 'Choose an Icon position', 'widget-form-fields-text-domain' ),
|
52 |
+
'options' => array(
|
53 |
+
'left' => __( 'Left Side', 'widget-form-fields-text-domain' ),
|
54 |
+
'right' => __( 'Right Side', 'widget-form-fields-text-domain' ),
|
55 |
+
)
|
56 |
+
),
|
57 |
+
|
58 |
Â
'toggle_title' => array(
|
59 |
Â
'type' => 'text',
|
60 |
Â
'label' => __('Toggle Title', 'addon-so-widgets-bundle'),
|
87 |
Â
'hide' => true,
|
88 |
Â
'fields' => array(
|
89 |
Â
|
90 |
+
'toggle_padding' => array(
|
91 |
+
'type' => 'text',
|
92 |
+
'label' => __('Title Padding (shorthand Format)', 'widget-form-fields-text-domain'),
|
93 |
+
'default' => '0px 0px 0px 0px'
|
94 |
+
),
|
95 |
+
|
96 |
+
'bg' => array(
|
97 |
+
'type' => 'color',
|
98 |
+
'label' => __( 'backgorund color', 'addon-so-widgets-bundle' ),
|
99 |
+
'default' => ''
|
100 |
+
),
|
101 |
+
|
102 |
+
'bg_hover' => array(
|
103 |
+
'type' => 'color',
|
104 |
+
'label' => __( 'backgorund Hover color', 'addon-so-widgets-bundle' ),
|
105 |
+
'default' => ''
|
106 |
+
),
|
107 |
+
|
108 |
+
'icon_color' => array(
|
109 |
+
'type' => 'color',
|
110 |
+
'label' => __( 'icon color', 'addon-so-widgets-bundle' ),
|
111 |
+
'default' => ''
|
112 |
+
),
|
113 |
+
|
114 |
Â
'title_color' => array(
|
115 |
Â
'type' => 'color',
|
116 |
Â
'label' => __( 'Title color', 'addon-so-widgets-bundle' ),
|
117 |
Â
'default' => ''
|
118 |
Â
),
|
119 |
Â
|
120 |
+
'title_bar_alignment' => array(
|
121 |
+
'type' => 'select',
|
122 |
+
'label' => __( 'Title Bar Alignment', 'addon-so-widgets-bundle' ),
|
123 |
+
'default' => 'left',
|
124 |
+
'options' => array(
|
125 |
+
'left' => __( 'Left Align', 'addon-so-widgets-bundle' ),
|
126 |
+
'center' => __( 'Center Align', 'addon-so-widgets-bundle' ),
|
127 |
+
'right' => __( 'Right Align', 'addon-so-widgets-bundle' ),
|
128 |
+
)
|
129 |
+
),
|
130 |
+
|
131 |
+
'content_bg_color' => array(
|
132 |
Â
'type' => 'color',
|
133 |
+
'label' => __( 'Content backgorund color', 'addon-so-widgets-bundle' ),
|
134 |
Â
'default' => ''
|
135 |
Â
),
|
136 |
Â
|
140 |
Â
'default' => ''
|
141 |
Â
),
|
142 |
Â
|
143 |
+
'toggle_border' => array(
|
144 |
+
'type' => 'select',
|
145 |
+
'label' => __( 'Border style', 'addon-so-widgets-bundle' ),
|
146 |
+
'default' => '',
|
147 |
+
'options' => array(
|
148 |
+
'none' => __( 'No Border', 'addon-so-widgets-bundle' ),
|
149 |
+
'solid' => __( 'Solid', 'addon-so-widgets-bundle' ),
|
150 |
+
'dashed' => __( 'Dashed', 'addon-so-widgets-bundle' ),
|
151 |
+
'dotted' => __( 'Dotted', 'addon-so-widgets-bundle' ),
|
152 |
+
)
|
153 |
+
),
|
154 |
+
|
155 |
+
'toggle_border_width' => array(
|
156 |
+
'type' => 'number',
|
157 |
+
'label' => __( 'Border Width (without px)', 'addon-so-widgets-bundle' ),
|
158 |
+
'default' => ''
|
159 |
+
),
|
160 |
+
|
161 |
+
'toggle_border_color' => array(
|
162 |
+
'type' => 'color',
|
163 |
+
'label' => __( 'Border color', 'addon-so-widgets-bundle' ),
|
164 |
+
'default' => ''
|
165 |
+
),
|
166 |
+
|
167 |
+
'toggle_top_border' => array(
|
168 |
+
'type' => 'checkbox',
|
169 |
+
'label' => __( 'Box Top Border', 'widget-form-fields-text-domain' ),
|
170 |
+
'default' => false
|
171 |
+
),
|
172 |
+
|
173 |
+
'toggle_right_border' => array(
|
174 |
+
'type' => 'checkbox',
|
175 |
+
'label' => __( 'Box Right Border', 'widget-form-fields-text-domain' ),
|
176 |
+
'default' => false
|
177 |
+
),
|
178 |
+
|
179 |
+
'toggle_bottom_border' => array(
|
180 |
+
'type' => 'checkbox',
|
181 |
+
'label' => __( 'Box Bottom Border', 'widget-form-fields-text-domain' ),
|
182 |
+
'default' => false
|
183 |
+
),
|
184 |
+
|
185 |
+
'toggle_left_border' => array(
|
186 |
+
'type' => 'checkbox',
|
187 |
+
'label' => __( 'Box Left Border', 'widget-form-fields-text-domain' ),
|
188 |
+
'default' => false
|
189 |
+
),
|
190 |
+
|
191 |
+
|
192 |
+
|
193 |
Â
|
194 |
Â
|
195 |
Â
)
|
211 |
Â
|
212 |
Â
function get_less_variables( $instance ) {
|
213 |
Â
return array(
|
214 |
+
'title_bar_alignment' => $instance['toggle_styling']['title_bar_alignment'],
|
215 |
+
'bg' => $instance['toggle_styling']['bg'],
|
216 |
+
'bg_hover' => $instance['toggle_styling']['bg_hover'],
|
217 |
+
'icon_color' => $instance['toggle_styling']['icon_color'],
|
218 |
Â
'title_color' => $instance['toggle_styling']['title_color'],
|
219 |
+
'content_bg_color' => $instance['toggle_styling']['content_bg_color'],
|
220 |
Â
'content_color' => $instance['toggle_styling']['content_color'],
|
221 |
+
'toggle_border' => $instance['toggle_styling']['toggle_border'],
|
222 |
+
'toggle_border_width' => $instance['toggle_styling']['toggle_border_width'].'px',
|
223 |
+
'toggle_border_color' => $instance['toggle_styling']['toggle_border_color'],
|
224 |
+
'toggle_padding' => $instance['toggle_styling']['toggle_padding'],
|
225 |
Â
);
|
226 |
Â
}
|
227 |
Â
|
extra-widgets/toggles/tpl/toggles-template.php
CHANGED
@@ -1,5 +1,12 @@
|
|
1 |
Â
<?php
|
2 |
Â
$widget_title = wp_kses_post($instance['widget_title']);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
3 |
Â
?>
|
4 |
Â
|
5 |
Â
|
@@ -13,9 +20,31 @@ $widget_title = wp_kses_post($instance['widget_title']);
|
|
13 |
Â
<div class="soua-main">
|
14 |
Â
<?php foreach( $instance['toggle_repeater'] as $i => $toggle_repeater ) : ?>
|
15 |
Â
<div class="soua-accordion">
|
16 |
-
<a class="soua-accordion-title
|
17 |
-
<div class="
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
18 |
Â
</div>
|
19 |
Â
<?php endforeach; ?>
|
20 |
-
</div
|
21 |
Â
|
1 |
Â
<?php
|
2 |
Â
$widget_title = wp_kses_post($instance['widget_title']);
|
3 |
+
|
4 |
+
$toggle_border = wp_kses_post($instance['toggle_styling']['toggle_border']);
|
5 |
+
$toggle_top_border = wp_kses_post($instance['toggle_styling']['toggle_top_border']);
|
6 |
+
$toggle_right_border = wp_kses_post($instance['toggle_styling']['toggle_right_border']);
|
7 |
+
$toggle_bottom_border = wp_kses_post($instance['toggle_styling']['toggle_bottom_border']);
|
8 |
+
$toggle_left_border = wp_kses_post($instance['toggle_styling']['toggle_left_border']);
|
9 |
+
$title_bg = wp_kses_post($instance['toggle_styling']['bg']);
|
10 |
Â
?>
|
11 |
Â
|
12 |
Â
|
20 |
Â
<div class="soua-main">
|
21 |
Â
<?php foreach( $instance['toggle_repeater'] as $i => $toggle_repeater ) : ?>
|
22 |
Â
<div class="soua-accordion">
|
23 |
+
<a class="soua-accordion-title <?php echo $icon_selection; ?>">
|
24 |
+
<div class="<?php if($toggle_top_border){ echo " top_b "; } if($toggle_right_border){ echo " right_b "; } if($toggle_bottom_border){ echo " bottom_b "; } if($toggle_left_border){ echo " left_b "; } if($title_bg){ echo " bg "; } ?>">
|
25 |
+
|
26 |
+
<?php if($toggle_repeater['icon_position'] == 'left'):?>
|
27 |
+
<?php if(siteorigin_widget_get_icon( $toggle_repeater['toggle_icon'])): ?>
|
28 |
+
<div class="soua-accordion-icon-left">
|
29 |
+
<?php echo siteorigin_widget_get_icon( $toggle_repeater['toggle_icon'] ); ?>
|
30 |
+
</div>
|
31 |
+
<?php endif; ?>
|
32 |
+
<?php endif; ?>
|
33 |
+
|
34 |
+
<?php echo $toggle_repeater['toggle_title'] ?>
|
35 |
+
|
36 |
+
<?php if($toggle_repeater['icon_position'] == 'right'):?>
|
37 |
+
<?php if(siteorigin_widget_get_icon( $toggle_repeater['toggle_icon'])): ?>
|
38 |
+
<div class="soua-accordion-icon-right">
|
39 |
+
<?php echo siteorigin_widget_get_icon( $toggle_repeater['toggle_icon'] ); ?>
|
40 |
+
</div>
|
41 |
+
<?php endif; ?>
|
42 |
+
<?php endif; ?>
|
43 |
+
|
44 |
+
</div>
|
45 |
+
</a>
|
46 |
+
<div class="soua-accordion-content" <?php if(wp_kses_post($instance['toggle_styling']['content_bg_color'])): ?> style="padding: 15px";<?php endif; ?> > <?php echo $toggle_repeater['toggle_content'] ?></div>
|
47 |
Â
</div>
|
48 |
Â
<?php endforeach; ?>
|
49 |
+
</div><!-- / accordion -->
|
50 |
Â
|
js/npm.js
CHANGED
File without changes
|
js/owl.carousel.min.js
CHANGED
File without changes
|
readme.txt
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
Â
=== Ultimate Addons for SiteOrigin ===
|
2 |
Â
Tags: Siteorigin page builder, responsive, widget, widgets, post grid, post list, testimonial widget, testimonial rotator, testimonial post type, faqs, faq post type, tab, toggle, divider, spacer, service box, feature box, post loop, team
|
3 |
Â
Requires at least: 3.9
|
4 |
-
Tested up to: 4.3
|
5 |
-
Stable tag: 2.
|
6 |
Â
License: GPLv2 or later
|
7 |
Â
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
8 |
Â
Donate link: http://ingenious-web.com/contact
|
@@ -16,7 +16,9 @@ An ultimate collection of addons for SiteOrigin. SiteOrigin Widgets Bundle is re
|
|
16 |
Â
|
17 |
Â
**Important: You must activate widgets you need to use from Plugins > SiteOrigin Widgets so that they can be available to use.**
|
18 |
Â
|
19 |
-
This is an Addon plugin for SiteOrigin Widgets Bundle plugin which will add some (and growing) amazing widgets for you to build up your content pages easily using SiteOrigin page builder.
|
Â
|
|
Â
|
|
20 |
Â
|
21 |
Â
The collection is growing, but here's what we have so far.
|
22 |
Â
|
@@ -54,6 +56,43 @@ We will add FAQs very soon.
|
|
54 |
Â
|
55 |
Â
== Changelog ==
|
56 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
57 |
Â
= 2.3.0 =
|
58 |
Â
* Fixed bugs as reported by different users.
|
59 |
Â
* New option - Icon right in Service Box
|
1 |
Â
=== Ultimate Addons for SiteOrigin ===
|
2 |
Â
Tags: Siteorigin page builder, responsive, widget, widgets, post grid, post list, testimonial widget, testimonial rotator, testimonial post type, faqs, faq post type, tab, toggle, divider, spacer, service box, feature box, post loop, team
|
3 |
Â
Requires at least: 3.9
|
4 |
+
Tested up to: 4.5.3
|
5 |
+
Stable tag: 2.4.0
|
6 |
Â
License: GPLv2 or later
|
7 |
Â
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
8 |
Â
Donate link: http://ingenious-web.com/contact
|
16 |
Â
|
17 |
Â
**Important: You must activate widgets you need to use from Plugins > SiteOrigin Widgets so that they can be available to use.**
|
18 |
Â
|
19 |
+
This is an Addon plugin for SiteOrigin Widgets Bundle plugin which will add some (and growing) amazing widgets for you to build up your content pages easily using SiteOrigin page builder.
|
20 |
+
|
21 |
+
For more info and Demos please visit [Ultimate Addons' Page.](http://proto.ingenious-web.com/siteoriginaddon/)
|
22 |
Â
|
23 |
Â
The collection is growing, but here's what we have so far.
|
24 |
Â
|
56 |
Â
|
57 |
Â
== Changelog ==
|
58 |
Â
|
59 |
+
= 2.4.0 =
|
60 |
+
* Overall lots of improvements and updates done, some outlined bellow.
|
61 |
+
* Service Widget: CSS updates
|
62 |
+
* Service Widget: Changes slider field to text field for width
|
63 |
+
* Service Widget: Bug Fixes
|
64 |
+
* Service Widget: Add button styling
|
65 |
+
* Service Widget: Add border options
|
66 |
+
* Blog Widget: Ending Dots Link's to post now
|
67 |
+
* Blog Widget: CSS updates
|
68 |
+
* Blog Widget: Bug Fixes
|
69 |
+
* Toggle Widget: CSS Updates
|
70 |
+
* Toggle Widget: Bug Fixes
|
71 |
+
* Toggle Widget: Add icon field, deleted static icon
|
72 |
+
* Toggle Widget: Add icon position left or right
|
73 |
+
* Toggle Widget: Add title bg color
|
74 |
+
* Toggle Widget: Add title bg hover
|
75 |
+
* Toggle Widget: Add content bg color
|
76 |
+
* Toggle Widget: Add icon color
|
77 |
+
* Toggle Widget: Add title text alignment
|
78 |
+
* FAQ Widget: CSS Updates
|
79 |
+
* FAQ Widget: Bug Fixes
|
80 |
+
* FAQ Widget: Add title bg color
|
81 |
+
* FAQ Widget: Add title bg hover
|
82 |
+
* FAQ Widget: Add content bg color
|
83 |
+
* FAQ Widget: Add icon color
|
84 |
+
* FAQ Widget: Add title text alignment
|
85 |
+
* TAB Widget: CSS Updates
|
86 |
+
* TAB Widget: Bug Fixes
|
87 |
+
* TAB Widget: Add active tab bg color
|
88 |
+
* TAB Widget: Add active tab font color
|
89 |
+
* TAB Widget: Add inactive tab font color
|
90 |
+
* TAB Widget: Add tab icon
|
91 |
+
* TAB Widget: Add icon position
|
92 |
+
* Testimonials: Arrow Color Fix
|
93 |
+
* Team Widget: Image size fix
|
94 |
+
|
95 |
+
|
96 |
Â
= 2.3.0 =
|
97 |
Â
* Fixed bugs as reported by different users.
|
98 |
Â
* New option - Icon right in Service Box
|
tmp-addon-so-widgets-bundle-readme.pot
ADDED
@@ -0,0 +1,198 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
msgid ""
|
2 |
+
msgstr "MIME-Version: 1.0\n"
|
3 |
+
|
4 |
+
#. Name.
|
5 |
+
msgid "Ultimate Addons for SiteOrigin"
|
6 |
+
msgstr ""
|
7 |
+
|
8 |
+
#. Short description.
|
9 |
+
msgid "An ultimate collection of addons for SiteOrigin. SiteOrigin Widgets Bundle is required."
|
10 |
+
msgstr ""
|
11 |
+
|
12 |
+
#. Screenshot description.
|
13 |
+
msgid "Manage which widgets you want enabled or disabled."
|
14 |
+
msgstr ""
|
15 |
+
|
16 |
+
#. Found in description header.
|
17 |
+
msgid "Addon Widgets Customizations"
|
18 |
+
msgstr ""
|
19 |
+
|
20 |
+
#. Found in description list item.
|
21 |
+
msgid "Tabs Widget - Now you can easily add tabbed content on any page."
|
22 |
+
msgstr ""
|
23 |
+
|
24 |
+
#. Found in description list item.
|
25 |
+
msgid "Toggle Widget - Will help you add content in toggle."
|
26 |
+
msgstr ""
|
27 |
+
|
28 |
+
#. Found in description list item.
|
29 |
+
msgid "Testimonial Widget - Comes with a custom post type (testimonial) with a widget to display testimonials as testimonial grid or testimonial rotator."
|
30 |
+
msgstr ""
|
31 |
+
|
32 |
+
#. Found in description list item.
|
33 |
+
msgid "FAQs Widget - This also comes with a custom post type for faqs and with a widget to display faqs on any page."
|
34 |
+
msgstr ""
|
35 |
+
|
36 |
+
#. Found in description list item.
|
37 |
+
msgid "Service Box Widget- This is for adding nice service boxes or feature boxes to any page you may have icon or image on top or left."
|
38 |
+
msgstr ""
|
39 |
+
|
40 |
+
#. Found in description list item.
|
41 |
+
msgid "Blog Posts Widget- There are currently 2 blog style widgets which you can use to display post loops to any page."
|
42 |
+
msgstr ""
|
43 |
+
|
44 |
+
#. Found in description list item.
|
45 |
+
msgid "Divider Widget - This will help you to add different styles of divider b/w content sections."
|
46 |
+
msgstr ""
|
47 |
+
|
48 |
+
#. Found in description list item.
|
49 |
+
msgid "Spacer Widget - Of-course some times you need a space b/w content sections, so here it is."
|
50 |
+
msgstr ""
|
51 |
+
|
52 |
+
#. Found in description list item.
|
53 |
+
msgid "Team Widget - Display your team members easily with this widget."
|
54 |
+
msgstr ""
|
55 |
+
|
56 |
+
#. Found in description paragraph.
|
57 |
+
msgid "[vimeo https://vimeo.com/134485964]"
|
58 |
+
msgstr ""
|
59 |
+
|
60 |
+
#. Found in description paragraph.
|
61 |
+
msgid "<strong>Important: You must activate widgets you need to use from Plugins > SiteOrigin Widgets so that they can be available to use.</strong>"
|
62 |
+
msgstr ""
|
63 |
+
|
64 |
+
#. Found in description paragraph.
|
65 |
+
msgid "This is an Addon plugin for SiteOrigin Widgets Bundle plugin which will add some (and growing) amazing widgets for you to build up your content pages easily using SiteOrigin page builder. For more info visit <a href=\"http://ingenious-web.com/ultimate-addons-for-siteorigin/\">Ultimate Addons' Page.</a>"
|
66 |
+
msgstr ""
|
67 |
+
|
68 |
+
#. Found in description paragraph.
|
69 |
+
msgid "The collection is growing, but here's what we have so far."
|
70 |
+
msgstr ""
|
71 |
+
|
72 |
+
#. Found in description paragraph.
|
73 |
+
msgid "Once you enable a widget, you'll be able to use it anywhere standard widgets are used. You can manage your widgets by going to Plugins > SiteOrigin Widgets in your WordPress admin."
|
74 |
+
msgstr ""
|
75 |
+
|
76 |
+
#. Found in description paragraph.
|
77 |
+
msgid "Each widget has it's styling options within it same as Siteorigin Widgets."
|
78 |
+
msgstr ""
|
79 |
+
|
80 |
+
#. Found in description paragraph.
|
81 |
+
msgid "<strong>Special thanks to SiteOrigin for the help in developing this plugin.</strong>"
|
82 |
+
msgstr ""
|
83 |
+
|
84 |
+
#. Found in description paragraph.
|
85 |
+
msgid "<strong>Please Rate this plugin if it's been useful for you and you liked it.</strong>"
|
86 |
+
msgstr ""
|
87 |
+
|
88 |
+
#. Found in installation list item.
|
89 |
+
msgid "Upload and install in the same way you'd install any other plugin."
|
90 |
+
msgstr ""
|
91 |
+
|
92 |
+
#. Found in changelog list item.
|
93 |
+
msgid "Fixed bugs as reported by different users."
|
94 |
+
msgstr ""
|
95 |
+
|
96 |
+
#. Found in changelog list item.
|
97 |
+
msgid "New option - Icon right in Service Box"
|
98 |
+
msgstr ""
|
99 |
+
|
100 |
+
#. Found in changelog list item.
|
101 |
+
msgid "New option - Image right alignment in blog list widget"
|
102 |
+
msgstr ""
|
103 |
+
|
104 |
+
#. Found in changelog list item.
|
105 |
+
msgid "New Option - Two column grid in blog list widget"
|
106 |
+
msgstr ""
|
107 |
+
|
108 |
+
#. Found in changelog list item.
|
109 |
+
msgid "New Option - some other little link possibilities to blog widgets."
|
110 |
+
msgstr ""
|
111 |
+
|
112 |
+
#. Found in changelog list item.
|
113 |
+
msgid "New Widget - Team Members widget added."
|
114 |
+
msgstr ""
|
115 |
+
|
116 |
+
#. Found in changelog list item.
|
117 |
+
msgid "Changed CSS for grid columns. Old css was still conflicting with themes."
|
118 |
+
msgstr ""
|
119 |
+
|
120 |
+
#. Found in changelog list item.
|
121 |
+
msgid "Fixed CSS issues on couple of Widgets."
|
122 |
+
msgstr ""
|
123 |
+
|
124 |
+
#. Found in changelog list item.
|
125 |
+
msgid "Fixed couple of small bugs."
|
126 |
+
msgstr ""
|
127 |
+
|
128 |
+
#. Found in changelog list item.
|
129 |
+
msgid "Removed Bootstrap dependency"
|
130 |
+
msgstr ""
|
131 |
+
|
132 |
+
#. Found in changelog list item.
|
133 |
+
msgid "Fixed JQuery conflict, now using WordPress bundled JQuery."
|
134 |
+
msgstr ""
|
135 |
+
|
136 |
+
#. Found in changelog list item.
|
137 |
+
msgid "Added TinyMCE editor to some widgets such as Tabs, toggle"
|
138 |
+
msgstr ""
|
139 |
+
|
140 |
+
#. Found in changelog list item.
|
141 |
+
msgid "Fixed some other bugs."
|
142 |
+
msgstr ""
|
143 |
+
|
144 |
+
#. Found in changelog list item.
|
145 |
+
msgid "Re-coded all Widgets to utilize SiteoRigin's API more better."
|
146 |
+
msgstr ""
|
147 |
+
|
148 |
+
#. Found in changelog list item.
|
149 |
+
msgid "Each Widget now has it's own options, same as SiteOrigin's Widget bundle widgets."
|
150 |
+
msgstr ""
|
151 |
+
|
152 |
+
#. Found in changelog list item.
|
153 |
+
msgid "Each Widget now can be styled differently as each one has it's own styling options as well."
|
154 |
+
msgstr ""
|
155 |
+
|
156 |
+
#. Found in changelog list item.
|
157 |
+
msgid "Removed Titan Framework Dependency."
|
158 |
+
msgstr ""
|
159 |
+
|
160 |
+
#. Found in changelog list item.
|
161 |
+
msgid "Customized bootstrap css used to just use the bootstrap Grid CSS, excluded all other css from Bootstrap css file."
|
162 |
+
msgstr ""
|
163 |
+
|
164 |
+
#. Found in changelog list item.
|
165 |
+
msgid "Fixed some small bugs as well."
|
166 |
+
msgstr ""
|
167 |
+
|
168 |
+
#. Found in changelog list item.
|
169 |
+
msgid "Fatal Error require_once() issue fix from the last update."
|
170 |
+
msgstr ""
|
171 |
+
|
172 |
+
#. Found in changelog list item.
|
173 |
+
msgid "Version Issue fix"
|
174 |
+
msgstr ""
|
175 |
+
|
176 |
+
#. Found in changelog list item.
|
177 |
+
msgid "very small fix"
|
178 |
+
msgstr ""
|
179 |
+
|
180 |
+
#. Found in changelog list item.
|
181 |
+
msgid "Integrated Widgets Customizations via The Customizer"
|
182 |
+
msgstr ""
|
183 |
+
|
184 |
+
#. Found in changelog list item.
|
185 |
+
msgid "Fixed some bugs & issues & cleaned up some files"
|
186 |
+
msgstr ""
|
187 |
+
|
188 |
+
#. Found in changelog list item.
|
189 |
+
msgid "Small UI Improvements"
|
190 |
+
msgstr ""
|
191 |
+
|
192 |
+
#. Found in changelog list item.
|
193 |
+
msgid "Initial Upload of the plugin"
|
194 |
+
msgstr ""
|
195 |
+
|
196 |
+
#. Found in faq paragraph.
|
197 |
+
msgid "We will add FAQs very soon."
|
198 |
+
msgstr ""
|