Widgets for SiteOrigin - Version 1.3.3

Version Description

  • March 1 2017 =
  • BLOG WIDGET : Fixed bug with AJAX pagination on homepage.
  • BLOG WIDGET : Added tags to byline.
  • PERSON WIDGET : Fixed bug with about color.
  • SLIDER WIDGET : Fixed width of slider caption for smaller images.
  • AUDIO WIDGET : Added option to use externally hosted audio.
  • ALERT WIDGET : Added options for close background color and shape.
  • PORTFOLIO WIDGET : Added title attribute to filter links.
  • PORTFOLIO WIDGET : Added option to show title only on hover.
Download this release

Release Info

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

Code changes from version 1.3.2 to 1.3.3

inc/functions.php CHANGED
@@ -4,9 +4,10 @@
4
  add_image_size( 'folio', 600, 400, true );
5
 
6
  if ( ! function_exists ( 'wpinked_so_post_byline' ) ) :
7
- function wpinked_so_post_byline( $byline, $id, $sep, $date = '' ) {
8
 
9
- $byline = str_replace( '%category%', get_the_category_list( $sep, '', $id ), $byline );
 
10
  $byline = str_replace( '%author%', '<a href="' . get_author_posts_url( $id ) . '">' . get_the_author() . '</a>', $byline );
11
  $byline = str_replace( '%date%', get_the_date( $date, $id ), $byline );
12
  $byline = str_replace( '%comments%', get_comments_number( $id ), $byline );
4
  add_image_size( 'folio', 600, 400, true );
5
 
6
  if ( ! function_exists ( 'wpinked_so_post_byline' ) ) :
7
+ function wpinked_so_post_byline( $byline, $id, $sep_cats, $sep_tags, $date = '' ) {
8
 
9
+ $byline = str_replace( '%category%', get_the_category_list( $sep_cats, '', $id ), $byline );
10
+ $byline = str_replace( '%tag%', get_the_tag_list( '', $sep_tags, '', $id ), $byline );
11
  $byline = str_replace( '%author%', '<a href="' . get_author_posts_url( $id ) . '">' . get_the_author() . '</a>', $byline );
12
  $byline = str_replace( '%date%', get_the_date( $date, $id ), $byline );
13
  $byline = str_replace( '%comments%', get_comments_number( $id ), $byline );
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.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,6 +88,16 @@ Once installed, you can choose to Active/Deactivate widget from Plugins -> SiteO
88
 
89
  == Changelog ==
90
 
 
 
 
 
 
 
 
 
 
 
91
  = 1.3.2 - December 12 2016 =
92
  * Fixed bug with rendering font fields
93
 
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.2
6
+ Stable tag: 1.3.3
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.3 - March 1 2017 =
92
+ * BLOG WIDGET : Fixed bug with AJAX pagination on homepage.
93
+ * BLOG WIDGET : Added tags to byline.
94
+ * PERSON WIDGET : Fixed bug with about color.
95
+ * SLIDER WIDGET : Fixed width of slider caption for smaller images.
96
+ * AUDIO WIDGET : Added option to use externally hosted audio.
97
+ * ALERT WIDGET : Added options for close background color and shape.
98
+ * PORTFOLIO WIDGET : Added title attribute to filter links.
99
+ * PORTFOLIO WIDGET : Added option to show title only on hover.
100
+
101
  = 1.3.2 - December 12 2016 =
102
  * Fixed bug with rendering font fields
103
 
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.2
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.2' );
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.3
8
  * Author: wpinked
9
  * Author URI: widgets.wpinked.com
10
  * License: GPL-2.0+
18
  *
19
  */
20
 
21
+ define( 'INKED_SO_VER', '1.3.3' );
22
 
23
  // Allow JS suffix to be pre-set
24
  if( !defined( 'INKED_JS_SUFFIX' ) ) {
widgets/ink-alrt-widget/css/alert.css CHANGED
@@ -14,9 +14,9 @@
14
  -o-transform: translateY(-50%);
15
  transform: translateY(-50%); }
16
  .iw-so-alert .close {
17
- right: 0.25rem;
18
  line-height: .9;
19
- opacity: 0.7;
20
  padding: 0 6px 4px;
21
  position: absolute;
22
  top: 50%;
14
  -o-transform: translateY(-50%);
15
  transform: translateY(-50%); }
16
  .iw-so-alert .close {
17
+ right: 0.5rem;
18
  line-height: .9;
19
+ opacity: 0.85;
20
  padding: 0 6px 4px;
21
  position: absolute;
22
  top: 50%;
widgets/ink-alrt-widget/ink-alrt-widget.php CHANGED
@@ -92,7 +92,7 @@ class Inked_Alert_SO_Widget extends SiteOrigin_Widget {
92
 
93
  'text' => array(
94
  'type' => 'color',
95
- 'label' => __( 'Text Color', 'wpinked-widgets' ),
96
  'default' => '#fff'
97
  ),
98
 
@@ -102,6 +102,23 @@ class Inked_Alert_SO_Widget extends SiteOrigin_Widget {
102
  'default' => '#fff'
103
  ),
104
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
105
  'corners' => array(
106
  'type' => 'select',
107
  'label' => __( 'Corners', 'wpinked-widgets' ),
@@ -126,6 +143,29 @@ class Inked_Alert_SO_Widget extends SiteOrigin_Widget {
126
 
127
  )
128
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
129
  );
130
  }
131
 
@@ -158,12 +198,15 @@ class Inked_Alert_SO_Widget extends SiteOrigin_Widget {
158
  if( empty( $instance ) ) return array();
159
 
160
  $less_variables = array(
161
- 'size' => $instance['styling']['size'],
162
- 'radius' => $instance['styling']['corners'],
163
- 'text' => $instance['styling']['text'],
164
- 'bg' => $instance['styling']['background'],
165
- 'theme' => $instance['styling']['theme'],
166
- 'close' => $instance['styling']['close'],
 
 
 
167
  );
168
  if ( $instance['styling']['font'] && function_exists( 'wpinked_pro_so_widgets' ) ) {
169
  $selected_font = siteorigin_widget_get_font( $instance['styling']['font'] );
@@ -176,6 +219,21 @@ class Inked_Alert_SO_Widget extends SiteOrigin_Widget {
176
 
177
  }
178
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
179
  function get_google_font_fields( $instance ) {
180
  if( empty( $instance ) || ! function_exists( 'wpinked_pro_so_widgets' ) ) return array();
181
 
92
 
93
  'text' => array(
94
  'type' => 'color',
95
+ 'label' => __( 'Message Color', 'wpinked-widgets' ),
96
  'default' => '#fff'
97
  ),
98
 
102
  'default' => '#fff'
103
  ),
104
 
105
+ 'close-bg' => array(
106
+ 'type' => 'color',
107
+ 'label' => __( 'Close Background Color', 'wpinked-widgets' ),
108
+ 'default' => ''
109
+ ),
110
+
111
+ 'close-radius' => array(
112
+ 'type' => 'select',
113
+ 'label' => __( 'Close Background Shape', 'wpinked-widgets' ),
114
+ 'default' => '0em',
115
+ 'options' => array(
116
+ '0em' => __( 'Sharp', 'wpinked-widgets' ),
117
+ '0.25em' => __( 'Slightly curved', 'wpinked-widgets' ),
118
+ '1em' => __( 'Round', 'wpinked-widgets' ),
119
+ ),
120
+ ),
121
+
122
  'corners' => array(
123
  'type' => 'select',
124
  'label' => __( 'Corners', 'wpinked-widgets' ),
143
 
144
  )
145
  ),
146
+
147
+ 'attributes' => array(
148
+ 'type' => 'section',
149
+ 'label' => __( 'Attributes' , 'wpinked-widgets' ),
150
+ 'hide' => true,
151
+ 'fields' => array(
152
+
153
+ 'main' => array(
154
+ 'type' => 'text',
155
+ 'label' => __( 'Main Alert Class', 'wpinked-widgets' ),
156
+ ),
157
+
158
+ 'message' => array(
159
+ 'type' => 'text',
160
+ 'label' => __( 'Message Class', 'wpinked-widgets' ),
161
+ ),
162
+
163
+ 'close' => array(
164
+ 'type' => 'text',
165
+ 'label' => __( 'Close Class', 'wpinked-widgets' ),
166
+ ),
167
+ )
168
+ ),
169
  );
170
  }
171
 
198
  if( empty( $instance ) ) return array();
199
 
200
  $less_variables = array(
201
+ 'icon-color' => $instance['icon']['color'],
202
+ 'size' => $instance['styling']['size'],
203
+ 'radius' => $instance['styling']['corners'],
204
+ 'text-color' => $instance['styling']['text'],
205
+ 'background' => $instance['styling']['background'],
206
+ 'theme' => $instance['styling']['theme'],
207
+ 'close-color' => $instance['styling']['close'],
208
+ 'close-background' => $instance['styling']['close-bg'],
209
+ 'close-radius' => $instance['styling']['close-radius'],
210
  );
211
  if ( $instance['styling']['font'] && function_exists( 'wpinked_pro_so_widgets' ) ) {
212
  $selected_font = siteorigin_widget_get_font( $instance['styling']['font'] );
219
 
220
  }
221
 
222
+ function get_template_variables( $instance, $args ) {
223
+
224
+ if( empty( $instance ) ) return array();
225
+
226
+ return array(
227
+ 'size' => $instance['styling']['size'],
228
+ 'icon' => $instance['icon']['select'],
229
+ 'message' => $instance['message'],
230
+ 'close' => $instance['close'],
231
+ 'class_main' => $instance['attributes']['main'],
232
+ 'class_message' => $instance['attributes']['message'],
233
+ 'class_close' => $instance['attributes']['close'],
234
+ );
235
+ }
236
+
237
  function get_google_font_fields( $instance ) {
238
  if( empty( $instance ) || ! function_exists( 'wpinked_pro_so_widgets' ) ) return array();
239
 
widgets/ink-alrt-widget/styles/alert.less CHANGED
@@ -2,82 +2,77 @@
2
 
3
  .widget-function('import_google_font');
4
 
 
5
  @radius: 0em;
6
  @size: standard;
7
- @text: #fff;
8
- @bg: #333;
9
  @theme: flat;
10
- @close: #fff;
 
 
11
  @font-fly: default;
12
  @font-wt: bold;
13
 
14
  .iw-so-alert {
15
-
16
- color: @text;
17
  border-radius: @radius;
18
 
19
  .alert-size() when (@size = small) {
20
- font-size: 0.95em; padding: 0.875em 1.75em 0.875em 3em;
 
21
  }
22
-
23
  .alert-size() when (@size = standard) {
24
- font-size: 1.25em; padding: 1em 2em 1em 3.2em;
 
25
  }
26
-
27
  .alert-size() when (@size = large) {
28
- font-size: 1.5em; padding: 1.125em 2.25em 1.125em 3em;
 
29
  }
30
-
31
  .alert-size();
32
 
33
  .alert-theme() when (@theme = classic) {
34
- .gradient(@bg, darken(@bg, 15%), @bg);
35
  border: 1px solid;
36
- border-color: darken(@bg, 8%) darken(@bg, 10%) darken(@bg, 13%) darken(@bg, 10%);
37
  }
38
-
39
  .alert-theme() when (@theme = flat) {
40
- background: @bg;
41
- border: 1px solid @bg;
42
  }
43
  .alert-theme() when (@theme = outline) {
44
  background: transparent;
45
- border: 1px solid @bg;
46
  }
47
-
48
  .alert-theme() when (@theme = threed) {
49
- background: @bg;
50
- border: solid darken(@bg, 10%);
51
  border-width: 0 0 5px 0;
52
  }
53
-
54
  .alert-theme() when (@theme = shadow) {
55
  .drop-shadow(1px, 1px, 4px, 0.4);
56
- background: @bg;
57
- border: 1px solid @bg;
58
  }
59
-
60
  .alert-theme() when (@theme = modern) {
61
- background: @bg;
62
- .box-shadow(inset 5px 0px 0px darken(@bg, 25%))
63
  }
64
-
65
  .alert-theme();
66
 
67
  [class^="sow-icon-"] {
 
68
 
69
  .icon-size() when (@size = small) {
70
  left: 1.5em; font-size: 1em;
71
  }
72
-
73
  .icon-size() when (@size = standard) {
74
  left: 1em; font-size: 1.25em;
75
  }
76
-
77
  .icon-size() when (@size = large) {
78
  left: 0.5em; font-size: 1.5em;
79
  }
80
-
81
  .icon-size();
82
 
83
  }
@@ -88,22 +83,23 @@
88
  }
89
 
90
  .close {
91
- color: @close;
 
 
92
 
93
  .close-size() when (@size = small) {
94
  font-size: 1em;
 
95
  }
96
-
97
  .close-size() when (@size = standard) {
98
  font-size: 1.15em;
 
99
  }
100
-
101
  .close-size() when (@size = large) {
102
  font-size: 1.4em;
 
103
  }
104
-
105
  .close-size();
106
-
107
  }
108
 
109
  }
2
 
3
  .widget-function('import_google_font');
4
 
5
+ @icon-color: #fff;
6
  @radius: 0em;
7
  @size: standard;
8
+ @text-color: #fff;
9
+ @background: #333;
10
  @theme: flat;
11
+ @close-color: #fff;
12
+ @close-background: '';
13
+ @close-radius: 0em;
14
  @font-fly: default;
15
  @font-wt: bold;
16
 
17
  .iw-so-alert {
18
+ color: @text-color;
 
19
  border-radius: @radius;
20
 
21
  .alert-size() when (@size = small) {
22
+ font-size: 0.95em;
23
+ padding: 0.875em 2em 0.875em 3em;
24
  }
 
25
  .alert-size() when (@size = standard) {
26
+ font-size: 1.25em;
27
+ padding: 1em 2.5em 1em 3.2em;
28
  }
 
29
  .alert-size() when (@size = large) {
30
+ font-size: 1.5em;
31
+ padding: 1.125em 3em 1.125em 3em;
32
  }
 
33
  .alert-size();
34
 
35
  .alert-theme() when (@theme = classic) {
36
+ .gradient(@background, darken(@background, 15%), @background);
37
  border: 1px solid;
38
+ border-color: darken(@background, 8%) darken(@background, 10%) darken(@background, 13%) darken(@background, 10%);
39
  }
 
40
  .alert-theme() when (@theme = flat) {
41
+ background: @background;
42
+ border: 1px solid @background;
43
  }
44
  .alert-theme() when (@theme = outline) {
45
  background: transparent;
46
+ border: 1px solid @background;
47
  }
 
48
  .alert-theme() when (@theme = threed) {
49
+ background: @background;
50
+ border: solid darken(@background, 10%);
51
  border-width: 0 0 5px 0;
52
  }
 
53
  .alert-theme() when (@theme = shadow) {
54
  .drop-shadow(1px, 1px, 4px, 0.4);
55
+ background: @background;
56
+ border: 1px solid @background;
57
  }
 
58
  .alert-theme() when (@theme = modern) {
59
+ background: @background;
60
+ .box-shadow(inset 5px 0px 0px darken(@background, 25%))
61
  }
 
62
  .alert-theme();
63
 
64
  [class^="sow-icon-"] {
65
+ color: @icon-color;
66
 
67
  .icon-size() when (@size = small) {
68
  left: 1.5em; font-size: 1em;
69
  }
 
70
  .icon-size() when (@size = standard) {
71
  left: 1em; font-size: 1.25em;
72
  }
 
73
  .icon-size() when (@size = large) {
74
  left: 0.5em; font-size: 1.5em;
75
  }
 
76
  .icon-size();
77
 
78
  }
83
  }
84
 
85
  .close {
86
+ color: @close-color;
87
+ background: @close-background;
88
+ border-radius: @close-radius;
89
 
90
  .close-size() when (@size = small) {
91
  font-size: 1em;
92
+ padding: 5px 8px;
93
  }
 
94
  .close-size() when (@size = standard) {
95
  font-size: 1.15em;
96
+ padding: 5px 8px;
97
  }
 
98
  .close-size() when (@size = large) {
99
  font-size: 1.4em;
100
+ padding: 5px 10px;
101
  }
 
102
  .close-size();
 
103
  }
104
 
105
  }
widgets/ink-alrt-widget/tpl/alert.php CHANGED
@@ -1,19 +1,15 @@
1
- <?php
2
- $icon_styles = array();
3
- if ( $instance['icon']['color'] ) $icon_styles[] = 'color: ' . $instance['icon']['color'];
4
- ?>
5
- <div class="iw-so-alert iw-so-alert-<?php echo $instance['styling']['size'] ?>">
6
 
7
- <?php if ( $instance['icon']['select'] ) : ?>
8
- <?php echo siteorigin_widget_get_icon( $instance['icon']['select'], $icon_styles ); ?>
9
  <?php endif; ?>
10
 
11
- <div class="iw-so-alert-msg">
12
- <?php echo wp_kses_post( $instance['message'] ); ?>
13
  </div>
14
 
15
- <?php if ( $instance['close'] ) : ?>
16
- <a class="close" aria-label="Dismiss alert" type="button">
17
  <span aria-hidden="true">&times;</span>
18
  </a>
19
  <?php endif; ?>
1
+ <div class="iw-so-alert iw-so-alert-<?php echo $size ?> <?php echo $class_main ?>">
 
 
 
 
2
 
3
+ <?php if ( $icon ) : ?>
4
+ <?php echo siteorigin_widget_get_icon( $icon ); ?>
5
  <?php endif; ?>
6
 
7
+ <div class="iw-so-alert-msg <?php echo $class_message ?>">
8
+ <?php echo wp_kses_post( $message ); ?>
9
  </div>
10
 
11
+ <?php if ( $close ) : ?>
12
+ <a class="close <?php echo $class_close ?>" aria-label="Dismiss alert" type="button">
13
  <span aria-hidden="true">&times;</span>
14
  </a>
15
  <?php endif; ?>
widgets/ink-auds-widget/ink-auds-widget.php CHANGED
@@ -47,6 +47,7 @@ class Inked_Audio_SO_Widget extends SiteOrigin_Widget {
47
  'options' => array(
48
  'hosted' => __( 'Self Hosted', 'wpinked-widgets' ),
49
  'oembed' => __( 'oEmbed', 'wpinked-widgets' ),
 
50
  ),
51
  'state_emitter' => array(
52
  'callback' => 'select',
@@ -63,6 +64,18 @@ class Inked_Audio_SO_Widget extends SiteOrigin_Widget {
63
  'state_handler' => array(
64
  'audio_type[hosted]' => array( 'show' ),
65
  'audio_type[oembed]' => array( 'hide' ),
 
 
 
 
 
 
 
 
 
 
 
 
66
  )
67
  ),
68
 
@@ -75,6 +88,7 @@ class Inked_Audio_SO_Widget extends SiteOrigin_Widget {
75
  'state_handler' => array(
76
  'audio_type[hosted]' => array( 'show' ),
77
  'audio_type[oembed]' => array( 'hide' ),
 
78
  )
79
  ),
80
 
@@ -85,6 +99,7 @@ class Inked_Audio_SO_Widget extends SiteOrigin_Widget {
85
  'state_handler' => array(
86
  'audio_type[hosted]' => array( 'hide' ),
87
  'audio_type[oembed]' => array( 'show' ),
 
88
  )
89
  ),
90
 
@@ -95,6 +110,7 @@ class Inked_Audio_SO_Widget extends SiteOrigin_Widget {
95
  'state_handler' => array(
96
  'audio_type[hosted]' => array( 'show' ),
97
  'audio_type[oembed]' => array( 'hide' ),
 
98
  )
99
  ),
100
 
@@ -108,6 +124,7 @@ class Inked_Audio_SO_Widget extends SiteOrigin_Widget {
108
  'state_handler' => array(
109
  'audio_type[hosted]' => array( 'show' ),
110
  'audio_type[oembed]' => array( 'hide' ),
 
111
  )
112
  ),
113
 
@@ -122,6 +139,7 @@ class Inked_Audio_SO_Widget extends SiteOrigin_Widget {
122
  'state_handler' => array(
123
  'audio_type[hosted]' => array( 'show' ),
124
  'audio_type[oembed]' => array( 'hide' ),
 
125
  )
126
  ),
127
 
@@ -131,6 +149,7 @@ class Inked_Audio_SO_Widget extends SiteOrigin_Widget {
131
  'state_handler' => array(
132
  'audio_type[hosted]' => array( 'show' ),
133
  'audio_type[oembed]' => array( 'hide' ),
 
134
  )
135
  ),
136
 
@@ -140,6 +159,7 @@ class Inked_Audio_SO_Widget extends SiteOrigin_Widget {
140
  'state_handler' => array(
141
  'audio_type[hosted]' => array( 'show' ),
142
  'audio_type[oembed]' => array( 'hide' ),
 
143
  )
144
  ),
145
 
@@ -149,6 +169,7 @@ class Inked_Audio_SO_Widget extends SiteOrigin_Widget {
149
  'state_handler' => array(
150
  'audio_type[hosted]' => array( 'show' ),
151
  'audio_type[oembed]' => array( 'hide' ),
 
152
  )
153
  ),
154
 
@@ -159,6 +180,7 @@ class Inked_Audio_SO_Widget extends SiteOrigin_Widget {
159
  'state_handler' => array(
160
  'audio_type[hosted]' => array( 'show' ),
161
  'audio_type[oembed]' => array( 'hide' ),
 
162
  )
163
  ),
164
 
@@ -174,6 +196,7 @@ class Inked_Audio_SO_Widget extends SiteOrigin_Widget {
174
  'state_handler' => array(
175
  'audio_type[hosted]' => array( 'show' ),
176
  'audio_type[oembed]' => array( 'hide' ),
 
177
  )
178
  ),
179
  ),
47
  'options' => array(
48
  'hosted' => __( 'Self Hosted', 'wpinked-widgets' ),
49
  'oembed' => __( 'oEmbed', 'wpinked-widgets' ),
50
+ 'external' => __( 'External', 'wpinked-widgets' )
51
  ),
52
  'state_emitter' => array(
53
  'callback' => 'select',
64
  'state_handler' => array(
65
  'audio_type[hosted]' => array( 'show' ),
66
  'audio_type[oembed]' => array( 'hide' ),
67
+ 'audio_type[external]' => array( 'hide' ),
68
+ )
69
+ ),
70
+
71
+ 'external' => array(
72
+ 'type' => 'text',
73
+ 'sanitize' => 'url',
74
+ 'label' => __( 'External Audio URL', 'wpinked-widgets' ),
75
+ 'state_handler' => array(
76
+ 'audio_type[hosted]' => array( 'hide' ),
77
+ 'audio_type[oembed]' => array( 'hide' ),
78
+ 'audio_type[external]' => array( 'show' ),
79
  )
80
  ),
81
 
88
  'state_handler' => array(
89
  'audio_type[hosted]' => array( 'show' ),
90
  'audio_type[oembed]' => array( 'hide' ),
91
+ 'audio_type[external]' => array( 'show' ),
92
  )
93
  ),
94
 
99
  'state_handler' => array(
100
  'audio_type[hosted]' => array( 'hide' ),
101
  'audio_type[oembed]' => array( 'show' ),
102
+ 'audio_type[external]' => array( 'hide' ),
103
  )
104
  ),
