SiteOrigin Widgets Bundle - Version 1.7.1

Version Description

  • 21 September 2016 =
  • Fixed case of Maps widget in sidebar causing an error on pages without that sidebar.
  • Fixed icon field CSS.
Download this release

Release Info

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

Code changes from version 1.7 to 1.7.1

base/inc/fields/css/icon-field.css CHANGED
@@ -1,4 +1,4 @@
1
- .siteorigin-widget-form .siteorigin-widget-field-icon .siteorigin-widget-icon-selector-current {
2
display: inline-block;
3
background: #f9f9f9;
4
background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #f2f2f2), color-stop(1, #f9f9f9));
@@ -16,7 +16,7 @@
16
border: 1px solid #bbbbbb;
17
height: 35px;
18
}
19
- .siteorigin-widget-form .siteorigin-widget-field-icon .siteorigin-widget-icon-selector-current:hover {
20
background: #ffffff;
21
background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #f7f7f7), color-stop(1, #ffffff));
22
background: -ms-linear-gradient(bottom, #f7f7f7, #ffffff);
@@ -27,7 +27,7 @@
27
-moz-box-shadow: 0 1px 2px rgba(0,0,0,0.15);
28
box-shadow: 0 1px 2px rgba(0,0,0,0.15);
29
}
30
- .siteorigin-widget-form .siteorigin-widget-field-icon .siteorigin-widget-icon-selector-current .siteorigin-widget-icon {
31
-ms-box-sizing: border-box;
32
-moz-box-sizing: border-box;
33
-webkit-box-sizing: border-box;
@@ -41,11 +41,11 @@
41
width: 32px;
42
text-align: center;
43
}
44
- .siteorigin-widget-form .siteorigin-widget-field-icon .siteorigin-widget-icon-selector-current .siteorigin-widget-icon span {
45
color: #333;
46
font-size: 20px;
47
}
48
- .siteorigin-widget-form .siteorigin-widget-field-icon .siteorigin-widget-icon-selector-current label {
49
display: block;
50
float: left;
51
color: #666;
@@ -57,7 +57,7 @@
57
outline: none;
58
cursor: pointer;
59
}
60
- .siteorigin-widget-form .siteorigin-widget-field-icon .so-icon-remove {
61
cursor: pointer;
62
display: block;
63
text-decoration: none;
@@ -67,10 +67,10 @@
67
line-height: 1em;
68
padding: 11px 0 11px 6px;
69
}
70
- .siteorigin-widget-form .siteorigin-widget-field-icon.siteorigin-widget-active .so-icon-remove {
71
display: none;
72
}
73
- .siteorigin-widget-form .siteorigin-widget-field-icon .siteorigin-widget-icon-selector {
74
display: none;
75
padding: 10px;
76
border: 1px solid #D8D8D8;
@@ -80,22 +80,22 @@
80
box-shadow: 0 1px 2px rgba(0,0,0,0.0275);
81
margin-top: 10px;
82
}
83
- .siteorigin-widget-form .siteorigin-widget-field-icon .siteorigin-widget-icon-selector select.siteorigin-widget-icon-family {
84
font-size: 11px;
85
display: inline-block;
86
}
87
- .siteorigin-widget-form .siteorigin-widget-field-icon .siteorigin-widget-icon-selector .siteorigin-widget-icon-search {
88
font-size: 11px;
89
display: inline-block;
90
width: 260px;
91
padding: 6px 8px;
92
}
93
- .siteorigin-widget-form .siteorigin-widget-field-icon .siteorigin-widget-icon-selector .siteorigin-widget-icon-icons {
94
height: 160px;
95
overflow-y: scroll;
96
margin-top: 10px;
97
}
98
- .siteorigin-widget-form .siteorigin-widget-field-icon .siteorigin-widget-icon-selector .siteorigin-widget-icon-icons .siteorigin-widget-icon-icons-icon {
99
-ms-box-sizing: border-box;
100
-moz-box-sizing: border-box;
101
-webkit-box-sizing: border-box;
@@ -112,7 +112,7 @@
112
cursor: pointer;
113
text-align: center;
114
}
115
- .siteorigin-widget-form .siteorigin-widget-field-icon .siteorigin-widget-icon-selector .siteorigin-widget-icon-icons .siteorigin-widget-icon-icons-icon.siteorigin-widget-active {
116
background: #f6fafc;
117
border: 1px solid #43aaec;
118
color: #078dce;
1
+ .siteorigin-widget-form .siteorigin-widget-field-type-icon .siteorigin-widget-icon-selector-current {
2
display: inline-block;
3
background: #f9f9f9;
4
background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #f2f2f2), color-stop(1, #f9f9f9));
16
border: 1px solid #bbbbbb;
17
height: 35px;
18
}
19
+ .siteorigin-widget-form .siteorigin-widget-field-type-icon .siteorigin-widget-icon-selector-current:hover {
20
background: #ffffff;
21
background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #f7f7f7), color-stop(1, #ffffff));
22
background: -ms-linear-gradient(bottom, #f7f7f7, #ffffff);
27
-moz-box-shadow: 0 1px 2px rgba(0,0,0,0.15);
28
box-shadow: 0 1px 2px rgba(0,0,0,0.15);
29
}
30
+ .siteorigin-widget-form .siteorigin-widget-field-type-icon .siteorigin-widget-icon-selector-current .siteorigin-widget-icon {
31
-ms-box-sizing: border-box;
32
-moz-box-sizing: border-box;
33
-webkit-box-sizing: border-box;
41
width: 32px;
42
text-align: center;
43
}
44
+ .siteorigin-widget-form .siteorigin-widget-field-type-icon .siteorigin-widget-icon-selector-current .siteorigin-widget-icon span {
45
color: #333;
46
font-size: 20px;
47
}
48
+ .siteorigin-widget-form .siteorigin-widget-field-type-icon .siteorigin-widget-icon-selector-current label {
49
display: block;
50
float: left;
51
color: #666;
57
outline: none;
58
cursor: pointer;
59
}
60
+ .siteorigin-widget-form .siteorigin-widget-field-type-icon .so-icon-remove {
61
cursor: pointer;
62
display: block;
63
text-decoration: none;
67
line-height: 1em;
68
padding: 11px 0 11px 6px;
69
}
70
+ .siteorigin-widget-form .siteorigin-widget-field-type-icon.siteorigin-widget-active .so-icon-remove {
71
display: none;
72
}
73
+ .siteorigin-widget-form .siteorigin-widget-field-type-icon .siteorigin-widget-icon-selector {
74
display: none;
75
padding: 10px;
76
border: 1px solid #D8D8D8;
80
box-shadow: 0 1px 2px rgba(0,0,0,0.0275);
81
margin-top: 10px;
82
}
83
+ .siteorigin-widget-form .siteorigin-widget-field-type-icon .siteorigin-widget-icon-selector select.siteorigin-widget-icon-family {
84
font-size: 11px;
85
display: inline-block;
86
}
87
+ .siteorigin-widget-form .siteorigin-widget-field-type-icon .siteorigin-widget-icon-selector .siteorigin-widget-icon-search {
88
font-size: 11px;
89
display: inline-block;
90
width: 260px;
91
padding: 6px 8px;
92
}
93
+ .siteorigin-widget-form .siteorigin-widget-field-type-icon .siteorigin-widget-icon-selector .siteorigin-widget-icon-icons {
94
height: 160px;
95
overflow-y: scroll;
96
margin-top: 10px;
97
}
98
+ .siteorigin-widget-form .siteorigin-widget-field-type-icon .siteorigin-widget-icon-selector .siteorigin-widget-icon-icons .siteorigin-widget-icon-icons-icon {
99
-ms-box-sizing: border-box;
100
-moz-box-sizing: border-box;
101
-webkit-box-sizing: border-box;
112
cursor: pointer;
113
text-align: center;
114
}
115
+ .siteorigin-widget-form .siteorigin-widget-field-type-icon .siteorigin-widget-icon-selector .siteorigin-widget-icon-icons .siteorigin-widget-icon-icons-icon.siteorigin-widget-active {
116
background: #f6fafc;
117
border: 1px solid #43aaec;
118
color: #078dce;
base/siteorigin-widget.class.php CHANGED
@@ -213,11 +213,13 @@ abstract class SiteOrigin_Widget extends WP_Widget {
213
);
214
$wrapper_classes = array_map( 'sanitize_html_class', $wrapper_classes );
215
216
echo $args['before_widget'];
217
echo '<div class="' . esc_attr( implode( ' ', $wrapper_classes ) ) . '">';
218
echo $template_html;
219
echo '</div>';
220
echo $args['after_widget'];
221
}
222
223
/**
213
);
214
$wrapper_classes = array_map( 'sanitize_html_class', $wrapper_classes );
215
216
+ do_action( 'siteorigin_widgets_before_widget_' . $this->id_base, $instance, $this );
217
echo $args['before_widget'];
218
echo '<div class="' . esc_attr( implode( ' ', $wrapper_classes ) ) . '">';
219
echo $template_html;
220
echo '</div>';
221
echo $args['after_widget'];
222
+ do_action( 'siteorigin_widgets_after_widget_' . $this->id_base, $instance, $this );
223
}
224
225
/**
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
Tags: bundle, widget, button, slider, image, carousel, price table, google maps, tinymce, social links
3
Requires at least: 3.9
4
Tested up to: 4.6
5
- Stable tag: 1.7
6
- Build time: 2016-09-20T13:29:48+02:00
7
License: GPLv3 or later
8
Contributors: gpriday, braam-genis
9
@@ -51,6 +51,10 @@ The SiteOrigin Widgets Bundle is the perfect platform to build widgets for your
51
52
== Changelog ==
53
54
= 1.7 - 20 September 2016 =
55
* Added mechanism for creating global widget setting.
56
* Added mechanism for adding dismissible notices to widget forms.
2
Tags: bundle, widget, button, slider, image, carousel, price table, google maps, tinymce, social links
3
Requires at least: 3.9
4
Tested up to: 4.6
5
+ Stable tag: 1.7.1
6
+ Build time: 2016-09-21T16:57:15+02:00
7
License: GPLv3 or later
8
Contributors: gpriday, braam-genis
9
51
52
== Changelog ==
53
54
+ = 1.7.1 - 21 September 2016 =
55
+ * Fixed case of Maps widget in sidebar causing an error on pages without that sidebar.
56
+ * Fixed icon field CSS.
57
+
58
= 1.7 - 20 September 2016 =
59
* Added mechanism for creating global widget setting.
60
* Added mechanism for adding dismissible notices to widget forms.
so-widgets-bundle.php CHANGED
@@ -2,7 +2,7 @@
2
/*
3
Plugin Name: SiteOrigin Widgets Bundle
4
Description: A collection of all widgets, neatly bundled into a single plugin. It's also a framework to code your own widgets on top of.
5
- Version: 1.7
6
Text Domain: so-widgets-bundle
7
Domain Path: /languages
8
Author: SiteOrigin
@@ -12,7 +12,7 @@ License: GPL3
12
License URI: https://www.gnu.org/licenses/gpl-3.0.txt
13
*/
14
15
- define('SOW_BUNDLE_VERSION', '1.7');
16
define('SOW_BUNDLE_BASE_FILE', __FILE__);
17
18
// Allow JS suffix to be pre-set
2
/*
3
Plugin Name: SiteOrigin Widgets Bundle
4
Description: A collection of all widgets, neatly bundled into a single plugin. It's also a framework to code your own widgets on top of.
5
+ Version: 1.7.1
6
Text Domain: so-widgets-bundle
7
Domain Path: /languages
8
Author: SiteOrigin
12
License URI: https://www.gnu.org/licenses/gpl-3.0.txt
13
*/
14
15
+ define('SOW_BUNDLE_VERSION', '1.7.1');
16
define('SOW_BUNDLE_BASE_FILE', __FILE__);
17
18
// Allow JS suffix to be pre-set
widgets/google-map/google-map.php CHANGED
@@ -25,26 +25,7 @@ class SiteOrigin_Widget_GoogleMap_Widget extends SiteOrigin_Widget {
25
}
26
27
function initialize() {
28
- $this->register_frontend_scripts(
29
- array(
30
- array(
31
- 'sow-google-map',
32
- plugin_dir_url(__FILE__) . 'js/js-map' . SOW_BUNDLE_JS_SUFFIX . '.js',
33
- array( 'jquery' ),
34
- SOW_BUNDLE_VERSION
35
- )
36
- )
37
- );
38
- $this->register_frontend_styles(
39
- array(
40
- array(
41
- 'sow-google-map',
42
- plugin_dir_url(__FILE__) . 'css/style.css',
43
- array(),
44
- SOW_BUNDLE_VERSION
45
- )
46
- )
47
- );
48
}
49
50
function get_widget_form(){
@@ -453,6 +434,23 @@ class SiteOrigin_Widget_GoogleMap_Widget extends SiteOrigin_Widget {
453
}
454
}
455
456
private function get_styles( $instance ) {
457
$style_config = $instance['styles'];
458
switch ( $style_config['style_method'] ) {
25
}
26
27
function initialize() {
28
+ add_action( 'siteorigin_widgets_before_widget_sow-google-map', array( $this, 'enqueue_widget_scripts' ) );
29
}
30
31
function get_widget_form(){
434
}
435
}
436
437
+ public function enqueue_widget_scripts() {
438
+ wp_enqueue_script(
439
+ 'sow-google-map',
440
+ plugin_dir_url( __FILE__ ) . 'js/js-map' . SOW_BUNDLE_JS_SUFFIX . '.js',
441
+ array( 'jquery' ),
442
+ SOW_BUNDLE_VERSION
443
+ );
444
+
445
+ wp_enqueue_style(
446
+ 'sow-google-map',
447
+ plugin_dir_url(__FILE__) . 'css/style.css',
448
+ array(),
449
+ SOW_BUNDLE_VERSION
450
+ );
451
+ }
452
+
453
+
454
private function get_styles( $instance ) {
455
$style_config = $instance['styles'];
456
switch ( $style_config['style_method'] ) {