Widgets for SiteOrigin - Version 1.3.2

Version Description

  • December 12 2016 =
  • Fixed bug with rendering font fields
Download this release

Release Info

Developer iamadi
Plugin Icon 128x128 Widgets for SiteOrigin
Version 1.3.2
Comparing to
See all releases

Code changes from version 1.3.1 to 1.3.2

readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: iamadi
3
  Tags: bundle, widget, button, alert, accordion, audio, video, blog, divider, person, portfolio, tabs, testimonial, siteorigin
4
  Requires at least: 3.9
5
- Tested up to: 4.6.1
6
- Stable tag: 1.3.1
7
  License: GPLv3 or later
8
 
9
  A collection of highly customizable and thoughtfully crafted widgets. Built on top of the SiteOrigin Widgets Bundle.
@@ -88,6 +88,9 @@ Once installed, you can choose to Active/Deactivate widget from Plugins -> SiteO
88
 
89
  == Changelog ==
90
 
 
 
 
91
  = 1.3.1 - November 29 2016 =
92
  * Removed unnecessary font-family: inherit; property.
93
  * Added option to customize date format in blog widget.
2
  Contributors: iamadi
3
  Tags: bundle, widget, button, alert, accordion, audio, video, blog, divider, person, portfolio, tabs, testimonial, siteorigin
4
  Requires at least: 3.9
5
+ Tested up to: 4.7
6
+ Stable tag: 1.3.2
7
  License: GPLv3 or later
8
 
9
  A collection of highly customizable and thoughtfully crafted widgets. Built on top of the SiteOrigin Widgets Bundle.
88
 
89
  == Changelog ==
90
 
91
+ = 1.3.2 - December 12 2016 =
92
+ * Fixed bug with rendering font fields
93
+
94
  = 1.3.1 - November 29 2016 =
95
  * Removed unnecessary font-family: inherit; property.
96
  * Added option to customize date format in blog widget.
widgets-for-siteorigin.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Widgets for SiteOrigin
5
  * Plugin URI: http://widgets.wpinked.com/
6
  * Description: A collection of highly customizable and thoughtfully crafted widgets. Built on top of the SiteOrigin Widgets Bundle.
7
- * Version: 1.3.1
8
  * Author: wpinked
9
  * Author URI: widgets.wpinked.com
10
  * License: GPL-2.0+
@@ -18,7 +18,7 @@
18
  *
19
  */
20
 
21
- define( 'INKED_SO_VER', '1.3.1' );
22
 
23
  // Allow JS suffix to be pre-set
24
  if( !defined( 'INKED_JS_SUFFIX' ) ) {
4
  * Plugin Name: Widgets for SiteOrigin
5
  * Plugin URI: http://widgets.wpinked.com/
6
  * Description: A collection of highly customizable and thoughtfully crafted widgets. Built on top of the SiteOrigin Widgets Bundle.
7
+ * Version: 1.3.2
8
  * Author: wpinked
9
  * Author URI: widgets.wpinked.com
10
  * License: GPL-2.0+
18
  *
19
  */
20
 
21
+ define( 'INKED_SO_VER', '1.3.2' );
22
 
23
  // Allow JS suffix to be pre-set
24
  if( !defined( 'INKED_JS_SUFFIX' ) ) {
widgets/ink-alrt-widget/ink-alrt-widget.php CHANGED
@@ -176,13 +176,14 @@ class Inked_Alert_SO_Widget extends SiteOrigin_Widget {
176
 
177
  }
178
 
179
- function less_import_google_font( $instance, $args ) {
180
- if( empty( $instance ) ) return;
181
 
182
- if ( $instance['styling']['font'] && function_exists( 'wpinked_pro_so_widgets' ) ) {
183
- $selected_font = siteorigin_widget_get_font( $instance['styling']['font'] );
184
- return $selected_font['css_import'];
185
  }
 
186
  }
187
 
188
  }
176
 
177
  }
178
 
179
+ function get_google_font_fields( $instance ) {
180
+ if( empty( $instance ) || ! function_exists( 'wpinked_pro_so_widgets' ) ) return array();
181
 
182
+ $fonts = array();
183
+ if ( $instance['styling']['font'] ) {
184
+ $fonts[] = $instance['styling']['font'];
185
  }
186
+ return $fonts;
187
  }
188
 
189
  }
widgets/ink-ardn-widget/ink-ardn-widget.php CHANGED
@@ -274,13 +274,14 @@ class Inked_Accordion_SO_Widget extends SiteOrigin_Widget {
274
  return $less_variables;
275
  }