105
 
110
  'state_handler' => array(
111
  'audio_type[hosted]' => array( 'show' ),
112
  'audio_type[oembed]' => array( 'hide' ),
113
+ 'audio_type[external]' => array( 'show' ),
114
  )
115
  ),
116
 
124
  'state_handler' => array(
125
  'audio_type[hosted]' => array( 'show' ),
126
  'audio_type[oembed]' => array( 'hide' ),
127
+ 'audio_type[external]' => array( 'show' ),
128
  )
129
  ),
130
 
139
  'state_handler' => array(
140
  'audio_type[hosted]' => array( 'show' ),
141
  'audio_type[oembed]' => array( 'hide' ),
142
+ 'audio_type[external]' => array( 'show' ),
143
  )
144
  ),
145
 
149
  'state_handler' => array(
150
  'audio_type[hosted]' => array( 'show' ),
151
  'audio_type[oembed]' => array( 'hide' ),
152
+ 'audio_type[external]' => array( 'show' ),
153
  )
154
  ),
155
 
159
  'state_handler' => array(
160
  'audio_type[hosted]' => array( 'show' ),
161
  'audio_type[oembed]' => array( 'hide' ),
162
+ 'audio_type[external]' => array( 'show' ),
163
  )
164
  ),
165
 
169
  'state_handler' => array(
170
  'audio_type[hosted]' => array( 'show' ),
171
  'audio_type[oembed]' => array( 'hide' ),
172
+ 'audio_type[external]' => array( 'show' ),
173
  )
174
  ),
175
 
180
  'state_handler' => array(
181
  'audio_type[hosted]' => array( 'show' ),
182
  'audio_type[oembed]' => array( 'hide' ),
183
+ 'audio_type[external]' => array( 'show' ),
184
  )
185
  ),
186
 
196
  'state_handler' => array(
197
  'audio_type[hosted]' => array( 'show' ),
198
  'audio_type[oembed]' => array( 'hide' ),
199
+ 'audio_type[external]' => array( 'show' ),
200
  )
201
  ),
202
  ),
widgets/ink-auds-widget/tpl/audio.php CHANGED
@@ -8,7 +8,7 @@
8
 
9
  </div>
10
 
11
- <?php elseif ($instance['audio']['type'] == 'hosted' ) : ?>
12
 
13
  <div class="iw-so-audio-hosted" style="background-image: url( '<?php echo sow_esc_url ( wp_get_attachment_image_src( $instance['audio']['image'], 'full' )[0] ); ?>' )">
14
 
@@ -29,7 +29,11 @@
29
 
30
  <?php endif; ?>
31
 
32
- <?php echo do_shortcode( '[audio src="' . sow_esc_url ( wp_get_attachment_url( $instance['audio']['hosted'] ) ) . '"]' ); ?>
 
 
 
 
33
 
34
  </div>
35
 
8
 
9
  </div>
10
 
11
+ <?php elseif ( $instance['audio']['type'] == 'hosted' || $instance['audio']['type'] == 'external' ) : ?>
12
 
13
  <div class="iw-so-audio-hosted" style="background-image: url( '<?php echo sow_esc_url ( wp_get_attachment_image_src( $instance['audio']['image'], 'full' )[0] ); ?>' )">
14
 
29
 
30
  <?php endif; ?>
31
 
32
+ <?php if ( $instance['audio']['type'] == 'hosted' ) : ?>
33
+ <?php echo do_shortcode( '[audio src="' . sow_esc_url ( wp_get_attachment_url( $instance['audio']['hosted'] ) ) . '"]' ); ?>
34
+ <?php elseif ( $instance['audio']['type'] == 'external' ) : ?>
35
+ <?php echo do_shortcode( '[audio src="' . $instance['audio']['external'] . '"]' ); ?>
36
+ <?php endif; ?>
37
 
38
  </div>
39
 
widgets/ink-blgs-widget/ink-blgs-widget.php CHANGED
@@ -207,6 +207,12 @@ class Inked_Blog_SO_Widget extends SiteOrigin_Widget {
207
  )
208
  ),
209
 
 
 
 
 
 
 