276
 
277
- function less_import_google_font( $instance, $args ) {
278
- if( empty( $instance ) ) return;
279
 
280
- if ( $instance['styling']['title-font'] && function_exists( 'wpinked_pro_so_widgets' ) ) {
281
- $selected_font = siteorigin_widget_get_font( $instance['styling']['title-font'] );
282
- return $selected_font['css_import'];
283
  }
 
284
  }
285
 
286
  }
274
  return $less_variables;
275
  }
276
 
277
+ function get_google_font_fields( $instance ) {
278
+ if( empty( $instance ) || ! function_exists( 'wpinked_pro_so_widgets' ) ) return array();
279
 
280
+ $fonts = array();
281
+ if ( $instance['styling']['title-font'] ) {
282
+ $fonts[] = $instance['styling']['title-font'];
283
  }
284
+ return $fonts;
285
  }
286
 
287
  }
widgets/ink-blgs-widget/ink-blgs-widget.php CHANGED
@@ -841,21 +841,19 @@ class Inked_Blog_SO_Widget extends SiteOrigin_Widget {
841
  }
842
 
843
  function get_google_font_fields( $instance ) {
844
- if( empty( $instance ) ) return;
845
 
846
- if ( function_exists( 'wpinked_pro_so_widgets' ) ) {
847
- $fonts = array();
848
- if ( $instance['styling']['title-font'] ) {
849
- $fonts[] = $instance['styling']['title-font'];
850
- }
851
- if ( $instance['styling']['meta-font'] ) {
852
- $fonts[] = $instance['styling']['meta-font'];
853
- }
854
- if ( $instance['styling']['btn-font'] ) {
855
- $fonts[] = $instance['styling']['btn-font'];
856
- }
857
- return $fonts;
858
  }
 
859
  }
860
 
861
  }
841
  }
842
 
843
  function get_google_font_fields( $instance ) {
844
+ if( empty( $instance ) || ! function_exists( 'wpinked_pro_so_widgets' ) ) return array();
845
 
846
+ $fonts = array();
847
+ if ( $instance['styling']['title-font'] ) {
848
+ $fonts[] = $instance['styling']['title-font'];
849
+ }
850
+ if ( $instance['styling']['meta-font'] ) {
851
+ $fonts[] = $instance['styling']['meta-font'];
852
+ }
853
+ if ( $instance['styling']['btn-font'] ) {
854
+ $fonts[] = $instance['styling']['btn-font'];
 
 
 
855
  }
856
+ return $fonts;
857
  }
858
 
859
  }
widgets/ink-btns-widget/ink-btns-widget.php CHANGED
@@ -229,13 +229,14 @@ class Inked_Buttons_SO_Widget extends SiteOrigin_Widget {
229
 
230
  }
231
 
232
- function less_import_google_font( $instance, $args ) {
233
- if( empty( $instance ) ) return;
234
 
235
- if ( $instance['styling']['font'] && function_exists( 'wpinked_pro_so_widgets' ) ) {
236
- $selected_font = siteorigin_widget_get_font( $instance['styling']['font'] );
237
- return $selected_font['css_import'];
238
  }
 
239
  }
240
 
241
  }
229
 
230
  }
231
 
232
+ function get_google_font_fields( $instance ) {
233
+ if( empty( $instance ) || ! function_exists( 'wpinked_pro_so_widgets' ) ) return array();
234
 
235
+ $fonts = array();
236
+ if ( $instance['styling']['font'] ) {
237
+ $fonts[] = $instance['styling']['font'];
238
  }
239
+ return $fonts;
240
  }
241
 
242
  }
widgets/ink-fard-widget/ink-fard-widget.php CHANGED
@@ -366,18 +366,16 @@ class Inked_Filter_Accordion_SO_Widget extends SiteOrigin_Widget {
366
  }
367
 
368
  function get_google_font_fields( $instance ) {
369
- if( empty( $instance ) ) return;
370
 
371
- if ( function_exists( 'wpinked_pro_so_widgets' ) ) {
372
- $fonts = array();
373
- if ( $instance['styling']['title-font'] ) {
374
- $fonts[] = $instance['styling']['title-font'];
375
- }
376
- if ( $instance['styling']['type-font'] ) {
377
- $fonts[] = $instance['styling']['type-font'];
378
- }
379
- return $fonts;
380
  }
 
381
  }
382
 
383
  }
366
  }
367
 