210
  'format' => array(
211
  'type' => 'checkbox',
212
  'label' => __( 'Show Format Icon ?', 'wpinked-widgets' ),
@@ -280,21 +286,21 @@ class Inked_Blog_SO_Widget extends SiteOrigin_Widget {
280
  'type' => 'text',
281
  'label' => __( 'Byline above Title', 'wpinked-widgets' ),
282
  'default' => '',
283
- 'description' => __( 'Use %date% : The Date, %category% : List of Categories, %author% : Author name with link, %comments% : Number of Comments.', 'wpinked-widgets' ),
284
  ),
285
 
286
  'byline-below' => array(
287
  'type' => 'text',
288
  'label' => __( 'Byline below Title', 'wpinked-widgets' ),
289
  'default' => '',
290
- 'description' => __( 'Use %date% : The Date, %category% : List of Categories, %author% : Author name with link, %comments% : Number of Comments.', 'wpinked-widgets' ),
291
  ),
292
 
293
  'byline-end' => array(
294
  'type' => 'text',
295
  'label' => __( 'Byline after Excerpt', 'wpinked-widgets' ),
296
  'default' => '',
297
- 'description' => __( 'Use %date% : The Date, %category% : List of Categories, %author% : Author name with link, %comments% : Number of Comments.', 'wpinked-widgets' ),
298
  ),
299
 
300
  'cats' => array(
@@ -303,6 +309,12 @@ class Inked_Blog_SO_Widget extends SiteOrigin_Widget {
303
  'default' => ', '
304
  ),
305
 
 
 
 
 
 
 
306
  'date' => array(
307
  'type' => 'text',
308
  'label' => __( 'Date Format', 'wpinked-widgets' ),
207
  )
208
  ),
209
 
210
+ 'title-link' => array(
211
+ 'type' => 'checkbox',
212
+ 'label' => __( 'Title as a link ?', 'wpinked-widgets' ),
213
+ 'default' => true
214
+ ),
215
+
216
  'format' => array(
217
  'type' => 'checkbox',
218
  'label' => __( 'Show Format Icon ?', 'wpinked-widgets' ),
286
  'type' => 'text',
287
  'label' => __( 'Byline above Title', 'wpinked-widgets' ),
288
  'default' => '',
289
+ 'description' => __( 'Use %date% : The Date, %tag% : List of Tags, %category% : List of Categories, %author% : Author name with link, %comments% : Number of Comments.', 'wpinked-widgets' ),
290
  ),
291
 
292
  'byline-below' => array(
293
  'type' => 'text',
294
  'label' => __( 'Byline below Title', 'wpinked-widgets' ),
295
  'default' => '',
296
+ 'description' => __( 'Use %date% : The Date, %tag% : List of Tags, %category% : List of Categories, %author% : Author name with link, %comments% : Number of Comments.', 'wpinked-widgets' ),
297
  ),
298
 
299
  'byline-end' => array(
300
  'type' => 'text',
301
  'label' => __( 'Byline after Excerpt', 'wpinked-widgets' ),
302
  'default' => '',
303
+ 'description' => __( 'Use %date% : The Date, %tag% : List of Tags, %category% : List of Categories, %author% : Author name with link, %comments% : Number of Comments.', 'wpinked-widgets' ),
304
  ),
305
 
306
  'cats' => array(
309
  'default' => ', '
310
  ),
311
 
312
+ 'tags' => array(
313
+ 'type' => 'text',
314
+ 'label' => __( 'Text between Tags', 'wpinked-widgets' ),
315
+ 'default' => ', '
316
+ ),
317
+
318
  'date' => array(
319
  'type' => 'text',
320
  'label' => __( 'Date Format', 'wpinked-widgets' ),
widgets/ink-blgs-widget/tpl/thumb-above.php CHANGED
@@ -45,7 +45,11 @@ $count = 1;
45
  // Setting up posts query
46
  global $paged, $query_result;
47
  $this_post = get_the_ID();
48
- $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
 
 
 
 
49
 
50
  // Setting up query
51
  $post_selector_pseudo_query = $instance['loop']['posts'];
@@ -103,17 +107,21 @@ $query_result = new WP_Query( $processed_query );
103
  <?php if ( $instance['design']['byline-above'] ) : ?>
104
 
105
  <p class="iw-so-article-byline-above <?php echo esc_attr( $instance['styling']['align'] ); ?>">
106
- <?php wpinked_so_post_byline( $instance['design']['byline-above'], get_the_ID(), $instance['design']['cats'], $instance['design']['date'] ); ?>
107
  </p>
108
 
109
  <?php endif; ?>
110
 
111
- <<?php echo $h; ?> class="iw-so-article-title <?php echo $instance['styling']['align']; ?>"><a href="<?php echo esc_url( get_permalink() ); ?>"><?php the_title() ?></a></<?php echo $h; ?>>
 
 
 
 
112
 
113
  <?php if ($instance['design']['byline-below']) : ?>
114
 
115
  <p class="iw-so-article-byline-below <?php echo esc_attr( $instance['styling']['align'] ); ?>">
116
- <?php wpinked_so_post_byline( $instance['design']['byline-below'], get_the_ID(), $instance['design']['cats'], $instance['design']['date'] ); ?>
117
  </p>
118
 
119
  <?php endif; ?>
@@ -141,7 +149,7 @@ $query_result = new WP_Query( $processed_query );
141
  <?php if ($instance['design']['byline-end']) : ?>
142
 
143
  <p class="iw-so-article-byline-end <?php echo esc_attr( $instance['styling']['align'] ); ?>">
144
- <?php wpinked_so_post_byline( $instance['design']['byline-end'], get_the_ID(), $instance['design']['cats'], $instance['design']['date'] ); ?>
145
  </p>
146
 
147
  <?php endif; ?>
45
  // Setting up posts query
46
  global $paged, $query_result;
47
  $this_post = get_the_ID();
48
+ if ( is_front_page() ) {
49
+ $paged = ( get_query_var( 'page' ) ) ? get_query_var( 'page' ) : 1;
50
+ } else {
51
+ $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
52
+ }
53
 
54
  // Setting up query
55
  $post_selector_pseudo_query = $instance['loop']['posts'];
107
  <?php if ( $instance['design']['byline-above'] ) : ?>
108
 
109
  <p class="iw-so-article-byline-above <?php echo esc_attr( $instance['styling']['align'] ); ?>">
110
+ <?php wpinked_so_post_byline( $instance['design']['byline-above'], get_the_ID(), $instance['design']['cats'], $instance['design']['tags'], $instance['design']['date'] ); ?>
111
  </p>
112
 
113
  <?php endif; ?>
114
 
115
+ <<?php echo $h; ?> class="iw-so-article-title <?php echo $instance['styling']['align']; ?>">
116
+ <?php if ( $instance['design']['title-link'] ) { ?><a href="<?php echo esc_url( get_permalink() ); ?>"><?php } ?>
117
+ <?php the_title() ?>
118
+ <?php if ( $instance['design']['title-link'] ) { ?></a><?php } ?>
119
+ </<?php echo $h; ?>>
120
 
121
  <?php if ($instance['design']['byline-below']) : ?>
122
 
123
  <p class="iw-so-article-byline-below <?php echo esc_attr( $instance['styling']['align'] ); ?>">
124
+ <?php wpinked_so_post_byline( $instance['design']['byline-below'], get_the_ID(), $instance['design']['cats'], $instance['design']['tags'], $instance['design']['date'] ); ?>
125
  </p>
126
 
127
  <?php endif; ?>
149
  <?php if ($instance['design']['byline-end']) : ?>
150
 
151
  <p class="iw-so-article-byline-end <?php echo esc_attr( $instance['styling']['align'] ); ?>">
152
+ <?php wpinked_so_post_byline( $instance['design']['byline-end'], get_the_ID(), $instance['design']['cats'], $instance['design']['tags'], $instance['design']['date'] ); ?>
153
  </p>
154
 
155
  <?php endif; ?>
widgets/ink-blgs-widget/tpl/thumb-behind.php CHANGED
@@ -49,7 +49,11 @@ $count = 1;
49
  // Setting up posts query
50
  global $paged, $query_result;
51
  $this_post = get_the_ID();
52
- $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
 
 
 
 
53
 
54
  // Setting up query
55
  $post_selector_pseudo_query = $instance['loop']['posts'];
@@ -98,17 +102,21 @@ $query_result = new WP_Query( $processed_query );
98
  <?php if ( $instance['design']['byline-above'] ) : ?>
99
 
100
  <p class="iw-so-article-byline-above <?php echo esc_attr( $instance['styling']['align'] ); ?>">
101
- <?php wpinked_so_post_byline( $instance['design']['byline-above'], get_the_ID(), $instance['design']['cats'], $instance['design']['date'] ); ?>
102
  </p>
103
 
104
  <?php endif; ?>
105
 
106
- <<?php echo $h; ?> class="iw-so-article-title <?php echo $instance['styling']['align']; ?>"><a href="<?php echo esc_url( get_permalink() ); ?>"><?php the_title() ?></a></<?php echo $h; ?>>
 
 
 
 
107
 
108
  <?php if ($instance['design']['byline-below']) : ?>
109
 
110
  <p class="iw-so-article-byline-below <?php echo esc_attr( $instance['styling']['align'] ); ?>">
111
- <?php wpinked_so_post_byline( $instance['design']['byline-below'], get_the_ID(), $instance['design']['cats'], $instance['design']['date'] ); ?>
112
  </p>
113
 
114
  <?php endif; ?>
@@ -136,7 +144,7 @@ $query_result = new WP_Query( $processed_query );
136
  <?php if ($instance['design']['byline-end']) : ?>
137
 
138
  <p class="iw-so-article-byline-end <?php echo esc_attr( $instance['styling']['align'] ); ?>">
139
- <?php wpinked_so_post_byline( $instance['design']['byline-end'], get_the_ID(), $instance['design']['cats'], $instance['design']['date'] ); ?>
140
  </p>
141
 
142
  <?php endif; ?>
49
  // Setting up posts query
50
  global $paged, $query_result;
51
  $this_post = get_the_ID();
52
+ if ( is_front_page() ) {
53
+ $paged = ( get_query_var( 'page' ) ) ? get_query_var( 'page' ) : 1;
54
+ } else {
55
+ $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
56
+ }
57
 
58
  // Setting up query
59
  $post_selector_pseudo_query = $instance['loop']['posts'];
102
  <?php if ( $instance['design']['byline-above'] ) : ?>
103
 
104
  <p class="iw-so-article-byline-above <?php echo esc_attr( $instance['styling']['align'] ); ?>">
105
+ <?php wpinked_so_post_byline( $instance['design']['byline-above'], get_the_ID(), $instance['design']['cats'], $instance['design']['tags'], $instance['design']['date'] ); ?>
106
  </p>
107
 
108
  <?php endif; ?>
109
 
110
+ <<?php echo $h; ?> class="iw-so-article-title <?php echo $instance['styling']['align']; ?>">
111
+ <?php if ( $instance['design']['title-link'] ) { ?><a href="<?php echo esc_url( get_permalink() ); ?>"><?php } ?>
112
+ <?php the_title() ?>
113
+ <?php if ( $instance['design']['title-link'] ) { ?></a><?php } ?>
114
+ </<?php echo $h; ?>>
115
 
116
  <?php if ($instance['design']['byline-below']) : ?>
117
 
118
  <p class="iw-so-article-byline-below <?php echo esc_attr( $instance['styling']['align'] ); ?>">
119
+ <?php wpinked_so_post_byline( $instance['design']['byline-below'], get_the_ID(), $instance['design']['cats'], $instance['design']['tags'], $instance['design']['date'] ); ?>
120
  </p>
121
 
122
  <?php endif; ?>
144
  <?php if ($instance['design']['byline-end']) : ?>
145
 
146
  <p class="iw-so-article-byline-end <?php echo esc_attr( $instance['styling']['align'] ); ?>">
147
+ <?php wpinked_so_post_byline( $instance['design']['byline-end'], get_the_ID(), $instance['design']['cats'], $instance['design']['tags'], $instance['design']['date'] ); ?>
148
  </p>
149
 
150
  <?php endif; ?>
widgets/ink-blgs-widget/tpl/thumb-left.php CHANGED
@@ -52,7 +52,11 @@ $count = 1;
52
  // Setting up posts query
53
  global $paged, $query_result;
54
  $this_post = get_the_ID();
55
- $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
 
 
 
 
56
 
57
  // Setting up query
58
  $post_selector_pseudo_query = $instance['loop']['posts'];
@@ -110,17 +114,21 @@ $query_result = new WP_Query( $processed_query );
110
  <?php if ($instance['design']['byline-above']) : ?>
111
 
112
  <p class="iw-so-article-byline-above <?php echo esc_attr( $instance['styling']['align'] ); ?>">
113
- <?php wpinked_so_post_byline( $instance['design']['byline-above'], get_the_ID(), $instance['design']['cats'], $instance['design']['date'] ); ?>
114
  </p>
115
 
116
  <?php endif; ?>
117
 
118
- <<?php echo $h; ?> class="iw-so-article-title <?php echo $instance['styling']['align']; ?>"><a href="<?php echo esc_url( get_permalink() ); ?>"><?php the_title() ?></a></<?php echo $h; ?>>
 
 
 
 
119
 
120
  <?php if ($instance['design']['byline-below']) : ?>
121
 
122
  <p class="iw-so-article-byline-below <?php echo esc_attr( $instance['styling']['align'] ); ?>">
123
- <?php wpinked_so_post_byline( $instance['design']['byline-below'], get_the_ID(), $instance['design']['cats'], $instance['design']['date'] ); ?>
124
  </p>
125
 
126
  <?php endif; ?>
@@ -148,7 +156,7 @@ $query_result = new WP_Query( $processed_query );
148
  <?php if ($instance['design']['byline-end']) : ?>
149
 
150
  <p class="iw-so-article-byline-end <?php echo esc_attr( $instance['styling']['align'] ); ?>">
151
- <?php wpinked_so_post_byline( $instance['design']['byline-end'], get_the_ID(), $instance['design']['cats'], $instance['design']['date'] ); ?>
152
  </p>
153
 
154
  <?php endif; ?>
52
  // Setting up posts query
53
  global $paged, $query_result;
54
  $this_post = get_the_ID();
55
+ if ( is_front_page() ) {
56
+ $paged = ( get_query_var( 'page' ) ) ? get_query_var( 'page' ) : 1;
57
+ } else {
58
+ $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
59
+ }
60
 
61
  // Setting up query
62
  $post_selector_pseudo_query = $instance['loop']['posts'];
114
  <?php if ($instance['design']['byline-above']) : ?>
115
 
116
  <p class="iw-so-article-byline-above <?php echo esc_attr( $instance['styling']['align'] ); ?>">
117
+ <?php wpinked_so_post_byline( $instance['design']['byline-above'], get_the_ID(), $instance['design']['cats'], $instance['design']['tags'], $instance['design']['date'] ); ?>
118
  </p>
119
 
120
  <?php endif; ?>
121
 
122
+ <<?php echo $h; ?> class="iw-so-article-title <?php echo $instance['styling']['align']; ?>">
123
+ <?php if ( $instance['design']['title-link'] ) { ?><a href="<?php echo esc_url( get_permalink() ); ?>"><?php } ?>
124
+ <?php the_title() ?>
125
+ <?php if ( $instance['design']['title-link'] ) { ?></a><?php } ?>
126
+ </<?php echo $h; ?>>
127
 
128
  <?php if ($instance['design']['byline-below']) : ?>
129
 
130
  <p class="iw-so-article-byline-below <?php echo esc_attr( $instance['styling']['align'] ); ?>">
131
+ <?php wpinked_so_post_byline( $instance['design']['byline-below'], get_the_ID(), $instance['design']['cats'], $instance['design']['tags'], $instance['design']['date'] ); ?>
132
  </p>
133
 
134
  <?php endif; ?>
156
  <?php if ($instance['design']['byline-end']) : ?>
157
 
158
  <p class="iw-so-article-byline-end <?php echo esc_attr( $instance['styling']['align'] ); ?>">
159
+ <?php wpinked_so_post_byline( $instance['design']['byline-end'], get_the_ID(), $instance['design']['cats'], $instance['design']['tags'], $instance['design']['date'] ); ?>
160
  </p>
161
 
162
  <?php endif; ?>
widgets/ink-blgs-widget/tpl/thumb-none.php CHANGED
@@ -45,7 +45,11 @@ $count = 1;
45
  // Setting up posts query
46
  global $paged, $query_result;
47
  $this_post = get_the_ID();
48
- $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
 
 
 
 
49
 
50
  // Setting up query
51
  $post_selector_pseudo_query = $instance['loop']['posts'];
@@ -88,17 +92,21 @@ $query_result = new WP_Query( $processed_query );
88
  <?php if ( $instance['design']['byline-above'] ) : ?>
89
 
90
  <p class="iw-so-article-byline-above <?php echo esc_attr( $instance['styling']['align'] ); ?>">
91
- <?php wpinked_so_post_byline( $instance['design']['byline-above'], get_the_ID(), $instance['design']['cats'], $instance['design']['date'] ); ?>
92
  </p>
93
 
94
  <?php endif; ?>
95
 
96
- <<?php echo $h; ?> class="iw-so-article-title <?php echo $instance['styling']['align']; ?>"><a href="<?php echo esc_url( get_permalink() ); ?>"><?php the_title() ?></a></<?php echo $h; ?>>
 
 
 
 
97
 
98
  <?php if ($instance['design']['byline-below']) : ?>
99
 
100
  <p class="iw-so-article-byline-below <?php echo esc_attr( $instance['styling']['align'] ); ?>">
101
- <?php wpinked_so_post_byline( $instance['design']['byline-below'], get_the_ID(), $instance['design']['cats'], $instance['design']['date'] ); ?>
102
  </p>
103
 
104
  <?php endif; ?>
@@ -126,7 +134,7 @@ $query_result = new WP_Query( $processed_query );
126
  <?php if ($instance['design']['byline-end']) : ?>
127
 
128
  <p class="iw-so-article-byline-end <?php echo esc_attr( $instance['styling']['align'] ); ?>">
129
- <?php wpinked_so_post_byline( $instance['design']['byline-end'], get_the_ID(), $instance['design']['cats'], $instance['design']['date'] ); ?>
130
  </p>
131
 
132
  <?php endif; ?>
45
  // Setting up posts query
46
  global $paged, $query_result;
47
  $this_post = get_the_ID();
48
+ if ( is_front_page() ) {
49
+ $paged = ( get_query_var( 'page' ) ) ? get_query_var( 'page' ) : 1;
50
+ } else {
51
+ $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
52
+ }
53
 
54
  // Setting up query
55
  $post_selector_pseudo_query = $instance['loop']['posts'];
92
  <?php if ( $instance['design']['byline-above'] ) : ?>
93
 
94
  <p class="iw-so-article-byline-above <?php echo esc_attr( $instance['styling']['align'] ); ?>">
95
+ <?php wpinked_so_post_byline( $instance['design']['byline-above'], get_the_ID(), $instance['design']['cats'], $instance['design']['tags'], $instance['design']['date'] ); ?>
96
  </p>
97
 
98
  <?php endif; ?>
99
 
100
+ <<?php echo $h; ?> class="iw-so-article-title <?php echo $instance['styling']['align']; ?>">
101
+ <?php if ( $instance['design']['title-link'] ) { ?><a href="<?php echo esc_url( get_permalink() ); ?>"><?php } ?>
102
+ <?php the_title() ?>
103
+ <?php if ( $instance['design']['title-link'] ) { ?></a><?php } ?>
104
+ </<?php echo $h; ?>>
105
 
106
  <?php if ($instance['design']['byline-below']) : ?>
107
 
108
  <p class="iw-so-article-byline-below <?php echo esc_attr( $instance['styling']['align'] ); ?>">
109
+ <?php wpinked_so_post_byline( $instance['design']['byline-below'], get_the_ID(), $instance['design']['cats'], $instance['design']['tags'], $instance['design']['date'] ); ?>
110
  </p>
111
 
112
  <?php endif; ?>
134
  <?php if ($instance['design']['byline-end']) : ?>
135
 
136
  <p class="iw-so-article-byline-end <?php echo esc_attr( $instance['styling']['align'] ); ?>">
137
+ <?php wpinked_so_post_byline( $instance['design']['byline-end'], get_the_ID(), $instance['design']['cats'], $instance['design']['tags'], $instance['design']['date'] ); ?>
138
  </p>
139
 
140
  <?php endif; ?>
widgets/ink-blgs-widget/tpl/thumb-right.php CHANGED
@@ -52,7 +52,11 @@ $count = 1;
52
  // Setting up posts query
53
  global $paged, $query_result;
54
  $this_post = get_the_ID();
55
- $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
 
 
 
 
56
 
57
  // Setting up query
58
  $post_selector_pseudo_query = $instance['loop']['posts'];
@@ -110,17 +114,21 @@ $query_result = new WP_Query( $processed_query );
110
  <?php if ($instance['design']['byline-above']) : ?>
111
 
112
  <p class="iw-so-article-byline-above <?php echo esc_attr( $instance['styling']['align'] ); ?>">
113
- <?php wpinked_so_post_byline( $instance['design']['byline-above'], get_the_ID(), $instance['design']['cats'], $instance['design']['date'] ); ?>
114
  </p>
115
 
116
  <?php endif; ?>
117
 
118
- <<?php echo $h; ?> class="iw-so-article-title <?php echo $instance['styling']['align']; ?>"><a href="<?php echo esc_url( get_permalink() ); ?>"><?php the_title() ?></a></<?php echo $h; ?>>
 
 
 
 
119
 
120
  <?php if ($instance['design']['byline-below']) : ?>
121
 
122
  <p class="iw-so-article-byline-below <?php echo esc_attr( $instance['styling']['align'] ); ?>">
123
- <?php wpinked_so_post_byline( $instance['design']['byline-below'], get_the_ID(), $instance['design']['cats'], $instance['design']['date'] ); ?>
124
  </p>
125
 
126
  <?php endif; ?>
@@ -148,7 +156,7 @@ $query_result = new WP_Query( $processed_query );
148
  <?php if ($instance['design']['byline-end']) : ?>
149
 
150
  <p class="iw-so-article-byline-end <?php echo esc_attr( $instance['styling']['align'] ); ?>">
151
- <?php wpinked_so_post_byline( $instance['design']['byline-end'], get_the_ID(), $instance['design']['cats'], $instance['design']['date'] ); ?>
152
  </p>
153
 
154
  <?php endif; ?>
52
  // Setting up posts query
53
  global $paged, $query_result;
54
  $this_post = get_the_ID();
55
+ if ( is_front_page() ) {
56
+ $paged = ( get_query_var( 'page' ) ) ? get_query_var( 'page' ) : 1;
57
+ } else {
58
+ $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
59
+ }
60
 
61
  // Setting up query
62
  $post_selector_pseudo_query = $instance['loop']['posts'];
114
  <?php if ($instance['design']['byline-above']) : ?>
115
 
116
  <p class="iw-so-article-byline-above <?php echo esc_attr( $instance['styling']['align'] ); ?>">
117
+ <?php wpinked_so_post_byline( $instance['design']['byline-above'], get_the_ID(), $instance['design']['cats'], $instance['design']['tags'], $instance['design']['date'] ); ?>
118
  </p>
119
 
120
  <?php endif; ?>
121
 
122
+ <<?php echo $h; ?> class="iw-so-article-title <?php echo $instance['styling']['align']; ?>">
123
+ <?php if ( $instance['design']['title-link'] ) { ?><a href="<?php echo esc_url( get_permalink() ); ?>"><?php } ?>
124
+ <?php the_title() ?>
125
+ <?php if ( $instance['design']['title-link'] ) { ?></a><?php } ?>
126
+ </<?php echo $h; ?>>
127
 
128
  <?php if ($instance['design']['byline-below']) : ?>
129
 
130
  <p class="iw-so-article-byline-below <?php echo esc_attr( $instance['styling']['align'] ); ?>">
131
+ <?php wpinked_so_post_byline( $instance['design']['byline-below'], get_the_ID(), $instance['design']['cats'], $instance['design']['tags'], $instance['design']['date'] ); ?>
132
  </p>
133
 
134
  <?php endif; ?>
156
  <?php if ($instance['design']['byline-end']) : ?>
157
 
158
  <p class="iw-so-article-byline-end <?php echo esc_attr( $instance['styling']['align'] ); ?>">
159
+ <?php wpinked_so_post_byline( $instance['design']['byline-end'], get_the_ID(), $instance['design']['cats'], $instance['design']['tags'], $instance['design']['date'] ); ?>
160
  </p>
161
 
162
  <?php endif; ?>
widgets/ink-btns-widget/ink-btns-widget.php CHANGED
@@ -180,6 +180,12 @@ class Inked_Buttons_SO_Widget extends SiteOrigin_Widget {
180
  'label' => __( 'Onclick', 'wpinked-widgets' ),
181
  'description' => __( 'Run this Javascript when the button is clicked. Ideal for tracking.', 'wpinked-widgets' ),
182
  ),
 
 
 
 
 
 
183
  )
184
  ),
185
 
@@ -239,6 +245,24 @@ class Inked_Buttons_SO_Widget extends SiteOrigin_Widget {
239
  return $fonts;
240
  }
241
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
242
  }
243
 
244
  siteorigin_widget_register( 'ink-buttons', __FILE__, 'Inked_Buttons_SO_Widget' );
180
  'label' => __( 'Onclick', 'wpinked-widgets' ),
181
  'description' => __( 'Run this Javascript when the button is clicked. Ideal for tracking.', 'wpinked-widgets' ),
182
  ),
183
+
184
+ 'class' => array(
185
+ 'type' => 'text',
186
+ 'label' => __( 'Button Class', 'wpinked-widgets' ),
187
+ 'description' => __( 'A Class attribute allows you to style this button with CSS.', 'wpinked-widgets' ),
188
+ ),
189
  )
190
  ),
191
 
245
  return $fonts;
246
  }
247
 
248
+ function get_template_variables( $instance, $args ) {
249
+
250
+ if( empty( $instance ) ) return array();
251
+
252
+ return array(
253
+ 'text' => $instance['text'],
254
+ 'url' => $instance['url'],
255
+ 'target' => $instance['new_window'],
256
+ 'icon' => $instance['icon']['select'],
257
+ 'hover' => $instance['styling']['hover'],
258
+ 'click' => $instance['styling']['click'],
259
+ 'id' => $instance['attributes']['id'],
260
+ 'title' => $instance['attributes']['title'],
261
+ 'onclick' => $instance['attributes']['onclick'],
262
+ 'class' => $instance['attributes']['class'],
263
+ );
264
+ }
265
+
266
  }