368
  function get_google_font_fields( $instance ) {
369
+ if( empty( $instance ) || ! function_exists( 'wpinked_pro_so_widgets' ) ) return array();
370
 
371
+ $fonts = array();
372
+ if ( $instance['styling']['title-font'] ) {
373
+ $fonts[] = $instance['styling']['title-font'];
374
+ }
375
+ if ( $instance['styling']['type-font'] ) {
376
+ $fonts[] = $instance['styling']['type-font'];
 
 
 
377
  }
378
+ return $fonts;
379
  }
380
 
381
  }
widgets/ink-mbox-widget/ink-mbox-widget.php CHANGED
@@ -383,18 +383,16 @@ class Inked_Media_Box_SO_Widget extends SiteOrigin_Widget {
383
  }
384
 
385
  function get_google_font_fields( $instance ) {
386
- if( empty( $instance ) ) return;
387
 
388
- if ( function_exists( 'wpinked_pro_so_widgets' ) ) {
389
- $fonts = array();
390
- if ( $instance['styling']['title-font'] ) {
391
- $fonts[] = $instance['styling']['title-font'];
392
- }
393
- if ( $instance['styling']['btn-font'] ) {
394
- $fonts[] = $instance['styling']['btn-font'];
395
- }
396
- return $fonts;
397
  }
 
398
  }
399
 
400
  }
383
  }
384
 
385
  function get_google_font_fields( $instance ) {
386
+ if( empty( $instance ) || ! function_exists( 'wpinked_pro_so_widgets' ) ) return array();
387
 
388
+ $fonts = array();
389
+ if ( $instance['styling']['title-font'] ) {
390
+ $fonts[] = $instance['styling']['title-font'];
391
+ }
392
+ if ( $instance['styling']['btn-font'] ) {
393
+ $fonts[] = $instance['styling']['btn-font'];
 
 
 
394
  }
395
+ return $fonts;
396
  }
397
 
398
  }
widgets/ink-ptfl-widget/ink-ptfl-widget.php CHANGED
@@ -312,21 +312,19 @@ class Inked_Folio_SO_Widget extends SiteOrigin_Widget {
312
  }
313
 
314
  function get_google_font_fields( $instance ) {
315
- if( empty( $instance ) ) return;
316
 
317
- if ( function_exists( 'wpinked_pro_so_widgets' ) ) {
318
- $fonts = array();
319
- if ( $instance['styling']['type-font'] ) {
320
- $fonts[] = $instance['styling']['type-font'];
321
- }
322
- if ( $instance['styling']['p-title-font'] ) {
323
- $fonts[] = $instance['styling']['p-title-font'];
324
- }
325
- if ( $instance['styling']['p-cats-font'] ) {
326
- $fonts[] = $instance['styling']['p-cats-font'];
327
- }
328
- return $fonts;
329
  }
 
330
  }
331
 
332
  }
312
  }
313
 
314
  function get_google_font_fields( $instance ) {
315
+ if( empty( $instance ) || ! function_exists( 'wpinked_pro_so_widgets' ) ) return array();
316
 
317
+ $fonts = array();
318
+ if ( $instance['styling']['type-font'] ) {
319
+ $fonts[] = $instance['styling']['type-font'];
320
+ }
321
+ if ( $instance['styling']['p-title-font'] ) {
322
+ $fonts[] = $instance['styling']['p-title-font'];
323
+ }
324
+ if ( $instance['styling']['p-cats-font'] ) {
325
+ $fonts[] = $instance['styling']['p-cats-font'];
 
 
 
326
  }
327
+ return $fonts;
328
  }
329
 
330
  }
widgets/ink-tabb-widget/ink-tabb-widget.php CHANGED
@@ -249,13 +249,14 @@ class Inked_Tabs_SO_Widget extends SiteOrigin_Widget {
249
 
250
  }
251
 
252
- function less_import_google_font( $instance, $args ) {
253
- if( empty( $instance ) ) return;
254
 
255
- if ( $instance['styling']['tab-font'] && function_exists( 'wpinked_pro_so_widgets' ) ) {
256
- $selected_font = siteorigin_widget_get_font( $instance['styling']['tab-font'] );
257
- return $selected_font['css_import'];
258
  }
 
259
  }
260
 
261
  }
249
 
250
  }
251
 
252
+ function get_google_font_fields( $instance ) {
253
+ if( empty( $instance ) || ! function_exists( 'wpinked_pro_so_widgets' ) ) return array();
254
 
255
+ $fonts = array();
256
+ if ( $instance['styling']['tab-font'] ) {
257
+ $fonts[] = $instance['styling']['tab-font'];
258
  }
259
+ return $fonts;
260
  }
261
 
262
  }