267
 
268
  siteorigin_widget_register( 'ink-buttons', __FILE__, 'Inked_Buttons_SO_Widget' );
widgets/ink-btns-widget/tpl/buttons.php CHANGED
@@ -1,26 +1,25 @@
1
  <?php
2
 
3
  $classes = array( 'iw-so-button' );
4
- if( !empty( $instance['styling']['hover'] ) ) $classes[] = 'iw-so-button-hover';
5
- if( !empty( $instance['styling']['click'] ) ) $classes[] = 'iw-so-button-click';
 
6
 
7
  $button_attributes = array(
8
  'class' => esc_attr ( implode ( ' ', $classes ) )
9
  );
10
- if( !empty( $instance['new_window'] ) ) $button_attributes['target'] = '_blank';
11
- if( !empty( $instance['url'] ) ) $button_attributes['href'] = sow_esc_url( $instance['url'] );
12
- if( !empty( $instance['attributes']['id'] ) ) $button_attributes['id'] = esc_attr( $instance['attributes']['id'] );
13
- if( !empty( $instance['attributes']['title'] ) ) $button_attributes['title'] = esc_attr( $instance['attributes']['title'] );
14
- if( !empty( $instance['attributes']['onclick'] ) ) $button_attributes['onclick'] = esc_attr( $instance['attributes']['onclick'] );
15
-
16
- $icon_styles = array();
17
  ?>
18
 
19
  <div class="iw-so-button-base">
20
 
21
  <a <?php foreach ( $button_attributes as $name => $val ) echo $name . '="' . $val . '" ' ?>>
22
- <?php echo siteorigin_widget_get_icon( $instance['icon']['select'], $icon_styles ); ?>
23
- <?php echo esc_html ( $instance['text'] ); ?>
24
  </a>
25
 
26
  </div>
1
  <?php
2
 
3
  $classes = array( 'iw-so-button' );
4
+ if ( ! empty( $hover ) ) $classes[] = 'iw-so-button-hover';
5
+ if ( ! empty( $click ) ) $classes[] = 'iw-so-button-click';
6
+ if ( ! empty( $class ) ) $classes[] = esc_attr( $class );
7
 
8
  $button_attributes = array(
9
  'class' => esc_attr ( implode ( ' ', $classes ) )
10
  );
11
+ if ( ! empty( $target ) ) $button_attributes['target'] = '_blank';
12
+ if ( ! empty( $url ) ) $button_attributes['href'] = sow_esc_url( $url );
13
+ if ( ! empty( $id ) ) $button_attributes['id'] = esc_attr( $id );
14
+ if ( ! empty( $title ) ) $button_attributes['title'] = esc_attr( $title );
15
+ if ( ! empty( $onclick ) ) $button_attributes['onclick'] = esc_attr( $onclick );
 
 
16
  ?>
17
 
18
  <div class="iw-so-button-base">
19
 
20
  <a <?php foreach ( $button_attributes as $name => $val ) echo $name . '="' . $val . '" ' ?>>
21
+ <?php echo siteorigin_widget_get_icon( $icon ); ?>
22
+ <?php echo esc_html ( $text ); ?>
23
  </a>
24
 
25
  </div>
widgets/ink-dvdr-widget/ink-dvdr-widget.php CHANGED
@@ -76,7 +76,21 @@ class Inked_Divider_SO_Widget extends SiteOrigin_Widget {
76
  'type' => 'measurement',
77
  'label' => __( 'Margin Bottom', 'wpinked-widgets' ),
78
  'default' => '0'
79
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80
 
81
  )
82
  ),
@@ -104,6 +118,15 @@ class Inked_Divider_SO_Widget extends SiteOrigin_Widget {
104
  );
105
  }
106
 
 
 
 
 
 
 
 
 
 
107
  }
108
 
109
  siteorigin_widget_register( 'ink-divider', __FILE__, 'Inked_Divider_SO_Widget' );
76
  'type' => 'measurement',
77
  'label' => __( 'Margin Bottom', 'wpinked-widgets' ),
78
  'default' => '0'
79
+ ),
80
+
81
+ )
82
+ ),
83
+
84
+ 'attributes' => array(
85
+ 'type' => 'section',
86
+ 'label' => __( 'Attributes' , 'wpinked-widgets' ),
87
+ 'hide' => true,
88
+ 'fields' => array(
89
+
90
+ 'divider' => array(
91
+ 'type' => 'text',
92
+ 'label' => __( 'Divider Class', 'wpinked-widgets' ),
93
+ ),
94
 
95
  )
96
  ),
118
  );
119
  }
120
 
121
+ function get_template_variables( $instance, $args ) {
122
+
123
+ if( empty( $instance ) ) return array();
124
+
125
+ return array(
126
+ 'class_divider' => $instance['attributes']['divider'],
127
+ );
128
+ }
129
+
130
  }
131
 
132
  siteorigin_widget_register( 'ink-divider', __FILE__, 'Inked_Divider_SO_Widget' );
widgets/ink-dvdr-widget/tpl/divider.php CHANGED
@@ -1,3 +1,3 @@
1
  <div class="iw-so-divider-top"></div>
2
- <div class="iw-so-divider"></div>
3
  <div class="iw-so-divider-bottom"></div>
1
  <div class="iw-so-divider-top"></div>
2
+ <div class="iw-so-divider <?php echo $class_divider ?>"></div>
3
  <div class="iw-so-divider-bottom"></div>
widgets/ink-prsn-widget/styles/person.less CHANGED
@@ -47,11 +47,10 @@
47
  letter-spacing: 2px;
48
  color: @designation;
49
  }
 
50
 
51
- .iw-so-person-about {
52
- color: @about;
53
- }
54
-
55
  }
56
 
57
  .iw-so-person-profiles{
47
  letter-spacing: 2px;
48
  color: @designation;
49
  }
50
+ }
51
 
52
+ .iw-so-person-about {
53
+ color: @about;
 
 
54
  }
55
 
56
  .iw-so-person-profiles{
widgets/ink-ptfl-widget/css/portfolio.css CHANGED
@@ -96,3 +96,7 @@
96
  -ms-transform: scale(1.15);
97
  -o-transform: scale(1.15);
98
  transform: scale(1.15); }
 
 
 
 
96
  -ms-transform: scale(1.15);
97
  -o-transform: scale(1.15);
98
  transform: scale(1.15); }
99
+ .iw-so-folio-grid.iw-so-folio-gallery.iw-text-hover .iw-so-project-article .iw-so-project-content {
100
+ opacity: 0; }
101
+ .iw-so-folio-grid.iw-so-folio-gallery.iw-text-hover .iw-so-project-article:hover .iw-so-project-content {
102
+ opacity: 1; }
widgets/ink-ptfl-widget/ink-ptfl-widget.php CHANGED
@@ -59,6 +59,16 @@ class Inked_Folio_SO_Widget extends SiteOrigin_Widget {
59
  )
60
  ),
61
 
 
 
 
 
 
 
 
 
 
 
62
  'sorting' => array(
63
  'type' => 'checkbox',
64
  'label' => __( 'Enable Sorting ?', 'wpinked-widgets' ),
59
  )
60
  ),
61
 
62
+ 'text-hover' => array(
63
+ 'type' => 'checkbox',
64
+ 'label' => __( 'Display Text only on hover ?', 'wpinked-widgets' ),
65
+ 'default' => false,
66
+ 'state_handler' => array(
67
+ 'folio_type[folio-default]' => array( 'hide' ),
68
+ 'folio_type[folio-gallery]' => array( 'show' ),
69
+ ),
70
+ ),
71
+
72
  'sorting' => array(
73
  'type' => 'checkbox',
74
  'label' => __( 'Enable Sorting ?', 'wpinked-widgets' ),
widgets/ink-ptfl-widget/tpl/folio-default.php CHANGED
@@ -23,7 +23,7 @@ $unique = 'folio-' . ++$wpinked_widget_count;
23
  <div class="iw-so-folio-terms-container">
24
  <ul class="iw-so-folio-terms">
25
  <?php if( $instance['design']['show-all'] ) {
26
- echo '<li><a class="' . $unique . '-term" data-filter="all">' . esc_html( $instance['design']['all'] ) . '</a></li>';
27
  }
28
 
29
  $taxonomy = 'jetpack-portfolio-type';
@@ -34,7 +34,7 @@ $unique = 'folio-' . ++$wpinked_widget_count;
34
  $active_item = '.' . $tax_term->slug;
35
  $first = false;
36
  }
37
- echo '<li><a class="' . $unique . '-term" data-filter=".' . $tax_term->slug . '" >' . $tax_term->name .'</a></li>';
38
  }
39
  $active_item = ( $active_item ) ? $active_item : 'all';
40
  ?>
@@ -90,9 +90,14 @@ if($query_result->have_posts()) : ?>
90
  </a>
91
  </div>
92
  <?php endif; ?>
 
 
 
93
  <h3 class="iw-so-project-title <?php echo $align; ?>"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
94
  <p class="iw-so-project-type <?php echo $align; ?>"><?php echo $filtering; ?></p>
95
 
 
 
96
  </article>
97
  </div>
98
 
23
  <div class="iw-so-folio-terms-container">
24
  <ul class="iw-so-folio-terms">
25
  <?php if( $instance['design']['show-all'] ) {
26
+ echo '<li><a class="' . $unique . '-term" data-filter="all" title="' . sanitize_title( $instance['design']['all'] ) . '">' . esc_html( $instance['design']['all'] ) . '</a></li>';
27
  }
28
 
29
  $taxonomy = 'jetpack-portfolio-type';
34
  $active_item = '.' . $tax_term->slug;
35
  $first = false;
36
  }
37
+ echo '<li><a class="' . $unique . '-term" data-filter=".' . $tax_term->slug . '" title="' . $tax_term->slug . '">' . $tax_term->name .'</a></li>';
38
  }
39
  $active_item = ( $active_item ) ? $active_item : 'all';
40
  ?>
90
  </a>
91
  </div>
92
  <?php endif; ?>
93
+
94
+ <?php do_action( 'wpinked_folio_default_above_content' ); ?>
95
+
96
  <h3 class="iw-so-project-title <?php echo $align; ?>"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
97
  <p class="iw-so-project-type <?php echo $align; ?>"><?php echo $filtering; ?></p>
98
 
99
+ <?php do_action( 'wpinked_folio_default_below_content' ); ?>
100
+
101
  </article>
102
  </div>
103
 
widgets/ink-ptfl-widget/tpl/folio-gallery.php CHANGED
@@ -9,6 +9,8 @@ $project_class = ( $instance['design']['sorting'] ? 'mix iw-so-project-container
9
 
10
  $align = 'iw-text-' . $instance['styling']['align'];
11
 
 
 
12
  $first = true;
13
 
14
  $unique = 'folio-' . ++$wpinked_widget_count;
@@ -19,7 +21,7 @@ $unique = 'folio-' . ++$wpinked_widget_count;
19
  <div class="iw-so-folio-terms-container">
20
  <ul class="iw-so-folio-terms">
21
  <?php if( $instance['design']['show-all'] ) {
22
- echo '<li><a class="' . $unique . '-term" data-filter="all">' . esc_html( $instance['design']['all'] ) . '</a></li>';
23
  }
24
 
25
  $taxonomy = 'jetpack-portfolio-type';
@@ -30,7 +32,7 @@ $unique = 'folio-' . ++$wpinked_widget_count;
30
  $active_item = '.' . $tax_term->slug;
31
  $first = false;
32
  }
33
- echo '<li><a class="' . $unique . '-term" data-filter=".' . $tax_term->slug . '" >' . $tax_term->name .'</a></li>';
34
  }
35
  $active_item = ( $active_item ) ? $active_item : 'all';
36
  ?>
@@ -54,7 +56,7 @@ $query_result = new WP_Query( $processed_query );
54
 
55
  if($query_result->have_posts()) : ?>
56
 
57
- <div id="<?php echo $unique . '-container'; ?>" class="iw-so-folio-grid iw-so-folio-gallery ">
58
 
59
  <?php while($query_result->have_posts()) : $query_result->the_post(); ?>
60
 
@@ -87,9 +89,13 @@ if($query_result->have_posts()) : ?>
87
 
88
  <div class="iw-so-project-content">
89
 
 
 
90
  <h3 class="iw-so-project-title <?php echo $align; ?>"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
91
  <p class="iw-so-project-type <?php echo $align; ?>"><?php echo $filtering; ?></p>
92
 
 
 
93
  </div>
94
 
95
  </article>
9
 
10
  $align = 'iw-text-' . $instance['styling']['align'];
11
 
12
+ $hover_text = $instance['design']['text-hover'] ? ' iw-text-hover' : '';
13
+
14
  $first = true;
15
 
16
  $unique = 'folio-' . ++$wpinked_widget_count;
21
  <div class="iw-so-folio-terms-container">
22
  <ul class="iw-so-folio-terms">
23
  <?php if( $instance['design']['show-all'] ) {
24
+ echo '<li><a class="' . $unique . '-term" data-filter="all" title="' . sanitize_title( $instance['design']['all'] ) . '">' . esc_html( $instance['design']['all'] ) . '</a></li>';
25
  }
26
 
27
  $taxonomy = 'jetpack-portfolio-type';
32
  $active_item = '.' . $tax_term->slug;
33
  $first = false;
34
  }
35
+ echo '<li><a class="' . $unique . '-term" data-filter=".' . $tax_term->slug . '" title="' . $tax_term->slug . '">' . $tax_term->name .'</a></li>';
36
  }
37
  $active_item = ( $active_item ) ? $active_item : 'all';
38
  ?>
56
 
57
  if($query_result->have_posts()) : ?>
58
 
59
+ <div id="<?php echo $unique . '-container'; ?>" class="iw-so-folio-grid iw-so-folio-gallery<?php echo $hover_text; ?>">
60
 
61
  <?php while($query_result->have_posts()) : $query_result->the_post(); ?>
62
 
89
 
90
  <div class="iw-so-project-content">
91
 
92
+ <?php do_action( 'wpinked_folio_gallery_above_content' ); ?>
93
+
94
  <h3 class="iw-so-project-title <?php echo $align; ?>"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
95
  <p class="iw-so-project-type <?php echo $align; ?>"><?php echo $filtering; ?></p>
96
 
97
+ <?php do_action( 'wpinked_folio_gallery_below_content' ); ?>
98
+
99
  </div>
100
 
101
  </article>
widgets/ink-sldr-widget/css/slider.css CHANGED
@@ -115,7 +115,8 @@
115
  opacity: 0.9; }
116
 
117
  .iw-so-slider .iw-so-slider-slide {
118
- position: relative; }
 
119
  .iw-so-slider .iw-so-slider-slide .iw-so-slide-caption {
120
  position: absolute;
121
  padding: 0 25px;
115
  opacity: 0.9; }
116
 
117
  .iw-so-slider .iw-so-slider-slide {
118
+ position: relative;
119
+ outline: none; }
120
  .iw-so-slider .iw-so-slider-slide .iw-so-slide-caption {
121
  position: absolute;
122
  padding: 0 25px;
widgets/ink-sldr-widget/js/slider.js CHANGED
@@ -1,6 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
 
2
  jQuery( function ( $ ) {
3
  $(document).ready( function() {
4
  $( '.iw-so-slider' ).slick();
5
  } );
 
6
  } );
1
+ (
2
+ function ( $ ) {
3
+
4
+ $.fn.iwInitSlider = function(){
5
+ "use strict";
6
+
7
+ if( $( '.iw-so-slider-slide' ).length ) {
8
+ $( '.iw-so-slider-slide' ).each( function() {
9
+ var $max_width = $( this ).find( 'img' ).width();
10
+ $( this ).find( '.iw-so-slide-content' ).css( { 'max-width': $max_width, 'margin': '0 auto' } );
11
+ $( this ).find( '.iw-so-slide-caption' ).css( { 'max-width': $max_width, 'margin': '0 auto' } );
12
+ } );
13
+ }
14
+ }
15
+
16
+ }
17
+ )( jQuery );
18
 
19
  jQuery( function ( $ ) {
20
  $(document).ready( function() {
21
  $( '.iw-so-slider' ).slick();
22
  } );
23
+ $( document ).iwInitSlider();
24
  } );
widgets/ink-sldr-widget/js/slider.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(function(i){i(document).ready(function(){i(".iw-so-slider").slick()})});
1
+ !function(i){i.fn.iwInitSlider=function(){"use strict";i(".iw-so-slider-slide").length&&i(".iw-so-slider-slide").each(function(){var n=i(this).find("img").width();i(this).find(".iw-so-slide-content").css({"max-width":n,margin:"0 auto"}),i(this).find(".iw-so-slide-caption").css({"max-width":n,margin:"0 auto"})})}}(jQuery),jQuery(function(i){i(document).ready(function(){i(".iw-so-slider").slick()}),i(document).iwInitSlider()});
widgets/ink-sldr-widget/tpl/slider.php CHANGED
@@ -33,14 +33,15 @@ if ( $instance['settings']['arrows-hover'] ) $arrow_hover = ' iw-so-slider-arrow
33
  <?php foreach( $instance['slides'] as $i => $slide ) { ?>
34
 
35
  <div class="iw-so-slider-slide">
36
- <center><?php echo wp_get_attachment_image( $slide['image'], 'full' ); ?></center>
37
- <?php if ( $instance['settings']['caption'] && get_post( $slide['image'] )->post_excerpt != null ) : ?>
38
- <div class="iw-so-slide-caption">
39
- <?php echo ( $instance['settings']['caption-icon'] ? str_replace( '"', "'", siteorigin_widget_get_icon( $instance['settings']['caption-icon'], $icon_styles ) ) : '' ); ?>
40
- <?php echo '<div class="caption">' . get_post( $slide['image'] )->post_excerpt . '</div>'; ?>
41
- </div>
42
- <?php endif; ?>
 
 
43
  </div>
44
-
45
  <?php } ?>
46
  </div>
33
  <?php foreach( $instance['slides'] as $i => $slide ) { ?>
34
 
35
  <div class="iw-so-slider-slide">
36
+ <div class="iw-so-slide-content">
37
+ <center><?php echo wp_get_attachment_image( $slide['image'], 'full' ); ?></center>
38
+ <?php if ( $instance['settings']['caption'] && get_post( $slide['image'] )->post_excerpt != null ) : ?>
39
+ <div class="iw-so-slide-caption">
40
+ <?php echo ( $instance['settings']['caption-icon'] ? str_replace( '"', "'", siteorigin_widget_get_icon( $instance['settings']['caption-icon'], $icon_styles ) ) : '' ); ?>
41
+ <?php echo '<div class="caption">' . get_post( $slide['image'] )->post_excerpt . '</div>'; ?>
42
+ </div>
43
+ <?php endif; ?>
44
+ </div>
45
  </div>
 
46
  <?php } ?>
47
  </div>