Widgets for SiteOrigin - Version 1.3.1

Version Description

  • November 29 2016 =
  • Removed unnecessary font-family: inherit; property.
  • Added option to customize date format in blog widget.
  • Fixed opening php tag in blog widget.
  • Added premium teaser field.
  • Added premium page builder option to tabs, accordion and filter accordion widgets.
  • Added premium font option to tabs, accordion, filter accordion, Alert, Button, Media Box, Portfolio and Blog widgets.
Download this release

Release Info

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

Code changes from version 1.3.0 to 1.3.1

Files changed (67) hide show
  1. admin/admin.css +108 -131
  2. admin/admin.php +63 -43
  3. admin/img/animation.jpg +0 -0
  4. admin/img/blog-enhanced.jpg +0 -0
  5. admin/img/blog-slider.jpg +0 -0
  6. admin/img/chart.jpg +0 -0
  7. admin/img/coming-soon.jpg +0 -0
  8. admin/img/get-pro-now.jpg +0 -0
  9. admin/img/go-pro.jpg +0 -0
  10. admin/img/prsn-testi-sliders.jpg +0 -0
  11. fields/premium.class.php +18 -0
  12. inc/functions.php +2 -2
  13. inc/template-functions.php +32 -1
  14. mixins/less/custom.less +7 -0
  15. readme.txt +60 -30
  16. widgets-for-siteorigin.php +26 -2
  17. widgets/ink-alrt-widget/ink-alrt-widget.php +112 -94
  18. widgets/ink-alrt-widget/styles/alert.less +6 -1
  19. widgets/ink-ardn-widget/css/accordion.css +0 -1
  20. widgets/ink-ardn-widget/ink-ardn-widget.php +192 -145
  21. widgets/ink-ardn-widget/styles/accordion.less +7 -0
  22. widgets/ink-ardn-widget/tpl/accordion.php +1 -1
  23. widgets/ink-auds-widget/ink-auds-widget.php +138 -140
  24. widgets/ink-barc-widget/ink-barc-widget.php +95 -98
  25. widgets/ink-barc-widget/styles/bar.less +1 -1
  26. widgets/ink-blgs-widget/css/blog.css +0 -1
  27. widgets/ink-blgs-widget/ink-blgs-widget.php +747 -684
  28. widgets/ink-blgs-widget/styles/thumb-above.less +5 -1
  29. widgets/ink-blgs-widget/styles/thumb-behind.less +5 -1
  30. widgets/ink-blgs-widget/styles/thumb-left.less +5 -1
  31. widgets/ink-blgs-widget/styles/thumb-none.less +5 -1
  32. widgets/ink-blgs-widget/styles/thumb-right.less +5 -1
  33. widgets/ink-blgs-widget/styles/typography.less +20 -0
  34. widgets/ink-blgs-widget/tpl/thumb-above.php +4 -4
  35. widgets/ink-blgs-widget/tpl/thumb-behind.php +4 -4
  36. widgets/ink-blgs-widget/tpl/thumb-left.php +4 -4
  37. widgets/ink-blgs-widget/tpl/thumb-none.php +4 -4
  38. widgets/ink-blgs-widget/tpl/thumb-right.php +4 -4
  39. widgets/ink-btns-widget/css/buttons.css +0 -1
  40. widgets/ink-btns-widget/ink-btns-widget.php +152 -132
  41. widgets/ink-btns-widget/styles/buttons.less +6 -1
  42. widgets/ink-crlc-widget/ink-crlc-widget.php +136 -139
  43. widgets/ink-dvdr-widget/ink-dvdr-widget.php +55 -57
  44. widgets/ink-fard-widget/css/filter-accordion.css +0 -1
  45. widgets/ink-fard-widget/ink-fard-widget.php +272 -204
  46. widgets/ink-fard-widget/styles/filter-accordion.less +10 -0
  47. widgets/ink-fard-widget/tpl/filter-accordion.php +1 -1
  48. widgets/ink-mbox-widget/css/media-box.css +0 -1
  49. widgets/ink-mbox-widget/ink-mbox-widget.php +317 -276
  50. widgets/ink-mbox-widget/styles/media-box.less +9 -1
  51. widgets/ink-numc-widget/ink-numc-widget.php +89 -92
  52. widgets/ink-prit-widget/css/pricing-table.css +0 -1
  53. widgets/ink-prit-widget/ink-prit-widget.php +356 -358
  54. widgets/ink-prit-widget/styles/pricing-table.less +1 -1
  55. widgets/ink-prsn-widget/ink-prsn-widget.php +187 -190
  56. widgets/ink-prsn-widget/styles/person.less +1 -1
  57. widgets/ink-ptfl-widget/ink-ptfl-widget.php +252 -196
  58. widgets/ink-ptfl-widget/styles/folio-default.less +12 -1
  59. widgets/ink-ptfl-widget/styles/folio-gallery.less +12 -1
  60. widgets/ink-sldr-widget/ink-sldr-widget.php +197 -200
  61. widgets/ink-tabb-widget/css/tabs.css +0 -1
  62. widgets/ink-tabb-widget/ink-tabb-widget.php +176 -129
  63. widgets/ink-tabb-widget/styles/tabs.less +5 -0
  64. widgets/ink-tabb-widget/tpl/tabs.php +1 -1
  65. widgets/ink-tsml-widget/ink-tsml-widget.php +134 -141
  66. widgets/ink-tsml-widget/styles/testimonial.less +1 -1
  67. widgets/ink-vids-widget/ink-vids-widget.php +93 -95
admin/admin.css CHANGED
@@ -1,168 +1,100 @@
1
- @import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400');
2
-
3
  .iw-admin-page {
4
- padding: 0 40px;
5
- font-family: 'Open Sans', sans-serif;
 
 
6
  }
7
 
8
- .iw-admin-page h1,
9
- .iw-admin-page h2 {
10
- font-weight: 300;
 
11
  }
12
 
13
  .iw-page-header {
14
- position: relative;
15
- margin-bottom: 50px;
16
  }
17
 
18
- .iw-page-header-text {
19
- margin-right: 150px;
 
 
 
 
 
20
  }
21
 
22
- .iw-page-header-logo {
23
- position: absolute;
24
- top: 0;
25
- right: 0;
26
- }
27
-
28
- @media ( max-width: 600px ) {
29
- .iw-page-header-text {
30
- margin-right: 0;
31
- }
32
-
33
- .iw-admin-welcome {
34
- margin-right: 100px !important;
35
- }
36
-
37
- .iw-page-header img {
38
- width: 90px;
39
- }
40
  }
41
 
42
  .iw-admin-page p,
43
  .iw-admin-page li {
44
- color: #555d66;
45
- font-weight: 400;
46
- line-height: 1.6em;
47
- font-size: 20px;
48
- }
49
-
50
- .iw-admin-page .iw-admin-welcome {
51
- margin: 25px 0;
52
- padding: 0;
53
- color: #32373c;
54
- line-height: 1.2em;
55
- font-size: 45px;
56
- }
57
-
58
- .iw-admin-page .iw-admin-rate {
59
- font-size: 20px;
60
  font-weight: 300;
 
 
61
  }
62
 
63
- @media ( max-width: 768px ) {
64
- .iw-admin-page .iw-admin-rate {
65
- font-size: 15px;
66
- }
 
67
  }
68
 
69
- .iw-admin-page {
70
- width: 90%;
71
- margin: 0 auto;
 
72
  }
73
 
74
- @media ( max-width: 768px ) {
75
- .iw-admin-page {
76
- width: 97%;
77
- padding: 0;
78
  }
79
  }
80
 
81
- .iw-page-content img {
82
- max-width: 100%;
83
- }
84
-
85
- .iw-page-content center,
86
- .iw-page-content .premium-upgrade,
87
- .iw-page-content .get-it-now {
88
- background: #fff;
89
- margin-bottom: 30px;
90
- padding: 50px;
91
  }
92
 
93
- @media ( max-width: 768px ) {
94
- .iw-page-content center,
95
- .iw-page-content .premium-upgrade,
96
- .iw-page-content .get-it-now {
97
- padding: 15px;
98
- }
99
  }
100
 
101
- .iw-page-content .get-it-now {
102
- text-align: center;
 
 
 
 
103
  }
104
 
105
- .iw-page-content .get-it-now .upgrade-link {
106
- padding: 15px 30px;
107
- background: #e40046;
108
- color: #fff;
109
- text-decoration: none;
110
- font-size: 15px;
111
- letter-spacing: 1px;
112
- display: inline-block;
113
- outline: none;
114
  }
115
 
116
- .iw-page-content .get-it-now .docs-support-link,
117
- .iw-page-content .get-it-now .demo-link {
118
- padding: 15px 30px;
119
- margin-left: 10px;
120
- background: #232323;
121
- color: #fff;
122
- text-decoration: none;
123
- font-size: 15px;
124
- letter-spacing: 1px;
125
- display: inline-block;
126
- outline: none;
127
  }
128
 
129
- .iw-page-content .button-primary,
130
- .iw-page-content .button-primary:hover,
131
- .iw-page-content .button-primary:focus {
132
- padding: 10px 20px;
133
- background: #e40046;
134
- color: #fff;
135
- text-decoration: none;
136
- font-size: 12px;
137
- letter-spacing: 1px;
138
- display: inline-block;
139
- outline: none;
140
- border-width: 0;
141
- box-shadow: none;
142
- -webkit-box-shadow: none;
143
- text-shadow: none;
144
- line-height: 1;
145
- height: auto;
146
- text-transform: uppercase;
147
- }
148
-
149
- .iw-page-content .button-secondary,
150
- .iw-page-content .button-secondary:hover,
151
- .iw-page-content .button-secondary:focus {
152
- padding: 10px 20px;
153
- background: #232323;
154
- color: #fff;
155
- text-decoration: none;
156
- font-size: 12px;
157
- letter-spacing: 1px;
158
- display: inline-block;
159
- outline: none;
160
- border-width: 0;
161
- box-shadow: none;
162
- -webkit-box-shadow: none;
163
- text-shadow: none;
164
- line-height: 1;
165
- height: auto;
166
  }
167
 
168
  .iw-admin-page.pro-license .iw-page-content {
@@ -175,6 +107,11 @@
175
  font-size: 11px;
176
  }
177
 
 
 
 
 
 
178
  .iw-page-content .premium-upgrade .premium-upgrade-text {
179
  font-size: 45px;
180
  color: #232323;
@@ -219,3 +156,43 @@
219
  margin: 0 auto;
220
  }
221
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  .iw-admin-page {
2
+ position: relative;
3
+ margin: 25px 40px 0 20px;
4
+ max-width: 1050px;
5
+ font-size: 15px;
6
  }
7
 
8
+ @media ( max-width: 840px ) {
9
+ .iw-admin-page {
10
+ margin: 25px 20px 0 20px;
11
+ }
12
  }
13
 
14
  .iw-page-header {
15
+ box-sizing: border-box;
 
16
  }
17
 
18
+ .iw-admin-page h1 {
19
+ margin: 25px 0;
20
+ padding: 0;
21
+ color: #32373c;
22
+ line-height: 1.2em;
23
+ font-size: 42px;
24
+ font-weight: 400;
25
  }
26
 
27
+ .iw-admin-page h2 {
28
+ margin: 0 0 25px 0;
29
+ padding: 0;
30
+ color: #32373c;
31
+ line-height: 1.2em;
32
+ font-size: 27px;
33
+ font-weight: 300;
 
 
 
 
 
 
 
 
 
 
 
34
  }
35
 
36
  .iw-admin-page p,
37
  .iw-admin-page li {
38
+ color: #555d66;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  font-weight: 300;
40
+ line-height: 1.6em;
41
+ font-size: 15px;
42
  }
43
 
44
+ .iw-admin-box {
45
+ width: 100%;
46
+ padding: 30px;
47
+ box-sizing: border-box;
48
+ margin-top: 30px;
49
  }
50
 
51
+ .iw-admin-box:after {
52
+ clear: both;
53
+ content: "";
54
+ display: table;
55
  }
56
 
57
+ @media ( max-width: 840px ) {
58
+ .iw-admin-box {
59
+ padding: 15px;
 
60
  }
61
  }
62
 
63
+ .iw-admin-box.pro {
64
+ background: white;
 
 
 
 
 
 
 
 
65
  }
66
 
67
+ .iw-admin-box h2 {
68
+ padding-bottom: 25px;
69
+ border-bottom: 1px solid #32373c;
 
 
 
70
  }
71
 
72
+ .iw-admin-box .feature {
73
+ margin-right: 4.999999999%;
74
+ width: 27.95%;
75
+ float: left;
76
+ position: relative;
77
+ padding-bottom: 20px;
78
  }
79
 
80
+ @media ( max-width: 840px ) {
81
+ .iw-admin-box .feature {
82
+ margin-right: 0;
83
+ width: 100%;
84
+ float: none;
85
+ }
 
 
 
86
  }
87
 
88
+ .iw-admin-box .row-sep {
89
+ width: 100%;
90
+ border-top: 1px solid transparent;
91
+ float: left;
92
+ position: relative;
93
+ padding-bottom: 20px;
 
 
 
 
 
94
  }
95
 
96
+ .iw-admin-box .buy-pro img {
97
+ max-width: 100%;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
98
  }
99
 
100
  .iw-admin-page.pro-license .iw-page-content {
107
  font-size: 11px;
108
  }
109
 
110
+ .iw-admin-page.pro-license .submit {
111
+ padding: 0;
112
+ margin: 0;
113
+ }
114
+
115
  .iw-page-content .premium-upgrade .premium-upgrade-text {
116
  font-size: 45px;
117
  color: #232323;
156
  margin: 0 auto;
157
  }
158
  }
159
+
160
+ .iw-page-content .button-primary,
161
+ .iw-page-content .button-primary:hover,
162
+ .iw-page-content .button-primary:focus {
163
+ padding: 10px 20px;
164
+ background: #333;
165
+ color: #fff;
166
+ text-decoration: none;
167
+ font-size: 12px;
168
+ letter-spacing: 1px;
169
+ display: inline-block;
170
+ outline: none;
171
+ border-width: 0;
172
+ box-shadow: none;
173
+ -webkit-box-shadow: none;
174
+ text-shadow: none;
175
+ line-height: 1;
176
+ height: auto;
177
+ text-transform: uppercase;
178
+ }
179
+
180
+ .iw-page-content .button-secondary,
181
+ .iw-page-content .button-secondary:hover,
182
+ .iw-page-content .button-secondary:focus {
183
+ padding: 10px 20px;
184
+ background: #ddd;
185
+ color: #000;
186
+ text-decoration: none;
187
+ font-size: 12px;
188
+ letter-spacing: 1px;
189
+ display: inline-block;
190
+ outline: none;
191
+ border-width: 0;
192
+ box-shadow: none;
193
+ -webkit-box-shadow: none;
194
+ text-shadow: none;
195
+ line-height: 1;
196
+ height: auto;
197
+ text-transform: uppercase;
198
+ }
admin/admin.php CHANGED
@@ -21,7 +21,7 @@ function wpinked_so_admin_page() {
21
 
22
  add_submenu_page(
23
  'wpinked-widgets',
24
- 'Upgrade to Pro',
25
  __( 'Get Addons', 'wpinked-widgets' ),
26
  'manage_options',
27
  'wpinked-widgets',
@@ -82,50 +82,68 @@ function wpinked_so_admin_page_content() {
82
  <div class="iw-admin-page">
83
 
84
  <div class="iw-page-header">
 
85
 
86
- <div class="iw-page-header-text">
87
-
88
- <h1 class="iw-admin-welcome">Welcome to Widgets for SiteOrigin <?php echo INKED_SO_VER; ?></h1>
89
- <p class="iw-admin-rate">Thank you for updating to the latest version! Please consider giving it a
90
- <strong><a href="https://wordpress.org/support/view/plugin-reviews/widgets-for-siteorigin#postform" class="thankyou" target="_new" title="Ok, you deserved it" style="font-weight:bold;">
91
- 5-star rating
92
- </a></strong> on Wordpress? This will help motivate us to do more.<br>
93
- Your help is much appreciated. Thank you very much. <i>~ Adi Rao</i></p>
94
-
95
- </div>
96
-
97
- <div class="iw-page-header-logo">
98
-
99
- <img src="<?php echo plugin_dir_url(__FILE__); ?>img/plugin-logo.png">
100
-
101
- </div>
102
 
103
  </div>
104
 
105
  <div class="iw-page-content">
106
 
107
- <div class="premium-upgrade">
108
- <h2 class="premium-upgrade-text">Upgrade to Widgets for SiteOrigin Pro</h2>
109
- </div>
110
-
111
- <center><img src="<?php echo plugin_dir_url(__FILE__); ?>img/go-pro.jpg"></center>
112
-
113
- <center><img src="<?php echo plugin_dir_url(__FILE__); ?>img/blog-enhanced.jpg"></center>
114
-
115
- <center><img src="<?php echo plugin_dir_url(__FILE__); ?>img/blog-slider.jpg"></center>
116
-
117
- <center><img src="<?php echo plugin_dir_url(__FILE__); ?>img/prsn-testi-sliders.jpg"></center>
118
-
119
- <center><img src="<?php echo plugin_dir_url(__FILE__); ?>img/chart.jpg"></center>
120
-
121
- <center><img src="<?php echo plugin_dir_url(__FILE__); ?>img/animation.jpg"></center>
122
-
123
- <center><img src="<?php echo plugin_dir_url(__FILE__); ?>img/coming-soon.jpg"></center>
124
-
125
- <div class="get-it-now">
126
- <a class="upgrade-link" href="https://wpinked.com/downloads/widgets-for-siteorigin-pro/" target="_blank">GET IT NOW</a>
127
- <a class="docs-support-link" href="<?php echo admin_url( 'admin.php?page=wpinked-widgets-docs-support' ); ?>">DOCS & SUPPORT</a>
128
- <a class="demo-link" href="http://widgets.wpinked.com/" target="_blank">DEMO</a>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
129
  </div>
130
 
131
  </div>
@@ -152,10 +170,12 @@ function wpinked_so_admin_page_docs_support() { ?>
152
  <img src="<?php echo plugin_dir_url(__FILE__); ?>img/helpscout-beacon-docs.png">
153
  <img src="<?php echo plugin_dir_url(__FILE__); ?>img/helpscout-beacon-message.png">
154
 
155
- <div class="get-it-now">
156
- <a class="upgrade-link" href="https://wpinked.com/downloads/widgets-for-siteorigin-pro/" target="_blank">GO PRO</a>
157
- <a class="docs-support-link" href="http://widgets-docs.wpinked.com/">DOCUMENTATION</a>
158
- <a class="demo-link" href="http://widgets.wpinked.com/" target="_blank">DEMO</a>
 
 
159
  </div>
160
 
161
  </div>
21
 
22
  add_submenu_page(
23
  'wpinked-widgets',
24
+ 'Welcome to Widgets for SiteOrigin',
25
  __( 'Get Addons', 'wpinked-widgets' ),
26
  'manage_options',
27
  'wpinked-widgets',
82
  <div class="iw-admin-page">
83
 
84
  <div class="iw-page-header">
85
+ <p class="iw-admin-thank" style="margin-bottom: 75px;">Thank you for installing Widgets for SiteOrigin!</p>
86
 
87
+ <h1 class="iw-admin-welcome">Welcome to Widgets for SiteOrigin <?php echo INKED_SO_VER; ?></h1>
88
+ <h2 class="iw-admin-tagline">Modern Widgets for Beautiful Websites</h2>
89
+ <p class="iw-admin-links">
90
+ Show you appreciation with a <a href="https://wordpress.org/support/view/plugin-reviews/widgets-for-siteorigin#postform" class="thankyou" target="_blank" title="Ok, you deserved it">5-star rating</a> |
91
+ Support E-mail : <a href="mailto:team@wpinked.com">team@wpinked.com</a> |
92
+ Refer : <a href="http://widgets-docs.wpinked.com/" target="_blank">Documentation</a> &bull; <a href="http://widgets.wpinked.com/" target="_blank">Demo</a>
93
+ </p>
 
 
 
 
 
 
 
 
 
94
 
95
  </div>
96
 
97
  <div class="iw-page-content">
98
 
99
+ <div class="iw-admin-box pro">
100
+ <h2 class="premium-plugin-features">Widgets for SiteOrigin Pro Features</h2>
101
+ <div class="feature">
102
+ <h3 class="feature-title">Blog Enhanced</h3>
103
+ <p class="feature-content">Extending on the blog widget, this widget comes with a set of predesigned article templates. It also comes equipped with AJAX powered navigation.</p>
104
+ <p class="feature-links"><a href="http://widgets.wpinked.com/blog-enhanced-widget/" target="_blank">Demo</a> &bull; <a href="http://widgets-docs.wpinked.com/article/43-blog-enhanced-widget" target="_blank">Documentation</a></p>
105
+ </div>
106
+ <div class="feature">
107
+ <h3 class="feature-title">Blog Slider</h3>
108
+ <p class="feature-content">This widget lets you easily add eye catching post sliders anywhere on your website. It is typically used at the top of pages and goes great in conjunction with the Blog Widget.</p>
109
+ <p class="feature-links"><a href="http://widgets.wpinked.com/blog-slider-widget/" target="_blank">Demo</a> &bull; <a href="http://widgets-docs.wpinked.com/article/44-blog-slider-widget" target="_blank">Documentation</a></p>
110
+ </div>
111
+ <div class="feature">
112
+ <h3 class="feature-title">Charts</h3>
113
+ <p class="feature-content">This widget allows you to visualise your data in a number of different ways. Choose from 6 chart types, each of them animated, fully customisable and engaging.</p>
114
+ <p class="feature-links"><a href="http://widgets.wpinked.com/chart-widget/" target="_blank">Demo</a> &bull; <a href="http://widgets-docs.wpinked.com/article/42-chart-widget" target="_blank">Documentation</a></p>
115
+ </div>
116
+ <div class="row-sep"></div>
117
+ <div class="feature">
118
+ <h3 class="feature-title">Person Slider</h3>
119
+ <p class="feature-content">This widget is perfectly suited to showcase your personnel on About Me or Team Member pages, where you would like to highlight their bio. It brings together text, imagery, social media links and a smooth slider in a cohesive manner.</p>
120
+ <p class="feature-links"><a href="http://widgets.wpinked.com/person-slider-widget/" target="_blank">Demo</a> &bull; <a href="http://widgets-docs.wpinked.com/article/45-person-slider-widget" target="_blank">Documentation</a></p>
121
+ </div>
122
+ <div class="feature">
123
+ <h3 class="feature-title">Testimonial Slider</h3>
124
+ <p class="feature-content">This widget gives you is a great way to encourage trust from your visitors by displaying quotes from your customers. It fits snuggly in your Sales, Pricing or Home pages.</p>
125
+ <p class="feature-links"><a href="http://widgets.wpinked.com/testimonial-slider-widget/" target="_blank">Demo</a> &bull; <a href="http://widgets-docs.wpinked.com/article/46-testimonial-slider-widget" target="_blank">Documentation</a></p>
126
+ </div>
127
+ <div class="feature">
128
+ <h3 class="feature-title">Animations</h3>
129
+ <p class="feature-content">This feature gives you an easy way to animate widgets and rows. Choose from 18 different animation effects.</p>
130
+ <p class="feature-links"><a href="http://widgets.wpinked.com/the-animation-feature/" target="_blank">Demo</a> &bull; <a href="http://widgets-docs.wpinked.com/article/48-animation" target="_blank">Documentation</a></p>
131
+ </div>
132
+ <div class="row-sep"></div>
133
+ <div class="feature">
134
+ <h3 class="feature-title">Page Builder</h3>
135
+ <p class="feature-content">This feature enables the use of the page builder in tabs, accordions and filter accordions.</p>
136
+ </div>
137
+ <div class="feature">
138
+ <h3 class="feature-title">Custom Fonts</h3>
139
+ <p class="feature-content">This feature lets you apply custom fonts to important elements in your widgets. Choose from hundreds of fonts.</p>
140
+ </div>
141
+ <div class="row-sep"></div>
142
+ <div class="buy-pro">
143
+ <a href="https://wpinked.com/downloads/widgets-for-siteorigin-pro/" target="_blank">
144
+ <img src="<?php echo plugin_dir_url(__FILE__); ?>img/get-pro-now.jpg">
145
+ </a>
146
+ </div>
147
  </div>
148
 
149
  </div>
170
  <img src="<?php echo plugin_dir_url(__FILE__); ?>img/helpscout-beacon-docs.png">
171
  <img src="<?php echo plugin_dir_url(__FILE__); ?>img/helpscout-beacon-message.png">
172
 
173
+ <div class="iw-admin-box pro">
174
+ <div class="buy-pro">
175
+ <a href="https://wpinked.com/downloads/widgets-for-siteorigin-pro/" target="_blank">
176
+ <img src="<?php echo plugin_dir_url(__FILE__); ?>img/get-pro-now.jpg">
177
+ </a>
178
+ </div>
179
  </div>
180
 
181
  </div>
admin/img/animation.jpg DELETED
Binary file
admin/img/blog-enhanced.jpg DELETED
Binary file
admin/img/blog-slider.jpg DELETED
Binary file
admin/img/chart.jpg DELETED
Binary file
admin/img/coming-soon.jpg DELETED
Binary file
admin/img/get-pro-now.jpg ADDED
Binary file
admin/img/go-pro.jpg DELETED
Binary file
admin/img/prsn-testi-sliders.jpg DELETED
Binary file
fields/premium.class.php ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Class Inked_Widget_Field_Premium
5
+ */
6
+ class Inked_Widget_Field_Premium extends SiteOrigin_Widget_Field_Base {
7
+
8
+ protected function render_field( $value, $instance ) {
9
+ ?>
10
+ <p class="so-premium-link">Available with <a class="premium-field-link button" href="https://wpinked.com/downloads/widgets-for-siteorigin-pro/" target="_blank">Widgets for SiteOrigin Pro</a></p>
11
+ <?php
12
+ }
13
+
14
+ protected function sanitize_field_input( $value, $instance ) {
15
+ return ! empty( $value );
16
+ }
17
+
18
+ }
inc/functions.php CHANGED
@@ -4,11 +4,11 @@
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 ) {
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( '', $id ), $byline );
12
  $byline = str_replace( '%comments%', get_comments_number( $id ), $byline );
13
  $byline = do_shortcode( $byline );
14
 
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 );
13
  $byline = do_shortcode( $byline );
14
 
inc/template-functions.php CHANGED
@@ -21,7 +21,7 @@ function wpinked_so_testimonial_template( $name, $testimonial, $styling ) {
21
 
22
  <div class="iw-so-testimonial-content">
23
  <?php if ( $testimonial['content'] ) : ?>
24
- <div class="iw-so-testimonial-message <?php echo $testimonial['text']; ?>"><?php echo do_shortcode( $testimonial['content'] ); ?></div>
25
  <?php endif; ?>
26
  </div>
27
 
@@ -106,3 +106,34 @@ function wpinked_so_person_template( $name, $person, $social, $styling ) { ?>
106
 
107
  <?php }
108
  endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
 
22
  <div class="iw-so-testimonial-content">
23
  <?php if ( $testimonial['content'] ) : ?>
24
+ <div class="iw-so-testimonial-message <?php echo $testimonial['text']; ?>"><?php echo wpinked_so_editor( $testimonial['content'], $testimonial['autop'] ); ?></div>
25
  <?php endif; ?>
26
  </div>
27
 
106
 
107
  <?php }
108
  endif;
109
+
110
+ /*
111
+ * Display the editor content
112
+ */
113
+ if ( ! function_exists ( 'wpinked_so_editor' ) ) :
114
+ function wpinked_so_editor( $content, $autop ) {
115
+ if( $autop == 1 ) {
116
+ $content = wpautop( $content );
117
+ }
118
+ $content = do_shortcode( $content );
119
+
120
+ return $content;
121
+ }
122
+ endif;
123
+
124
+ /*
125
+ * Display by content type
126
+ */
127
+ if ( ! function_exists ( 'wpinked_so_pb_content' ) ) :
128
+ function wpinked_so_pb_content( $content, $autop, $type, $builder ) {
129
+
130
+ if ( $type == 'content' || $type == '' ) {
131
+ return wpinked_so_editor( $content, $autop );
132
+ } elseif ( $type == 'builder' && function_exists( 'wpinked_pro_so_pb_content' ) ) {
133
+ return wpinked_pro_so_pb_content( $builder );
134
+ } else {
135
+ return wpinked_so_editor( $content, $autop );
136
+ }
137
+
138
+ }
139
+ endif;
mixins/less/custom.less CHANGED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ .font(@font, @weight) when not (@font = default) {
2
+ font-family: @font;
3
+ font-weight: @weight;
4
+ }
5
+
6
+ //this is to remove annoying IDE warnings for not being able to resolve .widget-function() calls
7
+ .widget-function(...){}
readme.txt CHANGED
@@ -3,7 +3,7 @@ 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.0
7
  License: GPLv3 or later
8
 
9
  A collection of highly customizable and thoughtfully crafted widgets. Built on top of the SiteOrigin Widgets Bundle.
@@ -14,41 +14,63 @@ Widgets for SiteOrigin is a bundle of customizable, lightweight and responsive b
14
 
15
  Included widgets
16
 
17
- * Blog Widget can be placed anywhere on your site and can use any of our five highly customizable design layouts. You can combine the variations of the available settings to create appealing magazine or news pages. You can create custom archives using the handy navigation feature.
18
- * Portfolio Widget allows you to show off your work in a neat grid. The widget makes use of an optional customizable project type filter. When a project type is selected, only the projects from that category are listed. The projects can be displayed with either the default or gallery designs.
19
- * Tabs Widget looks great inside any sized column. On smaller screens the tabs buttons stack up and are easy to use. Further customization is possible with the use of icons for each tab.
20
- * Accordion widget allows you to compartmentalize information and improve user experience on your site. Logically very similar to the tabs widget, the accordion stacks items in a vertical list. This widget also doubles up as a toggle widget by checking the option to open multiple toggles at once.
21
- * Filter Accordion Widget extends on the accordion widget with the use of filters. The already compartmentalized accordion items can be further categorized and sorted using the filter bar above it.
22
- * Audio Widget allows you to easily add audio to your site. The widget lets you upload a audio file which will then be wrapped in a custom player. The widget will probably be handy for musicians or podcasters.
23
- * Video Widget makes it easy to add videos to your site. The widget allows you to either use self-hosted videos with a cover image and control themes, or use oEmbed to add videos from sites such as YouTube, Vimeo etc..
24
- * Media Box Widget is a simple and elegant combination of text and media. This widget is a fantastic way to highlight small bits of information, such as skills, features or services you offer. Choose to use icons, images or an oEmbed link. In addition you can easily link to other webpages using a highly customizable button.
25
- * Testimonial Widget is the best way to showcase quotes from your customers. The widget combines a quote, it's author, his/her image and a link back to their website. This is can be used on your Sales, Pricing or Home pages to encourage trust.
26
- * Person Widget is a great way to highlight your personnel. This widget combines text, imagery and social media links to create a personal profile block. It can be a great addition to your Team, About Me or Home pages. You can increase the interactivity of the profile by choosing to place the social icons or the about me text over the profile image.
27
- * Pricing Table Widget allows you to easily create pricing elements for your products or services. Create as many plans as you want, and control the title, features and pricing for each. You can also choose to make one or more plans featured. The widget is responsive and highly customizable.
28
- * Slider Widget lets you choose from a number of slider settings and styling options to create simple image slider.
29
- * Alert widgets are useful elements that can be dropped into a form or inline on a page. It can communicate success, warnings, failure or just information. Choose between 6 beautiful designs and an option to add a close button.
30
- * Number Counter Widget is an engaging way to display numerical statistics to your visitors. This widget is commonly used as a marketing tool to impress visitors.
31
- * Circle Counter Widget is a great way to display a single animated statistic. With the animation turned on, the circle will gracefully fill up, till it reaches its preset value. Using three to four of these circles side by side, lets your visitors learn a lot about you a single glance.
32
- * Bar Counter Widget is a beautiful way to display useful stats to your visitors. With the animation turned on, the bars start filling up as they enter the viewport. The repeater field in this module lets you have as many bars as you need.
33
- * The divider widget is useful as a separator between different sections of your content. It is also a simple way to add horizontal spacing between different elements on your page.
34
- * Button Widget can easily add buttons anywhere on your site. Choose between 6 beautiful and animated button designs with customizable settings such as colors, shape, size, alignment, icons, button hover effect and button click effect.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
 
36
  Additional Feature:
37
 
38
- * Visibility is a wonderful way to display specific widgets or rows for different screen sizes or screen orientations.
 
 
39
 
40
- <a href="https://wpinked.com/downloads/widgets-for-siteorigin-pro/" target="_blank">Widgets for SiteOrigin Pro</a> is a premium plugin contain 6 premium addons.
41
 
42
- * Enhanced Blog Widget Extends on the blog widget, and comes with a set of predesigned article templates. The widget also comes equipped with the default and AJAX powered navigation.
43
- * Blog Slider Widget lets you easily add eye catching post sliders anywhere on your website. This widget is typically used at the top of pages and goes great in conjunction with the Blog Widget.
44
- * Person Slider Widget is the best way to showcase your personnel on About Me or Team Member pages, where you would like to highlight their bio. This widget brings together text, imagery, social media links and a smooth slider in a cohesive manner. Use the many settings provided to create unique designs.
45
- * Testimonial Slider Widget is a great way to encourage trust from your visitors by displaying quotes from your customers. This widget will snuggly fit in your Sales, Pricing or Home pages. Use the many settings provided to create unique designs.
46
- * Chart Widget allows you to visualize your data in a number of different ways. Choose from 6 chart types, each of them animated, fully customizable and engaging.
47
- * Animation feature lets you an easily animate widgets. Choose from 18 different animation effects.
48
 
49
- Check out <a target="_blank" href="http://widgets.wpinked.com/">DEMO</a> and <a target="_blank" href="http://widgets-docs.wpinked.com/">DOCS</a>.
50
 
51
- The plugin now come with email support. Email us at team@wpinked.com. Purchasing the Pro plugin gives you prioritized support and help with minor customizations.
 
 
 
 
 
 
 
 
52
 
53
  == Installation ==
54
 
@@ -56,7 +78,7 @@ Upload and install these plugins.
56
 
57
  1. [SiteOrigin Widgets Bundle](https://wordpress.org/plugins/so-widgets-bundle/). **Required**
58
  1. Widgets for SiteOrigin
59
- 2. [Jetpack by WordPress.com](https://wordpress.org/plugins/jetpack/). **Optional** The portfolio widget is built using the **Custom Content Types** module. Activate if you are using the Portfolio Widget
60
 
61
  Once installed, you can choose to Active/Deactivate widget from Plugins -> SiteOrigin Widgets.
62
 
@@ -66,6 +88,14 @@ Once installed, you can choose to Active/Deactivate widget from Plugins -> SiteO
66
 
67
  == Changelog ==
68
 
 
 
 
 
 
 
 
 
69
  = 1.3.0 - October 30 2016 =
70
  * Added new template design options to Person Widget.
71
  * Added new template design options to Testimonial Widget.
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.
14
 
15
  Included widgets
16
 
17
+ > 1. **Blog Widget** can be placed anywhere on your site and can use any of our five highly customizable design layouts. You can combine the variations of the available settings to create appealing magazine or news pages. You can create custom archives using the handy navigation feature.
18
+
19
+ > 1. **Portfolio Widget** allows you to show off your work in a neat grid. The widget makes use of an optional customizable project type filter. When a project type is selected, only the projects from that category are listed. The projects can be displayed with either the default or gallery designs.
20
+
21
+ > 1. **Tabs Widget** looks great inside any sized column. On smaller screens the tabs buttons stack up and are easy to use. Further customization is possible with the use of icons for each tab.
22
+
23
+ > 1. **Accordion Widget** allows you to compartmentalize information and improve user experience on your site. Logically very similar to the tabs widget, the accordion stacks items in a vertical list. This widget also doubles up as a toggle widget by checking the option to open multiple toggles at once.
24
+
25
+ > 1. **Filter Accordion Widget** extends on the accordion widget with the use of filters. The already compartmentalized accordion items can be further categorized and sorted using the filter bar above it.
26
+
27
+ > 1. **Audio Widget** allows you to easily add audio to your site. The widget lets you upload a audio file which will then be wrapped in a custom player. The widget will probably be handy for musicians or podcasters.
28
+
29
+ > 1. **Video Widget** makes it easy to add videos to your site. The widget allows you to either use self-hosted videos with a cover image and control themes, or use oEmbed to add videos from sites such as YouTube, Vimeo etc..
30
+
31
+ > 1. **Media Box Widget** is a simple and elegant combination of text and media. This widget is a fantastic way to highlight small bits of information, such as skills, features or services you offer. Choose to use icons, images or an oEmbed link. In addition you can easily link to other webpages using a highly customizable button.
32
+
33
+ > 1. **Testimonial Widget** is the best way to showcase quotes from your customers. The widget combines a quote, it's author, his/her image and a link back to their website. This is can be used on your Sales, Pricing or Home pages to encourage trust.
34
+
35
+ > 1. **Person Widget** is a great way to highlight your personnel. This widget combines text, imagery and social media links to create a personal profile block. It can be a great addition to your Team, About Me or Home pages. You can increase the interactivity of the profile by choosing to place the social icons or the about me text over the profile image.
36
+
37
+ > 1. **Pricing Table Widget** allows you to easily create pricing elements for your products or services. Create as many plans as you want, and control the title, features and pricing for each. You can also choose to make one or more plans featured. The widget is responsive and highly customizable.
38
+
39
+ > 1. **Slider Widget** lets you choose from a number of slider settings and styling options to create simple image slider.
40
+
41
+ > 1. **Alert widgets** are useful elements that can be dropped into a form or inline on a page. It can communicate success, warnings, failure or just information. Choose between 6 beautiful designs and an option to add a close button.
42
+
43
+ > 1. **Number Counter Widget** is an engaging way to display numerical statistics to your visitors. This widget is commonly used as a marketing tool to impress visitors.
44
+
45
+ > 1. **Circle Counter Widget** is a great way to display a single animated statistic. With the animation turned on, the circle will gracefully fill up, till it reaches its preset value. Using three to four of these circles side by side, lets your visitors learn a lot about you a single glance.
46
+
47
+ > 1. **Bar Counter Widget** is a beautiful way to display useful stats to your visitors. With the animation turned on, the bars start filling up as they enter the viewport. The repeater field in this module lets you have as many bars as you need.
48
+
49
+ > 1. The **Divider widget** is useful as a separator between different sections of your content. It is also a simple way to add horizontal spacing between different elements on your page.
50
+
51
+ > 1. **Button Widget** can easily add buttons anywhere on your site. Choose between 6 beautiful and animated button designs with customizable settings such as colors, shape, size, alignment, icons, button hover effect and button click effect.
52
 
53
  Additional Feature:
54
 
55
+ > **Visibility** is a wonderful way to display specific widgets or rows for different screen sizes or screen orientations.
56
+
57
+ ### <a href="https://wpinked.com/downloads/widgets-for-siteorigin-pro/" target="_blank">Widgets for SiteOrigin Pro</a> is a premium plugin contain 6 premium addons.
58
 
59
+ > 1. **Enhanced Blog Widget** Extends on the blog widget, and comes with a set of predesigned article templates. The widget also comes equipped with the default and AJAX powered navigation.
60
 
61
+ > 1. **Blog Slider Widget** lets you easily add eye catching post sliders anywhere on your website. This widget is typically used at the top of pages and goes great in conjunction with the Blog Widget.
 
 
 
 
 
62
 
63
+ > 1. **Person Slider Widget** is the best way to showcase your personnel on About Me or Team Member pages, where you would like to highlight their bio. This widget brings together text, imagery, social media links and a smooth slider in a cohesive manner. Use the many settings provided to create unique designs.
64
 
65
+ > 1. **Testimonial Slider Widget** is a great way to encourage trust from your visitors by displaying quotes from your customers. This widget will snuggly fit in your Sales, Pricing or Home pages. Use the many settings provided to create unique designs.
66
+
67
+ > 1. **Chart Widget** allows you to visualize your data in a number of different ways. Choose from 6 chart types, each of them animated, fully customizable and engaging.
68
+
69
+ > 1. **Animation feature** lets you an easily animate widgets. Choose from 18 different animation effects.
70
+
71
+ Check out <a target="_blank" href="http://widgets.wpinked.com/">**DEMO**</a> and <a target="_blank" href="http://widgets-docs.wpinked.com/">**DOCS**</a>.
72
+
73
+ The plugin now come with email support. Email us at **team@wpinked.com**. Purchasing the Pro plugin gives you prioritized support and help with minor customizations.
74
 
75
  == Installation ==
76
 
78
 
79
  1. [SiteOrigin Widgets Bundle](https://wordpress.org/plugins/so-widgets-bundle/). **Required**
80
  1. Widgets for SiteOrigin
81
+ 1. [Jetpack by WordPress.com](https://wordpress.org/plugins/jetpack/). **Optional** The portfolio widget is built using the **Custom Content Types** module. Activate if you are using the Portfolio Widget
82
 
83
  Once installed, you can choose to Active/Deactivate widget from Plugins -> SiteOrigin Widgets.
84
 
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.
94
+ * Fixed opening php tag in blog widget.
95
+ * Added premium teaser field.
96
+ * Added premium page builder option to tabs, accordion and filter accordion widgets.
97
+ * Added premium font option to tabs, accordion, filter accordion, Alert, Button, Media Box, Portfolio and Blog widgets.
98
+
99
  = 1.3.0 - October 30 2016 =
100
  * Added new template design options to Person Widget.
101
  * Added new template design options to Testimonial 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.0
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.0' );
22
 
23
  // Allow JS suffix to be pre-set
24
  if( !defined( 'INKED_JS_SUFFIX' ) ) {
@@ -81,3 +81,27 @@ $wpinked_widget_count = 0;
81
  require_once ( 'inc/activate.php' );
82
 
83
  require_once ( 'admin/admin.php' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
  *
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' ) ) {
81
  require_once ( 'inc/activate.php' );
82
 
83
  require_once ( 'admin/admin.php' );
84
+
85
+ function wpinked_so_class_prefixes( $class_prefixes ) {
86
+ $class_prefixes[] = 'Inked_Widget_Field_';
87
+ return $class_prefixes;
88
+ }
89
+ add_filter( 'siteorigin_widgets_field_class_prefixes', 'wpinked_so_class_prefixes' );
90
+
91
+ function wpinked_so_fields_class_paths( $class_paths ) {
92
+ $class_paths[] = plugin_dir_path( __FILE__ ) . 'fields/';
93
+ return $class_paths;
94
+ }
95
+ add_filter( 'siteorigin_widgets_field_class_paths', 'wpinked_so_fields_class_paths' );
96
+
97
+ function wpinked_so_plugin_activate() {
98
+ add_option( 'simian_redirect', true );
99
+ }
100
+ register_activation_hook( __FILE__, 'wpinked_so_plugin_activate' );
101
+ function wpinked_so_plugin_redirect() {
102
+ if ( get_option( 'simian_redirect', false ) ) {
103
+ delete_option( 'simian_redirect' );
104
+ wp_redirect( admin_url( 'admin.php?page=wpinked-widgets' ) );
105
+ }
106
+ }
107
+ add_action( 'admin_init', 'wpinked_so_plugin_redirect' );
widgets/ink-alrt-widget/ink-alrt-widget.php CHANGED
@@ -10,121 +10,122 @@ Author URI: http://widgets.wpinked.com
10
  class Inked_Alert_SO_Widget extends SiteOrigin_Widget {
11
 
12
  function __construct() {
13
-
14
  parent::__construct(
15
 
16
  'ink-alert',
17
-
18
  __( 'Inked Alert', 'wpinked-widgets' ),
19
-
20
  array(
21
  'description' => __( 'Communicate success, warnings, failure or just information.', 'wpinked-widgets' ),
22
  'help' => 'http://widgets-docs.wpinked.com/article/31-alert-widget'
23
  ),
24
-
25
  array(
26
  ),
 
 
 
 
27
 
28
- array(
 
 
 
 
 
 
29
 
30
- 'message' => array(
31
- 'type' => 'text',
32
- 'label' => __( 'Message', 'wpinked-widgets' ),
33
- 'default' => 'This is an Alert Message'
34
- ),
35
-
36
- 'close' => array(
37
- 'type' => 'checkbox',
38
- 'label' => __( 'Show Close Button ?', 'wpinked-widgets' ),
39
- 'default' => true
40
- ),
41
-
42
- 'icon' => array(
43
- 'type' => 'section',
44
- 'label' => __( 'Icon' , 'wpinked-widgets' ),
45
- 'hide' => true,
46
- 'fields' => array(
47
-
48
- 'select' => array(
49
- 'type' => 'icon',
50
- 'label' => __( 'Select Icon', 'wpinked-widgets' ),
51
- ),
52
 
53
- 'color' => array(
54
- 'type' => 'color',
55
- 'label' => __( 'Icon Color', 'wpinked-widgets' ),
56
- 'default' => '#fff'
57
- ),
58
 
59
- )
60
- ),
61
-
62
- 'styling' => array(
63
- 'type' => 'section',
64
- 'label' => __( 'Styling' , 'wpinked-widgets' ),
65
- 'hide' => true,
66
- 'fields' => array(
67
-
68
- 'theme' => array(
69
- 'type' => 'select',
70
- 'label' => __( 'Theme', 'wpinked-widgets' ),
71
- 'default' => 'classic',
72
- 'options' => array(
73
- 'classic' => __( 'Classic', 'wpinked-widgets' ),
74
- 'flat' => __( 'Flat', 'wpinked-widgets' ),
75
- 'outline' => __( 'Outline', 'wpinked-widgets' ),
76
- 'threed' => __( '3D', 'wpinked-widgets' ),
77
- 'shadow' => __( 'Shadow', 'wpinked-widgets' ),
78
- 'modern' => __( 'Modern', 'wpinked-widgets' ),
79
- ),
80
- ),
81
 
82
- 'background' => array(
83
- 'type' => 'color',
84
- 'label' => __( 'Background Color', 'wpinked-widgets' ),
85
- 'default' => '#333'
86
- ),
87
 
88
- 'text' => array(
89
- 'type' => 'color',
90
- 'label' => __( 'Text Color', 'wpinked-widgets' ),
91
- 'default' => '#fff'
92
- ),
93
 
94
- 'close' => array(
95
- 'type' => 'color',
96
- 'label' => __( 'Close Color', 'wpinked-widgets' ),
97
- 'default' => '#fff'
 
 
 
 
 
 
 
 
 
 
 
 
 
98
  ),
99
-
100
- 'corners' => array(
101
- 'type' => 'select',
102
- 'label' => __( 'Corners', 'wpinked-widgets' ),
103
- 'default' => '0.25em',
104
- 'options' => array(
105
- '0em' => __( 'Sharp', 'wpinked-widgets' ),
106
- '0.25em' => __( 'Slightly curved', 'wpinked-widgets' ),
107
- '0.75em' => __( 'Highly curved', 'wpinked-widgets' ),
108
- ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
109
  ),
110
-
111
- 'size' => array(
112
- 'type' => 'select',
113
- 'label' => __( 'Size', 'wpinked-widgets' ),
114
- 'default' => 'standard',
115
- 'options' => array(
116
- 'small' => __( 'Small', 'wpinked-widgets' ),
117
- 'standard' => __( 'Standard', 'wpinked-widgets' ),
118
- 'large' => __( 'Large', 'wpinked-widgets' ),
119
- ),
120
  ),
 
121
 
122
- )
123
- ),
124
  ),
125
-
126
- //The $base_folder path string.
127
- plugin_dir_path(__FILE__)
128
  );
129
  }
130
 
@@ -156,7 +157,7 @@ class Inked_Alert_SO_Widget extends SiteOrigin_Widget {
156
 
157
  if( empty( $instance ) ) return array();
158
 
159
- return array(
160
  'size' => $instance['styling']['size'],
161
  'radius' => $instance['styling']['corners'],
162
  'text' => $instance['styling']['text'],
@@ -164,7 +165,24 @@ class Inked_Alert_SO_Widget extends SiteOrigin_Widget {
164
  'theme' => $instance['styling']['theme'],
165
  'close' => $instance['styling']['close'],
166
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
167
 
 
 
 
 
168
  }
169
 
170
  }
10
  class Inked_Alert_SO_Widget extends SiteOrigin_Widget {
11
 
12
  function __construct() {
 
13
  parent::__construct(
14
 
15
  'ink-alert',
 
16
  __( 'Inked Alert', 'wpinked-widgets' ),
 
17
  array(
18
  'description' => __( 'Communicate success, warnings, failure or just information.', 'wpinked-widgets' ),
19
  'help' => 'http://widgets-docs.wpinked.com/article/31-alert-widget'
20
  ),
 
21
  array(
22
  ),
23
+ false,
24
+ plugin_dir_path(__FILE__)
25
+ );
26
+ }
27
 
28
+ function get_widget_form() {
29
+ return array(
30
+ 'message' => array(
31
+ 'type' => 'text',
32
+ 'label' => __( 'Message', 'wpinked-widgets' ),
33
+ 'default' => 'This is an Alert Message'
34
+ ),
35
 
36
+ 'close' => array(
37
+ 'type' => 'checkbox',
38
+ 'label' => __( 'Show Close Button ?', 'wpinked-widgets' ),
39
+ 'default' => true
40
+ ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
 
42
+ 'icon' => array(
43
+ 'type' => 'section',
44
+ 'label' => __( 'Icon' , 'wpinked-widgets' ),
45
+ 'hide' => true,
46
+ 'fields' => array(
47
 
48
+ 'select' => array(
49
+ 'type' => 'icon',
50
+ 'label' => __( 'Select Icon', 'wpinked-widgets' ),
51
+ ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
 
53
+ 'color' => array(
54
+ 'type' => 'color',
55
+ 'label' => __( 'Icon Color', 'wpinked-widgets' ),
56
+ 'default' => '#fff'
57
+ ),
58
 
59
+ )
60
+ ),
 
 
 
61
 
62
+ 'styling' => array(
63
+ 'type' => 'section',
64
+ 'label' => __( 'Styling' , 'wpinked-widgets' ),
65
+ 'hide' => true,
66
+ 'fields' => array(
67
+
68
+ 'theme' => array(
69
+ 'type' => 'select',
70
+ 'label' => __( 'Theme', 'wpinked-widgets' ),
71
+ 'default' => 'classic',
72
+ 'options' => array(
73
+ 'classic' => __( 'Classic', 'wpinked-widgets' ),
74
+ 'flat' => __( 'Flat', 'wpinked-widgets' ),
75
+ 'outline' => __( 'Outline', 'wpinked-widgets' ),
76
+ 'threed' => __( '3D', 'wpinked-widgets' ),
77
+ 'shadow' => __( 'Shadow', 'wpinked-widgets' ),
78
+ 'modern' => __( 'Modern', 'wpinked-widgets' ),
79
  ),
80
+ ),
81
+
82
+ 'background' => array(
83
+ 'type' => 'color',
84
+ 'label' => __( 'Background Color', 'wpinked-widgets' ),
85
+ 'default' => '#333'
86
+ ),
87
+
88
+ 'font' => array(
89
+ 'type' => 'premium',
90
+ 'label' => __( 'Font', 'wpinked-widgets' ),
91
+ ),
92
+
93
+ 'text' => array(
94
+ 'type' => 'color',
95
+ 'label' => __( 'Text Color', 'wpinked-widgets' ),
96
+ 'default' => '#fff'
97
+ ),
98
+
99
+ 'close' => array(
100
+ 'type' => 'color',
101
+ 'label' => __( 'Close Color', 'wpinked-widgets' ),
102
+ 'default' => '#fff'
103
+ ),
104
+
105
+ 'corners' => array(
106
+ 'type' => 'select',
107
+ 'label' => __( 'Corners', 'wpinked-widgets' ),
108
+ 'default' => '0.25em',
109
+ 'options' => array(
110
+ '0em' => __( 'Sharp', 'wpinked-widgets' ),
111
+ '0.25em' => __( 'Slightly curved', 'wpinked-widgets' ),
112
+ '0.75em' => __( 'Highly curved', 'wpinked-widgets' ),
113
  ),
114
+ ),
115
+
116
+ 'size' => array(
117
+ 'type' => 'select',
118
+ 'label' => __( 'Size', 'wpinked-widgets' ),
119
+ 'default' => 'standard',
120
+ 'options' => array(
121
+ 'small' => __( 'Small', 'wpinked-widgets' ),
122
+ 'standard' => __( 'Standard', 'wpinked-widgets' ),
123
+ 'large' => __( 'Large', 'wpinked-widgets' ),
124
  ),
125
+ ),
126
 
127
+ )
 
128
  ),
 
 
 
129
  );
130
  }
131
 
157
 
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'],
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'] );
170
+ $less_variables['font-fly'] = $selected_font['family'];
171
+ if( ! empty( $selected_font['weight'] ) ) {
172
+ $less_variables['font-wt'] = $selected_font['weight'];
173
+ }
174
+ }
175
+ return $less_variables;
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
  }
widgets/ink-alrt-widget/styles/alert.less CHANGED
@@ -1,4 +1,6 @@
1
- @import "mixins/less/mixins";
 
 
2
 
3
  @radius: 0em;
4
  @size: standard;
@@ -6,6 +8,8 @@
6
  @bg: #333;
7
  @theme: flat;
8
  @close: #fff;
 
 
9
 
10
  .iw-so-alert {
11
 
@@ -80,6 +84,7 @@
80
 
81
  .iw-so-alert-msg {
82
  line-height: 1.5;
 
83
  }
84
 
85
  .close {
1
+ @import "../mixins/less/mixins";
2
+
3
+ .widget-function('import_google_font');
4
 
5
  @radius: 0em;
6
  @size: standard;
8
  @bg: #333;
9
  @theme: flat;
10
  @close: #fff;
11
+ @font-fly: default;
12
+ @font-wt: bold;
13
 
14
  .iw-so-alert {
15
 
84
 
85
  .iw-so-alert-msg {
86
  line-height: 1.5;
87
+ .font(@font-fly, @font-wt);
88
  }
89
 
90
  .close {
widgets/ink-ardn-widget/css/accordion.css CHANGED
@@ -8,7 +8,6 @@
8
  margin-left: 0 !important; }
9
  .iw-so-accordion .iw-so-acc-item .iw-so-acc-title {
10
  display: block;
11
- font-family: inherit;
12
  font-size: 1.1em;
13
  padding: 1em;
14
  text-decoration: none;
8
  margin-left: 0 !important; }
9
  .iw-so-accordion .iw-so-acc-item .iw-so-acc-title {
10
  display: block;
 
11
  font-size: 1.1em;
12
  padding: 1em;
13
  text-decoration: none;
widgets/ink-ardn-widget/ink-ardn-widget.php CHANGED
@@ -12,187 +12,216 @@ class Inked_Accordion_SO_Widget extends SiteOrigin_Widget {
12
  function __construct() {
13
 
14
  parent::__construct(
15
-
16
  'ink-accordion',
17
-
18
  __( 'Inked Accordion', 'wpinked-widgets' ),
19
-
20
  array(
21
  'description' => __( 'Expand and collapse content that is broken into logical sections.', 'wpinked-widgets' ),
22
  'help' => 'http://widgets-docs.wpinked.com/article/28-accordion-widget'
23
  ),
24
-
25
  array(
26
  ),
 
 
 
 
27
 
28
- array(
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
 
30
- 'admin' => array(
31
- 'type' => 'text',
32
- 'label' => __( 'Admin Label', 'wpinked-widgets' ),
33
- 'default' => ''
34
  ),
 
35
 
36
- 'settings' => array(
37
- 'type' => 'section',
38
- 'label' => __( 'Settings' , 'wpinked-widgets' ),
39
- 'hide' => true,
40
- 'fields' => array(
41
-
42
- 'id' => array(
43
- 'type' => 'text',
44
- 'label' => __( 'ID', 'wpinked-widgets' ),
45
- 'description' => __( 'Should be unique on the page. Must begin with alphabets[A-Za-z]. Should not contain spaces.', 'wpinked-widgets' ),
46
- 'default' => ''
47
- ),
48
 
49
- 'expand' => array(
50
- 'type' => 'checkbox',
51
- 'label' => __( 'Open multiple toggles simultaneously?', 'wpinked-widgets' ),
52
- 'default' => false
53
- ),
54
 
55
- 'toggleable' => array(
56
- 'type' => 'checkbox',
57
- 'label' => __( 'Close toggle only if another is open ?', 'wpinked-widgets' ),
58
- 'default' => false
59
- ),
60
 
61
- 'icon-open' => array(
62
- 'type' => 'icon',
63
- 'label' => __( 'Closed Toggle Icon', 'wpinked-widgets' ),
 
 
 
 
64
  ),
 
 
 
 
 
65
 
66
- 'icon-close' => array(
67
- 'type' => 'icon',
68
- 'label' => __( 'Open Toggle Icon.', 'wpinked-widgets' ),
 
 
 
69
  ),
70
-
71
  ),
72
- ),
73
 
74
- 'toggles' => array(
75
- 'type' => 'repeater',
76
- 'label' => __( 'Toggles' , 'wpinked-widgets' ),
77
- 'item_name' => __( 'Toggle', 'wpinked-widgets' ),
78
- 'item_label' => array(
79
- 'selector' => "[id*='title']",
80
- 'update_event' => 'change',
81
- 'value_method' => 'val'
82
- ),
83
- 'fields' => array(
84
-
85
- 'title' => array(
86
- 'type' => 'text',
87
- 'label' => __( 'Title', 'wpinked-widgets' ),
88
- 'default' => ''
89
  ),
 
90
 
91
- 'active' => array(
92
- 'type' => 'checkbox',
93
- 'label' => __( 'Open by default ?', 'wpinked-widgets' ),
94
- 'default' => false,
 
 
95
  ),
 
96
 
97
- 'content' => array(
98
- 'type' => 'tinymce',
99
- 'label' => __( 'Content', 'wpinked-widgets' ),
100
- 'default' => '',
101
- 'rows' => 10,
102
- 'default_editor' => 'tinymce',
103
- 'button_filters' => array(
104
- 'mce_buttons' => array( $this, 'filter_mce_buttons' ),
105
- 'mce_buttons_2' => array( $this, 'filter_mce_buttons_2' ),
106
- 'mce_buttons_3' => array( $this, 'filter_mce_buttons_3' ),
107
- 'mce_buttons_4' => array( $this, 'filter_mce_buttons_5' ),
108
- 'quicktags_settings' => array( $this, 'filter_quicktags_settings' ),
109
- ),
110
- )
111
 
112
- )
113
- ),
 
 
 
 
 
 
 
 
 
 
 
 
 
114
 
115
- 'styling' => array(
116
- 'type' => 'section',
117
- 'label' => __( 'Styling' , 'wpinked-widgets' ),
118
- 'hide' => true,
119
- 'fields' => array(
120
-
121
- 'icon' => array(
122
- 'type' => 'select',
123
- 'label' => __( 'Icon Location', 'wpinked-widgets' ),
124
- 'default' => 'right',
125
- 'options' => array(
126
- 'left' => __( 'Left', 'wpinked-widgets' ),
127
- 'right' => __( 'Right', 'wpinked-widgets' )
128
- )
129
- ),
130
 
131
- 'text' => array(
132
- 'type' => 'select',
133
- 'label' => __( 'Text Alignment', 'wpinked-widgets' ),
134
- 'default' => 'iw-text-left',
135
- 'options' => array(
136
- 'iw-text-left' => __( 'Left', 'wpinked-widgets' ),
137
- 'iw-text-center' => __( 'Center', 'wpinked-widgets' ),
138
- 'iw-text-right' => __( 'Right', 'wpinked-widgets' ),
139
- )
140
- ),
141
 
142
- 'gap' => array(
143
- 'type' => 'checkbox',
144
- 'label' => __( 'Gap between toggles?', 'wpinked-widgets' ),
145
- 'default' => true
146
- ),
147
 
148
- 'title-bg' => array(
149
- 'type' => 'color',
150
- 'label' => __( 'Title Background Color', 'wpinked-widgets' ),
151
- 'default' => ''
152
- ),
153
 
154
- 'title-h-bg' => array(
155
- 'type' => 'color',
156
- 'label' => __( 'Title Background Hover Color', 'wpinked-widgets' ),
157
- 'default' => ''
158
- ),
159
 
160
- 'title' => array(
161
- 'type' => 'color',
162
- 'label' => __( 'Title Color', 'wpinked-widgets' ),
163
- 'default' => ''
164
- ),
165
 
166
- 'title-h' => array(
167
- 'type' => 'color',
168
- 'label' => __( 'Title Hover Color', 'wpinked-widgets' ),
169
- 'default' => ''
170
- ),
171
 
172
- 'icon-open' => array(
173
- 'type' => 'color',
174
- 'label' => __( 'Icon Open Color', 'wpinked-widgets' ),
175
- 'default' => ''
176
- ),
177
 
178
- 'icon-close' => array(
179
- 'type' => 'color',
180
- 'label' => __( 'Icon Close Color', 'wpinked-widgets' ),
181
- 'default' => ''
182
- ),
183
 
184
- 'content-bg' => array(
185
- 'type' => 'color',
186
- 'label' => __( 'Content Background Color', 'wpinked-widgets' ),
187
- 'default' => ''
188
- ),
189
 
190
- )
191
- ),
192
  ),
193
-
194
- //The $base_folder path string.
195
- plugin_dir_path(__FILE__)
196
  );
197
  }
198
 
@@ -223,7 +252,7 @@ class Inked_Accordion_SO_Widget extends SiteOrigin_Widget {
223
  function get_less_variables($instance) {
224
  if( empty( $instance ) ) return array();
225
 
226
- return array(
227
  'gap' => $instance['styling']['gap'],
228
  'icon' => $instance['styling']['icon'],
229
  'title' => $instance['styling']['title'],
@@ -234,6 +263,24 @@ class Inked_Accordion_SO_Widget extends SiteOrigin_Widget {
234
  'icon-open' => $instance['styling']['icon-open'],
235
  'icon-close' => $instance['styling']['icon-close'],
236
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
237
  }
238
 
239
  }
12
  function __construct() {
13
 
14
  parent::__construct(
 
15
  'ink-accordion',
 
16
  __( 'Inked Accordion', 'wpinked-widgets' ),
 
17
  array(
18
  'description' => __( 'Expand and collapse content that is broken into logical sections.', 'wpinked-widgets' ),
19
  'help' => 'http://widgets-docs.wpinked.com/article/28-accordion-widget'
20
  ),
 
21
  array(
22
  ),
23
+ false,
24
+ plugin_dir_path(__FILE__)
25
+ );
26
+ }
27
 
28
+ function get_widget_form() {
29
+ return array(
30
+
31
+ 'admin' => array(
32
+ 'type' => 'text',
33
+ 'label' => __( 'Admin Label', 'wpinked-widgets' ),
34
+ 'default' => ''
35
+ ),
36
+
37
+ 'settings' => array(
38
+ 'type' => 'section',
39
+ 'label' => __( 'Settings' , 'wpinked-widgets' ),
40
+ 'hide' => true,
41
+ 'fields' => array(
42
+
43
+ 'id' => array(
44
+ 'type' => 'text',
45
+ 'label' => __( 'ID', 'wpinked-widgets' ),
46
+ 'description' => __( 'Should be unique on the page. Must begin with alphabets[A-Za-z]. Should not contain spaces.', 'wpinked-widgets' ),
47
+ 'default' => ''
48
+ ),
49
+
50
+ 'expand' => array(
51
+ 'type' => 'checkbox',
52
+ 'label' => __( 'Open multiple toggles simultaneously?', 'wpinked-widgets' ),
53
+ 'default' => false
54
+ ),
55
+
56
+ 'toggleable' => array(
57
+ 'type' => 'checkbox',
58
+ 'label' => __( 'Close toggle only if another is open ?', 'wpinked-widgets' ),
59
+ 'default' => false
60
+ ),
61
+
62
+ 'icon-open' => array(
63
+ 'type' => 'icon',
64
+ 'label' => __( 'Closed Toggle Icon', 'wpinked-widgets' ),
65
+ ),
66
+
67
+ 'icon-close' => array(
68
+ 'type' => 'icon',
69
+ 'label' => __( 'Open Toggle Icon.', 'wpinked-widgets' ),
70
+ ),
71
 
 
 
 
 
72
  ),
73
+ ),
74
 
75
+ 'toggles' => array(
76
+ 'type' => 'repeater',
77
+ 'label' => __( 'Toggles' , 'wpinked-widgets' ),
78
+ 'item_name' => __( 'Toggle', 'wpinked-widgets' ),
79
+ 'item_label' => array(
80
+ 'selector' => "[id*='title']",
81
+ 'update_event' => 'change',
82
+ 'value_method' => 'val'
83
+ ),
84
+ 'fields' => array(
 
 
85
 
86
+ 'title' => array(
87
+ 'type' => 'text',
88
+ 'label' => __( 'Title', 'wpinked-widgets' ),
89
+ 'default' => ''
90
+ ),
91
 
92
+ 'active' => array(
93
+ 'type' => 'checkbox',
94
+ 'label' => __( 'Open by default ?', 'wpinked-widgets' ),
95
+ 'default' => false,
96
+ ),
97
 
98
+ 'content_type' => array(
99
+ 'type' => 'select',
100
+ 'label' => __( 'Content Type', 'wpinked-widgets' ),
101
+ 'default' => 'tinymce',
102
+ 'options' => array(
103
+ 'tinymce' => __( 'TinyMCE Editor', 'wpinked-widgets' ),
104
+ 'builder' => __( 'Page Builder', 'wpinked-widgets' )
105
  ),
106
+ 'state_emitter' => array(
107
+ 'callback' => 'select',
108
+ 'args' => array( 'ctnt_type' )
109
+ )
110
+ ),
111
 
112
+ 'content' => array(
113
+ 'type' => 'tinymce',
114
+ 'label' => __( 'Content', 'wpinked-widgets' ),
115
+ 'state_handler' => array(
116
+ 'ctnt_type[tinymce]' => array( 'show' ),
117
+ 'ctnt_type[builder]' => array( 'hide' ),
118
  ),
 
119
  ),
 
120
 
121
+ 'autop' => array(
122
+ 'type' => 'checkbox',
123
+ 'default' => false,
124
+ 'label' => __( 'Automatically add paragraphs', 'wpinked-widgets' ),
125
+ 'state_handler' => array(
126
+ 'ctnt_type[tinymce]' => array( 'show' ),
127
+ 'ctnt_type[builder]' => array( 'hide' ),
 
 
 
 
 
 
 
 
128
  ),
129
+ ),
130
 
131
+ 'builder' => array(
132
+ 'type' => 'premium',
133
+ 'label' => __( 'Builder', 'wpinked-widgets' ),
134
+ 'state_handler' => array(
135
+ 'ctnt_type[tinymce]' => array( 'hide' ),
136
+ 'ctnt_type[builder]' => array( 'show' ),
137
  ),
138
+ ),
139
 
140
+ )
141
+ ),
 
 
 
 
 
 
 
 
 
 
 
 
142
 
143
+ 'styling' => array(
144
+ 'type' => 'section',
145
+ 'label' => __( 'Styling' , 'wpinked-widgets' ),
146
+ 'hide' => true,
147
+ 'fields' => array(
148
+
149
+ 'icon' => array(
150
+ 'type' => 'select',
151
+ 'label' => __( 'Icon Location', 'wpinked-widgets' ),
152
+ 'default' => 'right',
153
+ 'options' => array(
154
+ 'left' => __( 'Left', 'wpinked-widgets' ),
155
+ 'right' => __( 'Right', 'wpinked-widgets' )
156
+ )
157
+ ),
158
 
159
+ 'text' => array(
160
+ 'type' => 'select',
161
+ 'label' => __( 'Text Alignment', 'wpinked-widgets' ),
162
+ 'default' => 'iw-text-left',
163
+ 'options' => array(
164
+ 'iw-text-left' => __( 'Left', 'wpinked-widgets' ),
165
+ 'iw-text-center' => __( 'Center', 'wpinked-widgets' ),
166
+ 'iw-text-right' => __( 'Right', 'wpinked-widgets' ),
167
+ )
168
+ ),
 
 
 
 
 
169
 
170
+ 'gap' => array(
171
+ 'type' => 'checkbox',
172
+ 'label' => __( 'Gap between toggles?', 'wpinked-widgets' ),
173
+ 'default' => true
174
+ ),
 
 
 
 
 
175
 
176
+ 'title-bg' => array(
177
+ 'type' => 'color',
178
+ 'label' => __( 'Title Background Color', 'wpinked-widgets' ),
179
+ 'default' => ''
180
+ ),
181
 
182
+ 'title-h-bg' => array(
183
+ 'type' => 'color',
184
+ 'label' => __( 'Title Background Hover Color', 'wpinked-widgets' ),
185
+ 'default' => ''
186
+ ),
187
 
188
+ 'title' => array(
189
+ 'type' => 'color',
190
+ 'label' => __( 'Title Color', 'wpinked-widgets' ),
191
+ 'default' => ''
192
+ ),
193
 
194
+ 'title-h' => array(
195
+ 'type' => 'color',
196
+ 'label' => __( 'Title Hover Color', 'wpinked-widgets' ),
197
+ 'default' => ''
198
+ ),
199
 
200
+ 'title-font' => array(
201
+ 'type' => 'premium',
202
+ 'label' => __( 'Title Font', 'wpinked-widgets' ),
203
+ ),
 
204
 
205
+ 'icon-open' => array(
206
+ 'type' => 'color',
207
+ 'label' => __( 'Icon Open Color', 'wpinked-widgets' ),
208
+ 'default' => ''
209
+ ),
210
 
211
+ 'icon-close' => array(
212
+ 'type' => 'color',
213
+ 'label' => __( 'Icon Close Color', 'wpinked-widgets' ),
214
+ 'default' => ''
215
+ ),
216
 
217
+ 'content-bg' => array(
218
+ 'type' => 'color',
219
+ 'label' => __( 'Content Background Color', 'wpinked-widgets' ),
220
+ 'default' => ''
221
+ ),
222
 
223
+ )
 
224
  ),
 
 
 
225
  );
226
  }
227
 
252
  function get_less_variables($instance) {
253
  if( empty( $instance ) ) return array();
254
 
255
+ $less_variables = array(
256
  'gap' => $instance['styling']['gap'],
257
  'icon' => $instance['styling']['icon'],
258
  'title' => $instance['styling']['title'],
263
  'icon-open' => $instance['styling']['icon-open'],
264
  'icon-close' => $instance['styling']['icon-close'],
265
  );
266
+
267
+ if ( $instance['styling']['title-font'] && function_exists( 'wpinked_pro_so_widgets' ) ) {
268
+ $selected_font = siteorigin_widget_get_font( $instance['styling']['title-font'] );
269
+ $less_variables['title-font-fly'] = $selected_font['family'];
270
+ if( ! empty( $selected_font['weight'] ) ) {
271
+ $less_variables['title-font-wt'] = $selected_font['weight'];
272
+ }
273
+ }
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
  }
widgets/ink-ardn-widget/styles/accordion.less CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  @gap: 0;
2
  @icon: right;
3
  @title-bg: transparent;
@@ -7,6 +11,8 @@
7
  @icon-close: #333;
8
  @title-h: #666;
9
  @title-h-bg: transparent;
 
 
10
 
11
  .iw-so-accordion .iw-so-acc-item {
12
  .gap() when (@gap = 1) { margin-bottom: 12px; }
@@ -14,6 +20,7 @@
14
  .iw-so-acc-title {
15
  background: @title-bg;
16
  color: @title;
 
17
 
18
  .icon-padding() when (@icon = right) { padding-right: 3.5em; }
19
  .icon-padding() when (@icon = left) { padding-left: 3.5em; }
1
+ @import "../mixins/less/mixins";
2
+
3
+ .widget-function('import_google_font');
4
+
5
  @gap: 0;
6
  @icon: right;
7
  @title-bg: transparent;
11
  @icon-close: #333;
12
  @title-h: #666;
13
  @title-h-bg: transparent;
14
+ @title-font-fly: default;
15
+ @title-font-wt: bold;
16
 
17
  .iw-so-accordion .iw-so-acc-item {
18
  .gap() when (@gap = 1) { margin-bottom: 12px; }
20
  .iw-so-acc-title {
21
  background: @title-bg;
22
  color: @title;
23
+ .font(@title-font-fly, @title-font-wt);
24
 
25
  .icon-padding() when (@icon = right) { padding-right: 3.5em; }
26
  .icon-padding() when (@icon = left) { padding-left: 3.5em; }
widgets/ink-ardn-widget/tpl/accordion.php CHANGED
@@ -30,7 +30,7 @@ endif;
30
  </a>
31
 
32
  <div class="iw-so-acc-content">
33
- <?php echo do_shortcode( $toggle['content'] ); ?>
34
  </div>
35
 
36
  </div>
30
  </a>
31
 
32
  <div class="iw-so-acc-content">
33
+ <?php echo wpinked_so_pb_content( $toggle['content'], $toggle['autop'], $toggle['content_type'], $toggle['builder'] ); ?>
34
  </div>
35
 
36
  </div>
widgets/ink-auds-widget/ink-auds-widget.php CHANGED
@@ -12,175 +12,173 @@ class Inked_Audio_SO_Widget extends SiteOrigin_Widget {
12
  function __construct() {
13
 
14
  parent::__construct(
15
-
16
  'ink-audio',
17
-
18
  __( 'Inked Audio', 'wpinked-widgets' ),
19
-
20
  array(
21
  'description' => __( 'Play self or externally hosted audios.', 'wpinked-widgets' ),
22
  'help' => 'http://widgets-docs.wpinked.com/article/33-audio-widget'
23
  ),
24
-
25
  array(
26
  ),
 
 
 
 
27
 
28
- array(
 
29
 
30
- 'admin' => array(
31
- 'type' => 'text',
32
- 'label' => __( 'Admin Label', 'wpinked-widgets' ),
33
- 'default' => ''
34
- ),
35
 
36
- 'audio' => array(
37
- 'type' => 'section',
38
- 'label' => __( 'Audio' , 'wpinked-widgets' ),
39
- 'hide' => true,
40
- 'fields' => array(
41
-
42
- 'type' => array(
43
- 'type' => 'select',
44
- 'label' => __( 'Audio Type', 'wpinked-widgets' ),
45
- 'default' => 'oembed',
46
- 'options' => array(
47
- 'hosted' => __( 'Self Hosted', 'wpinked-widgets' ),
48
- 'oembed' => __( 'oEmbed', 'wpinked-widgets' ),
49
- ),
50
- 'state_emitter' => array(
51
- 'callback' => 'select',
52
- 'args' => array( 'audio_type' )
53
- )
54
  ),
 
 
 
 
 
55
 
56
- 'hosted' => array(
57
- 'type' => 'media',
58
- 'fallback' => true,
59
- 'label' => __( 'Audio File', 'wpinked-widgets' ),
60
- 'default' => '',
61
- 'library' => 'audio',
62
- 'state_handler' => array(
63
- 'audio_type[hosted]' => array( 'show' ),
64
- 'audio_type[oembed]' => array( 'hide' ),
65
- )
66
- ),
67
 
68
- 'image' => array(
69
- 'type' => 'media',
70
- 'fallback' => true,
71
- 'label' => __( 'Background Image', 'wpinked-widgets' ),
72
- 'default' => '',
73
- 'library' => 'image',
74
- 'state_handler' => array(
75
- 'audio_type[hosted]' => array( 'show' ),
76
- 'audio_type[oembed]' => array( 'hide' ),
77
- )
78
- ),
79
 
80
- 'oembed' => array(
81
- 'type' => 'text',
82
- 'sanitize' => 'url',
83
- 'label' => __( 'oEmbed Audio URL', 'wpinked-widgets' ),
84
- 'state_handler' => array(
85
- 'audio_type[hosted]' => array( 'hide' ),
86
- 'audio_type[oembed]' => array( 'show' ),
87
- )
88
- ),
89
 
90
- 'background' => array(
91
- 'type' => 'color',
92
- 'label' => __( 'Background Color', 'wpinked-widgets' ),
93
- 'default' => '',
94
- 'state_handler' => array(
95
- 'audio_type[hosted]' => array( 'show' ),
96
- 'audio_type[oembed]' => array( 'hide' ),
97
- )
98
- ),
99
 
100
- 'bg-opacity' => array(
101
- 'type' => 'slider',
102
- 'label' => __( 'Background Opacity', 'wpinked-widgets' ),
103
- 'default' => 0,
104
- 'min' => 0,
105
- 'max' => 100,
106
- 'integer' => true,
107
- 'state_handler' => array(
108
- 'audio_type[hosted]' => array( 'show' ),
109
- 'audio_type[oembed]' => array( 'hide' ),
110
- )
111
- ),
112
 
113
- 'controls' => array(
114
- 'type' => 'select',
115
- 'label' => __( 'Controls Theme', 'wpinked-widgets' ),
116
- 'default' => 'iw-text-center',
117
- 'options' => array(
118
- 'iw-so-player-light' => __( 'Light', 'wpinked-widgets' ),
119
- 'iw-so-player-dark' => __( 'Dark', 'wpinked-widgets' )
120
- ),
121
- 'state_handler' => array(
122
- 'audio_type[hosted]' => array( 'show' ),
123
- 'audio_type[oembed]' => array( 'hide' ),
124
- )
125
  ),
 
 
 
 
 
126
 
127
- 'audio' => array(
128
- 'type' => 'text',
129
- 'label' => __( 'Audio Name', 'wpinked-widgets' ),
130
- 'state_handler' => array(
131
- 'audio_type[hosted]' => array( 'show' ),
132
- 'audio_type[oembed]' => array( 'hide' ),
133
- )
134
- ),
135
 
136
- 'artist' => array(
137
- 'type' => 'text',
138
- 'label' => __( 'Artist', 'wpinked-widgets' ),
139
- 'state_handler' => array(
140
- 'audio_type[hosted]' => array( 'show' ),
141
- 'audio_type[oembed]' => array( 'hide' ),
142
- )
143
- ),
144
 
145
- 'album' => array(
146
- 'type' => 'text',
147
- 'label' => __( 'Album', 'wpinked-widgets' ),
148
- 'state_handler' => array(
149
- 'audio_type[hosted]' => array( 'show' ),
150
- 'audio_type[oembed]' => array( 'hide' ),
151
- )
152
- ),
153
 
154
- 'text' => array(
155
- 'type' => 'color',
156
- 'label' => __( 'Text Color', 'wpinked-widgets' ),
157
- 'default' => '',
158
- 'state_handler' => array(
159
- 'audio_type[hosted]' => array( 'show' ),
160
- 'audio_type[oembed]' => array( 'hide' ),
161
- )
162
- ),
163
 
164
- 'align' => array(
165
- 'type' => 'select',
166
- 'label' => __( 'Text Alignment', 'wpinked-widgets' ),
167
- 'default' => 'iw-text-center',
168
- 'options' => array(
169
- 'iw-text-left' => __( 'Left', 'wpinked-widgets' ),
170
- 'iw-text-center' => __( 'Center', 'wpinked-widgets' ),
171
- 'iw-text-right' => __( 'Right', 'wpinked-widgets' ),
172
- ),
173
- 'state_handler' => array(
174
- 'audio_type[hosted]' => array( 'show' ),
175
- 'audio_type[oembed]' => array( 'hide' ),
176
- )
177
  ),
 
 
 
 
178
  ),
179
  ),
180
-
181
  ),
182
 
183
- plugin_dir_path(__FILE__)
184
  );
185
  }
186
 
12
  function __construct() {
13
 
14
  parent::__construct(
 
15
  'ink-audio',
 
16
  __( 'Inked Audio', 'wpinked-widgets' ),
 
17
  array(
18
  'description' => __( 'Play self or externally hosted audios.', 'wpinked-widgets' ),
19
  'help' => 'http://widgets-docs.wpinked.com/article/33-audio-widget'
20
  ),
 
21
  array(
22
  ),
23
+ false,
24
+ plugin_dir_path(__FILE__)
25
+ );
26
+ }
27
 
28
+ function get_widget_form() {
29
+ return array(
30
 
31
+ 'admin' => array(
32
+ 'type' => 'text',
33
+ 'label' => __( 'Admin Label', 'wpinked-widgets' ),
34
+ 'default' => ''
35
+ ),
36
 
37
+ 'audio' => array(
38
+ 'type' => 'section',
39
+ 'label' => __( 'Audio' , 'wpinked-widgets' ),
40
+ 'hide' => true,
41
+ 'fields' => array(
42
+
43
+ 'type' => array(
44
+ 'type' => 'select',
45
+ 'label' => __( 'Audio Type', 'wpinked-widgets' ),
46
+ 'default' => 'oembed',
47
+ 'options' => array(
48
+ 'hosted' => __( 'Self Hosted', 'wpinked-widgets' ),
49
+ 'oembed' => __( 'oEmbed', 'wpinked-widgets' ),
 
 
 
 
 
50
  ),
51
+ 'state_emitter' => array(
52
+ 'callback' => 'select',
53
+ 'args' => array( 'audio_type' )
54
+ )
55
+ ),
56
 
57
+ 'hosted' => array(
58
+ 'type' => 'media',
59
+ 'fallback' => true,
60
+ 'label' => __( 'Audio File', 'wpinked-widgets' ),
61
+ 'default' => '',
62
+ 'library' => 'audio',
63
+ 'state_handler' => array(
64
+ 'audio_type[hosted]' => array( 'show' ),
65
+ 'audio_type[oembed]' => array( 'hide' ),
66
+ )
67
+ ),
68
 
69
+ 'image' => array(
70
+ 'type' => 'media',
71
+ 'fallback' => true,
72
+ 'label' => __( 'Background Image', 'wpinked-widgets' ),
73
+ 'default' => '',
74
+ 'library' => 'image',
75
+ 'state_handler' => array(
76
+ 'audio_type[hosted]' => array( 'show' ),
77
+ 'audio_type[oembed]' => array( 'hide' ),
78
+ )
79
+ ),
80
 
81
+ 'oembed' => array(
82
+ 'type' => 'text',
83
+ 'sanitize' => 'url',
84
+ 'label' => __( 'oEmbed Audio URL', 'wpinked-widgets' ),
85
+ 'state_handler' => array(
86
+ 'audio_type[hosted]' => array( 'hide' ),
87
+ 'audio_type[oembed]' => array( 'show' ),
88
+ )
89
+ ),
90
 
91
+ 'background' => array(
92
+ 'type' => 'color',
93
+ 'label' => __( 'Background Color', 'wpinked-widgets' ),
94
+ 'default' => '',
95
+ 'state_handler' => array(
96
+ 'audio_type[hosted]' => array( 'show' ),
97
+ 'audio_type[oembed]' => array( 'hide' ),
98
+ )
99
+ ),
100
 
101
+ 'bg-opacity' => array(
102
+ 'type' => 'slider',
103
+ 'label' => __( 'Background Opacity', 'wpinked-widgets' ),
104
+ 'default' => 0,
105
+ 'min' => 0,
106
+ 'max' => 100,
107
+ 'integer' => true,
108
+ 'state_handler' => array(
109
+ 'audio_type[hosted]' => array( 'show' ),
110
+ 'audio_type[oembed]' => array( 'hide' ),
111
+ )
112
+ ),
113
 
114
+ 'controls' => array(
115
+ 'type' => 'select',
116
+ 'label' => __( 'Controls Theme', 'wpinked-widgets' ),
117
+ 'default' => 'iw-text-center',
118
+ 'options' => array(
119
+ 'iw-so-player-light' => __( 'Light', 'wpinked-widgets' ),
120
+ 'iw-so-player-dark' => __( 'Dark', 'wpinked-widgets' )
 
 
 
 
 
121
  ),
122
+ 'state_handler' => array(
123
+ 'audio_type[hosted]' => array( 'show' ),
124
+ 'audio_type[oembed]' => array( 'hide' ),
125
+ )
126
+ ),
127
 
128
+ 'audio' => array(
129
+ 'type' => 'text',
130
+ 'label' => __( 'Audio Name', 'wpinked-widgets' ),
131
+ 'state_handler' => array(
132
+ 'audio_type[hosted]' => array( 'show' ),
133
+ 'audio_type[oembed]' => array( 'hide' ),
134
+ )
135
+ ),
136
 
137
+ 'artist' => array(
138
+ 'type' => 'text',
139
+ 'label' => __( 'Artist', 'wpinked-widgets' ),
140
+ 'state_handler' => array(
141
+ 'audio_type[hosted]' => array( 'show' ),
142
+ 'audio_type[oembed]' => array( 'hide' ),
143
+ )
144
+ ),
145
 
146
+ 'album' => array(
147
+ 'type' => 'text',
148
+ 'label' => __( 'Album', 'wpinked-widgets' ),
149
+ 'state_handler' => array(
150
+ 'audio_type[hosted]' => array( 'show' ),
151
+ 'audio_type[oembed]' => array( 'hide' ),
152
+ )
153
+ ),
154
 
155
+ 'text' => array(
156
+ 'type' => 'color',
157
+ 'label' => __( 'Text Color', 'wpinked-widgets' ),
158
+ 'default' => '',
159
+ 'state_handler' => array(
160
+ 'audio_type[hosted]' => array( 'show' ),
161
+ 'audio_type[oembed]' => array( 'hide' ),
162
+ )
163
+ ),
164
 
165
+ 'align' => array(
166
+ 'type' => 'select',
167
+ 'label' => __( 'Text Alignment', 'wpinked-widgets' ),
168
+ 'default' => 'iw-text-center',
169
+ 'options' => array(
170
+ 'iw-text-left' => __( 'Left', 'wpinked-widgets' ),
171
+ 'iw-text-center' => __( 'Center', 'wpinked-widgets' ),
172
+ 'iw-text-right' => __( 'Right', 'wpinked-widgets' ),
 
 
 
 
 
173
  ),
174
+ 'state_handler' => array(
175
+ 'audio_type[hosted]' => array( 'show' ),
176
+ 'audio_type[oembed]' => array( 'hide' ),
177
+ )
178
  ),
179
  ),
 
180
  ),
181
 
 
182
  );
183
  }
184
 
widgets/ink-barc-widget/ink-barc-widget.php CHANGED
@@ -12,133 +12,130 @@ class Inked_Bar_Counter_SO_Widget extends SiteOrigin_Widget {
12
  function __construct() {
13
 
14
  parent::__construct(
15
-
16
  'ink-bar-count',
17
-
18
  __( 'Inked Bar Counter', 'wpinked-widgets' ),
19
-
20
  array(
21
  'description' => __( 'Animated bars to display your stats.', 'wpinked-widgets' ),
22
  'help' => 'http://widgets-docs.wpinked.com/article/25-bar-counter-widget'
23
  ),
24
-
25
  array(
26
  ),
 
 
 
 
27
 
28
- array(
 
 
 
 
 
 
 
29
 
30
- 'admin' => array(
31
- 'type' => 'text',
32
- 'label' => __( 'Admin Label', 'wpinked-widgets' ),
33
- 'default' => ''
 
 
 
 
34
  ),
 
35
 
36
- 'bars' => array(
37
- 'type' => 'repeater',
38
- 'label' => __( 'Bars' , 'wpinked-widgets' ),
39
- 'item_name' => __( 'Bar', 'wpinked-widgets' ),
40
- 'item_label' => array(
41
- 'selector' => "[id*='title']",
42
- 'update_event' => 'change',
43
- 'value_method' => 'val'
44
  ),
45
- 'fields' => array(
46
-
47
- 'title' => array(
48
- 'type' => 'text',
49
- 'label' => __( 'Title', 'wpinked-widgets' ),
50
- 'default' => ''
51
- ),
52
 
53
- 'percent' => array(
54
- 'type' => 'slider',
55
- 'label' => __( 'Percentage', 'wpinked-widgets' ),
56
- 'default' => 50,
57
- 'min' => 0,
58
- 'max' => 100,
59
- 'integer' => true
60
- ),
61
 
62
- )
63
- ),
64
 
65
- 'styling' => array(
66
- 'type' => 'section',
67
- 'label' => __( 'Styling' , 'wpinked-widgets' ),
68
- 'hide' => true,
69
- 'fields' => array(
70
 
71
- 'animation' => array(
72
- 'type' => 'checkbox',
73
- 'label' => __( 'Use animations?', 'wpinked-widgets' ),
74
- 'default' => true
75
- ),
76
 
77
- 'height' => array(
78
- 'type' => 'measurement',
79
- 'label' => __( 'Height', 'wpinked-widgets' ),
80
- 'default' => '15px',
81
- ),
82
 
83
- 'percent-show' => array(
84
- 'type' => 'checkbox',
85
- 'label' => __( 'Show Percentage?', 'wpinked-widgets' ),
86
- 'default' => true
87
- ),
88
 
89
- 'title' => array(
90
- 'type' => 'color',
91
- 'label' => __( 'Title Color', 'wpinked-widgets' ),
92
- 'default' => ''
93
- ),
94
 
95
- 'percent' => array(
96
- 'type' => 'color',
97
- 'label' => __( 'Percentage Color', 'wpinked-widgets' ),
98
- 'default' => ''
99
- ),
100
 
101
- 'bar-bg' => array(
102
- 'type' => 'color',
103
- 'label' => __( 'Bar Background Color', 'wpinked-widgets' ),
104
- 'default' => '#eee'
105
- ),
106
 
107
- 'bar' => array(
108
- 'type' => 'color',
109
- 'label' => __( 'Bar Color', 'wpinked-widgets' ),
110
- 'default' => '#e74c3c'
111
- ),
112
 
113
- 'border' => array(
114
- 'type' => 'checkbox',
115
- 'label' => __( 'Show Border?', 'wpinked-widgets' ),
116
- 'default' => true
117
- ),
118
 
119
- 'border-clr' => array(
120
- 'type' => 'color',
121
- 'label' => __( 'Border Color', 'wpinked-widgets' ),
122
- 'default' => ''
123
- ),
124
 
125
- 'corners' => array(
126
- 'type' => 'select',
127
- 'label' => __( 'Corners', 'wpinked-widgets' ),
128
- 'default' => '0.25em',
129
- 'options' => array(
130
- '0em' => __( 'Sharp', 'wpinked-widgets' ),
131
- '0.25em' => __( 'Curved', 'wpinked-widgets' ),
132
- '0.75em' => __( 'Round', 'wpinked-widgets' ),
133
- ),
134
  ),
 
135
 
136
- )
137
- ),
138
  ),
139
-
140
- //The $base_folder path string.
141
- plugin_dir_path(__FILE__)
142
  );
143
  }
144
 
12
  function __construct() {
13
 
14
  parent::__construct(
 
15
  'ink-bar-count',
 
16
  __( 'Inked Bar Counter', 'wpinked-widgets' ),
 
17
  array(
18
  'description' => __( 'Animated bars to display your stats.', 'wpinked-widgets' ),
19
  'help' => 'http://widgets-docs.wpinked.com/article/25-bar-counter-widget'
20
  ),
 
21
  array(
22
  ),
23
+ false,
24
+ plugin_dir_path(__FILE__)
25
+ );
26
+ }
27
 
28
+ function get_widget_form() {
29
+ return array(
30
+
31
+ 'admin' => array(
32
+ 'type' => 'text',
33
+ 'label' => __( 'Admin Label', 'wpinked-widgets' ),
34
+ 'default' => ''
35
+ ),
36
 
37
+ 'bars' => array(
38
+ 'type' => 'repeater',
39
+ 'label' => __( 'Bars' , 'wpinked-widgets' ),
40
+ 'item_name' => __( 'Bar', 'wpinked-widgets' ),
41
+ 'item_label' => array(
42
+ 'selector' => "[id*='title']",
43
+ 'update_event' => 'change',
44
+ 'value_method' => 'val'
45
  ),
46
+ 'fields' => array(
47
 
48
+ 'title' => array(
49
+ 'type' => 'text',
50
+ 'label' => __( 'Title', 'wpinked-widgets' ),
51
+ 'default' => ''
 
 
 
 
52
  ),
 
 
 
 
 
 
 
53
 
54
+ 'percent' => array(
55
+ 'type' => 'slider',
56
+ 'label' => __( 'Percentage', 'wpinked-widgets' ),
57
+ 'default' => 50,
58
+ 'min' => 0,
59
+ 'max' => 100,
60
+ 'integer' => true
61
+ ),
62
 
63
+ )
64
+ ),
65
 
66
+ 'styling' => array(
67
+ 'type' => 'section',
68
+ 'label' => __( 'Styling' , 'wpinked-widgets' ),
69
+ 'hide' => true,
70
+ 'fields' => array(
71
 
72
+ 'animation' => array(
73
+ 'type' => 'checkbox',
74
+ 'label' => __( 'Use animations?', 'wpinked-widgets' ),
75
+ 'default' => true
76
+ ),
77
 
78
+ 'height' => array(
79
+ 'type' => 'measurement',
80
+ 'label' => __( 'Height', 'wpinked-widgets' ),
81
+ 'default' => '15px',
82
+ ),
83
 
84
+ 'percent-show' => array(
85
+ 'type' => 'checkbox',
86
+ 'label' => __( 'Show Percentage?', 'wpinked-widgets' ),
87
+ 'default' => true
88
+ ),
89
 
90
+ 'title' => array(
91
+ 'type' => 'color',
92
+ 'label' => __( 'Title Color', 'wpinked-widgets' ),
93
+ 'default' => ''
94
+ ),
95
 
96
+ 'percent' => array(
97
+ 'type' => 'color',
98
+ 'label' => __( 'Percentage Color', 'wpinked-widgets' ),
99
+ 'default' => ''
100
+ ),
101
 
102
+ 'bar-bg' => array(
103
+ 'type' => 'color',
104
+ 'label' => __( 'Bar Background Color', 'wpinked-widgets' ),
105
+ 'default' => '#eee'
106
+ ),
107
 
108
+ 'bar' => array(
109
+ 'type' => 'color',
110
+ 'label' => __( 'Bar Color', 'wpinked-widgets' ),
111
+ 'default' => '#e74c3c'
112
+ ),
113
 
114
+ 'border' => array(
115
+ 'type' => 'checkbox',
116
+ 'label' => __( 'Show Border?', 'wpinked-widgets' ),
117
+ 'default' => true
118
+ ),
119
 
120
+ 'border-clr' => array(
121
+ 'type' => 'color',
122
+ 'label' => __( 'Border Color', 'wpinked-widgets' ),
123
+ 'default' => ''
124
+ ),
125
 
126
+ 'corners' => array(
127
+ 'type' => 'select',
128
+ 'label' => __( 'Corners', 'wpinked-widgets' ),
129
+ 'default' => '0.25em',
130
+ 'options' => array(
131
+ '0em' => __( 'Sharp', 'wpinked-widgets' ),
132
+ '0.25em' => __( 'Curved', 'wpinked-widgets' ),
133
+ '0.75em' => __( 'Round', 'wpinked-widgets' ),
 
134
  ),
135
+ ),
136
 
137
+ )
 
138
  ),
 
 
 
139
  );
140
  }
141
 
widgets/ink-barc-widget/styles/bar.less CHANGED
@@ -1,4 +1,4 @@
1
- @import "../../mixins/less/mixins";
2
 
3
  @radius: 0;
4
  @height: 10px;
1
+ @import "../mixins/less/mixins";
2
 
3
  @radius: 0;
4
  @height: 10px;
widgets/ink-blgs-widget/css/blog.css CHANGED
@@ -5,7 +5,6 @@
5
  -ms-appearance: none;
6
  -o-appearance: none;
7
  appearance: none;
8
- font-family: inherit;
9
  font-weight: normal;
10
  line-height: normal;
11
  position: relative;
5
  -ms-appearance: none;
6
  -o-appearance: none;
7
  appearance: none;
 
8
  font-weight: normal;
9
  line-height: normal;
10
  position: relative;
widgets/ink-blgs-widget/ink-blgs-widget.php CHANGED
@@ -12,707 +12,726 @@ class Inked_Blog_SO_Widget extends SiteOrigin_Widget {
12
  function __construct() {
13
 
14
  parent::__construct(
15
-
16
  'ink-blog',
17
-
18
  __( 'Inked Blog', 'wpinked-widgets' ),
19
-
20
  array(
21
  'description' => __( 'A widget to display Blog posts.', 'wpinked-widgets' ),
22
  'help' => 'http://widgets-docs.wpinked.com/article/13-blog-widget'
23
  ),
24
-
25
  array(
26
  ),
 
 
 
 
27
 
28
- array(
29
- 'title' => array(
30
- 'type' => 'text',
31
- 'label' => __( 'Title', 'wpinked-widgets' ),
32
- 'default' => ''
33
- ),
34
-
35
- 'loop' => array(
36
- 'type' => 'section',
37
- 'label' => __( 'Blog Post Loop' , 'wpinked-widgets' ),
38
- 'hide' => true,
39
- 'fields' => array(
40
-
41
- 'posts' => array(
42
- 'type' => 'posts',
43
- 'label' => __( 'Select Posts', 'wpinked-widgets' ),
44
- ),
45
-
46
- 'current' => array(
47
- 'type' => 'checkbox',
48
- 'label' => __( 'Exclude current post from query ?', 'wpinked-widgets' ),
49
- 'default' => false,
50
- ),
51
- )
52
- ),
53
-
54
- 'icons' => array(
55
- 'type' => 'section',
56
- 'label' => __( 'Post Format Icons' , 'wpinked-widgets' ),
57
- 'hide' => true,
58
- 'fields' => array(
59
-
60
- 'standard' => array(
61
- 'type' => 'icon',
62
- 'label' => __( 'Standard Icon', 'wpinked-widgets' ),
63
- ),
64
-
65
- 'aside' => array(
66
- 'type' => 'icon',
67
- 'label' => __( 'Aside Icon', 'wpinked-widgets' ),
68
- ),
69
-
70
- 'gallery' => array(
71
- 'type' => 'icon',
72
- 'label' => __( 'Gallery Icon', 'wpinked-widgets' ),
73
- ),
74
-
75
- 'link' => array(
76
- 'type' => 'icon',
77
- 'label' => __( 'Link Icon', 'wpinked-widgets' ),
78
- ),
79
-
80
- 'image' => array(
81
- 'type' => 'icon',
82
- 'label' => __( 'Image Icon', 'wpinked-widgets' ),
83
- ),
84
-
85
- 'quote' => array(
86
- 'type' => 'icon',
87
- 'label' => __( 'Quote Icon', 'wpinked-widgets' ),
88
- ),
89
- 'status' => array(
90
- 'type' => 'icon',
91
- 'label' => __( 'Status Icon', 'wpinked-widgets' ),
92
- ),
93
- 'video' => array(
94
- 'type' => 'icon',
95
- 'label' => __( 'Video Icon', 'wpinked-widgets' ),
96
- ),
97
- 'audio' => array(
98
- 'type' => 'icon',
99
- 'label' => __( 'Audio Icon', 'wpinked-widgets' ),
100
- ),
101
- 'chat' => array(
102
- 'type' => 'icon',
103
- 'label' => __( 'Chat Icon', 'wpinked-widgets' ),
104
- ),
105
-
106
- 'color' => array(
107
- 'type' => 'color',
108
- 'label' => __( 'Icon Color', 'wpinked-widgets' ),
109
- 'default' => ''
110
- ),
111
-
112
- 'size' => array(
113
- 'type' => 'measurement',
114
- 'label' => __( 'Icon Size', 'wpinked-widgets' ),
115
- 'default' => '',
116
- ),
117
-
118
- 'bg' => array(
119
- 'type' => 'color',
120
- 'label' => __( 'Background Color', 'wpinked-widgets' ),
121
- 'default' => ''
122
- ),
123
-
124
- 'bg-shape' => array(
125
- 'type' => 'select',
126
- 'label' => __( 'Background Corners', 'wpinked-widgets' ),
127
- 'default' => '0',
128
- 'options' => array(
129
- '0' => __( 'Sharp', 'wpinked-widgets' ),
130
- '5%' => __( 'Curved', 'wpinked-widgets' ),
131
- '50%' => __( 'Round', 'wpinked-widgets' )
132
- )
133
- ),
134
-
135
- 'show' => array(
136
- 'type' => 'select',
137
- 'label' => __( 'Show Icon', 'wpinked-widgets' ),
138
- 'default' => 'default',
139
- 'options' => array(
140
- 'default' => __( 'Always', 'wpinked-widgets' ),
141
- 'hover' => __( 'On Hover', 'wpinked-widgets' )
142
- )
143
- ),
144
- )
145
- ),
146
-
147
- 'design' => array(
148
- 'type' => 'section',
149
- 'label' => __( 'Design' , 'wpinked-widgets' ),
150
- 'hide' => true,
151
- 'fields' => array(
152
-
153
- 'layout' => array(
154
- 'type' => 'select',
155
- 'label' => __( 'Layout', 'wpinked-widgets' ),
156
- 'default' => 'thumb-above',
157
- 'options' => array(
158
- 'thumb-above' => __( 'Image above the content', 'wpinked-widgets' ),
159
- 'thumb-left' => __( 'Image to the left of content', 'wpinked-widgets' ),
160
- 'thumb-right' => __( 'Image to the right of content', 'wpinked-widgets' ),
161
- 'thumb-behind' => __( 'Image as content background', 'wpinked-widgets' ),
162
- 'thumb-none' => __( 'No Image', 'wpinked-widgets' )
163
- ),
164
- 'state_emitter' => array(
165
- 'callback' => 'select',
166
- 'args' => array( 'blg_lyt' )
167
- )
168
- ),
169
-
170
- 'img-size' => array(
171
- 'type' => 'image-size',
172
- 'label' => __( 'Image Size', 'wpinked-widgets' ),
173
- 'state_handler' => array(
174
- 'blg_lyt[thumb-above]' => array( 'show' ),
175
- 'blg_lyt[thumb-left]' => array( 'show' ),
176
- 'blg_lyt[thumb-right]' => array( 'show' ),
177
- 'blg_lyt[thumb-behind]' => array( 'show' ),
178
- 'blg_lyt[thumb-none]' => array( 'hide' ),
179
- ),
180
- 'description' => __( 'You can change the default size widths by going to <b>Settings</b> &rarr; <b>Media</b>.', 'wpinked-widgets' ),
181
- ),
182
-
183
- 'img-width' => array(
184
- 'type' => 'checkbox',
185
- 'label' => __( 'Set image width to 100%?', 'wpinked-widgets' ),
186
- 'default' => true,
187
- 'state_handler' => array(
188
- 'blg_lyt[thumb-above]' => array( 'show' ),
189
- 'blg_lyt[thumb-left]' => array( 'show' ),
190
- 'blg_lyt[thumb-right]' => array( 'show' ),
191
- 'blg_lyt[thumb-behind]' => array( 'hide' ),
192
- 'blg_lyt[thumb-none]' => array( 'hide' ),
193
- )
194
- ),
195
-
196
- 'responsive' => array(
197
- 'type' => 'checkbox',
198
- 'label' => __( 'Make Image fullwidth for small screens ?', 'wpinked-widgets' ),
199
- 'default' => true,
200
- 'state_handler' => array(
201
- 'blg_lyt[thumb-above]' => array( 'hide' ),
202
- 'blg_lyt[thumb-left]' => array( 'show' ),
203
- 'blg_lyt[thumb-right]' => array( 'show' ),
204
- 'blg_lyt[thumb-behind]' => array( 'hide' ),
205
- 'blg_lyt[thumb-none]' => array( 'hide' ),
206
- )
207
- ),
208
-
209
- 'format' => array(
210
- 'type' => 'checkbox',
211
- 'label' => __( 'Show Format Icon ?', 'wpinked-widgets' ),
212
- 'default' => true
213
- ),
214
-
215
- 'equalizer' => array(
216
- 'type' => 'checkbox',
217
- 'label' => __( 'Make all blog posts the same height?', 'wpinked-widgets' ),
218
- 'default' => true
219
- ),
220
-
221
- 'title-tag' => array(
222
- 'type' => 'select',
223
- 'label' => __( 'Title Tag', 'wpinked-widgets' ),
224
- 'default' => 'h2',
225
- 'options' => array(
226
- 'h1' => __( 'h1', 'wpinked-widgets' ),
227
- 'h2' => __( 'h2', 'wpinked-widgets' ),
228
- 'h3' => __( 'h3', 'wpinked-widgets' ),
229
- 'h4' => __( 'h4', 'wpinked-widgets' ),
230
- 'h5' => __( 'h5', 'wpinked-widgets' ),
231
- 'h6' => __( 'h6', 'wpinked-widgets' ),
232
- ),
233
- ),
234
-
235
- 'content' => array(
236
- 'type' => 'checkbox',
237
- 'label' => __( 'Show Content ?', 'wpinked-widgets' ),
238
- 'default' => false,
239
- 'description' => __( 'If this is checked, excerpt will not be shown.', 'wpinked-widgets' ),
240
- ),
241
-
242
- 'excerpt' => array(
243
- 'type' => 'checkbox',
244
- 'label' => __( 'Show Excerpt ?', 'wpinked-widgets' ),
245
- 'default' => true
246
- ),
247
-
248
- 'e-link' => array(
249
- 'type' => 'checkbox',
250
- 'label' => __( 'Excerpt as a link ?', 'wpinked-widgets' ),
251
- 'default' => false
252
- ),
253
-
254
- 'excerpt-length' => array(
255
- 'type' => 'number',
256
- 'label' => __( 'Excerpt Length', 'wpinked-widgets' ),
257
- 'default' => '20'
258
- ),
259
-
260
- 'excerpt-after' => array(
261
- 'type' => 'text',
262
- 'label' => __( 'After Excerpt', 'wpinked-widgets' ),
263
- 'default' => '...'
264
- ),
265
-
266
- 'button' => array(
267
- 'type' => 'checkbox',
268
- 'label' => __( 'Show Read More Button ?', 'wpinked-widgets' ),
269
- 'default' => false
270
- ),
271
-
272
- 'btn-text' => array(
273
- 'type' => 'text',
274
- 'label' => __( 'Button text', 'wpinked-widgets' ),
275
- 'default' => 'Read More'
276
- ),
277
-
278
- 'byline-above' => array(
279
- 'type' => 'text',
280
- 'label' => __( 'Byline above Title', 'wpinked-widgets' ),
281
- 'default' => '',
282
- 'description' => __( 'Use %date% : The Date, %category% : List of Categories, %author% : Author name with link, %comments% : Number of Comments.', 'wpinked-widgets' ),
283
- ),
284
-
285
- 'byline-below' => array(
286
- 'type' => 'text',
287
- 'label' => __( 'Byline below Title', 'wpinked-widgets' ),
288
- 'default' => '',
289
- 'description' => __( 'Use %date% : The Date, %category% : List of Categories, %author% : Author name with link, %comments% : Number of Comments.', 'wpinked-widgets' ),
290
- ),
291
-
292
- 'byline-end' => array(
293
- 'type' => 'text',
294
- 'label' => __( 'Byline after Excerpt', 'wpinked-widgets' ),
295
- 'default' => '',
296
- 'description' => __( 'Use %date% : The Date, %category% : List of Categories, %author% : Author name with link, %comments% : Number of Comments.', 'wpinked-widgets' ),
297
- ),
298
 
299
- 'cats' => array(
300
- 'type' => 'text',
301
- 'label' => __( 'Text between Categories', 'wpinked-widgets' ),
302
- 'default' => ', '
303
- ),
 
 
 
 
 
 
 
 
 
 
 
 
 
304
 
305
- 'columns' => array(
306
- 'type' => 'slider',
307
- 'label' => __( 'Columns', 'wpinked-widgets' ),
308
- 'default' => 1,
309
- 'min' => 1,
310
- 'max' => 4,
311
- 'integer' => true
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
312
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
313
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
314
  )
315
- ),
316
-
317
- 'styling' => array(
318
- 'type' => 'section',
319
- 'label' => __( 'Styling' , 'wpinked-widgets' ),
320
- 'hide' => true,
321
- 'fields' => array(
322
-
323
- 'align' => array(
324
- 'type' => 'select',
325
- 'label' => __( 'Text Align', 'wpinked-widgets' ),
326
- 'default' => 'iw-text-left',
327
- 'options' => array(
328
- 'iw-text-left' => __( 'Left', 'wpinked-widgets' ),
329
- 'iw-text-center' => __( 'Center', 'wpinked-widgets' ),
330
- 'iw-text-right' => __( 'Right', 'wpinked-widgets' )
331
- ),
332
- 'description' => __( 'Sets alignment for title, categories, bylines and excerpt.', 'wpinked-widgets' ),
333
- ),
334
-
335
- 'img-expand' => array(
336
- 'type' => 'checkbox',
337
- 'label' => __( 'Image Expands on hover ?', 'wpinked-widgets' ),
338
- 'default' => false,
339
- 'state_handler' => array(
340
- 'blg_lyt[thumb-above]' => array( 'show' ),
341
- 'blg_lyt[thumb-left]' => array( 'show' ),
342
- 'blg_lyt[thumb-right]' => array( 'show' ),
343
- 'blg_lyt[thumb-behind]' => array( 'hide' ),
344
- 'blg_lyt[thumb-none]' => array( 'hide' ),
345
- )
346
- ),
347
-
348
- 'img-ol' => array(
349
- 'type' => 'color',
350
- 'label' => __( 'Image Overlay Color', 'wpinked-widgets' ),
351
- 'default' => '',
352
- 'state_handler' => array(
353
- 'blg_lyt[thumb-above]' => array( 'show' ),
354
- 'blg_lyt[thumb-left]' => array( 'show' ),
355
- 'blg_lyt[thumb-right]' => array( 'show' ),
356
- 'blg_lyt[thumb-behind]' => array( 'show' ),
357
- 'blg_lyt[thumb-none]' => array( 'hide' ),
358
- )
359
- ),
360
-
361
- 'img-ol-o' => array(
362
- 'type' => 'text',
363
- 'label' => __( 'Image Overlay Opacity', 'wpinked-widgets' ),
364
- 'default' => '',
365
- 'state_handler' => array(
366
- 'blg_lyt[thumb-above]' => array( 'show' ),
367
- 'blg_lyt[thumb-left]' => array( 'show' ),
368
- 'blg_lyt[thumb-right]' => array( 'show' ),
369
- 'blg_lyt[thumb-behind]' => array( 'show' ),
370
- 'blg_lyt[thumb-none]' => array( 'hide' ),
371
- ),
372
- 'description' => __( 'Choose a number between 0 and 1. 0 : Transparent, 1: Opaque', 'wpinked-widgets' ),
373
- ),
374
-
375
- 'none-left' => array(
376
- 'type' => 'measurement',
377
- 'label' => __( 'Text distance from the left', 'wpinked-widgets' ),
378
- 'default' => '60px',
379
- 'state_handler' => array(
380
- 'blg_lyt[thumb-above]' => array( 'hide' ),
381
- 'blg_lyt[thumb-left]' => array( 'hide' ),
382
- 'blg_lyt[thumb-right]' => array( 'hide' ),
383
- 'blg_lyt[thumb-behind]' => array( 'hide' ),
384
- 'blg_lyt[thumb-none]' => array( 'show' ),
385
- ),
386
- ),
387
-
388
- 'gap-bw' => array(
389
- 'type' => 'checkbox',
390
- 'label' => __( 'Gap between posts ?', 'wpinked-widgets' ),
391
- 'default' => true,
392
- 'state_handler' => array(
393
- 'blg_lyt[thumb-above]' => array( 'hide' ),
394
- 'blg_lyt[thumb-left]' => array( 'hide' ),
395
- 'blg_lyt[thumb-right]' => array( 'hide' ),
396
- 'blg_lyt[thumb-behind]' => array( 'show' ),
397
- 'blg_lyt[thumb-none]' => array( 'hide' ),
398
- )
399
- ),
400
-
401
- 'gap' => array(
402
- 'type' => 'measurement',
403
- 'label' => __( 'Gap Below Posts', 'wpinked-widgets' ),
404
- 'default' => '1em',
405
- ),
406
-
407
- 'content-bg' => array(
408
- 'type' => 'color',
409
- 'label' => __( 'Content Background Color', 'wpinked-widgets' ),
410
- 'default' => '',
411
- 'state_handler' => array(
412
- 'blg_lyt[thumb-above]' => array( 'show' ),
413
- 'blg_lyt[thumb-left]' => array( 'show' ),
414
- 'blg_lyt[thumb-right]' => array( 'show' ),
415
- 'blg_lyt[thumb-behind]' => array( 'hide' ),
416
- 'blg_lyt[thumb-none]' => array( 'show' ),
417
- )
418
- ),
419
-
420
- 'title-size' => array(
421
- 'type' => 'measurement',
422
- 'label' => __( 'Title Font Size', 'wpinked-widgets' ),
423
- 'default' => '',
424
- ),
425
-
426
- 'title-color' => array(
427
- 'type' => 'color',
428
- 'label' => __( 'Title Color', 'wpinked-widgets' ),
429
- 'default' => ''
430
- ),
431
-
432
- 'excerpt-size' => array(
433
- 'type' => 'measurement',
434
- 'label' => __( 'Excerpt Font Size', 'wpinked-widgets' ),
435
- 'default' => '',
436
- ),
437
-
438
- 'excerpt-color' => array(
439
- 'type' => 'color',
440
- 'label' => __( 'Excerpt Color', 'wpinked-widgets' ),
441
- 'default' => ''
442
- ),
443
-
444
- 'meta-size' => array(
445
- 'type' => 'measurement',
446
- 'label' => __( 'Byline Font Size', 'wpinked-widgets' ),
447
- 'default' => '',
448
- ),
449
-
450
- 'meta-color' => array(
451
- 'type' => 'color',
452
- 'label' => __( 'Byline Color', 'wpinked-widgets' ),
453
- 'default' => ''
454
- ),
455
-
456
- 'meta-link' => array(
457
- 'type' => 'color',
458
- 'label' => __( 'Byline Links Color', 'wpinked-widgets' ),
459
- 'default' => ''
460
- ),
461
-
462
- 'hl-color' => array(
463
- 'type' => 'color',
464
- 'label' => __( 'Byline Link Highlight Color', 'wpinked-widgets' ),
465
- 'default' => ''
466
- ),
467
-
468
- 'meta-link-bold' => array(
469
- 'type' => 'checkbox',
470
- 'label' => __( 'Make links in Byline bold ?', 'wpinked-widgets' ),
471
- 'default' => false
472
- ),
473
-
474
- 'btn-theme' => array(
475
- 'type' => 'select',
476
- 'label' => __( 'Button Theme', 'wpinked-widgets' ),
477
- 'default' => 'classic',
478
- 'options' => array(
479
- 'classic' => __( 'Classic', 'wpinked-widgets' ),
480
- 'flat' => __( 'Flat', 'wpinked-widgets' ),
481
- 'outline' => __( 'Outline', 'wpinked-widgets' ),
482
- 'threed' => __( '3D', 'wpinked-widgets' ),
483
- 'shadow' => __( 'Shadow', 'wpinked-widgets' ),
484
- 'deline' => __( 'Deline', 'wpinked-widgets' ),
485
- ),
486
- ),
487
-
488
- 'btn-align' => array(
489
- 'type' => 'select',
490
- 'label' => __( 'Button Alignment', 'wpinked-widgets' ),
491
- 'default' => 'center',
492
- 'options' => array(
493
- 'left' => __( 'Left', 'wpinked-widgets' ),
494
- 'right' => __( 'Right', 'wpinked-widgets' ),
495
- 'center' => __( 'Center', 'wpinked-widgets' ),
496
- ),
497
- ),
498
-
499
- 'btn-size' => array(
500
- 'type' => 'select',
501
- 'label' => __( 'Button Size', 'wpinked-widgets' ),
502
- 'default' => 'standard',
503
- 'options' => array(
504
- 'tiny' => __( 'Tiny', 'wpinked-widgets' ),
505
- 'small' => __( 'Small', 'wpinked-widgets' ),
506
- 'standard' => __( 'Standard', 'wpinked-widgets' ),
507
- 'large' => __( 'Large', 'wpinked-widgets' ),
508
- ),
509
- ),
510
-
511
- 'btn-clr' => array(
512
- 'type' => 'color',
513
- 'label' => __( 'Button Highlight Color', 'wpinked-widgets' ),
514
- 'description' => __( 'Typically used as button background.', 'wpinked-widgets' ),
515
- ),
516
-
517
- 'btn-base' => array(
518
- 'type' => 'color',
519
- 'label' => __( 'Button Base Color', 'wpinked-widgets' ),
520
- 'description' => __( 'Typically used as text color.', 'wpinked-widgets' ),
521
- ),
522
-
523
- 'btn-hover' => array(
524
- 'type' => 'checkbox',
525
- 'default' => true,
526
- 'label' => __( 'Use button hover effect ?', 'wpinked-widgets' ),
527
- ),
528
-
529
- 'btn-click' => array(
530
- 'type' => 'checkbox',
531
- 'default' => true,
532
- 'label' => __( 'Use button click effect ?', 'wpinked-widgets' ),
533
- ),
534
-
535
- 'btn-corners' => array(
536
- 'type' => 'select',
537
- 'label' => __( 'Button Corners', 'wpinked-widgets' ),
538
- 'default' => '0.25em',
539
- 'options' => array(
540
- '0em' => __( 'Sharp', 'wpinked-widgets' ),
541
- '0.25em' => __( 'Slightly curved', 'wpinked-widgets' ),
542
- '0.75em' => __( 'Highly curved', 'wpinked-widgets' ),
543
- '1.5em' => __( 'Round', 'wpinked-widgets' ),
544
- ),
545
- ),
546
-
547
- )
548
- ),
549
-
550
- 'pagination' => array(
551
- 'type' => 'section',
552
- 'label' => __( 'Navigation' , 'wpinked-widgets' ),
553
- 'hide' => true,
554
- 'fields' => array(
555
-
556
- 'activate' => array(
557
- 'type' => 'checkbox',
558
- 'label' => __( 'Use navigation?', 'wpinked-widgets' ),
559
- 'default' => false
560
- ),
561
 
562
- 'type' => array(
563
- 'type' => 'select',
564
- 'label' => __( 'Type', 'wpinked-widgets' ),
565
- 'default' => 'normal',
566
- 'options' => array(
567
- 'normal' => __( 'Normal', 'wpinked-widgets' ),
568
- 'ajax' => __( 'Ajax', 'wpinked-widgets' )
569
- ),
570
- 'description' => __( 'Ajax is an experimental feature and a WIP. It should work as expected in most cases', 'wpinked-widgets' ),
571
- ),
572
-
573
- 'id' => array(
574
- 'label' => __( 'ID', 'wpinked-widgets' ),
575
- 'type' => 'text',
576
- 'description' => __( 'Needed only if Ajax is used. Should be unique on the page. Must begin with alphabets[A-Za-z]. Should not contain spaces.', 'wpinked-widgets' ),
577
- 'default' => 'my-ajax-blog-widget',
578
- ),
579
-
580
- 'links' => array(
581
- 'type' => 'select',
582
- 'label' => __( 'Links', 'wpinked-widgets' ),
583
- 'default' => 'next-prev',
584
- 'options' => array(
585
- 'next-prev' => __( 'Next/Previous', 'wpinked-widgets' ),
586
- 'paginate' => __( 'Pagination', 'wpinked-widgets' )
587
- ),
588
- 'state_emitter' => array(
589
- 'callback' => 'select',
590
- 'args' => array( 'nav_type' )
591
- )
592
- ),
593
-
594
- 'older-text' => array(
595
- 'type' => 'text',
596
- 'label' => __( 'Older Posts Text', 'wpinked-widgets' ),
597
- 'default' => 'Older Posts',
598
- ),
599
-
600
- 'older-icon' => array(
601
- 'type' => 'icon',
602
- 'label' => __( 'Older Posts Icon', 'wpinked-widgets' ),
603
- 'description' => __( 'This will appear after the text', 'wpinked-widgets' ),
604
- ),
605
-
606
- 'newer-text' => array(
607
- 'type' => 'text',
608
- 'label' => __( 'Newer Posts Text', 'wpinked-widgets' ),
609
- 'default' => 'Newer Posts',
610
- ),
611
-
612
- 'newer-icon' => array(
613
- 'type' => 'icon',
614
- 'label' => __( 'Newer Posts Icon', 'wpinked-widgets' ),
615
- 'description' => __( 'This will appear before the text', 'wpinked-widgets' ),
616
- ),
617
-
618
- 'btn-theme' => array(
619
- 'type' => 'select',
620
- 'label' => __( 'Navigation Theme', 'wpinked-widgets' ),
621
- 'default' => 'classic',
622
- 'options' => array(
623
- 'classic' => __( 'Classic', 'wpinked-widgets' ),
624
- 'flat' => __( 'Flat', 'wpinked-widgets' ),
625
- 'outline' => __( 'Outline', 'wpinked-widgets' ),
626
- 'threed' => __( '3D', 'wpinked-widgets' ),
627
- 'shadow' => __( 'Shadow', 'wpinked-widgets' ),
628
- 'deline' => __( 'Deline', 'wpinked-widgets' ),
629
- ),
630
- ),
631
-
632
- 'btn-align' => array(
633
- 'type' => 'select',
634
- 'label' => __( 'Navigation Alignment', 'wpinked-widgets' ),
635
- 'default' => 'ends',
636
- 'options' => array(
637
- 'left' => __( 'Left', 'wpinked-widgets' ),
638
- 'right' => __( 'Right', 'wpinked-widgets' ),
639
- 'center' => __( 'Center', 'wpinked-widgets' ),
640
- 'ends' => __( 'Ends', 'wpinked-widgets' ),
641
- ),
642
- 'state_handler' => array(
643
- 'nav_type[next-prev]' => array( 'show' ),
644
- 'nav_type[paginate]' => array( 'hide' ),
645
- )
646
- ),
647
-
648
- 'btn-align-pages' => array(
649
- 'type' => 'select',
650
- 'label' => __( 'Navigation Alignment', 'wpinked-widgets' ),
651
- 'default' => 'center',
652
- 'options' => array(
653
- 'left' => __( 'Left', 'wpinked-widgets' ),
654
- 'right' => __( 'Right', 'wpinked-widgets' ),
655
- 'center' => __( 'Center', 'wpinked-widgets' ),
656
- ),
657
- 'state_handler' => array(
658
- 'nav_type[next-prev]' => array( 'hide' ),
659
- 'nav_type[paginate]' => array( 'show' ),
660
- )
661
- ),
662
-
663
- 'btn-size' => array(
664
- 'type' => 'select',
665
- 'label' => __( 'Button Size', 'wpinked-widgets' ),
666
- 'default' => 'standard',
667
- 'options' => array(
668
- 'tiny' => __( 'Tiny', 'wpinked-widgets' ),
669
- 'small' => __( 'Small', 'wpinked-widgets' ),
670
- 'standard' => __( 'Standard', 'wpinked-widgets' ),
671
- 'large' => __( 'Large', 'wpinked-widgets' ),
672
- ),
673
- ),
674
-
675
- 'btn-clr' => array(
676
- 'type' => 'color',
677
- 'label' => __( 'Button Highlight Color', 'wpinked-widgets' ),
678
- 'description' => __( 'Typically used as button background.', 'wpinked-widgets' ),
679
- ),
680
-
681
- 'btn-base' => array(
682
- 'type' => 'color',
683
- 'label' => __( 'Button Base Color', 'wpinked-widgets' ),
684
- 'description' => __( 'Typically used as text color.', 'wpinked-widgets' ),
685
- ),
686
-
687
- 'btn-hover' => array(
688
- 'type' => 'checkbox',
689
- 'default' => true,
690
- 'label' => __( 'Use button hover effect ?', 'wpinked-widgets' ),
691
- ),
692
-
693
- 'btn-click' => array(
694
- 'type' => 'checkbox',
695
- 'default' => true,
696
- 'label' => __( 'Use button click effect ?', 'wpinked-widgets' ),
697
- ),
698
 
699
- 'btn-corners' => array(
700
- 'type' => 'select',
701
- 'label' => __( 'Button Corners', 'wpinked-widgets' ),
702
- 'default' => '0.25em',
703
- 'options' => array(
704
- '0em' => __( 'Sharp', 'wpinked-widgets' ),
705
- '0.25em' => __( 'Slightly curved', 'wpinked-widgets' ),
706
- '0.75em' => __( 'Highly curved', 'wpinked-widgets' ),
707
- '1.5em' => __( 'Round', 'wpinked-widgets' ),
708
- ),
709
- ),
710
- )
711
- ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
712
  ),
713
 
714
- //The $base_folder path string.
715
- plugin_dir_path(__FILE__)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
716
  );
717
  }
718
 
@@ -756,7 +775,7 @@ class Inked_Blog_SO_Widget extends SiteOrigin_Widget {
756
  function get_less_variables($instance) {
757
  if( empty( $instance ) ) return array();
758
 
759
- return array(
760
  'design' => $instance['design']['layout'],
761
  'columns' => $instance['design']['columns'],
762
  'format' => $instance['design']['format'],
@@ -793,6 +812,50 @@ class Inked_Blog_SO_Widget extends SiteOrigin_Widget {
793
  'navi-base' => $instance['pagination']['btn-base'],
794
  'navi-crnr' => $instance['pagination']['btn-corners'],
795
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
796
  }
797
 
798
  }
12
  function __construct() {
13
 
14
  parent::__construct(
 
15
  'ink-blog',
 
16
  __( 'Inked Blog', 'wpinked-widgets' ),
 
17
  array(
18
  'description' => __( 'A widget to display Blog posts.', 'wpinked-widgets' ),
19
  'help' => 'http://widgets-docs.wpinked.com/article/13-blog-widget'
20
  ),
 
21
  array(
22
  ),
23
+ false,
24
+ plugin_dir_path(__FILE__)
25
+ );
26
+ }
27
 
28
+ function get_widget_form() {
29
+ return array(
30
+ 'title' => array(
31
+ 'type' => 'text',
32
+ 'label' => __( 'Title', 'wpinked-widgets' ),
33
+ 'default' => ''
34
+ ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
 
36
+ 'loop' => array(
37
+ 'type' => 'section',
38
+ 'label' => __( 'Blog Post Loop' , 'wpinked-widgets' ),
39
+ 'hide' => true,
40
+ 'fields' => array(
41
+
42
+ 'posts' => array(
43
+ 'type' => 'posts',
44
+ 'label' => __( 'Select Posts', 'wpinked-widgets' ),
45
+ ),
46
+
47
+ 'current' => array(
48
+ 'type' => 'checkbox',
49
+ 'label' => __( 'Exclude current post from query ?', 'wpinked-widgets' ),
50
+ 'default' => false,
51
+ ),
52
+ )
53
+ ),
54
 
55
+ 'icons' => array(
56
+ 'type' => 'section',
57
+ 'label' => __( 'Post Format Icons' , 'wpinked-widgets' ),
58
+ 'hide' => true,
59
+ 'fields' => array(
60
+
61
+ 'standard' => array(
62
+ 'type' => 'icon',
63
+ 'label' => __( 'Standard Icon', 'wpinked-widgets' ),
64
+ ),
65
+
66
+ 'aside' => array(
67
+ 'type' => 'icon',
68
+ 'label' => __( 'Aside Icon', 'wpinked-widgets' ),
69
+ ),
70
+
71
+ 'gallery' => array(
72
+ 'type' => 'icon',
73
+ 'label' => __( 'Gallery Icon', 'wpinked-widgets' ),
74
+ ),
75
+
76
+ 'link' => array(
77
+ 'type' => 'icon',
78
+ 'label' => __( 'Link Icon', 'wpinked-widgets' ),
79
+ ),
80
+
81
+ 'image' => array(
82
+ 'type' => 'icon',
83
+ 'label' => __( 'Image Icon', 'wpinked-widgets' ),
84
+ ),
85
+
86
+ 'quote' => array(
87
+ 'type' => 'icon',
88
+ 'label' => __( 'Quote Icon', 'wpinked-widgets' ),
89
+ ),
90
+ 'status' => array(
91
+ 'type' => 'icon',
92
+ 'label' => __( 'Status Icon', 'wpinked-widgets' ),
93
+ ),
94
+ 'video' => array(
95
+ 'type' => 'icon',
96
+ 'label' => __( 'Video Icon', 'wpinked-widgets' ),
97
+ ),
98
+ 'audio' => array(
99
+ 'type' => 'icon',
100
+ 'label' => __( 'Audio Icon', 'wpinked-widgets' ),
101
+ ),
102
+ 'chat' => array(
103
+ 'type' => 'icon',
104
+ 'label' => __( 'Chat Icon', 'wpinked-widgets' ),
105
+ ),
106
+
107
+ 'color' => array(
108
+ 'type' => 'color',
109
+ 'label' => __( 'Icon Color', 'wpinked-widgets' ),
110
+ 'default' => ''
111
+ ),
112
+
113
+ 'size' => array(
114
+ 'type' => 'measurement',
115
+ 'label' => __( 'Icon Size', 'wpinked-widgets' ),
116
+ 'default' => '',
117
+ ),
118
+
119
+ 'bg' => array(
120
+ 'type' => 'color',
121
+ 'label' => __( 'Background Color', 'wpinked-widgets' ),
122
+ 'default' => ''
123
+ ),
124
+
125
+ 'bg-shape' => array(
126
+ 'type' => 'select',
127
+ 'label' => __( 'Background Corners', 'wpinked-widgets' ),
128
+ 'default' => '0',
129
+ 'options' => array(
130
+ '0' => __( 'Sharp', 'wpinked-widgets' ),
131
+ '5%' => __( 'Curved', 'wpinked-widgets' ),
132
+ '50%' => __( 'Round', 'wpinked-widgets' )
133
  )
134
+ ),
135
+
136
+ 'show' => array(
137
+ 'type' => 'select',
138
+ 'label' => __( 'Show Icon', 'wpinked-widgets' ),
139
+ 'default' => 'default',
140
+ 'options' => array(
141
+ 'default' => __( 'Always', 'wpinked-widgets' ),
142
+ 'hover' => __( 'On Hover', 'wpinked-widgets' )
143
+ )
144
+ ),
145
+ )
146
+ ),
147
 
148
+ 'design' => array(
149
+ 'type' => 'section',
150
+ 'label' => __( 'Design' , 'wpinked-widgets' ),
151
+ 'hide' => true,
152
+ 'fields' => array(
153
+
154
+ 'layout' => array(
155
+ 'type' => 'select',
156
+ 'label' => __( 'Layout', 'wpinked-widgets' ),
157
+ 'default' => 'thumb-above',
158
+ 'options' => array(
159
+ 'thumb-above' => __( 'Image above the content', 'wpinked-widgets' ),
160
+ 'thumb-left' => __( 'Image to the left of content', 'wpinked-widgets' ),
161
+ 'thumb-right' => __( 'Image to the right of content', 'wpinked-widgets' ),
162
+ 'thumb-behind' => __( 'Image as content background', 'wpinked-widgets' ),
163
+ 'thumb-none' => __( 'No Image', 'wpinked-widgets' )
164
+ ),
165
+ 'state_emitter' => array(
166
+ 'callback' => 'select',
167
+ 'args' => array( 'blg_lyt' )
168
+ )
169
+ ),
170
+
171
+ 'img-size' => array(
172
+ 'type' => 'image-size',
173
+ 'label' => __( 'Image Size', 'wpinked-widgets' ),
174
+ 'state_handler' => array(
175
+ 'blg_lyt[thumb-above]' => array( 'show' ),
176
+ 'blg_lyt[thumb-left]' => array( 'show' ),
177
+ 'blg_lyt[thumb-right]' => array( 'show' ),
178
+ 'blg_lyt[thumb-behind]' => array( 'show' ),
179
+ 'blg_lyt[thumb-none]' => array( 'hide' ),
180
+ ),
181
+ 'description' => __( 'You can change the default size widths by going to <b>Settings</b> &rarr; <b>Media</b>.', 'wpinked-widgets' ),
182
+ ),
183
+
184
+ 'img-width' => array(
185
+ 'type' => 'checkbox',
186
+ 'label' => __( 'Set image width to 100%?', 'wpinked-widgets' ),
187
+ 'default' => true,
188
+ 'state_handler' => array(
189
+ 'blg_lyt[thumb-above]' => array( 'show' ),
190
+ 'blg_lyt[thumb-left]' => array( 'show' ),
191
+ 'blg_lyt[thumb-right]' => array( 'show' ),
192
+ 'blg_lyt[thumb-behind]' => array( 'hide' ),
193
+ 'blg_lyt[thumb-none]' => array( 'hide' ),
194
+ )
195
+ ),
196
+
197
+ 'responsive' => array(
198
+ 'type' => 'checkbox',
199
+ 'label' => __( 'Make Image fullwidth for small screens ?', 'wpinked-widgets' ),
200
+ 'default' => true,
201
+ 'state_handler' => array(
202
+ 'blg_lyt[thumb-above]' => array( 'hide' ),
203
+ 'blg_lyt[thumb-left]' => array( 'show' ),
204
+ 'blg_lyt[thumb-right]' => array( 'show' ),
205
+ 'blg_lyt[thumb-behind]' => array( 'hide' ),
206
+ 'blg_lyt[thumb-none]' => array( 'hide' ),
207
+ )
208
+ ),
209
+
210
+ 'format' => array(
211
+ 'type' => 'checkbox',
212
+ 'label' => __( 'Show Format Icon ?', 'wpinked-widgets' ),
213
+ 'default' => true
214
+ ),
215
+
216
+ 'equalizer' => array(
217
+ 'type' => 'checkbox',
218
+ 'label' => __( 'Make all blog posts the same height?', 'wpinked-widgets' ),
219
+ 'default' => true
220
+ ),
221
+
222
+ 'title-tag' => array(
223
+ 'type' => 'select',
224
+ 'label' => __( 'Title Tag', 'wpinked-widgets' ),
225
+ 'default' => 'h2',
226
+ 'options' => array(
227
+ 'h1' => __( 'h1', 'wpinked-widgets' ),
228
+ 'h2' => __( 'h2', 'wpinked-widgets' ),
229
+ 'h3' => __( 'h3', 'wpinked-widgets' ),
230
+ 'h4' => __( 'h4', 'wpinked-widgets' ),
231
+ 'h5' => __( 'h5', 'wpinked-widgets' ),
232
+ 'h6' => __( 'h6', 'wpinked-widgets' ),
233
+ ),
234
+ ),
235
+
236
+ 'content' => array(
237
+ 'type' => 'checkbox',
238
+ 'label' => __( 'Show Content ?', 'wpinked-widgets' ),
239
+ 'default' => false,
240
+ 'description' => __( 'If this is checked, excerpt will not be shown.', 'wpinked-widgets' ),
241
+ ),
242
+
243
+ 'excerpt' => array(
244
+ 'type' => 'checkbox',
245
+ 'label' => __( 'Show Excerpt ?', 'wpinked-widgets' ),
246
+ 'default' => true
247
+ ),
248
+
249
+ 'e-link' => array(
250
+ 'type' => 'checkbox',
251
+ 'label' => __( 'Excerpt as a link ?', 'wpinked-widgets' ),
252
+ 'default' => false
253
+ ),
254
+
255
+ 'excerpt-length' => array(
256
+ 'type' => 'number',
257
+ 'label' => __( 'Excerpt Length', 'wpinked-widgets' ),
258
+ 'default' => '20'
259
+ ),
260
+
261
+ 'excerpt-after' => array(
262
+ 'type' => 'text',
263
+ 'label' => __( 'After Excerpt', 'wpinked-widgets' ),
264
+ 'default' => '...'
265
+ ),
266
+
267
+ 'button' => array(
268
+ 'type' => 'checkbox',
269
+ 'label' => __( 'Show Read More Button ?', 'wpinked-widgets' ),
270
+ 'default' => false
271
+ ),
272
+
273
+ 'btn-text' => array(
274
+ 'type' => 'text',
275
+ 'label' => __( 'Button text', 'wpinked-widgets' ),
276
+ 'default' => 'Read More'
277
+ ),
278
+
279
+ 'byline-above' => array(
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(
301
+ 'type' => 'text',
302
+ 'label' => __( 'Text between Categories', 'wpinked-widgets' ),
303
+ 'default' => ', '
304
+ ),
305
+
306
+ 'date' => array(
307
+ 'type' => 'text',
308
+ 'label' => __( 'Date Format', 'wpinked-widgets' ),
309
+ 'description' => __( 'Help to <a href="https://codex.wordpress.org/Formatting_Date_and_Time" target="_blank">format date</a>', 'wpinked-widgets-pro' ),
310
+ 'placeholder' => 'F j, Y'
311
+ ),
312
+
313
+ 'columns' => array(
314
+ 'type' => 'slider',
315
+ 'label' => __( 'Columns', 'wpinked-widgets' ),
316
+ 'default' => 1,
317
+ 'min' => 1,
318
+ 'max' => 4,
319
+ 'integer' => true
320
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
321
 
322
+ )
323
+ ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
324
 
325
+ 'styling' => array(
326
+ 'type' => 'section',
327
+ 'label' => __( 'Styling' , 'wpinked-widgets' ),
328
+ 'hide' => true,
329
+ 'fields' => array(
330
+
331
+ 'align' => array(
332
+ 'type' => 'select',
333
+ 'label' => __( 'Text Align', 'wpinked-widgets' ),
334
+ 'default' => 'iw-text-left',
335
+ 'options' => array(
336
+ 'iw-text-left' => __( 'Left', 'wpinked-widgets' ),
337
+ 'iw-text-center' => __( 'Center', 'wpinked-widgets' ),
338
+ 'iw-text-right' => __( 'Right', 'wpinked-widgets' )
339
+ ),
340
+ 'description' => __( 'Sets alignment for title, categories, bylines and excerpt.', 'wpinked-widgets' ),
341
+ ),
342
+
343
+ 'img-expand' => array(
344
+ 'type' => 'checkbox',
345
+ 'label' => __( 'Image Expands on hover ?', 'wpinked-widgets' ),
346
+ 'default' => false,
347
+ 'state_handler' => array(
348
+ 'blg_lyt[thumb-above]' => array( 'show' ),
349
+ 'blg_lyt[thumb-left]' => array( 'show' ),
350
+ 'blg_lyt[thumb-right]' => array( 'show' ),
351
+ 'blg_lyt[thumb-behind]' => array( 'hide' ),
352
+ 'blg_lyt[thumb-none]' => array( 'hide' ),
353
+ )
354
+ ),
355
+
356
+ 'img-ol' => array(
357
+ 'type' => 'color',
358
+ 'label' => __( 'Image Overlay Color', 'wpinked-widgets' ),
359
+ 'default' => '',
360
+ 'state_handler' => array(
361
+ 'blg_lyt[thumb-above]' => array( 'show' ),
362
+ 'blg_lyt[thumb-left]' => array( 'show' ),
363
+ 'blg_lyt[thumb-right]' => array( 'show' ),
364
+ 'blg_lyt[thumb-behind]' => array( 'show' ),
365
+ 'blg_lyt[thumb-none]' => array( 'hide' ),
366
+ )
367
+ ),
368
+
369
+ 'img-ol-o' => array(
370
+ 'type' => 'text',
371
+ 'label' => __( 'Image Overlay Opacity', 'wpinked-widgets' ),
372
+ 'default' => '',
373
+ 'state_handler' => array(
374
+ 'blg_lyt[thumb-above]' => array( 'show' ),
375
+ 'blg_lyt[thumb-left]' => array( 'show' ),
376
+ 'blg_lyt[thumb-right]' => array( 'show' ),
377
+ 'blg_lyt[thumb-behind]' => array( 'show' ),
378
+ 'blg_lyt[thumb-none]' => array( 'hide' ),
379
+ ),
380
+ 'description' => __( 'Choose a number between 0 and 1. 0 : Transparent, 1: Opaque', 'wpinked-widgets' ),
381
+ ),
382
+
383
+ 'none-left' => array(
384
+ 'type' => 'measurement',
385
+ 'label' => __( 'Text distance from the left', 'wpinked-widgets' ),
386
+ 'default' => '60px',
387
+ 'state_handler' => array(
388
+ 'blg_lyt[thumb-above]' => array( 'hide' ),
389
+ 'blg_lyt[thumb-left]' => array( 'hide' ),
390
+ 'blg_lyt[thumb-right]' => array( 'hide' ),
391
+ 'blg_lyt[thumb-behind]' => array( 'hide' ),
392
+ 'blg_lyt[thumb-none]' => array( 'show' ),
393
+ ),
394
+ ),
395
+
396
+ 'gap-bw' => array(
397
+ 'type' => 'checkbox',
398
+ 'label' => __( 'Gap between posts ?', 'wpinked-widgets' ),
399
+ 'default' => true,
400
+ 'state_handler' => array(
401
+ 'blg_lyt[thumb-above]' => array( 'hide' ),
402
+ 'blg_lyt[thumb-left]' => array( 'hide' ),
403
+ 'blg_lyt[thumb-right]' => array( 'hide' ),
404
+ 'blg_lyt[thumb-behind]' => array( 'show' ),
405
+ 'blg_lyt[thumb-none]' => array( 'hide' ),
406
+ )
407
+ ),
408
+
409
+ 'gap' => array(
410
+ 'type' => 'measurement',
411
+ 'label' => __( 'Gap Below Posts', 'wpinked-widgets' ),
412
+ 'default' => '1em',
413
+ ),
414
+
415
+ 'content-bg' => array(
416
+ 'type' => 'color',
417
+ 'label' => __( 'Content Background Color', 'wpinked-widgets' ),
418
+ 'default' => '',
419
+ 'state_handler' => array(
420
+ 'blg_lyt[thumb-above]' => array( 'show' ),
421
+ 'blg_lyt[thumb-left]' => array( 'show' ),
422
+ 'blg_lyt[thumb-right]' => array( 'show' ),
423
+ 'blg_lyt[thumb-behind]' => array( 'hide' ),
424
+ 'blg_lyt[thumb-none]' => array( 'show' ),
425
+ )
426
+ ),
427
+
428
+ 'title-size' => array(
429
+ 'type' => 'measurement',
430
+ 'label' => __( 'Title Font Size', 'wpinked-widgets' ),
431
+ 'default' => '',
432
+ ),
433
+
434
+ 'title-color' => array(
435
+ 'type' => 'color',
436
+ 'label' => __( 'Title Color', 'wpinked-widgets' ),
437
+ 'default' => ''
438
+ ),
439
+
440
+ 'title-font' => array(
441
+ 'type' => 'premium',
442
+ 'label' => __( 'Title Font', 'wpinked-widgets' ),
443
+ ),
444
+
445
+ 'excerpt-size' => array(
446
+ 'type' => 'measurement',
447
+ 'label' => __( 'Excerpt Font Size', 'wpinked-widgets' ),
448
+ 'default' => '',
449
+ ),
450
+
451
+ 'excerpt-color' => array(
452
+ 'type' => 'color',
453
+ 'label' => __( 'Excerpt Color', 'wpinked-widgets' ),
454
+ 'default' => ''
455
+ ),
456
+
457
+ 'meta-size' => array(
458
+ 'type' => 'measurement',
459
+ 'label' => __( 'Byline Font Size', 'wpinked-widgets' ),
460
+ 'default' => '',
461
+ ),
462
+
463
+ 'meta-color' => array(
464
+ 'type' => 'color',
465
+ 'label' => __( 'Byline Color', 'wpinked-widgets' ),
466
+ 'default' => ''
467
+ ),
468
+
469
+ 'meta-font' => array(
470
+ 'type' => 'premium',
471
+ 'label' => __( 'Byline Font', 'wpinked-widgets' ),
472
+ ),
473
+
474
+ 'meta-link' => array(
475
+ 'type' => 'color',
476
+ 'label' => __( 'Byline Links Color', 'wpinked-widgets' ),
477
+ 'default' => ''
478
+ ),
479
+
480
+ 'hl-color' => array(
481
+ 'type' => 'color',
482
+ 'label' => __( 'Byline Link Highlight Color', 'wpinked-widgets' ),
483
+ 'default' => ''
484
+ ),
485
+
486
+ 'meta-link-bold' => array(
487
+ 'type' => 'checkbox',
488
+ 'label' => __( 'Make links in Byline bold ?', 'wpinked-widgets' ),
489
+ 'default' => false
490
+ ),
491
+
492
+ 'btn-theme' => array(
493
+ 'type' => 'select',
494
+ 'label' => __( 'Button Theme', 'wpinked-widgets' ),
495
+ 'default' => 'classic',
496
+ 'options' => array(
497
+ 'classic' => __( 'Classic', 'wpinked-widgets' ),
498
+ 'flat' => __( 'Flat', 'wpinked-widgets' ),
499
+ 'outline' => __( 'Outline', 'wpinked-widgets' ),
500
+ 'threed' => __( '3D', 'wpinked-widgets' ),
501
+ 'shadow' => __( 'Shadow', 'wpinked-widgets' ),
502
+ 'deline' => __( 'Deline', 'wpinked-widgets' ),
503
+ ),
504
+ ),
505
+
506
+ 'btn-align' => array(
507
+ 'type' => 'select',
508
+ 'label' => __( 'Button Alignment', 'wpinked-widgets' ),
509
+ 'default' => 'center',
510
+ 'options' => array(
511
+ 'left' => __( 'Left', 'wpinked-widgets' ),
512
+ 'right' => __( 'Right', 'wpinked-widgets' ),
513
+ 'center' => __( 'Center', 'wpinked-widgets' ),
514
+ ),
515
+ ),
516
+
517
+ 'btn-size' => array(
518
+ 'type' => 'select',
519
+ 'label' => __( 'Button Size', 'wpinked-widgets' ),
520
+ 'default' => 'standard',
521
+ 'options' => array(
522
+ 'tiny' => __( 'Tiny', 'wpinked-widgets' ),
523
+ 'small' => __( 'Small', 'wpinked-widgets' ),
524
+ 'standard' => __( 'Standard', 'wpinked-widgets' ),
525
+ 'large' => __( 'Large', 'wpinked-widgets' ),
526
+ ),
527
+ ),
528
+
529
+ 'btn-clr' => array(
530
+ 'type' => 'color',
531
+ 'label' => __( 'Button Highlight Color', 'wpinked-widgets' ),
532
+ 'description' => __( 'Typically used as button background.', 'wpinked-widgets' ),
533
+ ),
534
+
535
+ 'btn-base' => array(
536
+ 'type' => 'color',
537
+ 'label' => __( 'Button Base Color', 'wpinked-widgets' ),
538
+ 'description' => __( 'Typically used as text color.', 'wpinked-widgets' ),
539
+ ),
540
+
541
+ 'btn-hover' => array(
542
+ 'type' => 'checkbox',
543
+ 'default' => true,
544
+ 'label' => __( 'Use button hover effect ?', 'wpinked-widgets' ),
545
+ ),
546
+
547
+ 'btn-font' => array(
548
+ 'type' => 'premium',
549
+ 'label' => __( 'Button Font', 'wpinked-widgets' ),
550
+ ),
551
+
552
+ 'btn-click' => array(
553
+ 'type' => 'checkbox',
554
+ 'default' => true,
555
+ 'label' => __( 'Use button click effect ?', 'wpinked-widgets' ),
556
+ ),
557
+
558
+ 'btn-corners' => array(
559
+ 'type' => 'select',
560
+ 'label' => __( 'Button Corners', 'wpinked-widgets' ),
561
+ 'default' => '0.25em',
562
+ 'options' => array(
563
+ '0em' => __( 'Sharp', 'wpinked-widgets' ),
564
+ '0.25em' => __( 'Slightly curved', 'wpinked-widgets' ),
565
+ '0.75em' => __( 'Highly curved', 'wpinked-widgets' ),
566
+ '1.5em' => __( 'Round', 'wpinked-widgets' ),
567
+ ),
568
+ ),
569
+
570
+ )
571
  ),
572
 
573
+ 'pagination' => array(
574
+ 'type' => 'section',
575
+ 'label' => __( 'Navigation' , 'wpinked-widgets' ),
576
+ 'hide' => true,
577
+ 'fields' => array(
578
+
579
+ 'activate' => array(
580
+ 'type' => 'checkbox',
581
+ 'label' => __( 'Use navigation?', 'wpinked-widgets' ),
582
+ 'default' => false
583
+ ),
584
+
585
+ 'type' => array(
586
+ 'type' => 'select',
587
+ 'label' => __( 'Type', 'wpinked-widgets' ),
588
+ 'default' => 'normal',
589
+ 'options' => array(
590
+ 'normal' => __( 'Normal', 'wpinked-widgets' ),
591
+ 'ajax' => __( 'Ajax', 'wpinked-widgets' )
592
+ ),
593
+ 'description' => __( 'Ajax is an experimental feature and a WIP. It should work as expected in most cases', 'wpinked-widgets' ),
594
+ ),
595
+
596
+ 'id' => array(
597
+ 'label' => __( 'ID', 'wpinked-widgets' ),
598
+ 'type' => 'text',
599
+ 'description' => __( 'Needed only if Ajax is used. Should be unique on the page. Must begin with alphabets[A-Za-z]. Should not contain spaces.', 'wpinked-widgets' ),
600
+ 'default' => 'my-ajax-blog-widget',
601
+ ),
602
+
603
+ 'links' => array(
604
+ 'type' => 'select',
605
+ 'label' => __( 'Links', 'wpinked-widgets' ),
606
+ 'default' => 'next-prev',
607
+ 'options' => array(
608
+ 'next-prev' => __( 'Next/Previous', 'wpinked-widgets' ),
609
+ 'paginate' => __( 'Pagination', 'wpinked-widgets' )
610
+ ),
611
+ 'state_emitter' => array(
612
+ 'callback' => 'select',
613
+ 'args' => array( 'nav_type' )
614
+ )
615
+ ),
616
+
617
+ 'older-text' => array(
618
+ 'type' => 'text',
619
+ 'label' => __( 'Older Posts Text', 'wpinked-widgets' ),
620
+ 'default' => 'Older Posts',
621
+ ),
622
+
623
+ 'older-icon' => array(
624
+ 'type' => 'icon',
625
+ 'label' => __( 'Older Posts Icon', 'wpinked-widgets' ),
626
+ 'description' => __( 'This will appear after the text', 'wpinked-widgets' ),
627
+ ),
628
+
629
+ 'newer-text' => array(
630
+ 'type' => 'text',
631
+ 'label' => __( 'Newer Posts Text', 'wpinked-widgets' ),
632
+ 'default' => 'Newer Posts',
633
+ ),
634
+
635
+ 'newer-icon' => array(
636
+ 'type' => 'icon',
637
+ 'label' => __( 'Newer Posts Icon', 'wpinked-widgets' ),
638
+ 'description' => __( 'This will appear before the text', 'wpinked-widgets' ),
639
+ ),
640
+
641
+ 'btn-theme' => array(
642
+ 'type' => 'select',
643
+ 'label' => __( 'Navigation Theme', 'wpinked-widgets' ),
644
+ 'default' => 'classic',
645
+ 'options' => array(
646
+ 'classic' => __( 'Classic', 'wpinked-widgets' ),
647
+ 'flat' => __( 'Flat', 'wpinked-widgets' ),
648
+ 'outline' => __( 'Outline', 'wpinked-widgets' ),
649
+ 'threed' => __( '3D', 'wpinked-widgets' ),
650
+ 'shadow' => __( 'Shadow', 'wpinked-widgets' ),
651
+ 'deline' => __( 'Deline', 'wpinked-widgets' ),
652
+ ),
653
+ ),
654
+
655
+ 'btn-align' => array(
656
+ 'type' => 'select',
657
+ 'label' => __( 'Navigation Alignment', 'wpinked-widgets' ),
658
+ 'default' => 'ends',
659
+ 'options' => array(
660
+ 'left' => __( 'Left', 'wpinked-widgets' ),
661
+ 'right' => __( 'Right', 'wpinked-widgets' ),
662
+ 'center' => __( 'Center', 'wpinked-widgets' ),
663
+ 'ends' => __( 'Ends', 'wpinked-widgets' ),
664
+ ),
665
+ 'state_handler' => array(
666
+ 'nav_type[next-prev]' => array( 'show' ),
667
+ 'nav_type[paginate]' => array( 'hide' ),
668
+ )
669
+ ),
670
+
671
+ 'btn-align-pages' => array(
672
+ 'type' => 'select',
673
+ 'label' => __( 'Navigation Alignment', 'wpinked-widgets' ),
674
+ 'default' => 'center',
675
+ 'options' => array(
676
+ 'left' => __( 'Left', 'wpinked-widgets' ),
677
+ 'right' => __( 'Right', 'wpinked-widgets' ),
678
+ 'center' => __( 'Center', 'wpinked-widgets' ),
679
+ ),
680
+ 'state_handler' => array(
681
+ 'nav_type[next-prev]' => array( 'hide' ),
682
+ 'nav_type[paginate]' => array( 'show' ),
683
+ )
684
+ ),
685
+
686
+ 'btn-size' => array(
687
+ 'type' => 'select',
688
+ 'label' => __( 'Button Size', 'wpinked-widgets' ),
689
+ 'default' => 'standard',
690
+ 'options' => array(
691
+ 'tiny' => __( 'Tiny', 'wpinked-widgets' ),
692
+ 'small' => __( 'Small', 'wpinked-widgets' ),
693
+ 'standard' => __( 'Standard', 'wpinked-widgets' ),
694
+ 'large' => __( 'Large', 'wpinked-widgets' ),
695
+ ),
696
+ ),
697
+
698
+ 'btn-clr' => array(
699
+ 'type' => 'color',
700
+ 'label' => __( 'Button Highlight Color', 'wpinked-widgets' ),
701
+ 'description' => __( 'Typically used as button background.', 'wpinked-widgets' ),
702
+ ),
703
+
704
+ 'btn-base' => array(
705
+ 'type' => 'color',
706
+ 'label' => __( 'Button Base Color', 'wpinked-widgets' ),
707
+ 'description' => __( 'Typically used as text color.', 'wpinked-widgets' ),
708
+ ),
709
+
710
+ 'btn-hover' => array(
711
+ 'type' => 'checkbox',
712
+ 'default' => true,
713
+ 'label' => __( 'Use button hover effect ?', 'wpinked-widgets' ),
714
+ ),
715
+
716
+ 'btn-click' => array(
717
+ 'type' => 'checkbox',
718
+ 'default' => true,
719
+ 'label' => __( 'Use button click effect ?', 'wpinked-widgets' ),
720
+ ),
721
+
722
+ 'btn-corners' => array(
723
+ 'type' => 'select',
724
+ 'label' => __( 'Button Corners', 'wpinked-widgets' ),
725
+ 'default' => '0.25em',
726
+ 'options' => array(
727
+ '0em' => __( 'Sharp', 'wpinked-widgets' ),
728
+ '0.25em' => __( 'Slightly curved', 'wpinked-widgets' ),
729
+ '0.75em' => __( 'Highly curved', 'wpinked-widgets' ),
730
+ '1.5em' => __( 'Round', 'wpinked-widgets' ),
731
+ ),
732
+ ),
733
+ )
734
+ ),
735
  );
736
  }
737
 
775
  function get_less_variables($instance) {
776
  if( empty( $instance ) ) return array();
777
 
778
+ $less_variables = array(
779
  'design' => $instance['design']['layout'],
780
  'columns' => $instance['design']['columns'],
781
  'format' => $instance['design']['format'],
812
  'navi-base' => $instance['pagination']['btn-base'],
813
  'navi-crnr' => $instance['pagination']['btn-corners'],
814
  );
815
+
816
+ if ( function_exists( 'wpinked_pro_so_widgets' ) ) {
817
+ if ( $instance['styling']['title-font'] ) {
818
+ $title_font = siteorigin_widget_get_font( $instance['styling']['title-font'] );
819
+ $less_variables['title-font-fly'] = $title_font['family'];
820
+ if( ! empty( $title_font['weight'] ) ) {
821
+ $less_variables['title-font-wt'] = $title_font['weight'];
822
+ }
823
+ }
824
+ if ( $instance['styling']['meta-font'] ) {
825
+ $meta_font = siteorigin_widget_get_font( $instance['styling']['meta-font'] );
826
+ $less_variables['meta-font-fly'] = $meta_font['family'];
827
+ if( ! empty( $meta_font['weight'] ) ) {
828
+ $less_variables['meta-font-wt'] = $meta_font['weight'];
829
+ }
830
+ }
831
+ if ( $instance['styling']['btn-font'] ) {
832
+ $type_font = siteorigin_widget_get_font( $instance['styling']['btn-font'] );
833
+ $less_variables['btn-font-fly'] = $type_font['family'];
834
+ if( ! empty( $type_font['weight'] ) ) {
835
+ $less_variables['btn-font-wt'] = $type_font['weight'];
836
+ }
837
+ }
838
+ }
839
+
840
+ return $less_variables;
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
  }
widgets/ink-blgs-widget/styles/thumb-above.less CHANGED
@@ -1,6 +1,10 @@
1
- @import "../../mixins/less/mixins";
 
 
 
2
  @import "button";
3
  @import "navigation";
 
4
 
5
  @gap: 0;
6
  @t-size: 2em;
1
+ @import "../mixins/less/mixins";
2
+
3
+ .widget-function('import_google_font');
4
+
5
  @import "button";
6
  @import "navigation";
7
+ @import "typography";
8
 
9
  @gap: 0;
10
  @t-size: 2em;
widgets/ink-blgs-widget/styles/thumb-behind.less CHANGED
@@ -1,6 +1,10 @@
1
- @import "../../mixins/less/mixins";
 
 
 
2
  @import "button";
3
  @import "navigation";
 
4
 
5
  @gap: 0;
6
  @t-size: 2em;
1
+ @import "../mixins/less/mixins";
2
+
3
+ .widget-function('import_google_font');
4
+
5
  @import "button";
6
  @import "navigation";
7
+ @import "typography";
8
 
9
  @gap: 0;
10
  @t-size: 2em;
widgets/ink-blgs-widget/styles/thumb-left.less CHANGED
@@ -1,6 +1,10 @@
1
- @import "../../mixins/less/mixins";
 
 
 
2
  @import "button";
3
  @import "navigation";
 
4
 
5
  @gap: 0;
6
  @t-size: 2em;
1
+ @import "../mixins/less/mixins";
2
+
3
+ .widget-function('import_google_font');
4
+
5
  @import "button";
6
  @import "navigation";
7
+ @import "typography";
8
 
9
  @gap: 0;
10
  @t-size: 2em;
widgets/ink-blgs-widget/styles/thumb-none.less CHANGED
@@ -1,6 +1,10 @@
1
- @import "../../mixins/less/mixins";
 
 
 
2
  @import "button";
3
  @import "navigation";
 
4
 
5
  @gap: 0;
6
  @t-size: 2em;
1
+ @import "../mixins/less/mixins";
2
+
3
+ .widget-function('import_google_font');
4
+
5
  @import "button";
6
  @import "navigation";
7
+ @import "typography";
8
 
9
  @gap: 0;
10
  @t-size: 2em;
widgets/ink-blgs-widget/styles/thumb-right.less CHANGED
@@ -1,6 +1,10 @@
1
- @import "../../mixins/less/mixins";
 
 
 
2
  @import "button";
3
  @import "navigation";
 
4
 
5
  @gap: 0;
6
  @t-size: 2em;
1
+ @import "../mixins/less/mixins";
2
+
3
+ .widget-function('import_google_font');
4
+
5
  @import "button";
6
  @import "navigation";
7
+ @import "typography";
8
 
9
  @gap: 0;
10
  @t-size: 2em;
widgets/ink-blgs-widget/styles/typography.less ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @title-font-fly: default;
2
+ @title-font-wt: bold;
3
+ @meta-font-fly: default;
4
+ @meta-font-wt: bold;
5
+ @btn-font-fly: default;
6
+ @btn-font-wt: bold;
7
+
8
+ .iw-so-article-title {
9
+ .font(@title-font-fly, @title-font-wt);
10
+ }
11
+
12
+ .iw-so-article-byline-above,
13
+ .iw-so-article-byline-below,
14
+ .iw-so-article-byline-end {
15
+ .font(@meta-font-fly, @meta-font-wt);
16
+ }
17
+
18
+ .iw-so-article-btn {
19
+ .font(@btn-font-fly, @btn-font-wt);
20
+ }
widgets/ink-blgs-widget/tpl/thumb-above.php CHANGED
@@ -67,7 +67,7 @@ $query_result = new WP_Query( $processed_query );
67
 
68
  <div class="iw-so-blog">
69
 
70
- <div id="<? echo $unique; ?>">
71
 
72
  <div class="iw-so-blog-container<?php echo $height; ?>">
73
 
@@ -103,7 +103,7 @@ $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'] ); ?>
107
  </p>
108
 
109
  <?php endif; ?>
@@ -113,7 +113,7 @@ $query_result = new WP_Query( $processed_query );
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'] ); ?>
117
  </p>
118
 
119
  <?php endif; ?>
@@ -141,7 +141,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'] ); ?>
145
  </p>
146
 
147
  <?php endif; ?>
67
 
68
  <div class="iw-so-blog">
69
 
70
+ <div id="<?php echo $unique; ?>">
71
 
72
  <div class="iw-so-blog-container<?php echo $height; ?>">
73
 
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; ?>
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
  <?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; ?>
widgets/ink-blgs-widget/tpl/thumb-behind.php CHANGED
@@ -71,7 +71,7 @@ $query_result = new WP_Query( $processed_query );
71
 
72
  <div class="iw-so-blog">
73
 
74
- <div id="<? echo $unique; ?>">
75
 
76
  <div class="iw-so-blog-container<?php echo $height; ?>">
77
 
@@ -98,7 +98,7 @@ $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'] ); ?>
102
  </p>
103
 
104
  <?php endif; ?>
@@ -108,7 +108,7 @@ $query_result = new WP_Query( $processed_query );
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'] ); ?>
112
  </p>
113
 
114
  <?php endif; ?>
@@ -136,7 +136,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'] ); ?>
140
  </p>
141
 
142
  <?php endif; ?>
71
 
72
  <div class="iw-so-blog">
73
 
74
+ <div id="<?php echo $unique; ?>">
75
 
76
  <div class="iw-so-blog-container<?php echo $height; ?>">
77
 
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; ?>
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
  <?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; ?>
widgets/ink-blgs-widget/tpl/thumb-left.php CHANGED
@@ -74,7 +74,7 @@ $query_result = new WP_Query( $processed_query );
74
 
75
  <div class="iw-so-blog">
76
 
77
- <div id="<? echo $unique; ?>">
78
 
79
  <div class="iw-so-blog-container<?php echo $height; ?>">
80
 
@@ -110,7 +110,7 @@ $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'] ); ?>
114
  </p>
115
 
116
  <?php endif; ?>
@@ -120,7 +120,7 @@ $query_result = new WP_Query( $processed_query );
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'] ); ?>
124
  </p>
125
 
126
  <?php endif; ?>
@@ -148,7 +148,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'] ); ?>
152
  </p>
153
 
154
  <?php endif; ?>
74
 
75
  <div class="iw-so-blog">
76
 
77
+ <div id="<?php echo $unique; ?>">
78
 
79
  <div class="iw-so-blog-container<?php echo $height; ?>">
80
 
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; ?>
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
  <?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; ?>
widgets/ink-blgs-widget/tpl/thumb-none.php CHANGED
@@ -67,7 +67,7 @@ $query_result = new WP_Query( $processed_query );
67
 
68
  <div class="iw-so-blog">
69
 
70
- <div id="<? echo $unique; ?>">
71
 
72
  <div class="iw-so-blog-container<?php echo $height; ?>">
73
 
@@ -88,7 +88,7 @@ $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'] ); ?>
92
  </p>
93
 
94
  <?php endif; ?>
@@ -98,7 +98,7 @@ $query_result = new WP_Query( $processed_query );
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'] ); ?>
102
  </p>
103
 
104
  <?php endif; ?>
@@ -126,7 +126,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'] ); ?>
130
  </p>
131
 
132
  <?php endif; ?>
67
 
68
  <div class="iw-so-blog">
69
 
70
+ <div id="<?php echo $unique; ?>">
71
 
72
  <div class="iw-so-blog-container<?php echo $height; ?>">
73
 
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; ?>
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
  <?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; ?>
widgets/ink-blgs-widget/tpl/thumb-right.php CHANGED
@@ -74,7 +74,7 @@ $query_result = new WP_Query( $processed_query );
74
 
75
  <div class="iw-so-blog">
76
 
77
- <div id="<? echo $unique; ?>">
78
 
79
  <div class="iw-so-blog-container<?php echo $height; ?>">
80
 
@@ -110,7 +110,7 @@ $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'] ); ?>
114
  </p>
115
 
116
  <?php endif; ?>
@@ -120,7 +120,7 @@ $query_result = new WP_Query( $processed_query );
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'] ); ?>
124
  </p>
125
 
126
  <?php endif; ?>
@@ -148,7 +148,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'] ); ?>
152
  </p>
153
 
154
  <?php endif; ?>
74
 
75
  <div class="iw-so-blog">
76
 
77
+ <div id="<?php echo $unique; ?>">
78
 
79
  <div class="iw-so-blog-container<?php echo $height; ?>">
80
 
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; ?>
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
  <?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; ?>
widgets/ink-btns-widget/css/buttons.css CHANGED
@@ -10,7 +10,6 @@
10
  -o-appearance: none;
11
  appearance: none;
12
  cursor: pointer;
13
- font-family: inherit;
14
  font-weight: normal;
15
  line-height: normal;
16
  position: relative;
10
  -o-appearance: none;
11
  appearance: none;
12
  cursor: pointer;
 
13
  font-weight: normal;
14
  line-height: normal;
15
  position: relative;
widgets/ink-btns-widget/ink-btns-widget.php CHANGED
@@ -12,175 +12,177 @@ class Inked_Buttons_SO_Widget extends SiteOrigin_Widget {
12
  function __construct() {
13
 
14
  parent::__construct(
15
-
16
  'ink-buttons',
17
-
18
  __( 'Inked Buttons', 'wpinked-widgets' ),
19
-
20
  array(
21
  'description' => __( 'The power of click!', 'wpinked-widgets' ),
22
  'help' => 'http://widgets-docs.wpinked.com/article/30-button-widget'
23
  ),
24
-
25
  array(
26
  ),
 
 
 
 
27
 
28
- array(
 
29
 
30
- 'text' => array(
31
- 'type' => 'text',
32
- 'label' => __( 'Button text', 'wpinked-widgets' ),
33
- ),
34
 
35
- 'url' => array(
36
- 'type' => 'link',
37
- 'label' => __( 'Destination URL', 'wpinked-widgets' ),
38
- ),
39
 
40
- 'new_window' => array(
41
- 'type' => 'checkbox',
42
- 'default' => false,
43
- 'label' => __( 'Open in a new window', 'wpinked-widgets' ),
44
- ),
45
 
46
- 'icon' => array(
47
- 'type' => 'section',
48
- 'label' => __( 'Icon', 'wpinked-widgets' ),
49
- 'hide' => true,
50
- 'fields' => array(
51
 
52
- 'select' => array(
53
- 'type' => 'icon',
54
- 'label' => __( 'Icon', 'wpinked-widgets' ),
55
- ),
56
 
57
- 'location' => array(
58
- 'type' => 'select',
59
- 'label' => __( 'Location', 'wpinked-widgets' ),
60
- 'default' => 'left',
61
- 'options' => array(
62
- 'left' => __( 'Before Text', 'wpinked-widgets' ),
63
- 'right' => __( 'After Text', 'wpinked-widgets' ),
64
- 'above' => __( 'Above Text', 'wpinked-widgets' )
65
- )
66
  )
 
67
 
68
- ),
69
  ),
 
70
 
71
- 'styling' => array(
72
- 'type' => 'section',
73
- 'label' => __( 'Styling', 'wpinked-widgets' ),
74
- 'hide' => true,
75
- 'fields' => array(
76
-
77
- 'align' => array(
78
- 'type' => 'select',
79
- 'label' => __( 'Button Alignment', 'wpinked-widgets' ),
80
- 'default' => 'center',
81
- 'options' => array(
82
- 'left' => __( 'Left', 'wpinked-widgets' ),
83
- 'right' => __( 'Right', 'wpinked-widgets' ),
84
- 'center' => __( 'Center', 'wpinked-widgets' ),
85
- 'full' => __( 'Full Width', 'wpinked-widgets' ),
86
- ),
87
  ),
 
88
 
89
- 'theme' => array(
90
- 'type' => 'select',
91
- 'label' => __( 'Theme', 'wpinked-widgets' ),
92
- 'default' => 'classic',
93
- 'options' => array(
94
- 'classic' => __( 'Classic', 'wpinked-widgets' ),
95
- 'flat' => __( 'Flat', 'wpinked-widgets' ),
96
- 'outline' => __( 'Outline', 'wpinked-widgets' ),
97
- 'threed' => __( '3D', 'wpinked-widgets' ),
98
- 'shadow' => __( 'Shadow', 'wpinked-widgets' ),
99
- 'deline' => __( 'Deline', 'wpinked-widgets' ),
100
- ),
101
  ),
 
102
 
103
- 'button_color' => array(
104
- 'type' => 'color',
105
- 'label' => __( 'Highlight Color', 'wpinked-widgets' ),
106
- 'description' => __( 'Typically used as button background.', 'wpinked-widgets' ),
107
- ),
108
 
109
- 'text_color' => array(
110
- 'type' => 'color',
111
- 'label' => __( 'Base Color', 'wpinked-widgets' ),
112
- 'description' => __( 'Typically used as text color.', 'wpinked-widgets' ),
113
- ),
114
 
115
- 'hover' => array(
116
- 'type' => 'checkbox',
117
- 'default' => true,
118
- 'label' => __( 'Use hover effect ?', 'wpinked-widgets' ),
119
- ),
120
 
121
- 'click' => array(
122
- 'type' => 'checkbox',
123
- 'default' => true,
124
- 'label' => __( 'Use click effect ?', 'wpinked-widgets' ),
125
- ),
126
 
127
- 'corners' => array(
128
- 'type' => 'select',
129
- 'label' => __( 'Corners', 'wpinked-widgets' ),
130
- 'default' => '0.25em',
131
- 'options' => array(
132
- '0em' => __( 'Sharp', 'wpinked-widgets' ),
133
- '0.25em' => __( 'Slightly curved', 'wpinked-widgets' ),
134
- '0.75em' => __( 'Highly curved', 'wpinked-widgets' ),
135
- '1.5em' => __( 'Round', 'wpinked-widgets' ),
136
- ),
137
- ),
138
 
139
- 'size' => array(
140
- 'type' => 'select',
141
- 'label' => __( 'Size', 'wpinked-widgets' ),
142
- 'default' => 'standard',
143
- 'options' => array(
144
- 'tiny' => __( 'Tiny', 'wpinked-widgets' ),
145
- 'small' => __( 'Small', 'wpinked-widgets' ),
146
- 'standard' => __( 'Standard', 'wpinked-widgets' ),
147
- 'large' => __( 'Large', 'wpinked-widgets' ),
148
- ),
149
  ),
 
150
 
 
 
 
 
 
 
 
 
 
 
151
  ),
152
- ),
153
 
154
- 'attributes' => array(
155
- 'type' => 'section',
156
- 'label' => __( 'Attributes and SEO', 'wpinked-widgets' ),
157
- 'hide' => true,
158
- 'fields' => array(
159
 
160
- 'id' => array(
161
- 'type' => 'text',
162
- 'label' => __( 'Button ID', 'wpinked-widgets' ),
163
- 'description' => __( 'An ID attribute allows you to target this button in Javascript.', 'wpinked-widgets' ),
164
- ),
165
 
166
- 'title' => array(
167
- 'type' => 'text',
168
- 'label' => __( 'Title attribute', 'wpinked-widgets' ),
169
- 'description' => __( 'Adds a title attribute to the button link.', 'wpinked-widgets' ),
170
- ),
171
 
172
- 'onclick' => array(
173
- 'type' => 'text',
174
- 'label' => __( 'Onclick', 'wpinked-widgets' ),
175
- 'description' => __( 'Run this Javascript when the button is clicked. Ideal for tracking.', 'wpinked-widgets' ),
176
- ),
177
- )
178
- ),
179
 
 
 
 
 
 
 
180
  ),
181
 
182
- //The $base_folder path string.
183
- plugin_dir_path(__FILE__)
184
  );
185
  }
186
 
@@ -206,7 +208,7 @@ class Inked_Buttons_SO_Widget extends SiteOrigin_Widget {
206
 
207
  if( empty( $instance ) ) return array();
208
 
209
- return array(
210
  'radius' => $instance['styling']['corners'],
211
  'size' => $instance['styling']['size'],
212
  'text' => $instance['styling']['text_color'],
@@ -216,6 +218,24 @@ class Inked_Buttons_SO_Widget extends SiteOrigin_Widget {
216
  'theme' => $instance['styling']['theme'],
217
  );
218
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
219
  }
220
 
221
  }
12
  function __construct() {
13
 
14
  parent::__construct(
 
15
  'ink-buttons',
 
16
  __( 'Inked Buttons', 'wpinked-widgets' ),
 
17
  array(
18
  'description' => __( 'The power of click!', 'wpinked-widgets' ),
19
  'help' => 'http://widgets-docs.wpinked.com/article/30-button-widget'
20
  ),
 
21
  array(
22
  ),
23
+ false,
24
+ plugin_dir_path(__FILE__)
25
+ );
26
+ }
27
 
28
+ function get_widget_form() {
29
+ return array(
30
 
31
+ 'text' => array(
32
+ 'type' => 'text',
33
+ 'label' => __( 'Button text', 'wpinked-widgets' ),
34
+ ),
35
 
36
+ 'url' => array(
37
+ 'type' => 'link',
38
+ 'label' => __( 'Destination URL', 'wpinked-widgets' ),
39
+ ),
40
 
41
+ 'new_window' => array(
42
+ 'type' => 'checkbox',
43
+ 'default' => false,
44
+ 'label' => __( 'Open in a new window', 'wpinked-widgets' ),
45
+ ),
46
 
47
+ 'icon' => array(
48
+ 'type' => 'section',
49
+ 'label' => __( 'Icon', 'wpinked-widgets' ),
50
+ 'hide' => true,
51
+ 'fields' => array(
52
 
53
+ 'select' => array(
54
+ 'type' => 'icon',
55
+ 'label' => __( 'Icon', 'wpinked-widgets' ),
56
+ ),
57
 
58
+ 'location' => array(
59
+ 'type' => 'select',
60
+ 'label' => __( 'Location', 'wpinked-widgets' ),
61
+ 'default' => 'left',
62
+ 'options' => array(
63
+ 'left' => __( 'Before Text', 'wpinked-widgets' ),
64
+ 'right' => __( 'After Text', 'wpinked-widgets' ),
65
+ 'above' => __( 'Above Text', 'wpinked-widgets' )
 
66
  )
67
+ )
68
 
 
69
  ),
70
+ ),
71
 
72
+ 'styling' => array(
73
+ 'type' => 'section',
74
+ 'label' => __( 'Styling', 'wpinked-widgets' ),
75
+ 'hide' => true,
76
+ 'fields' => array(
77
+
78
+ 'align' => array(
79
+ 'type' => 'select',
80
+ 'label' => __( 'Button Alignment', 'wpinked-widgets' ),
81
+ 'default' => 'center',
82
+ 'options' => array(
83
+ 'left' => __( 'Left', 'wpinked-widgets' ),
84
+ 'right' => __( 'Right', 'wpinked-widgets' ),
85
+ 'center' => __( 'Center', 'wpinked-widgets' ),
86
+ 'full' => __( 'Full Width', 'wpinked-widgets' ),
 
87
  ),
88
+ ),
89
 
90
+ 'theme' => array(
91
+ 'type' => 'select',
92
+ 'label' => __( 'Theme', 'wpinked-widgets' ),
93
+ 'default' => 'classic',
94
+ 'options' => array(
95
+ 'classic' => __( 'Classic', 'wpinked-widgets' ),
96
+ 'flat' => __( 'Flat', 'wpinked-widgets' ),
97
+ 'outline' => __( 'Outline', 'wpinked-widgets' ),
98
+ 'threed' => __( '3D', 'wpinked-widgets' ),
99
+ 'shadow' => __( 'Shadow', 'wpinked-widgets' ),
100
+ 'deline' => __( 'Deline', 'wpinked-widgets' ),
 
101
  ),
102
+ ),
103
 
104
+ 'button_color' => array(
105
+ 'type' => 'color',
106
+ 'label' => __( 'Highlight Color', 'wpinked-widgets' ),
107
+ 'description' => __( 'Typically used as button background.', 'wpinked-widgets' ),
108
+ ),
109
 
110
+ 'text_color' => array(
111
+ 'type' => 'color',
112
+ 'label' => __( 'Base Color', 'wpinked-widgets' ),
113
+ 'description' => __( 'Typically used as text color.', 'wpinked-widgets' ),
114
+ ),
115
 
116
+ 'font' => array(
117
+ 'type' => 'premium',
118
+ 'label' => __( 'Font', 'wpinked-widgets' ),
119
+ ),
 
120
 
121
+ 'hover' => array(
122
+ 'type' => 'checkbox',
123
+ 'default' => true,
124
+ 'label' => __( 'Use hover effect ?', 'wpinked-widgets' ),
125
+ ),
126
 
127
+ 'click' => array(
128
+ 'type' => 'checkbox',
129
+ 'default' => true,
130
+ 'label' => __( 'Use click effect ?', 'wpinked-widgets' ),
131
+ ),
 
 
 
 
 
 
132
 
133
+ 'corners' => array(
134
+ 'type' => 'select',
135
+ 'label' => __( 'Corners', 'wpinked-widgets' ),
136
+ 'default' => '0.25em',
137
+ 'options' => array(
138
+ '0em' => __( 'Sharp', 'wpinked-widgets' ),
139
+ '0.25em' => __( 'Slightly curved', 'wpinked-widgets' ),
140
+ '0.75em' => __( 'Highly curved', 'wpinked-widgets' ),
141
+ '1.5em' => __( 'Round', 'wpinked-widgets' ),
 
142
  ),
143
+ ),
144
 
145
+ 'size' => array(
146
+ 'type' => 'select',
147
+ 'label' => __( 'Size', 'wpinked-widgets' ),
148
+ 'default' => 'standard',
149
+ 'options' => array(
150
+ 'tiny' => __( 'Tiny', 'wpinked-widgets' ),
151
+ 'small' => __( 'Small', 'wpinked-widgets' ),
152
+ 'standard' => __( 'Standard', 'wpinked-widgets' ),
153
+ 'large' => __( 'Large', 'wpinked-widgets' ),
154
+ ),
155
  ),
 
156
 
157
+ ),
158
+ ),
 
 
 
159
 
160
+ 'attributes' => array(
161
+ 'type' => 'section',
162
+ 'label' => __( 'Attributes and SEO', 'wpinked-widgets' ),
163
+ 'hide' => true,
164
+ 'fields' => array(
165
 
166
+ 'id' => array(
167
+ 'type' => 'text',
168
+ 'label' => __( 'Button ID', 'wpinked-widgets' ),
169
+ 'description' => __( 'An ID attribute allows you to target this button in Javascript.', 'wpinked-widgets' ),
170
+ ),
171
 
172
+ 'title' => array(
173
+ 'type' => 'text',
174
+ 'label' => __( 'Title attribute', 'wpinked-widgets' ),
175
+ 'description' => __( 'Adds a title attribute to the button link.', 'wpinked-widgets' ),
176
+ ),
 
 
177
 
178
+ 'onclick' => array(
179
+ 'type' => 'text',
180
+ 'label' => __( 'Onclick', 'wpinked-widgets' ),
181
+ 'description' => __( 'Run this Javascript when the button is clicked. Ideal for tracking.', 'wpinked-widgets' ),
182
+ ),
183
+ )
184
  ),
185
 
 
 
186
  );
187
  }
188
 
208
 
209
  if( empty( $instance ) ) return array();
210
 
211
+ $less_variables = array(
212
  'radius' => $instance['styling']['corners'],
213
  'size' => $instance['styling']['size'],
214
  'text' => $instance['styling']['text_color'],
218
  'theme' => $instance['styling']['theme'],
219
  );
220
 
221
+ if ( $instance['styling']['font'] && function_exists( 'wpinked_pro_so_widgets' ) ) {
222
+ $selected_font = siteorigin_widget_get_font( $instance['styling']['font'] );
223
+ $less_variables['font-fly'] = $selected_font['family'];
224
+ if( ! empty( $selected_font['weight'] ) ) {
225
+ $less_variables['font-wt'] = $selected_font['weight'];
226
+ }
227
+ }
228
+ return $less_variables;
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
  }
widgets/ink-btns-widget/styles/buttons.less CHANGED
@@ -1,4 +1,6 @@
1
- @import "../../mixins/less/mixins";
 
 
2
 
3
  @radius: 0em;
4
  @text: #fff;
@@ -7,6 +9,8 @@
7
  @align: center;
8
  @icon: left;
9
  @theme: flat;
 
 
10
 
11
  .iw-so-button-base {
12
 
@@ -25,6 +29,7 @@
25
 
26
  border-radius: @radius;
27
  color: @text;
 
28
 
29
  .btn-size() when (@size = tiny) {
30
  font-size: 0.75em;
1
+ @import "../mixins/less/mixins";
2
+
3
+ .widget-function('import_google_font');
4
 
5
  @radius: 0em;
6
  @text: #fff;
9
  @align: center;
10
  @icon: left;
11
  @theme: flat;
12
+ @font-fly: default;
13
+ @font-wt: bold;
14
 
15
  .iw-so-button-base {
16
 
29
 
30
  border-radius: @radius;
31
  color: @text;
32
+ .font(@font-fly, @font-wt);
33
 
34
  .btn-size() when (@size = tiny) {
35
  font-size: 0.75em;
widgets/ink-crlc-widget/ink-crlc-widget.php CHANGED
@@ -12,158 +12,155 @@ class Inked_Circle_Counter_SO_Widget extends SiteOrigin_Widget {
12
  function __construct() {
13
 
14
  parent::__construct(
15
-
16
  'ink-circle-count',
17
-
18
  __( 'Inked Circle Counter', 'wpinked-widgets' ),
19
-
20
  array(
21
  'description' => __( 'Animated circles to display your stats.', 'wpinked-widgets' ),
22
  'help' => 'http://widgets-docs.wpinked.com/article/24-circle-counter-widget'
23
  ),
24
-
25
  array(
26
  ),
 
 
 
 
27
 
28
- array(
29
-
30
- 'admin' => array(
31
- 'type' => 'text',
32
- 'label' => __( 'Admin Label', 'wpinked-widgets' ),
33
- 'default' => ''
34
- ),
35
-
36
- 'circle' => array(
37
- 'type' => 'section',
38
- 'label' => __( 'Circle Settings' , 'wpinked-widgets' ),
39
- 'hide' => true,
40
- 'fields' => array(
41
-
42
- 'title' => array(
43
- 'type' => 'text',
44
- 'label' => __( 'Title', 'wpinked-widgets' ),
45
- 'default' => ''
46
- ),
47
-
48
- 'title-pos' => array(
49
- 'type' => 'select',
50
- 'label' => __( 'Title Position', 'wpinked-widgets' ),
51
- 'default' => 'above',
52
- 'options' => array(
53
- 'above' => __( 'Above', 'wpinked-widgets' ),
54
- 'below' => __( 'Below', 'wpinked-widgets' )
55
- ),
56
- ),
57
-
58
- 'percent' => array(
59
- 'type' => 'slider',
60
- 'label' => __( 'Percentage', 'wpinked-widgets' ),
61
- 'default' => 50,
62
- 'min' => 0,
63
- 'max' => 100,
64
- 'integer' => true
65
- ),
66
-
67
- 'percent-show' => array(
68
- 'type' => 'checkbox',
69
- 'label' => __( 'Show Percentage ?', 'wpinked-widgets' ),
70
- 'default' => true
71
- ),
72
-
73
- 'percent-prefix' => array(
74
- 'type' => 'text',
75
- 'label' => __( 'Percentage Prefix', 'wpinked-widgets' ),
76
- 'default' => ''
77
- ),
78
-
79
- 'percent-suffix' => array(
80
- 'type' => 'text',
81
- 'label' => __( 'Percentage Suffix', 'wpinked-widgets' ),
82
- 'default' => ''
83
- ),
84
-
85
- )
86
- ),
87
-
88
- 'styling' => array(
89
- 'type' => 'section',
90
- 'label' => __( 'Styling' , 'wpinked-widgets' ),
91
- 'hide' => true,
92
- 'fields' => array(
93
-
94
- 'circle-animation' => array(
95
- 'type' => 'checkbox',
96
- 'label' => __( 'Use circle animations?', 'wpinked-widgets' ),
97
- 'default' => true
98
- ),
99
-
100
- 'title' => array(
101
- 'type' => 'color',
102
- 'label' => __( 'Title Color', 'wpinked-widgets' ),
103
- 'default' => ''
104
- ),
105
-
106
- 'percent' => array(
107
- 'type' => 'color',
108
- 'label' => __( 'Percentage Color', 'wpinked-widgets' ),
109
- 'default' => ''
110
- ),
111
-
112
- 'percent-animation' => array(
113
- 'type' => 'checkbox',
114
- 'label' => __( 'Use percentage animations?', 'wpinked-widgets' ),
115
- 'default' => true
116
- ),
117
-
118
- 'percent-size' => array(
119
- 'type' => 'measurement',
120
- 'label' => __( 'Percentage Size', 'wpinked-widgets' ),
121
- 'default' => '',
122
- ),
123
-
124
- 'bar' => array(
125
- 'type' => 'color',
126
- 'label' => __( 'Circle Color', 'wpinked-widgets' ),
127
- 'default' => ''
128
- ),
129
-
130
- 'track' => array(
131
- 'type' => 'color',
132
- 'label' => __( 'Circle Background Color', 'wpinked-widgets' ),
133
- 'default' => ''
134
- ),
135
-
136
- 'shape' => array(
137
- 'type' => 'select',
138
- 'label' => __( 'Circle Shape', 'wpinked-widgets' ),
139
- 'default' => 'butt',
140
- 'options' => array(
141
- 'butt' => __( 'Butt', 'wpinked-widgets' ),
142
- 'round' => __( 'Round', 'wpinked-widgets' ),
143
- 'square' => __( 'Square', 'wpinked-widgets' ),
144
- ),
145
- ),
146
-
147
- 'width' => array(
148
- 'type' => 'number',
149
- 'label' => __( 'Circle Width', 'wpinked-widgets' ),
150
- 'default' => '3',
151
- 'description' => __( 'Value in px.', 'wpinked-widgets' ),
152
- ),
153
 
154
- 'size' => array(
155
- 'type' => 'number',
156
- 'label' => __( 'Circle Size', 'wpinked-widgets' ),
157
- 'default' => '200',
158
- 'description' => __( 'Value in px.', 'wpinked-widgets' ),
159
- ),
160
 
161
- )
162
- ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
163
  ),
164
 
165
- //The $base_folder path string.
166
- plugin_dir_path(__FILE__)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
167
  );
168
  }
169
 
12
  function __construct() {
13
 
14
  parent::__construct(
 
15
  'ink-circle-count',
 
16
  __( 'Inked Circle Counter', 'wpinked-widgets' ),
 
17
  array(
18
  'description' => __( 'Animated circles to display your stats.', 'wpinked-widgets' ),
19
  'help' => 'http://widgets-docs.wpinked.com/article/24-circle-counter-widget'
20
  ),
 
21
  array(
22
  ),
23
+ false,
24
+ plugin_dir_path(__FILE__)
25
+ );
26
+ }
27
 
28
+ function get_widget_form() {
29
+ return array(
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
 
31
+ 'admin' => array(
32
+ 'type' => 'text',
33
+ 'label' => __( 'Admin Label', 'wpinked-widgets' ),
34
+ 'default' => ''
35
+ ),
 
36
 
37
+ 'circle' => array(
38
+ 'type' => 'section',
39
+ 'label' => __( 'Circle Settings' , 'wpinked-widgets' ),
40
+ 'hide' => true,
41
+ 'fields' => array(
42
+
43
+ 'title' => array(
44
+ 'type' => 'text',
45
+ 'label' => __( 'Title', 'wpinked-widgets' ),
46
+ 'default' => ''
47
+ ),
48
+
49
+ 'title-pos' => array(
50
+ 'type' => 'select',
51
+ 'label' => __( 'Title Position', 'wpinked-widgets' ),
52
+ 'default' => 'above',
53
+ 'options' => array(
54
+ 'above' => __( 'Above', 'wpinked-widgets' ),
55
+ 'below' => __( 'Below', 'wpinked-widgets' )
56
+ ),
57
+ ),
58
+
59
+ 'percent' => array(
60
+ 'type' => 'slider',
61
+ 'label' => __( 'Percentage', 'wpinked-widgets' ),
62
+ 'default' => 50,
63
+ 'min' => 0,
64
+ 'max' => 100,
65
+ 'integer' => true
66
+ ),
67
+
68
+ 'percent-show' => array(
69
+ 'type' => 'checkbox',
70
+ 'label' => __( 'Show Percentage ?', 'wpinked-widgets' ),
71
+ 'default' => true
72
+ ),
73
+
74
+ 'percent-prefix' => array(
75
+ 'type' => 'text',
76
+ 'label' => __( 'Percentage Prefix', 'wpinked-widgets' ),
77
+ 'default' => ''
78
+ ),
79
+
80
+ 'percent-suffix' => array(
81
+ 'type' => 'text',
82
+ 'label' => __( 'Percentage Suffix', 'wpinked-widgets' ),
83
+ 'default' => ''
84
+ ),
85
+
86
+ )
87
  ),
88
 
89
+ 'styling' => array(
90
+ 'type' => 'section',
91
+ 'label' => __( 'Styling' , 'wpinked-widgets' ),
92
+ 'hide' => true,
93
+ 'fields' => array(
94
+
95
+ 'circle-animation' => array(
96
+ 'type' => 'checkbox',
97
+ 'label' => __( 'Use circle animations?', 'wpinked-widgets' ),
98
+ 'default' => true
99
+ ),
100
+
101
+ 'title' => array(
102
+ 'type' => 'color',
103
+ 'label' => __( 'Title Color', 'wpinked-widgets' ),
104
+ 'default' => ''
105
+ ),
106
+
107
+ 'percent' => array(
108
+ 'type' => 'color',
109
+ 'label' => __( 'Percentage Color', 'wpinked-widgets' ),
110
+ 'default' => ''
111
+ ),
112
+
113
+ 'percent-animation' => array(
114
+ 'type' => 'checkbox',
115
+ 'label' => __( 'Use percentage animations?', 'wpinked-widgets' ),
116
+ 'default' => true
117
+ ),
118
+
119
+ 'percent-size' => array(
120
+ 'type' => 'measurement',
121
+ 'label' => __( 'Percentage Size', 'wpinked-widgets' ),
122
+ 'default' => '',
123
+ ),
124
+
125
+ 'bar' => array(
126
+ 'type' => 'color',
127
+ 'label' => __( 'Circle Color', 'wpinked-widgets' ),
128
+ 'default' => ''
129
+ ),
130
+
131
+ 'track' => array(
132
+ 'type' => 'color',
133
+ 'label' => __( 'Circle Background Color', 'wpinked-widgets' ),
134
+ 'default' => ''
135
+ ),
136
+
137
+ 'shape' => array(
138
+ 'type' => 'select',
139
+ 'label' => __( 'Circle Shape', 'wpinked-widgets' ),
140
+ 'default' => 'butt',
141
+ 'options' => array(
142
+ 'butt' => __( 'Butt', 'wpinked-widgets' ),
143
+ 'round' => __( 'Round', 'wpinked-widgets' ),
144
+ 'square' => __( 'Square', 'wpinked-widgets' ),
145
+ ),
146
+ ),
147
+
148
+ 'width' => array(
149
+ 'type' => 'number',
150
+ 'label' => __( 'Circle Width', 'wpinked-widgets' ),
151
+ 'default' => '3',
152
+ 'description' => __( 'Value in px.', 'wpinked-widgets' ),
153
+ ),
154
+
155
+ 'size' => array(
156
+ 'type' => 'number',
157
+ 'label' => __( 'Circle Size', 'wpinked-widgets' ),
158
+ 'default' => '200',
159
+ 'description' => __( 'Value in px.', 'wpinked-widgets' ),
160
+ ),
161
+
162
+ )
163
+ ),
164
  );
165
  }
166
 
widgets/ink-dvdr-widget/ink-dvdr-widget.php CHANGED
@@ -12,76 +12,74 @@ class Inked_Divider_SO_Widget extends SiteOrigin_Widget {
12
  function __construct() {
13
 
14
  parent::__construct(
15
-
16
  'ink-divider',
17
-
18
  __( 'Inked Divider', 'wpinked-widgets' ),
19
-
20
  array(
21
  'description' => __( 'Draw seperators or create gaps in your page.', 'wpinked-widgets' ),
22
  'help' => 'http://widgets-docs.wpinked.com/article/40-divider-widget'
23
  ),
24
-
25
  array(
26
  ),
 
 
 
 
27
 
28
- array(
 
29
 
30
- 'type' => array(
31
- 'type' => 'select',
32
- 'label' => __( 'Type', 'wpinked-widgets' ),
33
- 'default' => 'none',
34
- 'options' => array(
35
- 'none' => __( 'Gap', 'wpinked-widgets' ),
36
- 'solid' => __( 'Single Line', 'wpinked-widgets' ),
37
- 'double' => __( 'Double Line', 'wpinked-widgets' ),
38
- 'dotted' => __( 'Dotted Line', 'wpinked-widgets' ),
39
- 'dashed' => __( 'Dashed Line', 'wpinked-widgets' )
40
- )
41
- ),
42
-
43
- 'styling' => array(
44
- 'type' => 'section',
45
- 'label' => __( 'Styling' , 'wpinked-widgets' ),
46
- 'hide' => true,
47
- 'fields' => array(
48
-
49
- 'color' => array(
50
- 'type' => 'color',
51
- 'label' => __( 'Color', 'wpinked-widgets' ),
52
- 'description' => __( 'Select the color of your divider.', 'wpinked-widgets' ),
53
- 'default' => '#333'
54
- ),
55
-
56
- 'size' => array(
57
- 'type' => 'measurement',
58
- 'label' => __( 'Thickness', 'wpinked-widgets' ),
59
- 'default' => '3px'
60
- ),
61
-
62
- 'width' => array(
63
- 'type' => 'measurement',
64
- 'label' => __( 'Width', 'wpinked-widgets' ),
65
- 'default' => '100%'
66
- ),
67
-
68
- 'margin-top' => array(
69
- 'type' => 'measurement',
70
- 'label' => __( 'Margin Top', 'wpinked-widgets' ),
71
- 'default' => '0'
72
- ),
73
-
74
- 'margin-bottom' => array(
75
- 'type' => 'measurement',
76
- 'label' => __( 'Margin Bottom', 'wpinked-widgets' ),
77
- 'default' => '0'
78
- )
79
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80
  )
81
- ),
82
- ),
83
 
84
- plugin_dir_path(__FILE__)
 
85
  );
86
  }
87
 
12
  function __construct() {
13
 
14
  parent::__construct(
 
15
  'ink-divider',
 
16
  __( 'Inked Divider', 'wpinked-widgets' ),
 
17
  array(
18
  'description' => __( 'Draw seperators or create gaps in your page.', 'wpinked-widgets' ),
19
  'help' => 'http://widgets-docs.wpinked.com/article/40-divider-widget'
20
  ),
 
21
  array(
22
  ),
23
+ false,
24
+ plugin_dir_path(__FILE__)
25
+ );
26
+ }
27
 
28
+ function get_widget_form() {
29
+ return array(
30
 
31
+ 'type' => array(
32
+ 'type' => 'select',
33
+ 'label' => __( 'Type', 'wpinked-widgets' ),
34
+ 'default' => 'none',
35
+ 'options' => array(
36
+ 'none' => __( 'Gap', 'wpinked-widgets' ),
37
+ 'solid' => __( 'Single Line', 'wpinked-widgets' ),
38
+ 'double' => __( 'Double Line', 'wpinked-widgets' ),
39
+ 'dotted' => __( 'Dotted Line', 'wpinked-widgets' ),
40
+ 'dashed' => __( 'Dashed Line', 'wpinked-widgets' )
41
+ )
42
+ ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
 
44
+ 'styling' => array(
45
+ 'type' => 'section',
46
+ 'label' => __( 'Styling' , 'wpinked-widgets' ),
47
+ 'hide' => true,
48
+ 'fields' => array(
49
+
50
+ 'color' => array(
51
+ 'type' => 'color',
52
+ 'label' => __( 'Color', 'wpinked-widgets' ),
53
+ 'description' => __( 'Select the color of your divider.', 'wpinked-widgets' ),
54
+ 'default' => '#333'
55
+ ),
56
+
57
+ 'size' => array(
58
+ 'type' => 'measurement',
59
+ 'label' => __( 'Thickness', 'wpinked-widgets' ),
60
+ 'default' => '3px'
61
+ ),
62
+
63
+ 'width' => array(
64
+ 'type' => 'measurement',
65
+ 'label' => __( 'Width', 'wpinked-widgets' ),
66
+ 'default' => '100%'
67
+ ),
68
+
69
+ 'margin-top' => array(
70
+ 'type' => 'measurement',
71
+ 'label' => __( 'Margin Top', 'wpinked-widgets' ),
72
+ 'default' => '0'
73
+ ),
74
+
75
+ 'margin-bottom' => array(
76
+ 'type' => 'measurement',
77
+ 'label' => __( 'Margin Bottom', 'wpinked-widgets' ),
78
+ 'default' => '0'
79
  )
 
 
80
 
81
+ )
82
+ ),
83
  );
84
  }
85
 
widgets/ink-fard-widget/css/filter-accordion.css CHANGED
@@ -35,7 +35,6 @@
35
  margin-left: 0 !important; }
36
  .iw-so-filter-accordion.iw-so-accordion .iw-so-acc-item .iw-so-acc-title {
37
  display: block;
38
- font-family: inherit;
39
  font-size: 1.1em;
40
  padding: 1em;
41
  text-decoration: none;
35
  margin-left: 0 !important; }
36
  .iw-so-filter-accordion.iw-so-accordion .iw-so-acc-item .iw-so-acc-title {
37
  display: block;
 
38
  font-size: 1.1em;
39
  padding: 1em;
40
  text-decoration: none;
widgets/ink-fard-widget/ink-fard-widget.php CHANGED
@@ -12,259 +12,293 @@ class Inked_Filter_Accordion_SO_Widget extends SiteOrigin_Widget {
12
  function __construct() {
13
 
14
  parent::__construct(
15
-
16
  'ink-filt-ardn',
17
-
18
  __( 'Inked Filter Accordion', 'wpinked-widgets' ),
19
-
20
  array(
21
  'description' => __( 'Expand and collapse content that is broken into logical sections.', 'wpinked-widgets' ),
22
  'help' => 'http://widgets-docs.wpinked.com/article/29-filter-accordion-widget'
23
  ),
24
-
25
  array(
26
  ),
 
 
 
 
27
 
28
- array(
29
- 'title' => array(
30
- 'type' => 'text',
31
- 'label' => __( 'Title', 'wpinked-widgets' ),
32
- 'default' => ''
33
- ),
 
34
 
35
- 'id' => array(
36
- 'type' => 'text',
37
- 'label' => __( 'ID', 'wpinked-widgets' ),
38
- 'description' => __( 'Should be unique on the page. Must begin with alphabets[A-Za-z]. Should not contain spaces.', 'wpinked-widgets' ),
39
- 'default' => ''
40
- ),
41
 
42
- 'expand' => array(
43
- 'type' => 'checkbox',
44
- 'label' => __( 'Open multiple toggles simultaneously?', 'wpinked-widgets' ),
45
- 'default' => false
46
- ),
47
 
48
- 'toggleable' => array(
49
- 'type' => 'checkbox',
50
- 'label' => __( 'Close toggle only if another is open ?', 'wpinked-widgets' ),
51
- 'default' => false
52
- ),
53
 
54
- 'icon-open' => array(
55
- 'type' => 'icon',
56
- 'label' => __( 'Closed Toggle Icon', 'wpinked-widgets' ),
57
- ),
58
 
59
- 'icon-close' => array(
60
- 'type' => 'icon',
61
- 'label' => __( 'Open Toggle Icon.', 'wpinked-widgets' ),
62
- ),
63
 
64
- 'show-all' => array(
65
- 'type' => 'checkbox',
66
- 'label' => __( 'Show all text ?', 'wpinked-widgets' ),
67
- 'default' => true
68
- ),
 
 
 
 
 
 
69
 
70
- 'all' => array(
71
- 'type' => 'text',
72
- 'label' => __( 'Label for showing all Toggles', 'wpinked-widgets' ),
73
- 'default' => 'ALL'
 
 
 
 
74
  ),
 
75
 
76
- 'filters' => array(
77
- 'type' => 'repeater',
78
- 'label' => __( 'Filters' , 'wpinked-widgets' ),
79
- 'item_name' => __( 'Filter', 'wpinked-widgets' ),
80
- 'item_label' => array(
81
- 'selector' => "[id*='title']",
82
- 'update_event' => 'change',
83
- 'value_method' => 'val'
84
  ),
85
- 'fields' => array(
86
 
87
- 'name' => array(
88
- 'type' => 'text',
89
- 'label' => __( 'Filter', 'wpinked-widgets' ),
90
- 'default' => ''
91
- ),
 
92
 
93
- 'slug' => array(
94
- 'type' => 'text',
95
- 'label' => __( 'Slug', 'wpinked-widgets' ),
96
- 'default' => '',
97
- 'description' => __( 'Should be unique. Should not contain spaces.', 'wpinked-widgets' ),
98
- ),
99
 
100
- )
 
 
 
 
 
 
 
101
  ),
 
102
 
103
- 'toggles' => array(
104
- 'type' => 'repeater',
105
- 'label' => __( 'Toggles' , 'wpinked-widgets' ),
106
- 'item_name' => __( 'Toggle', 'wpinked-widgets' ),
107
- 'item_label' => array(
108
- 'selector' => "[id*='title']",
109
- 'update_event' => 'change',
110
- 'value_method' => 'val'
111
  ),
112
- 'fields' => array(
113
 
114
- 'title' => array(
115
- 'type' => 'text',
116
- 'label' => __( 'Title', 'wpinked-widgets' ),
117
- 'default' => ''
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
118
  ),
 
119
 
120
- 'active' => array(
121
- 'type' => 'checkbox',
122
- 'label' => __( 'Open by default ?', 'wpinked-widgets' ),
123
- 'default' => false,
 
 
 
124
  ),
 
125
 
126
- 'slugs' => array(
127
- 'type' => 'text',
128
- 'label' => __( 'Slugs', 'wpinked-widgets' ),
129
- 'default' => '',
130
- 'description' => __( 'Add the slugs from above for which this toggle should be visible. Leave spaces between slugs.', 'wpinked-widgets' ),
 
131
  ),
 
 
 
 
132
 
133
- 'content' => array(
134
- 'type' => 'tinymce',
135
- 'label' => __( 'Content', 'wpinked-widgets' ),
136
- 'default' => '',
137
- 'rows' => 10,
138
- 'default_editor' => 'tinymce',
139
- 'button_filters' => array(
140
- 'mce_buttons' => array( $this, 'filter_mce_buttons' ),
141
- 'mce_buttons_2' => array( $this, 'filter_mce_buttons_2' ),
142
- 'mce_buttons_3' => array( $this, 'filter_mce_buttons_3' ),
143
- 'mce_buttons_4' => array( $this, 'filter_mce_buttons_5' ),
144
- 'quicktags_settings' => array( $this, 'filter_quicktags_settings' ),
145
- ),
 
146
  )
 
147
 
148
- )
149
- ),
 
 
150
 
151
- 'styling' => array(
152
- 'type' => 'section',
153
- 'label' => __( 'Styling' , 'wpinked-widgets' ),
154
- 'hide' => true,
155
- 'fields' => array(
156
-
157
- 'type-theme' => array(
158
- 'type' => 'select',
159
- 'label' => __( 'Filter List Theme', 'wpinked-widgets' ),
160
- 'default' => 'minimal',
161
- 'options' => array(
162
- 'minimal' => __( 'Minimal', 'wpinked-widgets' ),
163
- 'outline' => __( 'Outline', 'wpinked-widgets' ),
164
- 'flat' => __( 'Flat', 'wpinked-widgets' )
165
- )
166
- ),
167
 
168
- 'type-color' => array(
169
- 'type' => 'color',
170
- 'label' => __( 'Filter List Color', 'wpinked-widgets' ),
171
- 'default' => '',
172
- 'description' => __( 'Typically used as text color.', 'wpinked-widgets' ),
173
- ),
174
 
175
- 'type-h-color' => array(
176
- 'type' => 'color',
177
- 'label' => __( 'Filter List Highlight Color', 'wpinked-widgets' ),
178
- 'default' => '',
179
- 'description' => __( 'Typically used as button background.', 'wpinked-widgets' ),
180
- ),
 
 
 
 
181
 
182
- 'type-pos' => array(
183
- 'type' => 'select',
184
- 'label' => __( 'Filter List Position', 'wpinked-widgets' ),
185
- 'default' => 'center',
186
- 'options' => array(
187
- 'left' => __( 'Left', 'wpinked-widgets' ),
188
- 'center' => __( 'Center', 'wpinked-widgets' ),
189
- 'right' => __( 'Right', 'wpinked-widgets' )
190
- )
191
- ),
192
 
193
- 'icon' => array(
194
- 'type' => 'select',
195
- 'label' => __( 'Icon Location', 'wpinked-widgets' ),
196
- 'default' => 'right',
197
- 'options' => array(
198
- 'left' => __( 'Left', 'wpinked-widgets' ),
199
- 'right' => __( 'Right', 'wpinked-widgets' )
200
- )
201
- ),
 
202
 
203
- 'text' => array(
204
- 'type' => 'select',
205
- 'label' => __( 'Text Alignment', 'wpinked-widgets' ),
206
- 'default' => 'iw-text-left',
207
- 'options' => array(
208
- 'iw-text-left' => __( 'Left', 'wpinked-widgets' ),
209
- 'iw-text-center' => __( 'Center', 'wpinked-widgets' ),
210
- 'iw-text-right' => __( 'Right', 'wpinked-widgets' ),
211
- )
212
- ),
213
 
214
- 'gap' => array(
215
- 'type' => 'checkbox',
216
- 'label' => __( 'Gap between toggles?', 'wpinked-widgets' ),
217
- 'default' => true
218
- ),
219
 
220
- 'title-bg' => array(
221
- 'type' => 'color',
222
- 'label' => __( 'Title Background Color', 'wpinked-widgets' ),
223
- 'default' => ''
224
- ),
225
 
226
- 'title-h-bg' => array(
227
- 'type' => 'color',
228
- 'label' => __( 'Title Background Hover Color', 'wpinked-widgets' ),
229
- 'default' => ''
230
- ),
231
 
232
- 'title' => array(
233
- 'type' => 'color',
234
- 'label' => __( 'Title Color', 'wpinked-widgets' ),
235
- 'default' => ''
236
- ),
237
 
238
- 'title-h' => array(
239
- 'type' => 'color',
240
- 'label' => __( 'Title Hover Color', 'wpinked-widgets' ),
241
- 'default' => ''
242
- ),
243
 
244
- 'icon-open' => array(
245
- 'type' => 'color',
246
- 'label' => __( 'Icon Open Color', 'wpinked-widgets' ),
247
- 'default' => ''
248
- ),
249
 
250
- 'icon-close' => array(
251
- 'type' => 'color',
252
- 'label' => __( 'Icon Close Color', 'wpinked-widgets' ),
253
- 'default' => ''
254
- ),
255
 
256
- 'content-bg' => array(
257
- 'type' => 'color',
258
- 'label' => __( 'Content Background Color', 'wpinked-widgets' ),
259
- 'default' => ''
260
- ),
261
 
262
- )
263
- ),
264
  ),
265
-
266
- //The $base_folder path string.
267
- plugin_dir_path(__FILE__)
268
  );
269
  }
270
 
@@ -295,7 +329,7 @@ class Inked_Filter_Accordion_SO_Widget extends SiteOrigin_Widget {
295
  function get_less_variables($instance) {
296
  if( empty( $instance ) ) return array();
297
 
298
- return array(
299
  'gap' => $instance['styling']['gap'],
300
  'icon' => $instance['styling']['icon'],
301
  'title' => $instance['styling']['title'],
@@ -310,6 +344,40 @@ class Inked_Filter_Accordion_SO_Widget extends SiteOrigin_Widget {
310
  'type-hl' => $instance['styling']['type-h-color'],
311
  'type-pos' => $instance['styling']['type-pos'],
312
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
313
  }
314
 
315
  }
12
  function __construct() {
13
 
14
  parent::__construct(
 
15
  'ink-filt-ardn',
 
16
  __( 'Inked Filter Accordion', 'wpinked-widgets' ),
 
17
  array(
18
  'description' => __( 'Expand and collapse content that is broken into logical sections.', 'wpinked-widgets' ),
19
  'help' => 'http://widgets-docs.wpinked.com/article/29-filter-accordion-widget'
20
  ),
 
21
  array(
22
  ),
23
+ false,
24
+ plugin_dir_path(__FILE__)
25
+ );
26
+ }
27
 
28
+ function get_widget_form() {
29
+ return array(
30
+ 'title' => array(
31
+ 'type' => 'text',
32
+ 'label' => __( 'Title', 'wpinked-widgets' ),
33
+ 'default' => ''
34
+ ),
35
 
36
+ 'id' => array(
37
+ 'type' => 'text',
38
+ 'label' => __( 'ID', 'wpinked-widgets' ),
39
+ 'description' => __( 'Should be unique on the page. Must begin with alphabets[A-Za-z]. Should not contain spaces.', 'wpinked-widgets' ),
40
+ 'default' => ''
41
+ ),
42
 
43
+ 'expand' => array(
44
+ 'type' => 'checkbox',
45
+ 'label' => __( 'Open multiple toggles simultaneously?', 'wpinked-widgets' ),
46
+ 'default' => false
47
+ ),
48
 
49
+ 'toggleable' => array(
50
+ 'type' => 'checkbox',
51
+ 'label' => __( 'Close toggle only if another is open ?', 'wpinked-widgets' ),
52
+ 'default' => false
53
+ ),
54
 
55
+ 'icon-open' => array(
56
+ 'type' => 'icon',
57
+ 'label' => __( 'Closed Toggle Icon', 'wpinked-widgets' ),
58
+ ),
59
 
60
+ 'icon-close' => array(
61
+ 'type' => 'icon',
62
+ 'label' => __( 'Open Toggle Icon.', 'wpinked-widgets' ),
63
+ ),
64
 
65
+ 'show-all' => array(
66
+ 'type' => 'checkbox',
67
+ 'label' => __( 'Show all text ?', 'wpinked-widgets' ),
68
+ 'default' => true
69
+ ),
70
+
71
+ 'all' => array(
72
+ 'type' => 'text',
73
+ 'label' => __( 'Label for showing all Toggles', 'wpinked-widgets' ),
74
+ 'default' => 'ALL'
75
+ ),
76
 
77
+ 'filters' => array(
78
+ 'type' => 'repeater',
79
+ 'label' => __( 'Filters' , 'wpinked-widgets' ),
80
+ 'item_name' => __( 'Filter', 'wpinked-widgets' ),
81
+ 'item_label' => array(
82
+ 'selector' => "[id*='title']",
83
+ 'update_event' => 'change',
84
+ 'value_method' => 'val'
85
  ),
86
+ 'fields' => array(
87
 
88
+ 'name' => array(
89
+ 'type' => 'text',
90
+ 'label' => __( 'Filter', 'wpinked-widgets' ),
91
+ 'default' => ''
 
 
 
 
92
  ),
 
93
 
94
+ 'slug' => array(
95
+ 'type' => 'text',
96
+ 'label' => __( 'Slug', 'wpinked-widgets' ),
97
+ 'default' => '',
98
+ 'description' => __( 'Should be unique. Should not contain spaces.', 'wpinked-widgets' ),
99
+ ),
100
 
101
+ )
102
+ ),
 
 
 
 
103
 
104
+ 'toggles' => array(
105
+ 'type' => 'repeater',
106
+ 'label' => __( 'Toggles' , 'wpinked-widgets' ),
107
+ 'item_name' => __( 'Toggle', 'wpinked-widgets' ),
108
+ 'item_label' => array(
109
+ 'selector' => "[id*='title']",
110
+ 'update_event' => 'change',
111
+ 'value_method' => 'val'
112
  ),
113
+ 'fields' => array(
114
 
115
+ 'title' => array(
116
+ 'type' => 'text',
117
+ 'label' => __( 'Title', 'wpinked-widgets' ),
118
+ 'default' => ''
 
 
 
 
119
  ),
 
120
 
121
+ 'active' => array(
122
+ 'type' => 'checkbox',
123
+ 'label' => __( 'Open by default ?', 'wpinked-widgets' ),
124
+ 'default' => false,
125
+ ),
126
+
127
+ 'slugs' => array(
128
+ 'type' => 'text',
129
+ 'label' => __( 'Slugs', 'wpinked-widgets' ),
130
+ 'default' => '',
131
+ 'description' => __( 'Add the slugs from above for which this toggle should be visible. Leave spaces between slugs.', 'wpinked-widgets' ),
132
+ ),
133
+
134
+ 'content_type' => array(
135
+ 'type' => 'select',
136
+ 'label' => __( 'Content Type', 'wpinked-widgets' ),
137
+ 'default' => 'tinymce',
138
+ 'options' => array(
139
+ 'tinymce' => __( 'TinyMCE Editor', 'wpinked-widgets' ),
140
+ 'builder' => __( 'Page Builder', 'wpinked-widgets' )
141
+ ),
142
+ 'state_emitter' => array(
143
+ 'callback' => 'select',
144
+ 'args' => array( 'ctnt_type' )
145
+ )
146
+ ),
147
+
148
+ 'content' => array(
149
+ 'type' => 'tinymce',
150
+ 'label' => __( 'Content', 'wpinked-widgets' ),
151
+ 'state_handler' => array(
152
+ 'ctnt_type[tinymce]' => array( 'show' ),
153
+ 'ctnt_type[builder]' => array( 'hide' ),
154
  ),
155
+ ),
156
 
157
+ 'autop' => array(
158
+ 'type' => 'checkbox',
159
+ 'default' => false,
160
+ 'label' => __( 'Automatically add paragraphs', 'wpinked-widgets' ),
161
+ 'state_handler' => array(
162
+ 'ctnt_type[tinymce]' => array( 'show' ),
163
+ 'ctnt_type[builder]' => array( 'hide' ),
164
  ),
165
+ ),
166
 
167
+ 'builder' => array(
168
+ 'type' => 'premium',
169
+ 'label' => __( 'Builder', 'wpinked-widgets' ),
170
+ 'state_handler' => array(
171
+ 'ctnt_type[tinymce]' => array( 'hide' ),
172
+ 'ctnt_type[builder]' => array( 'show' ),
173
  ),
174
+ ),
175
+
176
+ )
177
+ ),
178
 
179
+ 'styling' => array(
180
+ 'type' => 'section',
181
+ 'label' => __( 'Styling' , 'wpinked-widgets' ),
182
+ 'hide' => true,
183
+ 'fields' => array(
184
+
185
+ 'type-theme' => array(
186
+ 'type' => 'select',
187
+ 'label' => __( 'Filter List Theme', 'wpinked-widgets' ),
188
+ 'default' => 'minimal',
189
+ 'options' => array(
190
+ 'minimal' => __( 'Minimal', 'wpinked-widgets' ),
191
+ 'outline' => __( 'Outline', 'wpinked-widgets' ),
192
+ 'flat' => __( 'Flat', 'wpinked-widgets' )
193
  )
194
+ ),
195
 
196
+ 'type-font' => array(
197
+ 'type' => 'premium',
198
+ 'label' => __( 'Filter List Font', 'wpinked-widgets' ),
199
+ ),
200
 
201
+ 'type-color' => array(
202
+ 'type' => 'color',
203
+ 'label' => __( 'Filter List Color', 'wpinked-widgets' ),
204
+ 'default' => '',
205
+ 'description' => __( 'Typically used as text color.', 'wpinked-widgets' ),
206
+ ),
 
 
 
 
 
 
 
 
 
 
207
 
208
+ 'type-h-color' => array(
209
+ 'type' => 'color',
210
+ 'label' => __( 'Filter List Highlight Color', 'wpinked-widgets' ),
211
+ 'default' => '',
212
+ 'description' => __( 'Typically used as button background.', 'wpinked-widgets' ),
213
+ ),
214
 
215
+ 'type-pos' => array(
216
+ 'type' => 'select',
217
+ 'label' => __( 'Filter List Position', 'wpinked-widgets' ),
218
+ 'default' => 'center',
219
+ 'options' => array(
220
+ 'left' => __( 'Left', 'wpinked-widgets' ),
221
+ 'center' => __( 'Center', 'wpinked-widgets' ),
222
+ 'right' => __( 'Right', 'wpinked-widgets' )
223
+ )
224
+ ),
225
 
226
+ 'icon' => array(
227
+ 'type' => 'select',
228
+ 'label' => __( 'Icon Location', 'wpinked-widgets' ),
229
+ 'default' => 'right',
230
+ 'options' => array(
231
+ 'left' => __( 'Left', 'wpinked-widgets' ),
232
+ 'right' => __( 'Right', 'wpinked-widgets' )
233
+ )
234
+ ),
 
235
 
236
+ 'text' => array(
237
+ 'type' => 'select',
238
+ 'label' => __( 'Text Alignment', 'wpinked-widgets' ),
239
+ 'default' => 'iw-text-left',
240
+ 'options' => array(
241
+ 'iw-text-left' => __( 'Left', 'wpinked-widgets' ),
242
+ 'iw-text-center' => __( 'Center', 'wpinked-widgets' ),
243
+ 'iw-text-right' => __( 'Right', 'wpinked-widgets' ),
244
+ )
245
+ ),
246
 
247
+ 'gap' => array(
248
+ 'type' => 'checkbox',
249
+ 'label' => __( 'Gap between toggles?', 'wpinked-widgets' ),
250
+ 'default' => true
251
+ ),
 
 
 
 
 
252
 
253
+ 'title-bg' => array(
254
+ 'type' => 'color',
255
+ 'label' => __( 'Title Background Color', 'wpinked-widgets' ),
256
+ 'default' => ''
257
+ ),
258
 
259
+ 'title-h-bg' => array(
260
+ 'type' => 'color',
261
+ 'label' => __( 'Title Background Hover Color', 'wpinked-widgets' ),
262
+ 'default' => ''
263
+ ),
264
 
265
+ 'title' => array(
266
+ 'type' => 'color',
267
+ 'label' => __( 'Title Color', 'wpinked-widgets' ),
268
+ 'default' => ''
269
+ ),
270
 
271
+ 'title-h' => array(
272
+ 'type' => 'color',
273
+ 'label' => __( 'Title Hover Color', 'wpinked-widgets' ),
274
+ 'default' => ''
275
+ ),
276
 
277
+ 'title-font' => array(
278
+ 'type' => 'premium',
279
+ 'label' => __( 'Title Font', 'wpinked-widgets' ),
280
+ ),
 
281
 
282
+ 'icon-open' => array(
283
+ 'type' => 'color',
284
+ 'label' => __( 'Icon Open Color', 'wpinked-widgets' ),
285
+ 'default' => ''
286
+ ),
287
 
288
+ 'icon-close' => array(
289
+ 'type' => 'color',
290
+ 'label' => __( 'Icon Close Color', 'wpinked-widgets' ),
291
+ 'default' => ''
292
+ ),
293
 
294
+ 'content-bg' => array(
295
+ 'type' => 'color',
296
+ 'label' => __( 'Content Background Color', 'wpinked-widgets' ),
297
+ 'default' => ''
298
+ ),
299
 
300
+ )
 
301
  ),
 
 
 
302
  );
303
  }
304
 
329
  function get_less_variables($instance) {
330
  if( empty( $instance ) ) return array();
331
 
332
+ $less_variables = array(
333
  'gap' => $instance['styling']['gap'],
334
  'icon' => $instance['styling']['icon'],
335
  'title' => $instance['styling']['title'],
344
  'type-hl' => $instance['styling']['type-h-color'],
345
  'type-pos' => $instance['styling']['type-pos'],
346
  );
347
+
348
+ if ( function_exists( 'wpinked_pro_so_widgets' ) ) {
349
+ if ( $instance['styling']['title-font'] ) {
350
+ $title_font = siteorigin_widget_get_font( $instance['styling']['title-font'] );
351
+ $less_variables['title-font-fly'] = $title_font['family'];
352
+ if( ! empty( $title_font['weight'] ) ) {
353
+ $less_variables['title-font-wt'] = $title_font['weight'];
354
+ }
355
+ }
356
+ if ( $instance['styling']['type-font'] ) {
357
+ $type_font = siteorigin_widget_get_font( $instance['styling']['type-font'] );
358
+ $less_variables['type-font-fly'] = $type_font['family'];
359
+ if( ! empty( $type_font['weight'] ) ) {
360
+ $less_variables['type-font-wt'] = $type_font['weight'];
361
+ }
362
+ }
363
+ }
364
+
365
+ return $less_variables;
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
  }
widgets/ink-fard-widget/styles/filter-accordion.less CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  @gap: 0;
2
  @icon: right;
3
  @title-bg: transparent;
@@ -11,6 +15,10 @@
11
  @type-clr: #95a5a6;
12
  @type-hl: #2c3e50;
13
  @type-pos: 'center';
 
 
 
 
14
 
15
  .iw-so-filter-acrdn-terms .iw-so-acrdn-terms {
16
 
@@ -26,6 +34,7 @@
26
 
27
  a {
28
  color: @type-clr;
 
29
 
30
  .type-theme() when (@type-th = minimal) {
31
  padding-left: 2px;
@@ -65,6 +74,7 @@
65
  .iw-so-acc-title {
66
  background: @title-bg;
67
  color: @title;
 
68
 
69
  .icon-padding() when (@icon = right) { padding-right: 3.5em; }
70
  .icon-padding() when (@icon = left) { padding-left: 3.5em; }
1
+ @import "../mixins/less/mixins";
2
+
3
+ .widget-function('import_google_font');
4
+
5
  @gap: 0;
6
  @icon: right;
7
  @title-bg: transparent;
15
  @type-clr: #95a5a6;
16
  @type-hl: #2c3e50;
17
  @type-pos: 'center';
18
+ @title-font-fly: default;
19
+ @title-font-wt: bold;
20
+ @type-font-fly: default;
21
+ @type-font-wt: bold;
22
 
23
  .iw-so-filter-acrdn-terms .iw-so-acrdn-terms {
24
 
34
 
35
  a {
36
  color: @type-clr;
37
+ .font(@type-font-fly, @type-font-wt);
38
 
39
  .type-theme() when (@type-th = minimal) {
40
  padding-left: 2px;
74
  .iw-so-acc-title {
75
  background: @title-bg;
76
  color: @title;
77
+ .font(@title-font-fly, @title-font-wt);
78
 
79
  .icon-padding() when (@icon = right) { padding-right: 3.5em; }
80
  .icon-padding() when (@icon = left) { padding-left: 3.5em; }
widgets/ink-fard-widget/tpl/filter-accordion.php CHANGED
@@ -47,7 +47,7 @@ $unique = ( $instance['id'] ) ? $instance['id'] : 'fard-' . ++$wpinked_widget_co
47
  </a>
48
 
49
  <div class="iw-so-acc-content">
50
- <?php echo do_shortcode( $toggle['content'] ); ?>
51
  </div>
52
 
53
  </div>
47
  </a>
48
 
49
  <div class="iw-so-acc-content">
50
+ <?php echo wpinked_so_pb_content( $toggle['content'], $toggle['autop'], $toggle['content_type'], $toggle['builder'] ); ?>
51
  </div>
52
 
53
  </div>
widgets/ink-mbox-widget/css/media-box.css CHANGED
@@ -39,7 +39,6 @@
39
  -o-appearance: none;
40
  appearance: none;
41
  cursor: pointer;
42
- font-family: inherit;
43
  font-weight: normal;
44
  line-height: normal;
45
  position: relative;
39
  -o-appearance: none;
40
  appearance: none;
41
  cursor: pointer;
 
42
  font-weight: normal;
43
  line-height: normal;
44
  position: relative;
widgets/ink-mbox-widget/ink-mbox-widget.php CHANGED
@@ -12,311 +12,318 @@ class Inked_Media_Box_SO_Widget extends SiteOrigin_Widget {
12
  function __construct() {
13
 
14
  parent::__construct(
15
-
16
  'ink-media-box',
17
-
18
  __( 'Inked Media Box', 'wpinked-widgets' ),
19
-
20
  array(
21
  'description' => __( 'Highlight important bits of information.', 'wpinked-widgets' ),
22
  'help' => 'http://widgets-docs.wpinked.com/article/36-media-box-widget'
23
  ),
24
-
25
  array(
26
  ),
 
 
 
 
27
 
28
- array(
29
-
30
- 'admin' => array(
31
- 'type' => 'text',
32
- 'label' => __( 'Admin Label', 'wpinked-widgets' ),
33
- 'default' => ''
34
- ),
35
-
36
- 'box' => array(
37
- 'type' => 'section',
38
- 'label' => __( 'Box Settings' , 'wpinked-widgets' ),
39
- 'hide' => true,
40
- 'fields' => array(
41
-
42
- 'media' => array(
43
- 'type' => 'select',
44
- 'label' => __( 'Media Type', 'wpinked-widgets' ),
45
- 'default' => 'image',
46
- 'options' => array(
47
- 'image' => __( 'Image', 'wpinked-widgets' ),
48
- 'icon' => __( 'Icon', 'wpinked-widgets' ),
49
- 'oembed' => __( 'oEmbed', 'wpinked-widgets' ),
50
- ),
51
- 'state_emitter' => array(
52
- 'callback' => 'select',
53
- 'args' => array( 'media_type' )
54
- )
55
- ),
56
-
57
- 'image' => array(
58
- 'type' => 'media',
59
- 'fallback' => false,
60
- 'label' => __( 'Image', 'wpinked-widgets' ),
61
- 'default' => '',
62
- 'library' => 'image',
63
- 'state_handler' => array(
64
- 'media_type[image]' => array( 'show' ),
65
- 'media_type[icon]' => array( 'hide' ),
66
- 'media_type[oembed]' => array( 'hide' ),
67
- ),
68
- ),
69
-
70
- 'icon' => array(
71
- 'type' => 'icon',
72
- 'label' => __( 'Icon', 'wpinked-widgets' ),
73
- 'state_handler' => array(
74
- 'media_type[image]' => array( 'hide' ),
75
- 'media_type[icon]' => array( 'show' ),
76
- 'media_type[oembed]' => array( 'hide' ),
77
- ),
78
- ),
79
-
80
- 'oembed' => array(
81
- 'type' => 'text',
82
- 'sanitize' => 'url',
83
- 'label' => __( 'oEmbed URL', 'wpinked-widgets' ),
84
- 'state_handler' => array(
85
- 'media_type[image]' => array( 'hide' ),
86
- 'media_type[icon]' => array( 'hide' ),
87
- 'media_type[oembed]' => array( 'show' ),
88
- )
89
- ),
90
-
91
- 'title' => array(
92
- 'type' => 'text',
93
- 'label' => __( 'Title', 'wpinked-widgets' ),
94
- 'default' => '',
95
- ),
96
-
97
- 'content' => array(
98
- 'type' => 'textarea',
99
- 'label' => __( 'Content', 'wpinked-widgets' ),
100
- 'rows' => 5
101
- ),
102
-
103
- 'btn' => array(
104
- 'type' => 'text',
105
- 'label' => __( 'Button text', 'wpinked-widgets' ),
106
- ),
107
-
108
- 'btn-url' => array(
109
- 'type' => 'link',
110
- 'label' => __( 'Destination URL', 'wpinked-widgets' ),
111
- ),
112
-
113
- 'btn-window' => array(
114
- 'type' => 'checkbox',
115
- 'default' => false,
116
- 'label' => __( 'Open in a new window', 'wpinked-widgets' ),
117
- ),
118
-
119
- 'btn-id' => array(
120
- 'type' => 'text',
121
- 'label' => __( 'Button ID', 'wpinked-widgets' ),
122
- 'description' => __( 'An ID attribute allows you to target this button in Javascript.', 'wpinked-widgets' ),
123
- ),
124
-
125
- 'btn-title' => array(
126
- 'type' => 'text',
127
- 'label' => __( 'Button Title attribute', 'wpinked-widgets' ),
128
- 'description' => __( 'Adds a title attribute to the button link.', 'wpinked-widgets' ),
129
- ),
130
-
131
- 'btn-onclick' => array(
132
- 'type' => 'text',
133
- 'label' => __( 'Button Onclick', 'wpinked-widgets' ),
134
- 'description' => __( 'Run this Javascript when the button is clicked. Ideal for tracking.', 'wpinked-widgets' ),
135
- ),
136
-
137
- )
138
-
139
- ),
140
-
141
- 'styling' => array(
142
- 'type' => 'section',
143
- 'label' => __( 'Styling' , 'wpinked-widgets' ),
144
- 'hide' => true,
145
- 'fields' => array(
146
-
147
- 'padding-top' => array(
148
- 'type' => 'measurement',
149
- 'label' => __( 'Padding Top', 'wpinked-widgets' ),
150
- 'default' => '30px',
151
- ),
152
 
153
- 'padding-bottom' => array(
154
- 'type' => 'measurement',
155
- 'label' => __( 'Padding Bottom', 'wpinked-widgets' ),
156
- 'default' => '30px',
157
- ),
158
 
159
- 'img-shape' => array(
160
- 'type' => 'select',
161
- 'label' => __( 'Image Shape', 'wpinked-widgets' ),
162
- 'default' => '0',
163
- 'options' => array(
164
- '0' => __( 'Sharp', 'wpinked-widgets' ),
165
- '3px' => __( 'Slight Curve', 'wpinked-widgets' ),
166
- '10px' => __( 'High Curve', 'wpinked-widgets' ),
167
- '50%' => __( 'Round', 'wpinked-widgets' ),
168
- ),
169
- 'state_handler' => array(
170
- 'media_type[image]' => array( 'show' ),
171
- 'media_type[icon]' => array( 'hide' ),
172
- 'media_type[oembed]' => array( 'hide' ),
173
- ),
174
  ),
175
-
176
- 'icon-clr' => array(
177
- 'type' => 'color',
178
- 'label' => __( 'Icon Color', 'wpinked-widgets' ),
179
- 'state_handler' => array(
180
- 'media_type[image]' => array( 'hide' ),
181
- 'media_type[icon]' => array( 'show' ),
182
- 'media_type[oembed]' => array( 'hide' ),
183
- ),
 
 
 
 
 
 
 
184
  ),
185
-
186
- 'icon-size' => array(
187
- 'type' => 'measurement',
188
- 'label' => __( 'Icon Size', 'wpinked-widgets' ),
189
- 'default' => '',
190
- 'state_handler' => array(
191
- 'media_type[image]' => array( 'hide' ),
192
- 'media_type[icon]' => array( 'show' ),
193
- 'media_type[oembed]' => array( 'hide' ),
194
- ),
195
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
196
 
197
- 'icon-border' => array(
198
- 'type' => 'checkbox',
199
- 'label' => __( 'Show Icon Border ?', 'wpinked-widgets' ),
200
- 'default' => false,
201
- 'state_handler' => array(
202
- 'media_type[image]' => array( 'hide' ),
203
- 'media_type[icon]' => array( 'show' ),
204
- 'media_type[oembed]' => array( 'hide' ),
205
- ),
206
- ),
207
 
208
- 'icon-border-clr' => array(
209
- 'type' => 'color',
210
- 'label' => __( 'Icon Border Color', 'wpinked-widgets' ),
211
- 'default' => '',
212
- 'state_handler' => array(
213
- 'media_type[image]' => array( 'hide' ),
214
- 'media_type[icon]' => array( 'show' ),
215
- 'media_type[oembed]' => array( 'hide' ),
216
- ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
217
  ),
218
-
219
- 'icon-shape' => array(
220
- 'type' => 'select',
221
- 'label' => __( 'Icon Border Shape', 'wpinked-widgets' ),
222
- 'default' => '0',
223
- 'options' => array(
224
- '0' => __( 'Sharp', 'wpinked-widgets' ),
225
- '3px' => __( 'Slight Curve', 'wpinked-widgets' ),
226
- '10px' => __( 'High Curve', 'wpinked-widgets' ),
227
- '50%' => __( 'Round', 'wpinked-widgets' ),
228
- ),
229
- 'state_handler' => array(
230
- 'media_type[image]' => array( 'hide' ),
231
- 'media_type[icon]' => array( 'show' ),
232
- 'media_type[oembed]' => array( 'hide' ),
233
- ),
234
  ),
235
-
236
- 'title' => array(
237
- 'type' => 'color',
238
- 'label' => __( 'Title Color', 'wpinked-widgets' ),
239
- 'default' => ''
 
 
 
 
240
  ),
241
-
242
- 'content' => array(
243
- 'type' => 'color',
244
- 'label' => __( 'Content Color', 'wpinked-widgets' ),
245
- 'default' => ''
 
 
 
 
 
246
  ),
247
-
248
- 'btn-size' => array(
249
- 'type' => 'select',
250
- 'label' => __( 'Button Size', 'wpinked-widgets' ),
251
- 'default' => 'default',
252
- 'options' => array(
253
- 'default' => __( 'Default', 'wpinked-widgets' ),
254
- 'full' => __( 'Fullwidth', 'wpinked-widgets' ),
255
- ),
 
256
  ),
257
-
258
- 'btn-theme' => array(
259
- 'type' => 'select',
260
- 'label' => __( 'Button Theme', 'wpinked-widgets' ),
261
- 'default' => 'classic',
262
- 'options' => array(
263
- 'classic' => __( 'Classic', 'wpinked-widgets' ),
264
- 'flat' => __( 'Flat', 'wpinked-widgets' ),
265
- 'outline' => __( 'Outline', 'wpinked-widgets' ),
266
- 'threed' => __( '3D', 'wpinked-widgets' ),
267
- 'shadow' => __( 'Shadow', 'wpinked-widgets' ),
268
- 'deline' => __( 'Deline', 'wpinked-widgets' ),
269
- ),
270
  ),
271
-
272
- 'btn-clr' => array(
273
- 'type' => 'color',
274
- 'label' => __( 'Button Highlight Color', 'wpinked-widgets' ),
275
- 'description' => __( 'Typically used as button background.', 'wpinked-widgets' ),
 
 
 
 
 
 
276
  ),
277
-
278
- 'btn-base' => array(
279
- 'type' => 'color',
280
- 'label' => __( 'Button Base Color', 'wpinked-widgets' ),
281
- 'description' => __( 'Typically used as text color.', 'wpinked-widgets' ),
282
  ),
283
-
284
- 'btn-hover' => array(
285
- 'type' => 'checkbox',
286
- 'default' => true,
287
- 'label' => __( 'Use button hover effect ?', 'wpinked-widgets' ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
288
  ),
289
-
290
- 'btn-click' => array(
291
- 'type' => 'checkbox',
292
- 'default' => true,
293
- 'label' => __( 'Use button click effect ?', 'wpinked-widgets' ),
 
 
 
 
 
 
 
 
294
  ),
295
-
296
- 'btn-corners' => array(
297
- 'type' => 'select',
298
- 'label' => __( 'Button Corners', 'wpinked-widgets' ),
299
- 'default' => '0.25em',
300
- 'options' => array(
301
- '0em' => __( 'Sharp', 'wpinked-widgets' ),
302
- '0.25em' => __( 'Slightly curved', 'wpinked-widgets' ),
303
- '0.75em' => __( 'Highly curved', 'wpinked-widgets' ),
304
- '1.5em' => __( 'Round', 'wpinked-widgets' ),
305
- ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
306
  ),
 
307
 
308
- 'background' => array(
309
- 'type' => 'color',
310
- 'label' => __( 'Media Box Background Color', 'wpinked-widgets' ),
311
- 'default' => ''
312
- ),
313
 
314
- )
315
- ),
316
  ),
317
-
318
- //The $base_folder path string.
319
- plugin_dir_path(__FILE__)
320
  );
321
  }
322
 
@@ -338,7 +345,7 @@ class Inked_Media_Box_SO_Widget extends SiteOrigin_Widget {
338
  function get_less_variables($instance) {
339
  if( empty( $instance ) ) return array();
340
 
341
- return array(
342
  'img-shape' => $instance['styling']['img-shape'],
343
  'icon-bdr' => $instance['styling']['icon-border'],
344
  'icon-bdr-clr' => $instance['styling']['icon-border-clr'],
@@ -354,6 +361,40 @@ class Inked_Media_Box_SO_Widget extends SiteOrigin_Widget {
354
  'content' => $instance['styling']['content'],
355
  'bg' => $instance['styling']['background'],
356
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
357
  }
358
 
359
  }
12
  function __construct() {
13
 
14
  parent::__construct(
 
15
  'ink-media-box',
 
16
  __( 'Inked Media Box', 'wpinked-widgets' ),
 
17
  array(
18
  'description' => __( 'Highlight important bits of information.', 'wpinked-widgets' ),
19
  'help' => 'http://widgets-docs.wpinked.com/article/36-media-box-widget'
20
  ),
 
21
  array(
22
  ),
23
+ false,
24
+ plugin_dir_path(__FILE__)
25
+ );
26
+ }
27
 
28
+ function get_widget_form() {
29
+ return array(
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
 
31
+ 'admin' => array(
32
+ 'type' => 'text',
33
+ 'label' => __( 'Admin Label', 'wpinked-widgets' ),
34
+ 'default' => ''
35
+ ),
36
 
37
+ 'box' => array(
38
+ 'type' => 'section',
39
+ 'label' => __( 'Box Settings' , 'wpinked-widgets' ),
40
+ 'hide' => true,
41
+ 'fields' => array(
42
+
43
+ 'media' => array(
44
+ 'type' => 'select',
45
+ 'label' => __( 'Media Type', 'wpinked-widgets' ),
46
+ 'default' => 'image',
47
+ 'options' => array(
48
+ 'image' => __( 'Image', 'wpinked-widgets' ),
49
+ 'icon' => __( 'Icon', 'wpinked-widgets' ),
50
+ 'oembed' => __( 'oEmbed', 'wpinked-widgets' ),
 
51
  ),
52
+ 'state_emitter' => array(
53
+ 'callback' => 'select',
54
+ 'args' => array( 'media_type' )
55
+ )
56
+ ),
57
+
58
+ 'image' => array(
59
+ 'type' => 'media',
60
+ 'fallback' => false,
61
+ 'label' => __( 'Image', 'wpinked-widgets' ),
62
+ 'default' => '',
63
+ 'library' => 'image',
64
+ 'state_handler' => array(
65
+ 'media_type[image]' => array( 'show' ),
66
+ 'media_type[icon]' => array( 'hide' ),
67
+ 'media_type[oembed]' => array( 'hide' ),
68
  ),
69
+ ),
70
+
71
+ 'icon' => array(
72
+ 'type' => 'icon',
73
+ 'label' => __( 'Icon', 'wpinked-widgets' ),
74
+ 'state_handler' => array(
75
+ 'media_type[image]' => array( 'hide' ),
76
+ 'media_type[icon]' => array( 'show' ),
77
+ 'media_type[oembed]' => array( 'hide' ),
 
78
  ),
79
+ ),
80
+
81
+ 'oembed' => array(
82
+ 'type' => 'text',
83
+ 'sanitize' => 'url',
84
+ 'label' => __( 'oEmbed URL', 'wpinked-widgets' ),
85
+ 'state_handler' => array(
86
+ 'media_type[image]' => array( 'hide' ),
87
+ 'media_type[icon]' => array( 'hide' ),
88
+ 'media_type[oembed]' => array( 'show' ),
89
+ )
90
+ ),
91
+
92
+ 'title' => array(
93
+ 'type' => 'text',
94
+ 'label' => __( 'Title', 'wpinked-widgets' ),
95
+ 'default' => '',
96
+ ),
97
+
98
+ 'content' => array(
99
+ 'type' => 'textarea',
100
+ 'label' => __( 'Content', 'wpinked-widgets' ),
101
+ 'rows' => 3
102
+ ),
103
+
104
+ 'btn' => array(
105
+ 'type' => 'text',
106
+ 'label' => __( 'Button text', 'wpinked-widgets' ),
107
+ ),
108
+
109
+ 'btn-url' => array(
110
+ 'type' => 'link',
111
+ 'label' => __( 'Destination URL', 'wpinked-widgets' ),
112
+ ),
113
+
114
+ 'btn-window' => array(
115
+ 'type' => 'checkbox',
116
+ 'default' => false,
117
+ 'label' => __( 'Open in a new window', 'wpinked-widgets' ),
118
+ ),
119
+
120
+ 'btn-id' => array(
121
+ 'type' => 'text',
122
+ 'label' => __( 'Button ID', 'wpinked-widgets' ),
123
+ 'description' => __( 'An ID attribute allows you to target this button in Javascript.', 'wpinked-widgets' ),
124
+ ),
125
+
126
+ 'btn-title' => array(
127
+ 'type' => 'text',
128
+ 'label' => __( 'Button Title attribute', 'wpinked-widgets' ),
129
+ 'description' => __( 'Adds a title attribute to the button link.', 'wpinked-widgets' ),
130
+ ),
131
+
132
+ 'btn-onclick' => array(
133
+ 'type' => 'text',
134
+ 'label' => __( 'Button Onclick', 'wpinked-widgets' ),
135
+ 'description' => __( 'Run this Javascript when the button is clicked. Ideal for tracking.', 'wpinked-widgets' ),
136
+ ),
137
+
138
+ )
139
 
140
+ ),
 
 
 
 
 
 
 
 
 
141
 
142
+ 'styling' => array(
143
+ 'type' => 'section',
144
+ 'label' => __( 'Styling' , 'wpinked-widgets' ),
145
+ 'hide' => true,
146
+ 'fields' => array(
147
+
148
+ 'padding-top' => array(
149
+ 'type' => 'measurement',
150
+ 'label' => __( 'Padding Top', 'wpinked-widgets' ),
151
+ 'default' => '30px',
152
+ ),
153
+
154
+ 'padding-bottom' => array(
155
+ 'type' => 'measurement',
156
+ 'label' => __( 'Padding Bottom', 'wpinked-widgets' ),
157
+ 'default' => '30px',
158
+ ),
159
+
160
+ 'img-shape' => array(
161
+ 'type' => 'select',
162
+ 'label' => __( 'Image Shape', 'wpinked-widgets' ),
163
+ 'default' => '0',
164
+ 'options' => array(
165
+ '0' => __( 'Sharp', 'wpinked-widgets' ),
166
+ '3px' => __( 'Slight Curve', 'wpinked-widgets' ),
167
+ '10px' => __( 'High Curve', 'wpinked-widgets' ),
168
+ '50%' => __( 'Round', 'wpinked-widgets' ),
169
  ),
170
+ 'state_handler' => array(
171
+ 'media_type[image]' => array( 'show' ),
172
+ 'media_type[icon]' => array( 'hide' ),
173
+ 'media_type[oembed]' => array( 'hide' ),
 
 
 
 
 
 
 
 
 
 
 
 
174
  ),
175
+ ),
176
+
177
+ 'icon-clr' => array(
178
+ 'type' => 'color',
179
+ 'label' => __( 'Icon Color', 'wpinked-widgets' ),
180
+ 'state_handler' => array(
181
+ 'media_type[image]' => array( 'hide' ),
182
+ 'media_type[icon]' => array( 'show' ),
183
+ 'media_type[oembed]' => array( 'hide' ),
184
  ),
185
+ ),
186
+
187
+ 'icon-size' => array(
188
+ 'type' => 'measurement',
189
+ 'label' => __( 'Icon Size', 'wpinked-widgets' ),
190
+ 'default' => '',
191
+ 'state_handler' => array(
192
+ 'media_type[image]' => array( 'hide' ),
193
+ 'media_type[icon]' => array( 'show' ),
194
+ 'media_type[oembed]' => array( 'hide' ),
195
  ),
196
+ ),
197
+
198
+ 'icon-border' => array(
199
+ 'type' => 'checkbox',
200
+ 'label' => __( 'Show Icon Border ?', 'wpinked-widgets' ),
201
+ 'default' => false,
202
+ 'state_handler' => array(
203
+ 'media_type[image]' => array( 'hide' ),
204
+ 'media_type[icon]' => array( 'show' ),
205
+ 'media_type[oembed]' => array( 'hide' ),
206
  ),
207
+ ),
208
+
209
+ 'icon-border-clr' => array(
210
+ 'type' => 'color',
211
+ 'label' => __( 'Icon Border Color', 'wpinked-widgets' ),
212
+ 'default' => '',
213
+ 'state_handler' => array(
214
+ 'media_type[image]' => array( 'hide' ),
215
+ 'media_type[icon]' => array( 'show' ),
216
+ 'media_type[oembed]' => array( 'hide' ),
 
 
 
217
  ),
218
+ ),
219
+
220
+ 'icon-shape' => array(
221
+ 'type' => 'select',
222
+ 'label' => __( 'Icon Border Shape', 'wpinked-widgets' ),
223
+ 'default' => '0',
224
+ 'options' => array(
225
+ '0' => __( 'Sharp', 'wpinked-widgets' ),
226
+ '3px' => __( 'Slight Curve', 'wpinked-widgets' ),
227
+ '10px' => __( 'High Curve', 'wpinked-widgets' ),
228
+ '50%' => __( 'Round', 'wpinked-widgets' ),
229
  ),
230
+ 'state_handler' => array(
231
+ 'media_type[image]' => array( 'hide' ),
232
+ 'media_type[icon]' => array( 'show' ),
233
+ 'media_type[oembed]' => array( 'hide' ),
 
234
  ),
235
+ ),
236
+
237
+ 'title' => array(
238
+ 'type' => 'color',
239
+ 'label' => __( 'Title Color', 'wpinked-widgets' ),
240
+ 'default' => ''
241
+ ),
242
+
243
+ 'title-font' => array(
244
+ 'type' => 'premium',
245
+ 'label' => __( 'Title Font', 'wpinked-widgets' ),
246
+ ),
247
+
248
+ 'content' => array(
249
+ 'type' => 'color',
250
+ 'label' => __( 'Content Color', 'wpinked-widgets' ),
251
+ 'default' => ''
252
+ ),
253
+
254
+ 'btn-size' => array(
255
+ 'type' => 'select',
256
+ 'label' => __( 'Button Size', 'wpinked-widgets' ),
257
+ 'default' => 'default',
258
+ 'options' => array(
259
+ 'default' => __( 'Default', 'wpinked-widgets' ),
260
+ 'full' => __( 'Fullwidth', 'wpinked-widgets' ),
261
  ),
262
+ ),
263
+
264
+ 'btn-theme' => array(
265
+ 'type' => 'select',
266
+ 'label' => __( 'Button Theme', 'wpinked-widgets' ),
267
+ 'default' => 'classic',
268
+ 'options' => array(
269
+ 'classic' => __( 'Classic', 'wpinked-widgets' ),
270
+ 'flat' => __( 'Flat', 'wpinked-widgets' ),
271
+ 'outline' => __( 'Outline', 'wpinked-widgets' ),
272
+ 'threed' => __( '3D', 'wpinked-widgets' ),
273
+ 'shadow' => __( 'Shadow', 'wpinked-widgets' ),
274
+ 'deline' => __( 'Deline', 'wpinked-widgets' ),
275
  ),
276
+ ),
277
+
278
+ 'btn-clr' => array(
279
+ 'type' => 'color',
280
+ 'label' => __( 'Button Highlight Color', 'wpinked-widgets' ),
281
+ 'description' => __( 'Typically used as button background.', 'wpinked-widgets' ),
282
+ ),
283
+
284
+ 'btn-base' => array(
285
+ 'type' => 'color',
286
+ 'label' => __( 'Button Base Color', 'wpinked-widgets' ),
287
+ 'description' => __( 'Typically used as text color.', 'wpinked-widgets' ),
288
+ ),
289
+
290
+ 'btn-font' => array(
291
+ 'type' => 'premium',
292
+ 'label' => __( 'Button Font', 'wpinked-widgets' ),
293
+ ),
294
+
295
+ 'btn-hover' => array(
296
+ 'type' => 'checkbox',
297
+ 'default' => true,
298
+ 'label' => __( 'Use button hover effect ?', 'wpinked-widgets' ),
299
+ ),
300
+
301
+ 'btn-click' => array(
302
+ 'type' => 'checkbox',
303
+ 'default' => true,
304
+ 'label' => __( 'Use button click effect ?', 'wpinked-widgets' ),
305
+ ),
306
+
307
+ 'btn-corners' => array(
308
+ 'type' => 'select',
309
+ 'label' => __( 'Button Corners', 'wpinked-widgets' ),
310
+ 'default' => '0.25em',
311
+ 'options' => array(
312
+ '0em' => __( 'Sharp', 'wpinked-widgets' ),
313
+ '0.25em' => __( 'Slightly curved', 'wpinked-widgets' ),
314
+ '0.75em' => __( 'Highly curved', 'wpinked-widgets' ),
315
+ '1.5em' => __( 'Round', 'wpinked-widgets' ),
316
  ),
317
+ ),
318
 
319
+ 'background' => array(
320
+ 'type' => 'color',
321
+ 'label' => __( 'Media Box Background Color', 'wpinked-widgets' ),
322
+ 'default' => ''
323
+ ),
324
 
325
+ )
 
326
  ),
 
 
 
327
  );
328
  }
329
 
345
  function get_less_variables($instance) {
346
  if( empty( $instance ) ) return array();
347
 
348
+ $less_variables = array(
349
  'img-shape' => $instance['styling']['img-shape'],
350
  'icon-bdr' => $instance['styling']['icon-border'],
351
  'icon-bdr-clr' => $instance['styling']['icon-border-clr'],
361
  'content' => $instance['styling']['content'],
362
  'bg' => $instance['styling']['background'],
363
  );
364
+
365
+ if ( function_exists( 'wpinked_pro_so_widgets' ) ) {
366
+ if ( $instance['styling']['title-font'] ) {
367
+ $title_font = siteorigin_widget_get_font( $instance['styling']['title-font'] );
368
+ $less_variables['title-font-fly'] = $title_font['family'];
369
+ if( ! empty( $title_font['weight'] ) ) {
370
+ $less_variables['title-font-wt'] = $title_font['weight'];
371
+ }
372
+ }
373
+ if ( $instance['styling']['btn-font'] ) {
374
+ $type_font = siteorigin_widget_get_font( $instance['styling']['btn-font'] );
375
+ $less_variables['btn-font-fly'] = $type_font['family'];
376
+ if( ! empty( $type_font['weight'] ) ) {
377
+ $less_variables['btn-font-wt'] = $type_font['weight'];
378
+ }
379
+ }
380
+ }
381
+
382
+ return $less_variables;
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
  }
widgets/ink-mbox-widget/styles/media-box.less CHANGED
@@ -1,4 +1,6 @@
1
- @import "../../mixins/less/mixins";
 
 
2
 
3
  @img-shape: 0;
4
  @icon-bdr: '';
@@ -14,6 +16,10 @@
14
  @title: inherit;
15
  @content: inherit;
16
  @bg: '';
 
 
 
 
17
 
18
  .iw-so-media-box {
19
  padding-top: @pad-top;
@@ -40,6 +46,7 @@
40
 
41
  .iw-so-media-box-title {
42
  color: @title;
 
43
  }
44
 
45
  .iw-so-media-box-content {
@@ -53,6 +60,7 @@
53
  .iw-so-media-box-btn {
54
  border-radius: @btn-crnr;
55
  color: @btn-base;
 
56
 
57
  .full-width() when (@btn-size = full) {
58
  padding-left: 0;
1
+ @import "../mixins/less/mixins";
2
+
3
+ .widget-function('import_google_font');
4
 
5
  @img-shape: 0;
6
  @icon-bdr: '';
16
  @title: inherit;
17
  @content: inherit;
18
  @bg: '';
19
+ @title-font-fly: default;
20
+ @title-font-wt: bold;
21
+ @btn-font-fly: default;
22
+ @btn-font-wt: bold;
23
 
24
  .iw-so-media-box {
25
  padding-top: @pad-top;
46
 
47
  .iw-so-media-box-title {
48
  color: @title;
49
+ .font(@title-font-fly, @title-font-wt);
50
  }
51
 
52
  .iw-so-media-box-content {
60
  .iw-so-media-box-btn {
61
  border-radius: @btn-crnr;
62
  color: @btn-base;
63
+ .font(@btn-font-fly, @btn-font-wt);
64
 
65
  .full-width() when (@btn-size = full) {
66
  padding-left: 0;
widgets/ink-numc-widget/ink-numc-widget.php CHANGED
@@ -12,114 +12,111 @@ class Inked_Number_Counter_SO_Widget extends SiteOrigin_Widget {
12
  function __construct() {
13
 
14
  parent::__construct(
15
-
16
  'ink-num-count',
17
-
18
  __( 'Inked Number Counter', 'wpinked-widgets' ),
19
-
20
  array(
21
  'description' => __( 'Animated numbers to display your stats.', 'wpinked-widgets' ),
22
  'help' => 'http://widgets-docs.wpinked.com/article/26-number-counter-widget'
23
  ),
24
-
25
  array(
26
  ),
 
 
 
 
27
 
28
- array(
29
-
30
- 'admin' => array(
31
- 'type' => 'text',
32
- 'label' => __( 'Admin Label', 'wpinked-widgets' ),
33
- 'default' => ''
34
- ),
35
-
36
- 'number' => array(
37
- 'type' => 'section',
38
- 'label' => __( 'Number Settings' , 'wpinked-widgets' ),
39
- 'hide' => true,
40
- 'fields' => array(
41
-
42
- 'start' => array(
43
- 'type' => 'text',
44
- 'label' => __( 'Start', 'wpinked-widgets' ),
45
- 'default' => '0'
46
- ),
47
-
48
- 'end' => array(
49
- 'type' => 'text',
50
- 'label' => __( 'End', 'wpinked-widgets' ),
51
- 'default' => '300'
52
- ),
53
-
54
- 'speed' => array(
55
- 'type' => 'text',
56
- 'label' => __( 'Speed', 'wpinked-widgets' ),
57
- 'default' => '1000',
58
- 'description' => __( 'Number in milliseconds', 'wpinked-widgets' ),
59
- ),
60
-
61
- 'prefix' => array(
62
- 'type' => 'text',
63
- 'label' => __( 'Number Prefix', 'wpinked-widgets' ),
64
- 'default' => ''
65
- ),
66
-
67
- 'suffix' => array(
68
- 'type' => 'text',
69
- 'label' => __( 'Number Suffix', 'wpinked-widgets' ),
70
- 'default' => ''
71
- ),
72
-
73
- 'title' => array(
74
- 'type' => 'text',
75
- 'label' => __( 'Title', 'wpinked-widgets' ),
76
- 'default' => ''
77
- ),
78
-
79
- 'title-pos' => array(
80
- 'type' => 'select',
81
- 'label' => __( 'Title Position', 'wpinked-widgets' ),
82
- 'default' => 'above',
83
- 'options' => array(
84
- 'above' => __( 'Above', 'wpinked-widgets' ),
85
- 'below' => __( 'Below', 'wpinked-widgets' )
86
- ),
87
- ),
88
-
89
- )
90
-
91
- ),
92
-
93
- 'styling' => array(
94
- 'type' => 'section',
95
- 'label' => __( 'Styling' , 'wpinked-widgets' ),
96
- 'hide' => true,
97
- 'fields' => array(
98
 
99
- 'title' => array(
100
- 'type' => 'color',
101
- 'label' => __( 'Title Color', 'wpinked-widgets' ),
102
- 'default' => ''
103
- ),
104
 
105
- 'number' => array(
106
- 'type' => 'color',
107
- 'label' => __( 'Number Color', 'wpinked-widgets' ),
108
- 'default' => ''
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
109
  ),
 
110
 
111
- 'number-size' => array(
112
- 'type' => 'measurement',
113
- 'label' => __( 'Number Size', 'wpinked-widgets' ),
114
- 'default' => '',
115
- ),
116
 
117
- )
118
- ),
119
  ),
120
 
121
- //The $base_folder path string.
122
- plugin_dir_path(__FILE__)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
123
  );
124
  }
125
 
12
  function __construct() {
13
 
14
  parent::__construct(
 
15
  'ink-num-count',
 
16
  __( 'Inked Number Counter', 'wpinked-widgets' ),
 
17
  array(
18
  'description' => __( 'Animated numbers to display your stats.', 'wpinked-widgets' ),
19
  'help' => 'http://widgets-docs.wpinked.com/article/26-number-counter-widget'
20
  ),
 
21
  array(
22
  ),
23
+ false,
24
+ plugin_dir_path(__FILE__)
25
+ );
26
+ }
27
 
28
+ function get_widget_form() {
29
+ return array(
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
 
31
+ 'admin' => array(
32
+ 'type' => 'text',
33
+ 'label' => __( 'Admin Label', 'wpinked-widgets' ),
34
+ 'default' => ''
35
+ ),
36
 
37
+ 'number' => array(
38
+ 'type' => 'section',
39
+ 'label' => __( 'Number Settings' , 'wpinked-widgets' ),
40
+ 'hide' => true,
41
+ 'fields' => array(
42
+
43
+ 'start' => array(
44
+ 'type' => 'text',
45
+ 'label' => __( 'Start', 'wpinked-widgets' ),
46
+ 'default' => '0'
47
+ ),
48
+
49
+ 'end' => array(
50
+ 'type' => 'text',
51
+ 'label' => __( 'End', 'wpinked-widgets' ),
52
+ 'default' => '300'
53
+ ),
54
+
55
+ 'speed' => array(
56
+ 'type' => 'text',
57
+ 'label' => __( 'Speed', 'wpinked-widgets' ),
58
+ 'default' => '1000',
59
+ 'description' => __( 'Number in milliseconds', 'wpinked-widgets' ),
60
+ ),
61
+
62
+ 'prefix' => array(
63
+ 'type' => 'text',
64
+ 'label' => __( 'Number Prefix', 'wpinked-widgets' ),
65
+ 'default' => ''
66
+ ),
67
+
68
+ 'suffix' => array(
69
+ 'type' => 'text',
70
+ 'label' => __( 'Number Suffix', 'wpinked-widgets' ),
71
+ 'default' => ''
72
+ ),
73
+
74
+ 'title' => array(
75
+ 'type' => 'text',
76
+ 'label' => __( 'Title', 'wpinked-widgets' ),
77
+ 'default' => ''
78
+ ),
79
+
80
+ 'title-pos' => array(
81
+ 'type' => 'select',
82
+ 'label' => __( 'Title Position', 'wpinked-widgets' ),
83
+ 'default' => 'above',
84
+ 'options' => array(
85
+ 'above' => __( 'Above', 'wpinked-widgets' ),
86
+ 'below' => __( 'Below', 'wpinked-widgets' )
87
  ),
88
+ ),
89
 
90
+ )
 
 
 
 
91
 
 
 
92
  ),
93
 
94
+ 'styling' => array(
95
+ 'type' => 'section',
96
+ 'label' => __( 'Styling' , 'wpinked-widgets' ),
97
+ 'hide' => true,
98
+ 'fields' => array(
99
+
100
+ 'title' => array(
101
+ 'type' => 'color',
102
+ 'label' => __( 'Title Color', 'wpinked-widgets' ),
103
+ 'default' => ''
104
+ ),
105
+
106
+ 'number' => array(
107
+ 'type' => 'color',
108
+ 'label' => __( 'Number Color', 'wpinked-widgets' ),
109
+ 'default' => ''
110
+ ),
111
+
112
+ 'number-size' => array(
113
+ 'type' => 'measurement',
114
+ 'label' => __( 'Number Size', 'wpinked-widgets' ),
115
+ 'default' => '',
116
+ ),
117
+
118
+ )
119
+ ),
120
  );
121
  }
122
 
widgets/ink-prit-widget/css/pricing-table.css CHANGED
@@ -170,7 +170,6 @@
170
  -o-appearance: none;
171
  appearance: none;
172
  cursor: pointer;
173
- font-family: inherit;
174
  font-weight: normal;
175
  line-height: normal;
176
  position: relative;
170
  -o-appearance: none;
171
  appearance: none;
172
  cursor: pointer;
 
173
  font-weight: normal;
174
  line-height: normal;
175
  position: relative;
widgets/ink-prit-widget/ink-prit-widget.php CHANGED
@@ -12,441 +12,439 @@ class Inked_Pricing_Table_SO_Widget extends SiteOrigin_Widget {
12
  function __construct() {
13
 
14
  parent::__construct(
15
-
16
  'ink-pricing-table',
17
-
18
  __( 'Inked Pricing Table', 'wpinked-widgets' ),
19
-
20
  array(
21
  'description' => __( 'Simple responsive pricing tables.', 'wpinked-widgets' ),
22
  'help' => 'http://widgets-docs.wpinked.com/article/18-pricing-table-widget'
23
  ),
24
-
25
  array(
26
  ),
 
 
 
 
27
 
28
- array(
 
29
 
30
- 'title' => array(
31
- 'type' => 'text',
32
- 'label' => __( 'Admin Label', 'wpinked-widgets' ),
 
 
 
 
 
 
 
 
 
 
33
  ),
 
34
 
35
- 'plans' => array(
36
- 'type' => 'repeater',
37
- 'label' => __( 'Pricing Plans' , 'wpinked-widgets' ),
38
- 'item_name' => __( 'Plan', 'wpinked-widgets' ),
39
- 'item_label' => array(
40
- 'selector' => "[id*='title']",
41
- 'update_event' => 'change',
42
- 'value_method' => 'val'
43
  ),
44
- 'fields' => array(
45
-
46
- 'title' => array(
47
- 'type' => 'text',
48
- 'label' => __( 'Title', 'wpinked-widgets' ),
49
- ),
50
 
51
- 'title-tag' => array(
52
- 'type' => 'text',
53
- 'label' => __( 'Title Tagline', 'wpinked-widgets' ),
54
- ),
55
 
56
- 'price' => array(
57
- 'type' => 'text',
58
- 'label' => __( 'Price', 'wpinked-widgets' ),
59
- ),
60
 
61
- 'price-prefix' => array(
62
- 'type' => 'text',
63
- 'label' => __( 'Price Prefix', 'wpinked-widgets' ),
64
- ),
65
 
66
- 'price-suffix' => array(
67
- 'type' => 'text',
68
- 'label' => __( 'Price Suffix', 'wpinked-widgets' ),
69
- ),
70
 
71
- 'price-tag' => array(
72
- 'type' => 'text',
73
- 'label' => __( 'Pricing Tagline', 'wpinked-widgets' ),
74
- ),
75
 
76
- 'points' => array(
77
- 'type' => 'repeater',
78
- 'label' => __( 'Features' , 'wpinked-widgets' ),
79
- 'item_name' => __( 'Feature', 'wpinked-widgets' ),
80
- 'item_label' => array(
81
- 'selector' => "[id*='text']",
82
- 'update_event' => 'change',
83
- 'value_method' => 'val'
 
 
 
 
 
 
 
84
  ),
85
- 'fields' => array(
86
-
87
- 'text' => array(
88
- 'type' => 'text',
89
- 'label' => __( 'Text', 'wpinked-widgets' ),
90
- 'default' => '',
91
- ),
92
-
93
- )
94
- ),
95
 
96
- 'btn' => array(
97
- 'type' => 'text',
98
- 'label' => __( 'Button text', 'wpinked-widgets' ),
99
- ),
100
 
101
- 'btn-url' => array(
102
- 'type' => 'link',
103
- 'label' => __( 'Destination URL', 'wpinked-widgets' ),
104
- ),
105
 
106
- 'btn-window' => array(
107
- 'type' => 'checkbox',
108
- 'default' => false,
109
- 'label' => __( 'Open in a new window', 'wpinked-widgets' ),
110
- ),
111
 
112
- 'btn-id' => array(
113
- 'type' => 'text',
114
- 'label' => __( 'Button ID', 'wpinked-widgets' ),
115
- 'description' => __( 'An ID attribute allows you to target this button in Javascript.', 'wpinked-widgets' ),
116
- ),
117
 
118
- 'btn-title' => array(
119
- 'type' => 'text',
120
- 'label' => __( 'Button Title attribute', 'wpinked-widgets' ),
121
- 'description' => __( 'Adds a title attribute to the button link.', 'wpinked-widgets' ),
122
- ),
123
 
124
- 'btn-onclick' => array(
125
- 'type' => 'text',
126
- 'label' => __( 'Button Onclick', 'wpinked-widgets' ),
127
- 'description' => __( 'Run this Javascript when the button is clicked. Ideal for tracking.', 'wpinked-widgets' ),
128
- ),
129
 
130
- 'featured' => array(
131
- 'type' => 'checkbox',
132
- 'default' => false,
133
- 'label' => __( 'Featured Plan', 'wpinked-widgets' ),
134
- ),
135
- )
136
- ),
137
 
138
- 'styling' => array(
139
- 'type' => 'section',
140
- 'label' => __( 'Styling' , 'wpinked-widgets' ),
141
- 'hide' => true,
142
- 'fields' => array(
143
-
144
- 'align' => array(
145
- 'type' => 'select',
146
- 'label' => __( 'Text Align', 'wpinked-widgets' ),
147
- 'default' => 'iw-text-center',
148
- 'options' => array(
149
- 'iw-text-left' => __( 'Left', 'wpinked-widgets' ),
150
- 'iw-text-center' => __( 'Center', 'wpinked-widgets' ),
151
- 'iw-text-right' => __( 'Right', 'wpinked-widgets' )
152
- ),
153
- 'description' => __( 'Sets alignment for all text.', 'wpinked-widgets' ),
154
- ),
155
 
156
- 'background' => array(
157
- 'type' => 'color',
158
- 'label' => __( 'Background Color', 'wpinked-widgets' ),
159
- 'default' => ''
160
- ),
 
 
 
 
 
 
 
 
 
 
 
 
161
 
162
- 'border' => array(
163
- 'type' => 'color',
164
- 'label' => __( 'Border Color', 'wpinked-widgets' ),
165
- 'default' => ''
166
- ),
167
 
168
- 'shadow' => array(
169
- 'type' => 'checkbox',
170
- 'default' => false,
171
- 'label' => __( 'Use shadow for plans?', 'wpinked-widgets' ),
172
- ),
173
 
174
- 'title' => array(
175
- 'type' => 'color',
176
- 'label' => __( 'Title Color', 'wpinked-widgets' ),
177
- 'default' => '#333333'
178
- ),
179
 
180
- 'title-tag' => array(
181
- 'type' => 'color',
182
- 'label' => __( 'Title tagline Color', 'wpinked-widgets' ),
183
- 'default' => '#666666'
184
- ),
185
 
186
- 'title-tag-p' => array(
187
- 'type' => 'select',
188
- 'label' => __( 'Title Tagline Position', 'wpinked-widgets' ),
189
- 'default' => 'above',
190
- 'options' => array(
191
- 'above' => __( 'Above Title', 'wpinked-widgets' ),
192
- 'below' => __( 'Below Title', 'wpinked-widgets' ),
193
- ),
194
- ),
195
 
196
- 'title-padding' => array(
197
- 'type' => 'text',
198
- 'label' => __( 'Title Section Padding', 'wpinked-widgets' ),
199
- 'default' => '10px',
200
- 'description' => __( 'Applied above and below the title section. Please specify units, eg: px, em, rem, ...', 'wpinked-widgets' )
 
 
201
  ),
 
202
 
203
- 'title-bg' => array(
204
- 'type' => 'color',
205
- 'label' => __( 'Title Section Background', 'wpinked-widgets' ),
206
- 'default' => ''
207
- ),
 
208
 
209
- 'price' => array(
210
- 'type' => 'color',
211
- 'label' => __( 'Pricing Color', 'wpinked-widgets' ),
212
- 'default' => '#333333'
213
- ),
214
 
215
- 'price-tag' => array(
216
- 'type' => 'color',
217
- 'label' => __( 'Pricing Tagline Color', 'wpinked-widgets' ),
218
- 'default' => '#666666'
219
- ),
220
 
221
- 'price-tag-p' => array(
222
- 'type' => 'select',
223
- 'label' => __( 'Pricing Tag Position', 'wpinked-widgets' ),
224
- 'default' => 'below',
225
- 'options' => array(
226
- 'above' => __( 'Above Pricing', 'wpinked-widgets' ),
227
- 'below' => __( 'Below Pricing', 'wpinked-widgets' ),
228
- ),
229
- ),
230
 
231
- 'price-padding' => array(
232
- 'type' => 'text',
233
- 'label' => __( 'Pricing Section Padding', 'wpinked-widgets' ),
234
- 'default' => '10px',
235
- 'description' => __( 'Applied above and below the price section. Please specify units, eg: px, em, rem, ...', 'wpinked-widgets' )
 
 
236
  ),
 
237
 
238
- 'price-bg' => array(
239
- 'type' => 'color',
240
- 'label' => __( 'Pricing Section Background', 'wpinked-widgets' ),
241
- 'default' => ''
242
- ),
 
243
 
244
- 'features' => array(
245
- 'type' => 'color',
246
- 'label' => __( 'Features Color', 'wpinked-widgets' ),
247
- 'default' => '#666666'
248
- ),
249
 
250
- 'features-padding' => array(
251
- 'type' => 'text',
252
- 'label' => __( 'Features Section Padding', 'wpinked-widgets' ),
253
- 'default' => '10px',
254
- 'description' => __( 'Applied above and below the features section. Please specify units, eg: px, em, rem, ...', 'wpinked-widgets' )
255
- ),
256
 
257
- 'features-gap' => array(
258
- 'type' => 'text',
259
- 'label' => __( 'Padding between Features', 'wpinked-widgets' ),
260
- 'default' => '5px',
261
- 'description' => __( 'Applied below each feature. Please specify units, eg: px, em, rem, ...', 'wpinked-widgets' )
262
- ),
263
 
264
- 'features-bg' => array(
265
- 'type' => 'color',
266
- 'label' => __( 'Features Section Background', 'wpinked-widgets' ),
267
- 'default' => ''
268
- ),
 
269
 
270
- 'button-padding' => array(
271
- 'type' => 'text',
272
- 'label' => __( 'Button Section Padding', 'wpinked-widgets' ),
273
- 'default' => '10px',
274
- 'description' => __( 'Applied above and below the buttons section. Please specify units, eg: px, em, rem, ...', 'wpinked-widgets' )
275
- ),
276
 
277
- 'button-bg' => array(
278
- 'type' => 'color',
279
- 'label' => __( 'Button Section Background', 'wpinked-widgets' ),
280
- 'default' => ''
281
- ),
 
282
 
283
- 'btn-align' => array(
284
- 'type' => 'select',
285
- 'label' => __( 'Button Align', 'wpinked-widgets' ),
286
- 'default' => 'center',
287
- 'options' => array(
288
- 'left' => __( 'Left', 'wpinked-widgets' ),
289
- 'center' => __( 'Center', 'wpinked-widgets' ),
290
- 'right' => __( 'Right', 'wpinked-widgets' ),
291
- 'full' => __( 'Fullwidth', 'wpinked-widgets' ),
292
- ),
293
- ),
294
 
295
- 'btn-theme' => array(
296
- 'type' => 'select',
297
- 'label' => __( 'Button Theme', 'wpinked-widgets' ),
298
- 'default' => 'classic',
299
- 'options' => array(
300
- 'classic' => __( 'Classic', 'wpinked-widgets' ),
301
- 'flat' => __( 'Flat', 'wpinked-widgets' ),
302
- 'outline' => __( 'Outline', 'wpinked-widgets' ),
303
- 'threed' => __( '3D', 'wpinked-widgets' ),
304
- 'shadow' => __( 'Shadow', 'wpinked-widgets' ),
305
- 'deline' => __( 'Deline', 'wpinked-widgets' ),
306
- ),
307
  ),
 
308
 
309
- 'btn-clr' => array(
310
- 'type' => 'color',
311
- 'label' => __( 'Button Highlight Color', 'wpinked-widgets' ),
312
- 'description' => __( 'Typically used as button background.', 'wpinked-widgets' ),
 
 
 
 
 
 
 
313
  ),
 
314
 
315
- 'btn-base' => array(
316
- 'type' => 'color',
317
- 'label' => __( 'Button Base Color', 'wpinked-widgets' ),
318
- 'description' => __( 'Typically used as text color.', 'wpinked-widgets' ),
319
- ),
320
 
321
- 'btn-hover' => array(
322
- 'type' => 'checkbox',
323
- 'default' => true,
324
- 'label' => __( 'Use button hover effect ?', 'wpinked-widgets' ),
325
- ),
326
 
327
- 'btn-click' => array(
328
- 'type' => 'checkbox',
329
- 'default' => true,
330
- 'label' => __( 'Use button click effect ?', 'wpinked-widgets' ),
331
- ),
332
 
333
- 'btn-corners' => array(
334
- 'type' => 'select',
335
- 'label' => __( 'Button Corners', 'wpinked-widgets' ),
336
- 'default' => '0.25em',
337
- 'options' => array(
338
- '0em' => __( 'Sharp', 'wpinked-widgets' ),
339
- '0.25em' => __( 'Slightly curved', 'wpinked-widgets' ),
340
- '0.75em' => __( 'Highly curved', 'wpinked-widgets' ),
341
- '1.5em' => __( 'Round', 'wpinked-widgets' ),
342
- ),
343
- ),
344
 
345
- 'columns' => array(
346
- 'type' => 'slider',
347
- 'label' => __( 'Columns', 'wpinked-widgets' ),
348
- 'default' => 3,
349
- 'min' => 1,
350
- 'max' => 4,
351
- 'integer' => true
 
 
352
  ),
 
353
 
354
- 'gap' => array(
355
- 'type' => 'checkbox',
356
- 'label' => __( 'Gap between Plans?', 'wpinked-widgets' ),
357
- 'default' => ''
358
- ),
 
 
 
359
 
360
- )
361
- ),
 
 
 
362
 
363
- 'featured' => array(
364
- 'type' => 'section',
365
- 'label' => __( 'Featured Styling' , 'wpinked-widgets' ),
366
- 'hide' => true,
367
- 'fields' => array(
368
 
369
- 'background' => array(
370
- 'type' => 'color',
371
- 'label' => __( 'Background Color', 'wpinked-widgets' ),
372
- 'default' => ''
373
- ),
374
 
375
- 'border' => array(
376
- 'type' => 'color',
377
- 'label' => __( 'Border Color', 'wpinked-widgets' ),
378
- 'default' => ''
379
- ),
380
 
381
- 'title-bg' => array(
382
- 'type' => 'color',
383
- 'label' => __( 'Title Section Background', 'wpinked-widgets' ),
384
- 'default' => ''
385
- ),
386
- 'price-bg' => array(
387
- 'type' => 'color',
388
- 'label' => __( 'Pricing Section Background', 'wpinked-widgets' ),
389
- 'default' => ''
390
- ),
391
- 'features-bg' => array(
392
- 'type' => 'color',
393
- 'label' => __( 'Features Section Background', 'wpinked-widgets' ),
394
- 'default' => ''
395
- ),
396
- 'button-bg' => array(
397
- 'type' => 'color',
398
- 'label' => __( 'Button Section Background', 'wpinked-widgets' ),
399
- 'default' => ''
400
- ),
401
 
402
- 'title' => array(
403
- 'type' => 'color',
404
- 'label' => __( 'Title Color', 'wpinked-widgets' ),
405
- 'default' => '#333333'
406
- ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
407
 
408
- 'title-tag' => array(
409
- 'type' => 'color',
410
- 'label' => __( 'Title tagline Color', 'wpinked-widgets' ),
411
- 'default' => '#666666'
412
- ),
413
 
414
- 'price' => array(
415
- 'type' => 'color',
416
- 'label' => __( 'Pricing Color', 'wpinked-widgets' ),
417
- 'default' => '#333333'
418
- ),
419
 
420
- 'price-tag' => array(
421
- 'type' => 'color',
422
- 'label' => __( 'Pricing Tagline Color', 'wpinked-widgets' ),
423
- 'default' => '#666666'
424
- ),
425
 
426
- 'features' => array(
427
- 'type' => 'color',
428
- 'label' => __( 'Features Color', 'wpinked-widgets' ),
429
- 'default' => '#666666'
430
- ),
431
 
432
- 'btn-clr' => array(
433
- 'type' => 'color',
434
- 'label' => __( 'Button Highlight Color', 'wpinked-widgets' ),
435
- 'description' => __( 'Typically used as button background.', 'wpinked-widgets' ),
436
- ),
437
 
438
- 'btn-base' => array(
439
- 'type' => 'color',
440
- 'label' => __( 'Button Base Color', 'wpinked-widgets' ),
441
- 'description' => __( 'Typically used as text color.', 'wpinked-widgets' ),
442
- ),
443
 
444
- )
445
- ),
 
 
 
446
 
 
447
  ),
448
 
449
- plugin_dir_path(__FILE__)
450
  );
451
  }
452
 
12
  function __construct() {
13
 
14
  parent::__construct(
 
15
  'ink-pricing-table',
 
16
  __( 'Inked Pricing Table', 'wpinked-widgets' ),
 
17
  array(
18
  'description' => __( 'Simple responsive pricing tables.', 'wpinked-widgets' ),
19
  'help' => 'http://widgets-docs.wpinked.com/article/18-pricing-table-widget'
20
  ),
 
21
  array(
22
  ),
23
+ false,
24
+ plugin_dir_path(__FILE__)
25
+ );
26
+ }
27
 
28
+ function get_widget_form() {
29
+ return array(
30
 
31
+ 'title' => array(
32
+ 'type' => 'text',
33
+ 'label' => __( 'Admin Label', 'wpinked-widgets' ),
34
+ ),
35
+
36
+ 'plans' => array(
37
+ 'type' => 'repeater',
38
+ 'label' => __( 'Pricing Plans' , 'wpinked-widgets' ),
39
+ 'item_name' => __( 'Plan', 'wpinked-widgets' ),
40
+ 'item_label' => array(
41
+ 'selector' => "[id*='title']",
42
+ 'update_event' => 'change',
43
+ 'value_method' => 'val'
44
  ),
45
+ 'fields' => array(
46
 
47
+ 'title' => array(
48
+ 'type' => 'text',
49
+ 'label' => __( 'Title', 'wpinked-widgets' ),
 
 
 
 
 
50
  ),
 
 
 
 
 
 
51
 
52
+ 'title-tag' => array(
53
+ 'type' => 'text',
54
+ 'label' => __( 'Title Tagline', 'wpinked-widgets' ),
55
+ ),
56
 
57
+ 'price' => array(
58
+ 'type' => 'text',
59
+ 'label' => __( 'Price', 'wpinked-widgets' ),
60
+ ),
61
 
62
+ 'price-prefix' => array(
63
+ 'type' => 'text',
64
+ 'label' => __( 'Price Prefix', 'wpinked-widgets' ),
65
+ ),
66
 
67
+ 'price-suffix' => array(
68
+ 'type' => 'text',
69
+ 'label' => __( 'Price Suffix', 'wpinked-widgets' ),
70
+ ),
71
 
72
+ 'price-tag' => array(
73
+ 'type' => 'text',
74
+ 'label' => __( 'Pricing Tagline', 'wpinked-widgets' ),
75
+ ),
76
 
77
+ 'points' => array(
78
+ 'type' => 'repeater',
79
+ 'label' => __( 'Features' , 'wpinked-widgets' ),
80
+ 'item_name' => __( 'Feature', 'wpinked-widgets' ),
81
+ 'item_label' => array(
82
+ 'selector' => "[id*='text']",
83
+ 'update_event' => 'change',
84
+ 'value_method' => 'val'
85
+ ),
86
+ 'fields' => array(
87
+
88
+ 'text' => array(
89
+ 'type' => 'text',
90
+ 'label' => __( 'Text', 'wpinked-widgets' ),
91
+ 'default' => '',
92
  ),
 
 
 
 
 
 
 
 
 
 
93
 
94
+ )
95
+ ),
 
 
96
 
97
+ 'btn' => array(
98
+ 'type' => 'text',
99
+ 'label' => __( 'Button text', 'wpinked-widgets' ),
100
+ ),
101
 
102
+ 'btn-url' => array(
103
+ 'type' => 'link',
104
+ 'label' => __( 'Destination URL', 'wpinked-widgets' ),
105
+ ),
 
106
 
107
+ 'btn-window' => array(
108
+ 'type' => 'checkbox',
109
+ 'default' => false,
110
+ 'label' => __( 'Open in a new window', 'wpinked-widgets' ),
111
+ ),
112
 
113
+ 'btn-id' => array(
114
+ 'type' => 'text',
115
+ 'label' => __( 'Button ID', 'wpinked-widgets' ),
116
+ 'description' => __( 'An ID attribute allows you to target this button in Javascript.', 'wpinked-widgets' ),
117
+ ),
118
 
119
+ 'btn-title' => array(
120
+ 'type' => 'text',
121
+ 'label' => __( 'Button Title attribute', 'wpinked-widgets' ),
122
+ 'description' => __( 'Adds a title attribute to the button link.', 'wpinked-widgets' ),
123
+ ),
124
 
125
+ 'btn-onclick' => array(
126
+ 'type' => 'text',
127
+ 'label' => __( 'Button Onclick', 'wpinked-widgets' ),
128
+ 'description' => __( 'Run this Javascript when the button is clicked. Ideal for tracking.', 'wpinked-widgets' ),
129
+ ),
 
 
130
 
131
+ 'featured' => array(
132
+ 'type' => 'checkbox',
133
+ 'default' => false,
134
+ 'label' => __( 'Featured Plan', 'wpinked-widgets' ),
135
+ ),
136
+ )
137
+ ),
 
 
 
 
 
 
 
 
 
 
138
 
139
+ 'styling' => array(
140
+ 'type' => 'section',
141
+ 'label' => __( 'Styling' , 'wpinked-widgets' ),
142
+ 'hide' => true,
143
+ 'fields' => array(
144
+
145
+ 'align' => array(
146
+ 'type' => 'select',
147
+ 'label' => __( 'Text Align', 'wpinked-widgets' ),
148
+ 'default' => 'iw-text-center',
149
+ 'options' => array(
150
+ 'iw-text-left' => __( 'Left', 'wpinked-widgets' ),
151
+ 'iw-text-center' => __( 'Center', 'wpinked-widgets' ),
152
+ 'iw-text-right' => __( 'Right', 'wpinked-widgets' )
153
+ ),
154
+ 'description' => __( 'Sets alignment for all text.', 'wpinked-widgets' ),
155
+ ),
156
 
157
+ 'background' => array(
158
+ 'type' => 'color',
159
+ 'label' => __( 'Background Color', 'wpinked-widgets' ),
160
+ 'default' => ''
161
+ ),
162
 
163
+ 'border' => array(
164
+ 'type' => 'color',
165
+ 'label' => __( 'Border Color', 'wpinked-widgets' ),
166
+ 'default' => ''
167
+ ),
168
 
169
+ 'shadow' => array(
170
+ 'type' => 'checkbox',
171
+ 'default' => false,
172
+ 'label' => __( 'Use shadow for plans?', 'wpinked-widgets' ),
173
+ ),
174
 
175
+ 'title' => array(
176
+ 'type' => 'color',
177
+ 'label' => __( 'Title Color', 'wpinked-widgets' ),
178
+ 'default' => '#333333'
179
+ ),
180
 
181
+ 'title-tag' => array(
182
+ 'type' => 'color',
183
+ 'label' => __( 'Title tagline Color', 'wpinked-widgets' ),
184
+ 'default' => '#666666'
185
+ ),
 
 
 
 
186
 
187
+ 'title-tag-p' => array(
188
+ 'type' => 'select',
189
+ 'label' => __( 'Title Tagline Position', 'wpinked-widgets' ),
190
+ 'default' => 'above',
191
+ 'options' => array(
192
+ 'above' => __( 'Above Title', 'wpinked-widgets' ),
193
+ 'below' => __( 'Below Title', 'wpinked-widgets' ),
194
  ),
195
+ ),
196
 
197
+ 'title-padding' => array(
198
+ 'type' => 'text',
199
+ 'label' => __( 'Title Section Padding', 'wpinked-widgets' ),
200
+ 'default' => '10px',
201
+ 'description' => __( 'Applied above and below the title section. Please specify units, eg: px, em, rem, ...', 'wpinked-widgets' )
202
+ ),
203
 
204
+ 'title-bg' => array(
205
+ 'type' => 'color',
206
+ 'label' => __( 'Title Section Background', 'wpinked-widgets' ),
207
+ 'default' => ''
208
+ ),
209
 
210
+ 'price' => array(
211
+ 'type' => 'color',
212
+ 'label' => __( 'Pricing Color', 'wpinked-widgets' ),
213
+ 'default' => '#333333'
214
+ ),
215
 
216
+ 'price-tag' => array(
217
+ 'type' => 'color',
218
+ 'label' => __( 'Pricing Tagline Color', 'wpinked-widgets' ),
219
+ 'default' => '#666666'
220
+ ),
 
 
 
 
221
 
222
+ 'price-tag-p' => array(
223
+ 'type' => 'select',
224
+ 'label' => __( 'Pricing Tag Position', 'wpinked-widgets' ),
225
+ 'default' => 'below',
226
+ 'options' => array(
227
+ 'above' => __( 'Above Pricing', 'wpinked-widgets' ),
228
+ 'below' => __( 'Below Pricing', 'wpinked-widgets' ),
229
  ),
230
+ ),
231
 
232
+ 'price-padding' => array(
233
+ 'type' => 'text',
234
+ 'label' => __( 'Pricing Section Padding', 'wpinked-widgets' ),
235
+ 'default' => '10px',
236
+ 'description' => __( 'Applied above and below the price section. Please specify units, eg: px, em, rem, ...', 'wpinked-widgets' )
237
+ ),
238
 
239
+ 'price-bg' => array(
240
+ 'type' => 'color',
241
+ 'label' => __( 'Pricing Section Background', 'wpinked-widgets' ),
242
+ 'default' => ''
243
+ ),
244
 
245
+ 'features' => array(
246
+ 'type' => 'color',
247
+ 'label' => __( 'Features Color', 'wpinked-widgets' ),
248
+ 'default' => '#666666'
249
+ ),
 
250
 
251
+ 'features-padding' => array(
252
+ 'type' => 'text',
253
+ 'label' => __( 'Features Section Padding', 'wpinked-widgets' ),
254
+ 'default' => '10px',
255
+ 'description' => __( 'Applied above and below the features section. Please specify units, eg: px, em, rem, ...', 'wpinked-widgets' )
256
+ ),
257
 
258
+ 'features-gap' => array(
259
+ 'type' => 'text',
260
+ 'label' => __( 'Padding between Features', 'wpinked-widgets' ),
261
+ 'default' => '5px',
262
+ 'description' => __( 'Applied below each feature. Please specify units, eg: px, em, rem, ...', 'wpinked-widgets' )
263
+ ),
264
 
265
+ 'features-bg' => array(
266
+ 'type' => 'color',
267
+ 'label' => __( 'Features Section Background', 'wpinked-widgets' ),
268
+ 'default' => ''
269
+ ),
 
270
 
271
+ 'button-padding' => array(
272
+ 'type' => 'text',
273
+ 'label' => __( 'Button Section Padding', 'wpinked-widgets' ),
274
+ 'default' => '10px',
275
+ 'description' => __( 'Applied above and below the buttons section. Please specify units, eg: px, em, rem, ...', 'wpinked-widgets' )
276
+ ),
277
 
278
+ 'button-bg' => array(
279
+ 'type' => 'color',
280
+ 'label' => __( 'Button Section Background', 'wpinked-widgets' ),
281
+ 'default' => ''
282
+ ),
 
 
 
 
 
 
283
 
284
+ 'btn-align' => array(
285
+ 'type' => 'select',
286
+ 'label' => __( 'Button Align', 'wpinked-widgets' ),
287
+ 'default' => 'center',
288
+ 'options' => array(
289
+ 'left' => __( 'Left', 'wpinked-widgets' ),
290
+ 'center' => __( 'Center', 'wpinked-widgets' ),
291
+ 'right' => __( 'Right', 'wpinked-widgets' ),
292
+ 'full' => __( 'Fullwidth', 'wpinked-widgets' ),
 
 
 
293
  ),
294
+ ),
295
 
296
+ 'btn-theme' => array(
297
+ 'type' => 'select',
298
+ 'label' => __( 'Button Theme', 'wpinked-widgets' ),
299
+ 'default' => 'classic',
300
+ 'options' => array(
301
+ 'classic' => __( 'Classic', 'wpinked-widgets' ),
302
+ 'flat' => __( 'Flat', 'wpinked-widgets' ),
303
+ 'outline' => __( 'Outline', 'wpinked-widgets' ),
304
+ 'threed' => __( '3D', 'wpinked-widgets' ),
305
+ 'shadow' => __( 'Shadow', 'wpinked-widgets' ),
306
+ 'deline' => __( 'Deline', 'wpinked-widgets' ),
307
  ),
308
+ ),
309
 
310
+ 'btn-clr' => array(
311
+ 'type' => 'color',
312
+ 'label' => __( 'Button Highlight Color', 'wpinked-widgets' ),
313
+ 'description' => __( 'Typically used as button background.', 'wpinked-widgets' ),
314
+ ),
315
 
316
+ 'btn-base' => array(
317
+ 'type' => 'color',
318
+ 'label' => __( 'Button Base Color', 'wpinked-widgets' ),
319
+ 'description' => __( 'Typically used as text color.', 'wpinked-widgets' ),
320
+ ),
321
 
322
+ 'btn-hover' => array(
323
+ 'type' => 'checkbox',
324
+ 'default' => true,
325
+ 'label' => __( 'Use button hover effect ?', 'wpinked-widgets' ),
326
+ ),
327
 
328
+ 'btn-click' => array(
329
+ 'type' => 'checkbox',
330
+ 'default' => true,
331
+ 'label' => __( 'Use button click effect ?', 'wpinked-widgets' ),
332
+ ),
 
 
 
 
 
 
333
 
334
+ 'btn-corners' => array(
335
+ 'type' => 'select',
336
+ 'label' => __( 'Button Corners', 'wpinked-widgets' ),
337
+ 'default' => '0.25em',
338
+ 'options' => array(
339
+ '0em' => __( 'Sharp', 'wpinked-widgets' ),
340
+ '0.25em' => __( 'Slightly curved', 'wpinked-widgets' ),
341
+ '0.75em' => __( 'Highly curved', 'wpinked-widgets' ),
342
+ '1.5em' => __( 'Round', 'wpinked-widgets' ),
343
  ),
344
+ ),
345
 
346
+ 'columns' => array(
347
+ 'type' => 'slider',
348
+ 'label' => __( 'Columns', 'wpinked-widgets' ),
349
+ 'default' => 3,
350
+ 'min' => 1,
351
+ 'max' => 4,
352
+ 'integer' => true
353
+ ),
354
 
355
+ 'gap' => array(
356
+ 'type' => 'checkbox',
357
+ 'label' => __( 'Gap between Plans?', 'wpinked-widgets' ),
358
+ 'default' => ''
359
+ ),
360
 
361
+ )
362
+ ),
 
 
 
363
 
364
+ 'featured' => array(
365
+ 'type' => 'section',
366
+ 'label' => __( 'Featured Styling' , 'wpinked-widgets' ),
367
+ 'hide' => true,
368
+ 'fields' => array(
369
 
370
+ 'background' => array(
371
+ 'type' => 'color',
372
+ 'label' => __( 'Background Color', 'wpinked-widgets' ),
373
+ 'default' => ''
374
+ ),
375
 
376
+ 'border' => array(
377
+ 'type' => 'color',
378
+ 'label' => __( 'Border Color', 'wpinked-widgets' ),
379
+ 'default' => ''
380
+ ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
381
 
382
+ 'title-bg' => array(
383
+ 'type' => 'color',
384
+ 'label' => __( 'Title Section Background', 'wpinked-widgets' ),
385
+ 'default' => ''
386
+ ),
387
+ 'price-bg' => array(
388
+ 'type' => 'color',
389
+ 'label' => __( 'Pricing Section Background', 'wpinked-widgets' ),
390
+ 'default' => ''
391
+ ),
392
+ 'features-bg' => array(
393
+ 'type' => 'color',
394
+ 'label' => __( 'Features Section Background', 'wpinked-widgets' ),
395
+ 'default' => ''
396
+ ),
397
+ 'button-bg' => array(
398
+ 'type' => 'color',
399
+ 'label' => __( 'Button Section Background', 'wpinked-widgets' ),
400
+ 'default' => ''
401
+ ),
402
 
403
+ 'title' => array(
404
+ 'type' => 'color',
405
+ 'label' => __( 'Title Color', 'wpinked-widgets' ),
406
+ 'default' => '#333333'
407
+ ),
408
 
409
+ 'title-tag' => array(
410
+ 'type' => 'color',
411
+ 'label' => __( 'Title tagline Color', 'wpinked-widgets' ),
412
+ 'default' => '#666666'
413
+ ),
414
 
415
+ 'price' => array(
416
+ 'type' => 'color',
417
+ 'label' => __( 'Pricing Color', 'wpinked-widgets' ),
418
+ 'default' => '#333333'
419
+ ),
420
 
421
+ 'price-tag' => array(
422
+ 'type' => 'color',
423
+ 'label' => __( 'Pricing Tagline Color', 'wpinked-widgets' ),
424
+ 'default' => '#666666'
425
+ ),
426
 
427
+ 'features' => array(
428
+ 'type' => 'color',
429
+ 'label' => __( 'Features Color', 'wpinked-widgets' ),
430
+ 'default' => '#666666'
431
+ ),
432
 
433
+ 'btn-clr' => array(
434
+ 'type' => 'color',
435
+ 'label' => __( 'Button Highlight Color', 'wpinked-widgets' ),
436
+ 'description' => __( 'Typically used as button background.', 'wpinked-widgets' ),
437
+ ),
438
 
439
+ 'btn-base' => array(
440
+ 'type' => 'color',
441
+ 'label' => __( 'Button Base Color', 'wpinked-widgets' ),
442
+ 'description' => __( 'Typically used as text color.', 'wpinked-widgets' ),
443
+ ),
444
 
445
+ )
446
  ),
447
 
 
448
  );
449
  }
450
 
widgets/ink-prit-widget/styles/pricing-table.less CHANGED
@@ -1,4 +1,4 @@
1
- @import "../../mixins/less/mixins";
2
 
3
  @bg: transparent;
4
  @border: '';
1
+ @import "../mixins/less/mixins";
2
 
3
  @bg: transparent;
4
  @border: '';
widgets/ink-prsn-widget/ink-prsn-widget.php CHANGED
@@ -12,221 +12,218 @@ class Inked_Person_SO_Widget extends SiteOrigin_Widget {
12
  function __construct() {
13
 
14
  parent::__construct(
15
-
16
  'ink-person',
17
-
18
  __( 'Inked Person', 'wpinked-widgets' ),
19
-
20
  array(
21
  'description' => __( 'Getting to know you better.', 'wpinked-widgets' ),
22
  'help' => 'http://widgets-docs.wpinked.com/article/37-person-widget'
23
  ),
24
-
25
  array(
26
  ),
 
 
 
 
27
 
28
- array(
 
29
 
30
- 'name' => array(
31
- 'type' => 'text',
32
- 'label' => __( 'Name', 'wpinked-widgets' ),
33
- 'default' => ''
34
- ),
35
-
36
- 'person' => array(
37
- 'type' => 'section',
38
- 'label' => __( 'Person' , 'wpinked-widgets' ),
39
- 'hide' => true,
40
- 'fields' => array(
41
-
42
- 'image' => array(
43
- 'type' => 'media',
44
- 'label' => __( 'Image', 'wpinked-widgets' ),
45
- 'choose' => __( 'Choose image', 'wpinked-widgets' ),
46
- 'update' => __( 'Set image', 'wpinked-widgets' ),
47
- 'library' => 'image',
48
- 'fallback' => false
49
- ),
50
 
51
- 'designation' => array(
52
- 'type' => 'text',
53
- 'label' => __( 'Designation', 'wpinked-widgets' ),
54
- 'default' => ''
55
- ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
 
57
- 'about' => array(
58
- 'type' => 'textarea',
59
- 'label' => __( 'About', 'wpinked-widgets' ),
60
- 'rows' => 5
61
- )
62
 
63
- )
64
- ),
65
-
66
- 'social' => array(
67
- 'type' => 'section',
68
- 'label' => __( 'Social' , 'wpinked-widgets' ),
69
- 'hide' => true,
70
- 'fields' => array(
71
-
72
- 'target' => array(
73
- 'type' => 'select',
74
- 'label' => __( 'Open Link in', 'wpinked-widgets' ),
75
- 'default' => '_blank',
76
- 'options' => array(
77
- '_self' => __( 'Same Window', 'wpinked-widgets' ),
78
- '_blank' => __( 'New Window', 'wpinked-widgets' )
79
- )
 
 
 
 
 
 
 
80
  ),
 
81
 
82
- 'profiles' => array(
83
- 'type' => 'repeater',
84
- 'label' => __( 'Profiles' , 'wpinked-widgets' ),
85
- 'item_name' => __( 'Profile', 'wpinked-widgets' ),
86
- 'item_label' => array(
87
- 'selector' => "[id*='repeat_text']",
88
- 'update_event' => 'change',
89
- 'value_method' => 'val'
90
  ),
91
- 'fields' => array(
92
 
93
- 'link' => array(
94
- 'type' => 'link',
95
- 'label' => __( 'Link', 'wpinked-widgets' ),
96
- 'default' => ''
97
- ),
98
-
99
- 'icon' => array(
100
- 'type' => 'icon',
101
- 'label' => __( 'Icon', 'wpinked-widgets' ),
102
- ),
103
 
104
- )
105
  )
106
-
107
  )
108
- ),
109
-
110
- 'styling' => array(
111
- 'type' => 'section',
112
- 'label' => __( 'Styling' , 'wpinked-widgets' ),
113
- 'hide' => true,
114
- 'fields' => array(
115
-
116
- 'layout' => array(
117
- 'type' => 'select',
118
- 'label' => __( 'Layout', 'wpinked-widgets' ),
119
- 'default' => 'above',
120
- 'options' => array(
121
- 'above' => __( 'Image Above', 'wpinked-widgets' ),
122
- 'left' => __( 'Image to the left', 'wpinked-widgets' ),
123
- 'right' => __( 'Image to the right', 'wpinked-widgets' )
124
- )
125
- ),
126
-
127
- 'design' => array(
128
- 'type' => 'select',
129
- 'label' => __( 'Design', 'wpinked-widgets' ),
130
- 'default' => 'basic',
131
- 'options' => array(
132
- 'basic' => __( 'Basic', 'wpinked-widgets' ),
133
- 'icons' => __( 'Icons over image', 'wpinked-widgets' ),
134
- 'about' => __( 'About over image', 'wpinked-widgets' )
135
- )
136
- ),
137
-
138
- 'img-width' => array(
139
- 'type' => 'checkbox',
140
- 'label' => __( 'Set image width to 100%?', 'wpinked-widgets' ),
141
- 'default' => true,
142
- ),
143
-
144
- 'img-radius' => array(
145
- 'type' => 'select',
146
- 'label' => __( 'Image Corners', 'wpinked-widgets' ),
147
- 'default' => '0',
148
- 'options' => array(
149
- '0' => __( 'Sharp', 'wpinked-widgets' ),
150
- '3%' => __( 'Slightly curved', 'wpinked-widgets' ),
151
- '12%' => __( 'Highly curved', 'wpinked-widgets' ),
152
- '50%' => __( 'Circle', 'wpinked-widgets' ),
153
- )
154
- ),
155
-
156
- 'img-hover' => array(
157
- 'type' => 'color',
158
- 'label' => __( 'Image Hover Overlay Color', 'wpinked-widgets' ),
159
- 'default' => ''
160
- ),
161
-
162
- 'img-hover-op' => array(
163
- 'type' => 'slider',
164
- 'label' => __( 'Image Hover Opacity', 'wpinked-widgets' ),
165
- 'default' => 0,
166
- 'min' => 0,
167
- 'max' => 100,
168
- 'integer' => true
169
- ),
170
-
171
- 'icon' => array(
172
- 'type' => 'color',
173
- 'label' => __( 'Icon Color', 'wpinked-widgets' ),
174
- 'default' => ''
175
- ),
176
-
177
- 'icon-hover' => array(
178
- 'type' => 'color',
179
- 'label' => __( 'Icon Hover Color', 'wpinked-widgets' ),
180
- 'default' => ''
181
- ),
182
-
183
- 'content' => array(
184
- 'type' => 'color',
185
- 'label' => __( 'Content Background Color', 'wpinked-widgets' ),
186
- 'default' => ''
187
- ),
188
-
189
- 'content-padding' => array(
190
- 'type' => 'measurement',
191
- 'label' => __( 'Padding above content section', 'wpinked-widgets' ),
192
- 'default' => '0px',
193
- ),
194
 
195
- 'name' => array(
196
- 'type' => 'color',
197
- 'label' => __( 'Name Color', 'wpinked-widgets' ),
198
- 'default' => ''
199
- ),
200
-
201
- 'designation' => array(
202
- 'type' => 'color',
203
- 'label' => __( 'Designation Color', 'wpinked-widgets' ),
204
- 'default' => ''
205
- ),
206
-
207
- 'about' => array(
208
- 'type' => 'color',
209
- 'label' => __( 'About Color', 'wpinked-widgets' ),
210
- 'default' => ''
211
- ),
212
 
213
- 'align' => array(
214
- 'type' => 'select',
215
- 'label' => __( 'Text Alignment', 'wpinked-widgets' ),
216
- 'default' => 'iw-text-center',
217
- 'options' => array(
218
- 'iw-text-left' => __( 'Left', 'wpinked-widgets' ),
219
- 'iw-text-center' => __( 'Center', 'wpinked-widgets' ),
220
- 'iw-text-right' => __( 'Right', 'wpinked-widgets' ),
221
- ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
222
  ),
 
223
 
224
- )
225
- ),
226
  ),
227
-
228
- //The $base_folder path string.
229
- plugin_dir_path(__FILE__)
230
  );
231
  }
232
 
12
  function __construct() {
13
 
14
  parent::__construct(
 
15
  'ink-person',
 
16
  __( 'Inked Person', 'wpinked-widgets' ),
 
17
  array(
18
  'description' => __( 'Getting to know you better.', 'wpinked-widgets' ),
19
  'help' => 'http://widgets-docs.wpinked.com/article/37-person-widget'
20
  ),
 
21
  array(
22
  ),
23
+ false,
24
+ plugin_dir_path(__FILE__)
25
+ );
26
+ }
27
 
28
+ function get_widget_form() {
29
+ return array(
30
 
31
+ 'name' => array(
32
+ 'type' => 'text',
33
+ 'label' => __( 'Name', 'wpinked-widgets' ),
34
+ 'default' => ''
35
+ ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
 
37
+ 'person' => array(
38
+ 'type' => 'section',
39
+ 'label' => __( 'Person' , 'wpinked-widgets' ),
40
+ 'hide' => true,
41
+ 'fields' => array(
42
+
43
+ 'image' => array(
44
+ 'type' => 'media',
45
+ 'label' => __( 'Image', 'wpinked-widgets' ),
46
+ 'choose' => __( 'Choose image', 'wpinked-widgets' ),
47
+ 'update' => __( 'Set image', 'wpinked-widgets' ),
48
+ 'library' => 'image',
49
+ 'fallback' => false
50
+ ),
51
+
52
+ 'designation' => array(
53
+ 'type' => 'text',
54
+ 'label' => __( 'Designation', 'wpinked-widgets' ),
55
+ 'default' => ''
56
+ ),
57
+
58
+ 'about' => array(
59
+ 'type' => 'textarea',
60
+ 'label' => __( 'About', 'wpinked-widgets' ),
61
+ 'rows' => 5
62
+ )
63
 
64
+ )
65
+ ),
 
 
 
66
 
67
+ 'social' => array(
68
+ 'type' => 'section',
69
+ 'label' => __( 'Social' , 'wpinked-widgets' ),
70
+ 'hide' => true,
71
+ 'fields' => array(
72
+
73
+ 'target' => array(
74
+ 'type' => 'select',
75
+ 'label' => __( 'Open Link in', 'wpinked-widgets' ),
76
+ 'default' => '_blank',
77
+ 'options' => array(
78
+ '_self' => __( 'Same Window', 'wpinked-widgets' ),
79
+ '_blank' => __( 'New Window', 'wpinked-widgets' )
80
+ )
81
+ ),
82
+
83
+ 'profiles' => array(
84
+ 'type' => 'repeater',
85
+ 'label' => __( 'Profiles' , 'wpinked-widgets' ),
86
+ 'item_name' => __( 'Profile', 'wpinked-widgets' ),
87
+ 'item_label' => array(
88
+ 'selector' => "[id*='repeat_text']",
89
+ 'update_event' => 'change',
90
+ 'value_method' => 'val'
91
  ),
92
+ 'fields' => array(
93
 
94
+ 'link' => array(
95
+ 'type' => 'link',
96
+ 'label' => __( 'Link', 'wpinked-widgets' ),
97
+ 'default' => ''
 
 
 
 
98
  ),
 
99
 
100
+ 'icon' => array(
101
+ 'type' => 'icon',
102
+ 'label' => __( 'Icon', 'wpinked-widgets' ),
103
+ ),
 
 
 
 
 
 
104
 
 
105
  )
 
106
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
107
 
108
+ )
109
+ ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
110
 
111
+ 'styling' => array(
112
+ 'type' => 'section',
113
+ 'label' => __( 'Styling' , 'wpinked-widgets' ),
114
+ 'hide' => true,
115
+ 'fields' => array(
116
+
117
+ 'layout' => array(
118
+ 'type' => 'select',
119
+ 'label' => __( 'Layout', 'wpinked-widgets' ),
120
+ 'default' => 'above',
121
+ 'options' => array(
122
+ 'above' => __( 'Image Above', 'wpinked-widgets' ),
123
+ 'left' => __( 'Image to the left', 'wpinked-widgets' ),
124
+ 'right' => __( 'Image to the right', 'wpinked-widgets' )
125
+ )
126
+ ),
127
+
128
+ 'design' => array(
129
+ 'type' => 'select',
130
+ 'label' => __( 'Design', 'wpinked-widgets' ),
131
+ 'default' => 'basic',
132
+ 'options' => array(
133
+ 'basic' => __( 'Basic', 'wpinked-widgets' ),
134
+ 'icons' => __( 'Icons over image', 'wpinked-widgets' ),
135
+ 'about' => __( 'About over image', 'wpinked-widgets' )
136
+ )
137
+ ),
138
+
139
+ 'img-width' => array(
140
+ 'type' => 'checkbox',
141
+ 'label' => __( 'Set image width to 100%?', 'wpinked-widgets' ),
142
+ 'default' => true,
143
+ ),
144
+
145
+ 'img-radius' => array(
146
+ 'type' => 'select',
147
+ 'label' => __( 'Image Corners', 'wpinked-widgets' ),
148
+ 'default' => '0',
149
+ 'options' => array(
150
+ '0' => __( 'Sharp', 'wpinked-widgets' ),
151
+ '3%' => __( 'Slightly curved', 'wpinked-widgets' ),
152
+ '12%' => __( 'Highly curved', 'wpinked-widgets' ),
153
+ '50%' => __( 'Circle', 'wpinked-widgets' ),
154
+ )
155
+ ),
156
+
157
+ 'img-hover' => array(
158
+ 'type' => 'color',
159
+ 'label' => __( 'Image Hover Overlay Color', 'wpinked-widgets' ),
160
+ 'default' => ''
161
+ ),
162
+
163
+ 'img-hover-op' => array(
164
+ 'type' => 'slider',
165
+ 'label' => __( 'Image Hover Opacity', 'wpinked-widgets' ),
166
+ 'default' => 0,
167
+ 'min' => 0,
168
+ 'max' => 100,
169
+ 'integer' => true
170
+ ),
171
+
172
+ 'icon' => array(
173
+ 'type' => 'color',
174
+ 'label' => __( 'Icon Color', 'wpinked-widgets' ),
175
+ 'default' => ''
176
+ ),
177
+
178
+ 'icon-hover' => array(
179
+ 'type' => 'color',
180
+ 'label' => __( 'Icon Hover Color', 'wpinked-widgets' ),
181
+ 'default' => ''
182
+ ),
183
+
184
+ 'content' => array(
185
+ 'type' => 'color',
186
+ 'label' => __( 'Content Background Color', 'wpinked-widgets' ),
187
+ 'default' => ''
188
+ ),
189
+
190
+ 'content-padding' => array(
191
+ 'type' => 'measurement',
192
+ 'label' => __( 'Padding above content section', 'wpinked-widgets' ),
193
+ 'default' => '0px',
194
+ ),
195
+
196
+ 'name' => array(
197
+ 'type' => 'color',
198
+ 'label' => __( 'Name Color', 'wpinked-widgets' ),
199
+ 'default' => ''
200
+ ),
201
+
202
+ 'designation' => array(
203
+ 'type' => 'color',
204
+ 'label' => __( 'Designation Color', 'wpinked-widgets' ),
205
+ 'default' => ''
206
+ ),
207
+
208
+ 'about' => array(
209
+ 'type' => 'color',
210
+ 'label' => __( 'About Color', 'wpinked-widgets' ),
211
+ 'default' => ''
212
+ ),
213
+
214
+ 'align' => array(
215
+ 'type' => 'select',
216
+ 'label' => __( 'Text Alignment', 'wpinked-widgets' ),
217
+ 'default' => 'iw-text-center',
218
+ 'options' => array(
219
+ 'iw-text-left' => __( 'Left', 'wpinked-widgets' ),
220
+ 'iw-text-center' => __( 'Center', 'wpinked-widgets' ),
221
+ 'iw-text-right' => __( 'Right', 'wpinked-widgets' ),
222
  ),
223
+ ),
224
 
225
+ )
 
226
  ),
 
 
 
227
  );
228
  }
229
 
widgets/ink-prsn-widget/styles/person.less CHANGED
@@ -1,4 +1,4 @@
1
- @import "../../mixins/less/mixins";
2
 
3
  @img-r: 0;
4
  @img-h: #fff;
1
+ @import "../mixins/less/mixins";
2
 
3
  @img-r: 0;
4
  @img-h: #fff;
widgets/ink-ptfl-widget/ink-ptfl-widget.php CHANGED
@@ -12,221 +12,233 @@ class Inked_Folio_SO_Widget extends SiteOrigin_Widget {
12
  function __construct() {
13
 
14
  parent::__construct(
15
-
16
  'ink-folio',
17
-
18
  __( 'Inked Portfolio', 'wpinked-widgets' ),
19
-
20
  array(
21
  'description' => __( 'Show off your work.', 'wpinked-widgets' ),
22
  'help' => 'http://widgets-docs.wpinked.com/article/14-portfolio-widget'
23
  ),
24
-
25
  array(
26
  ),
 
 
 
 
27
 
28
- array(
29
- 'title' => array(
30
- 'type' => 'text',
31
- 'label' => __( 'Title', 'wpinked-widgets' ),
32
- 'default' => ''
33
- ),
34
-
35
- 'portfolio' => array(
36
- 'type' => 'posts',
37
- 'label' => __( 'Select Projects', 'wpinked-widgets' ),
38
- 'description' => __( 'Make sure that <b>Custom Post Types</b> module in active in Jetpack. Choose <b>Projects</b> under post type', 'wpinked-widgets' ),
39
- ),
40
-
41
- 'design' => array(
42
- 'type' => 'section',
43
- 'label' => __( 'Design' , 'wpinked-widgets' ),
44
- 'hide' => true,
45
- 'fields' => array(
46
-
47
- 'theme' => array(
48
- 'type' => 'select',
49
- 'label' => __( 'Theme', 'wpinked-widgets' ),
50
- 'default' => 'folio-default',
51
- 'options' => array(
52
- 'folio-default' => __( 'Default', 'wpinked-widgets' ),
53
- 'folio-gallery' => __( 'Gallery', 'wpinked-widgets' )
54
- ),
55
- 'state_emitter' => array(
56
- 'callback' => 'select',
57
- 'args' => array( 'folio_type' )
58
- )
59
- ),
60
-
61
- 'sorting' => array(
62
- 'type' => 'checkbox',
63
- 'label' => __( 'Enable Sorting ?', 'wpinked-widgets' ),
64
- 'default' => true
65
- ),
66
-
67
- 'show-all' => array(
68
- 'type' => 'checkbox',
69
- 'label' => __( 'Show all text ?', 'wpinked-widgets' ),
70
- 'default' => true
71
- ),
72
-
73
- 'all' => array(
74
- 'type' => 'text',
75
- 'label' => __( 'Label for showing all projects', 'wpinked-widgets' ),
76
- 'default' => 'ALL'
77
- ),
78
-
79
- 'icon' => array(
80
- 'type' => 'icon',
81
- 'label' => __( 'Icon', 'wpinked-widgets' ),
82
- 'description' => __( 'This will appear above the image, on hover.', 'wpinked-widgets' ),
83
- 'state_handler' => array(
84
- 'folio_type[folio-default]' => array( 'show' ),
85
- 'folio_type[folio-gallery]' => array( 'hide' ),
86
- ),
87
- ),
88
-
89
- 'columns' => array(
90
- 'type' => 'select',
91
- 'label' => __( 'Number of Columns', 'wpinked-widgets' ),
92
- 'default' => '25%',
93
- 'options' => array(
94
- '100%' => __( '1', 'wpinked-widgets' ),
95
- '50%' => __( '2', 'wpinked-widgets' ),
96
- '33.33%' => __( '3', 'wpinked-widgets' ),
97
- '25%' => __( '4', 'wpinked-widgets' ),
98
- '20%' => __( '5', 'wpinked-widgets' ),
99
- '16.66%' => __( '6', 'wpinked-widgets' ),
100
- ),
101
- 'state_emitter' => array(
102
- 'callback' => 'select',
103
- 'args' => array( 'columns' )
104
- ),
105
- 'description' => __( 'The widget is responsive, so the columns will adjust based on screen size.', 'wpinked-widgets' ),
106
- ),
107
- )
108
- ),
109
-
110
- 'styling' => array(
111
- 'type' => 'section',
112
- 'label' => __( 'Styling' , 'wpinked-widgets' ),
113
- 'hide' => true,
114
- 'fields' => array(
115
-
116
- 'type-theme' => array(
117
- 'type' => 'select',
118
- 'label' => __( 'Filter List Theme', 'wpinked-widgets' ),
119
- 'default' => 'minimal',
120
- 'options' => array(
121
- 'minimal' => __( 'Minimal', 'wpinked-widgets' ),
122
- 'outline' => __( 'Outline', 'wpinked-widgets' ),
123
- 'flat' => __( 'Flat', 'wpinked-widgets' )
124
- )
125
- ),
126
-
127
- 'type-color' => array(
128
- 'type' => 'color',
129
- 'label' => __( 'Filter List Color', 'wpinked-widgets' ),
130
- 'default' => '',
131
- 'description' => __( 'Typically used as text color.', 'wpinked-widgets' ),
132
- ),
133
-
134
- 'type-h-color' => array(
135
- 'type' => 'color',
136
- 'label' => __( 'Filter List Highlight Color', 'wpinked-widgets' ),
137
- 'default' => '',
138
- 'description' => __( 'Typically used as button background.', 'wpinked-widgets' ),
139
- ),
140
-
141
- 'type-pos' => array(
142
- 'type' => 'select',
143
- 'label' => __( 'Filter List Position', 'wpinked-widgets' ),
144
- 'default' => 'center',
145
- 'options' => array(
146
- 'left' => __( 'Left', 'wpinked-widgets' ),
147
- 'center' => __( 'Center', 'wpinked-widgets' ),
148
- 'right' => __( 'Right', 'wpinked-widgets' )
149
- )
150
- ),
151
-
152
- 'align' => array(
153
- 'type' => 'select',
154
- 'label' => __( 'Text Alignment', 'wpinked-widgets' ),
155
- 'default' => 'center',
156
- 'options' => array(
157
- 'left' => __( 'Left', 'wpinked-widgets' ),
158
- 'center' => __( 'Center', 'wpinked-widgets' ),
159
- 'right' => __( 'Right', 'wpinked-widgets' )
160
- )
161
- ),
162
 
163
- 'spacing' => array(
164
- 'type' => 'checkbox',
165
- 'label' => __( 'Remove Spacing between projects ?', 'wpinked-widgets' ),
166
- 'default' => false
167
- ),
168
 
169
- 'background' => array(
170
- 'type' => 'color',
171
- 'label' => __( 'Background Color', 'wpinked-widgets' ),
172
- 'default' => '',
173
- 'state_handler' => array(
174
- 'folio_type[folio-default]' => array( 'show' ),
175
- 'folio_type[folio-gallery]' => array( 'hide' ),
176
- ),
 
 
 
 
 
177
  ),
178
-
179
- 'img-hover' => array(
180
- 'type' => 'color',
181
- 'label' => __( 'Image Background Color', 'wpinked-widgets' ),
182
- 'default' => ''
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
183
  ),
184
-
185
- 'img-opacity-init' => array(
186
- 'type' => 'number',
187
- 'label' => __( 'Image Initial Opacity', 'wpinked-widgets' ),
188
- 'default' => '1',
189
- 'description' => __( 'Choose a value between 0 and 1. 0: transparent 1: opaque', 'wpinked-widgets' ),
190
- 'state_handler' => array(
191
- 'folio_type[folio-default]' => array( 'hide' ),
192
- 'folio_type[folio-gallery]' => array( 'show' ),
193
- ),
 
 
 
194
  ),
195
-
196
- 'img-opacity' => array(
197
- 'type' => 'number',
198
- 'label' => __( 'Image Hover Opacity', 'wpinked-widgets' ),
199
- 'default' => '0.5',
200
- 'description' => __( 'Choose a value between 0 and 1. 0: transparent 1: opaque', 'wpinked-widgets' ),
201
  ),
 
 
 
 
202
 
203
- 'icon' => array(
204
- 'type' => 'color',
205
- 'label' => __( 'Icon Color', 'wpinked-widgets' ),
206
- 'default' => '',
207
- 'state_handler' => array(
208
- 'folio_type[folio-default]' => array( 'show' ),
209
- 'folio_type[folio-gallery]' => array( 'hide' ),
210
- ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
211
  ),
212
-
213
- 'p-title' => array(
214
- 'type' => 'color',
215
- 'label' => __( 'Project Name Color', 'wpinked-widgets' ),
216
- 'default' => ''
 
 
 
 
 
 
 
 
 
 
 
217
  ),
218
-
219
- 'p-cats' => array(
220
- 'type' => 'color',
221
- 'label' => __( 'Project Types Color', 'wpinked-widgets' ),
222
- 'default' => ''
 
 
 
 
 
 
 
 
 
 
 
223
  ),
224
- )
225
- ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
226
  ),
227
-
228
- //The $base_folder path string.
229
- plugin_dir_path(__FILE__)
230
  );
231
  }
232
 
@@ -257,7 +269,7 @@ class Inked_Folio_SO_Widget extends SiteOrigin_Widget {
257
  function get_less_variables($instance) {
258
  if( empty( $instance ) ) return array();
259
 
260
- return array(
261
  'columns' => $instance['design']['columns'],
262
  'img-hover' => $instance['styling']['img-hover'],
263
  'background' => $instance['styling']['background'],
@@ -271,6 +283,50 @@ class Inked_Folio_SO_Widget extends SiteOrigin_Widget {
271
  'type-pos' => $instance['styling']['type-pos'],
272
  'spacing' => $instance['styling']['spacing']
273
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
274
  }
275
 
276
  }
12
  function __construct() {
13
 
14
  parent::__construct(
 
15
  'ink-folio',
 
16
  __( 'Inked Portfolio', 'wpinked-widgets' ),
 
17
  array(
18
  'description' => __( 'Show off your work.', 'wpinked-widgets' ),
19
  'help' => 'http://widgets-docs.wpinked.com/article/14-portfolio-widget'
20
  ),
 
21
  array(
22
  ),
23
+ false,
24
+ plugin_dir_path(__FILE__)
25
+ );
26
+ }
27
 
28
+ function get_widget_form() {
29
+ return array(
30
+ 'title' => array(
31
+ 'type' => 'text',
32
+ 'label' => __( 'Title', 'wpinked-widgets' ),
33
+ 'default' => ''
34
+ ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
 
36
+ 'portfolio' => array(
37
+ 'type' => 'posts',
38
+ 'label' => __( 'Select Projects', 'wpinked-widgets' ),
39
+ 'description' => __( 'Make sure that <b>Custom Post Types</b> module in active in Jetpack. Choose <b>Projects</b> under post type', 'wpinked-widgets' ),
40
+ ),
41
 
42
+ 'design' => array(
43
+ 'type' => 'section',
44
+ 'label' => __( 'Design' , 'wpinked-widgets' ),
45
+ 'hide' => true,
46
+ 'fields' => array(
47
+
48
+ 'theme' => array(
49
+ 'type' => 'select',
50
+ 'label' => __( 'Theme', 'wpinked-widgets' ),
51
+ 'default' => 'folio-default',
52
+ 'options' => array(
53
+ 'folio-default' => __( 'Default', 'wpinked-widgets' ),
54
+ 'folio-gallery' => __( 'Gallery', 'wpinked-widgets' )
55
  ),
56
+ 'state_emitter' => array(
57
+ 'callback' => 'select',
58
+ 'args' => array( 'folio_type' )
59
+ )
60
+ ),
61
+
62
+ 'sorting' => array(
63
+ 'type' => 'checkbox',
64
+ 'label' => __( 'Enable Sorting ?', 'wpinked-widgets' ),
65
+ 'default' => true
66
+ ),
67
+
68
+ 'show-all' => array(
69
+ 'type' => 'checkbox',
70
+ 'label' => __( 'Show all text ?', 'wpinked-widgets' ),
71
+ 'default' => true
72
+ ),
73
+
74
+ 'all' => array(
75
+ 'type' => 'text',
76
+ 'label' => __( 'Label for showing all projects', 'wpinked-widgets' ),
77
+ 'default' => 'ALL'
78
+ ),
79
+
80
+ 'icon' => array(
81
+ 'type' => 'icon',
82
+ 'label' => __( 'Icon', 'wpinked-widgets' ),
83
+ 'description' => __( 'This will appear above the image, on hover.', 'wpinked-widgets' ),
84
+ 'state_handler' => array(
85
+ 'folio_type[folio-default]' => array( 'show' ),
86
+ 'folio_type[folio-gallery]' => array( 'hide' ),
87
  ),
88
+ ),
89
+
90
+ 'columns' => array(
91
+ 'type' => 'select',
92
+ 'label' => __( 'Number of Columns', 'wpinked-widgets' ),
93
+ 'default' => '25%',
94
+ 'options' => array(
95
+ '100%' => __( '1', 'wpinked-widgets' ),
96
+ '50%' => __( '2', 'wpinked-widgets' ),
97
+ '33.33%' => __( '3', 'wpinked-widgets' ),
98
+ '25%' => __( '4', 'wpinked-widgets' ),
99
+ '20%' => __( '5', 'wpinked-widgets' ),
100
+ '16.66%' => __( '6', 'wpinked-widgets' ),
101
  ),
102
+ 'state_emitter' => array(
103
+ 'callback' => 'select',
104
+ 'args' => array( 'columns' )
 
 
 
105
  ),
106
+ 'description' => __( 'The widget is responsive, so the columns will adjust based on screen size.', 'wpinked-widgets' ),
107
+ ),
108
+ )
109
+ ),
110
 
111
+ 'styling' => array(
112
+ 'type' => 'section',
113
+ 'label' => __( 'Styling' , 'wpinked-widgets' ),
114
+ 'hide' => true,
115
+ 'fields' => array(
116
+
117
+ 'type-theme' => array(
118
+ 'type' => 'select',
119
+ 'label' => __( 'Filter List Theme', 'wpinked-widgets' ),
120
+ 'default' => 'minimal',
121
+ 'options' => array(
122
+ 'minimal' => __( 'Minimal', 'wpinked-widgets' ),
123
+ 'outline' => __( 'Outline', 'wpinked-widgets' ),
124
+ 'flat' => __( 'Flat', 'wpinked-widgets' )
125
+ )
126
+ ),
127
+
128
+ 'type-color' => array(
129
+ 'type' => 'color',
130
+ 'label' => __( 'Filter List Color', 'wpinked-widgets' ),
131
+ 'default' => '',
132
+ 'description' => __( 'Typically used as text color.', 'wpinked-widgets' ),
133
+ ),
134
+
135
+ 'type-h-color' => array(
136
+ 'type' => 'color',
137
+ 'label' => __( 'Filter List Highlight Color', 'wpinked-widgets' ),
138
+ 'default' => '',
139
+ 'description' => __( 'Typically used as button background.', 'wpinked-widgets' ),
140
+ ),
141
+
142
+ 'type-font' => array(
143
+ 'type' => 'premium',
144
+ 'label' => __( 'Filter List Font', 'wpinked-widgets' ),
145
+ ),
146
+
147
+ 'type-pos' => array(
148
+ 'type' => 'select',
149
+ 'label' => __( 'Filter List Position', 'wpinked-widgets' ),
150
+ 'default' => 'center',
151
+ 'options' => array(
152
+ 'left' => __( 'Left', 'wpinked-widgets' ),
153
+ 'center' => __( 'Center', 'wpinked-widgets' ),
154
+ 'right' => __( 'Right', 'wpinked-widgets' )
155
+ )
156
+ ),
157
+
158
+ 'align' => array(
159
+ 'type' => 'select',
160
+ 'label' => __( 'Text Alignment', 'wpinked-widgets' ),
161
+ 'default' => 'center',
162
+ 'options' => array(
163
+ 'left' => __( 'Left', 'wpinked-widgets' ),
164
+ 'center' => __( 'Center', 'wpinked-widgets' ),
165
+ 'right' => __( 'Right', 'wpinked-widgets' )
166
+ )
167
+ ),
168
+
169
+ 'spacing' => array(
170
+ 'type' => 'checkbox',
171
+ 'label' => __( 'Remove Spacing between projects ?', 'wpinked-widgets' ),
172
+ 'default' => false
173
+ ),
174
+
175
+ 'background' => array(
176
+ 'type' => 'color',
177
+ 'label' => __( 'Background Color', 'wpinked-widgets' ),
178
+ 'default' => '',
179
+ 'state_handler' => array(
180
+ 'folio_type[folio-default]' => array( 'show' ),
181
+ 'folio_type[folio-gallery]' => array( 'hide' ),
182
  ),
183
+ ),
184
+
185
+ 'img-hover' => array(
186
+ 'type' => 'color',
187
+ 'label' => __( 'Image Background Color', 'wpinked-widgets' ),
188
+ 'default' => ''
189
+ ),
190
+
191
+ 'img-opacity-init' => array(
192
+ 'type' => 'number',
193
+ 'label' => __( 'Image Initial Opacity', 'wpinked-widgets' ),
194
+ 'default' => '1',
195
+ 'description' => __( 'Choose a value between 0 and 1. 0: transparent 1: opaque', 'wpinked-widgets' ),
196
+ 'state_handler' => array(
197
+ 'folio_type[folio-default]' => array( 'hide' ),
198
+ 'folio_type[folio-gallery]' => array( 'show' ),
199
  ),
200
+ ),
201
+
202
+ 'img-opacity' => array(
203
+ 'type' => 'number',
204
+ 'label' => __( 'Image Hover Opacity', 'wpinked-widgets' ),
205
+ 'default' => '0.5',
206
+ 'description' => __( 'Choose a value between 0 and 1. 0: transparent 1: opaque', 'wpinked-widgets' ),
207
+ ),
208
+
209
+ 'icon' => array(
210
+ 'type' => 'color',
211
+ 'label' => __( 'Icon Color', 'wpinked-widgets' ),
212
+ 'default' => '',
213
+ 'state_handler' => array(
214
+ 'folio_type[folio-default]' => array( 'show' ),
215
+ 'folio_type[folio-gallery]' => array( 'hide' ),
216
  ),
217
+ ),
218
+
219
+ 'p-title' => array(
220
+ 'type' => 'color',
221
+ 'label' => __( 'Project Name Color', 'wpinked-widgets' ),
222
+ 'default' => ''
223
+ ),
224
+
225
+ 'p-title-font' => array(
226
+ 'type' => 'premium',
227
+ 'label' => __( 'Project Name Font', 'wpinked-widgets' ),
228
+ ),
229
+
230
+ 'p-cats' => array(
231
+ 'type' => 'color',
232
+ 'label' => __( 'Project Types Color', 'wpinked-widgets' ),
233
+ 'default' => ''
234
+ ),
235
+
236
+ 'p-cats-font' => array(
237
+ 'type' => 'premium',
238
+ 'label' => __( 'Project Types Font', 'wpinked-widgets' ),
239
+ ),
240
+ )
241
  ),
 
 
 
242
  );
243
  }
244
 
269
  function get_less_variables($instance) {
270
  if( empty( $instance ) ) return array();
271
 
272
+ $less_variables = array(
273
  'columns' => $instance['design']['columns'],
274
  'img-hover' => $instance['styling']['img-hover'],
275
  'background' => $instance['styling']['background'],
283
  'type-pos' => $instance['styling']['type-pos'],
284
  'spacing' => $instance['styling']['spacing']
285
  );
286
+
287
+ if ( function_exists( 'wpinked_pro_so_widgets' ) ) {
288
+ if ( $instance['styling']['type-font'] ) {
289
+ $type_font = siteorigin_widget_get_font( $instance['styling']['type-font'] );
290
+ $less_variables['type-font-fly'] = $type_font['family'];
291
+ if( ! empty( $type_font['weight'] ) ) {
292
+ $less_variables['type-font-wt'] = $type_font['weight'];
293
+ }
294
+ }
295
+ if ( $instance['styling']['p-title-font'] ) {
296
+ $title_font = siteorigin_widget_get_font( $instance['styling']['p-title-font'] );
297
+ $less_variables['title-font-fly'] = $title_font['family'];
298
+ if( ! empty( $title_font['weight'] ) ) {
299
+ $less_variables['title-font-wt'] = $title_font['weight'];
300
+ }
301
+ }
302
+ if ( $instance['styling']['p-cats-font'] ) {
303
+ $cats_font = siteorigin_widget_get_font( $instance['styling']['p-cats-font'] );
304
+ $less_variables['cats-font-fly'] = $cats_font['family'];
305
+ if( ! empty( $cats_font['weight'] ) ) {
306
+ $less_variables['cats-font-wt'] = $cats_font['weight'];
307
+ }
308
+ }
309
+ }
310
+
311
+ return $less_variables;
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
  }
widgets/ink-ptfl-widget/styles/folio-default.less CHANGED
@@ -1,4 +1,6 @@
1
- @import "../../mixins/less/mixins";
 
 
2
 
3
  @columns: 25%;
4
  @img-hover: transparent;
@@ -12,6 +14,12 @@
12
  @type-pos: 'center';
13
  @spacing: '';
14
  @theme: 'default';
 
 
 
 
 
 
15
 
16
  .iw-so-folio-terms {
17
 
@@ -27,6 +35,7 @@
27
 
28
  a {
29
  color: @type-clr;
 
30
 
31
  .type-theme() when (@type-th = minimal) {
32
  padding-left: 2px;
@@ -163,6 +172,7 @@
163
  margin-top: 0;
164
  margin-bottom: 0;
165
  color: @p-cats;
 
166
 
167
  .space-para() when (@spacing = 1) {
168
  margin-bottom: 0;
@@ -173,6 +183,7 @@
173
 
174
  .iw-so-project-title {
175
  margin-bottom: .25em;
 
176
  }
177
 
178
  .iw-so-project-title a {
1
+ @import "../mixins/less/mixins";
2
+
3
+ .widget-function('import_google_font');
4
 
5
  @columns: 25%;
6
  @img-hover: transparent;
14
  @type-pos: 'center';
15
  @spacing: '';
16
  @theme: 'default';
17
+ @type-font-fly: default;
18
+ @type-font-wt: bold;
19
+ @title-font-fly: default;
20
+ @title-font-wt: bold;
21
+ @cats-font-fly: default;
22
+ @cats-font-wt: bold;
23
 
24
  .iw-so-folio-terms {
25
 
35
 
36
  a {
37
  color: @type-clr;
38
+ .font(@type-font-fly, @type-font-wt);
39
 
40
  .type-theme() when (@type-th = minimal) {
41
  padding-left: 2px;
172
  margin-top: 0;
173
  margin-bottom: 0;
174
  color: @p-cats;
175
+ .font(@cats-font-fly, @cats-font-wt);
176
 
177
  .space-para() when (@spacing = 1) {
178
  margin-bottom: 0;
183
 
184
  .iw-so-project-title {
185
  margin-bottom: .25em;
186
+ .font(@title-font-fly, @title-font-wt);
187
  }
188
 
189
  .iw-so-project-title a {
widgets/ink-ptfl-widget/styles/folio-gallery.less CHANGED
@@ -1,4 +1,6 @@
1
- @import "../../mixins/less/mixins";
 
 
2
 
3
  @columns: 25%;
4
  @img-hover: transparent;
@@ -13,6 +15,12 @@
13
  @type-pos: 'center';
14
  @spacing: '';
15
  @theme: 'default';
 
 
 
 
 
 
16
 
17
  .iw-so-folio-terms {
18
 
@@ -28,6 +36,7 @@
28
 
29
  a {
30
  color: @type-clr;
 
31
 
32
  .type-theme() when (@type-th = minimal) {
33
  padding-left: 2px;
@@ -177,6 +186,7 @@
177
  padding-bottom: 1em;
178
  margin-top: 0;
179
  color: @p-cats;
 
180
 
181
  .space-para() when (@spacing = 1) {
182
  margin-bottom: 0;
@@ -188,6 +198,7 @@
188
  .iw-so-project-title {
189
  margin-bottom: .25em;
190
  font-size: 1.65em;
 
191
  }
192
 
193
  .iw-so-project-title a {
1
+ @import "../mixins/less/mixins";
2
+
3
+ .widget-function('import_google_font');
4
 
5
  @columns: 25%;
6
  @img-hover: transparent;
15
  @type-pos: 'center';
16
  @spacing: '';
17
  @theme: 'default';
18
+ @type-font-fly: default;
19
+ @type-font-wt: bold;
20
+ @title-font-fly: default;
21
+ @title-font-wt: bold;
22
+ @cats-font-fly: default;
23
+ @cats-font-wt: bold;
24
 
25
  .iw-so-folio-terms {
26
 
36
 
37
  a {
38
  color: @type-clr;
39
+ .font(@type-font-fly, @type-font-wt);
40
 
41
  .type-theme() when (@type-th = minimal) {
42
  padding-left: 2px;
186
  padding-bottom: 1em;
187
  margin-top: 0;
188
  color: @p-cats;
189
+ .font(@cats-font-fly, @cats-font-wt);
190
 
191
  .space-para() when (@spacing = 1) {
192
  margin-bottom: 0;
198
  .iw-so-project-title {
199
  margin-bottom: .25em;
200
  font-size: 1.65em;
201
+ .font(@title-font-fly, @title-font-wt);
202
  }
203
 
204
  .iw-so-project-title a {
widgets/ink-sldr-widget/ink-sldr-widget.php CHANGED
@@ -12,258 +12,255 @@ class Inked_Slider_SO_Widget extends SiteOrigin_Widget {
12
  function __construct() {
13
 
14
  parent::__construct(
15
-
16
  'ink-slider',
17
-
18
  __( 'Inked Slider', 'wpinked-widgets' ),
19
-
20
  array(
21
  'description' => __( 'A most basic image slider to leave a great impression.', 'wpinked-widgets' ),
22
  'help' => 'http://widgets-docs.wpinked.com/article/35-slider-widget'
23
  ),
24
-
25
  array(
26
  ),
 
 
 
 
27
 
28
- array(
 
29
 
30
- 'admin' => array(
31
- 'type' => 'text',
32
- 'label' => __( 'Admin Label', 'wpinked-widgets' )
 
 
 
 
 
 
 
 
 
 
33
  ),
 
34
 
35
- 'slides' => array(
36
- 'type' => 'repeater',
37
- 'label' => __( 'Slides' , 'wpinked-widgets' ),
38
- 'item_name' => __( 'Slide', 'wpinked-widgets' ),
39
- 'item_label' => array(
40
- 'selector' => "[id*='name']",
41
- 'update_event' => 'change',
42
- 'value_method' => 'val'
43
  ),
44
- 'fields' => array(
45
-
46
- 'name' => array(
47
- 'type' => 'text',
48
- 'label' => __( 'Name', 'wpinked-widgets' ),
49
- 'default' => ''
50
- ),
51
 
52
- 'image' => array(
53
- 'type' => 'media',
54
- 'fallback' => true,
55
- 'label' => __( 'Image', 'wpinked-widgets' ),
56
- 'default' => '',
57
- 'library' => 'image',
58
- ),
59
 
60
- )
61
- ),
62
 
63
- 'settings' => array(
64
- 'type' => 'section',
65
- 'label' => __( 'Settings' , 'wpinked-widgets' ),
66
- 'hide' => true,
67
- 'fields' => array(
68
 
69
- 'adaptive' => array(
70
- 'type' => 'checkbox',
71
- 'default' => false,
72
- 'label' => __( 'Enable Adaptive Height', 'wpinked-widgets' ),
73
- ),
74
 
75
- 'autoplay' => array(
76
- 'type' => 'checkbox',
77
- 'default' => false,
78
- 'label' => __( 'Enable Autoplay', 'wpinked-widgets' ),
79
- ),
80
 
81
- 'autoplay-speed' => array(
82
- 'type' => 'number',
83
- 'label' => __( 'Autoplay Speed', 'wpinked-widgets' ),
84
- 'default' => '3000',
85
- 'description' => __( 'Value in milliseconds.', 'wpinked-widgets' ),
86
- ),
87
 
88
- 'autoplay-focus' => array(
89
- 'type' => 'checkbox',
90
- 'default' => true,
91
- 'label' => __( 'Pause Autoplay on Focus', 'wpinked-widgets' ),
92
- ),
93
 
94
- 'autoplay-hover' => array(
95
- 'type' => 'checkbox',
96
- 'default' => true,
97
- 'label' => __( 'Pause Autoplay on Hover', 'wpinked-widgets' ),
98
- ),
99
 
100
- 'arrows' => array(
101
- 'type' => 'checkbox',
102
- 'default' => true,
103
- 'label' => __( 'Enable Arrow Navigation', 'wpinked-widgets' ),
104
- ),
105
 
106
- 'arrows-hover' => array(
107
- 'type' => 'checkbox',
108
- 'default' => false,
109
- 'label' => __( 'Show arrows only on hover', 'wpinked-widgets' ),
110
- ),
111
 
112
- 'prev-arrow' => array(
113
- 'type' => 'icon',
114
- 'label' => __( 'Previous Arrow', 'wpinked-widgets' ),
115
- ),
116
 
117
- 'next-arrow' => array(
118
- 'type' => 'icon',
119
- 'label' => __( 'Next Arrow', 'wpinked-widgets' ),
120
- ),
121
 
122
- 'dots' => array(
123
- 'type' => 'checkbox',
124
- 'default' => false,
125
- 'label' => __( 'Enable Dots Navigation', 'wpinked-widgets' ),
126
- ),
127
 
128
- 'dots-hover' => array(
129
- 'type' => 'checkbox',
130
- 'default' => false,
131
- 'label' => __( 'Pause Autoplay on Dots Hover', 'wpinked-widgets' ),
132
- ),
133
 
134
- 'fade' => array(
135
- 'type' => 'checkbox',
136
- 'default' => false,
137
- 'label' => __( 'Enable Fade Transitions', 'wpinked-widgets' ),
138
- ),
139
 
140
- 'infinite' => array(
141
- 'type' => 'checkbox',
142
- 'default' => true,
143
- 'label' => __( 'Enable Infinite Loop', 'wpinked-widgets' ),
144
- ),
145
 
146
- 'caption' => array(
147
- 'type' => 'checkbox',
148
- 'default' => true,
149
- 'label' => __( 'Show Caption', 'wpinked-widgets' ),
150
- ),
151
 
152
- 'caption-icon' => array(
153
- 'type' => 'icon',
154
- 'label' => __( 'Caption Icon', 'wpinked-widgets' ),
155
- ),
156
 
157
- )
158
- ),
159
 
160
- 'styling' => array(
161
- 'type' => 'section',
162
- 'label' => __( 'Styling' , 'wpinked-widgets' ),
163
- 'hide' => true,
164
- 'fields' => array(
165
 
166
- 'icon-color' => array(
167
- 'type' => 'color',
168
- 'label' => __( 'Icon Color', 'wpinked-widgets' ),
169
- 'default' => '#fff'
170
- ),
171
 
172
- 'icon-size' => array(
173
- 'type' => 'measurement',
174
- 'label' => __( 'Icon Size', 'wpinked-widgets'),
175
- 'default' => '25px'
176
- ),
177
 
178
- 'icon-bg' => array(
179
- 'type' => 'color',
180
- 'label' => __( 'Icon Background', 'wpinked-widgets' ),
181
- 'default' => '#333'
182
- ),
183
 
184
- 'icon-border' => array(
185
- 'type' => 'color',
186
- 'label' => __( 'Icon Border', 'wpinked-widgets-pro' ),
187
- 'default' => '#333'
188
- ),
189
 
190
- 'icon-border-width' => array(
191
- 'type' => 'measurement',
192
- 'label' => __( 'Icon Border Width', 'wpinked-widgets-pro'),
193
- 'default' => '0px'
194
- ),
195
 
196
- 'icon-padding' => array(
197
- 'type' => 'measurement',
198
- 'label' => __( 'Icon Padding', 'wpinked-widgets-pro'),
199
- 'default' => '10px'
200
- ),
201
 
202
- 'icon-margin' => array(
203
- 'type' => 'measurement',
204
- 'label' => __( 'Icon Margin', 'wpinked-widgets-pro'),
205
- 'default' => '0px'
206
- ),
207
 
208
- 'icon-shape' => array(
209
- 'type' => 'select',
210
- 'label' => __( 'Icon Border Radius', 'wpinked-widgets-pro' ),
211
- 'default' => '0',
212
- 'options' => array(
213
- '0' => __( 'Sharp', 'wpinked-widgets-pro' ),
214
- '10em' => __( 'Curved', 'wpinked-widgets-pro' )
215
- )
216
- ),
217
 
218
- 'dot-color' => array(
219
- 'type' => 'color',
220
- 'label' => __( 'Dot Color', 'wpinked-widgets' ),
221
- 'default' => '#333'
222
- ),
223
 
224
- 'dot-size' => array(
225
- 'type' => 'measurement',
226
- 'label' => __( 'Dot Size', 'wpinked-widgets'),
227
- 'default' => '18px'
228
- ),
229
 
230
- 'dot-position' => array(
231
- 'type' => 'select',
232
- 'label' => __( 'Dot position', 'wpinked-widgets' ),
233
- 'default' => 'below',
234
- 'options' => array(
235
- 'below' => __( 'Below Slider', 'wpinked-widgets' ),
236
- 'bottom' => __( 'Bottom of Slider', 'wpinked-widgets' ),
237
- ),
238
  ),
 
239
 
240
- 'caption-position' => array(
241
- 'type' => 'select',
242
- 'label' => __( 'Caption position', 'wpinked-widgets' ),
243
- 'default' => 'bottom',
244
- 'options' => array(
245
- 'top' => __( 'Top', 'wpinked-widgets' ),
246
- 'bottom' => __( 'Bottom', 'wpinked-widgets' ),
247
- ),
248
  ),
 
249
 
250
- 'caption-theme' => array(
251
- 'type' => 'select',
252
- 'label' => __( 'Caption theme', 'wpinked-widgets' ),
253
- 'default' => 'dark',
254
- 'options' => array(
255
- 'light' => __( 'Light', 'wpinked-widgets' ),
256
- 'dark' => __( 'Dark', 'wpinked-widgets' ),
257
- ),
258
  ),
 
259
 
260
- )
261
- ),
262
-
263
  ),
264
 
265
- //The $base_folder path string.
266
- plugin_dir_path(__FILE__)
267
  );
268
  }
269
 
12
  function __construct() {
13
 
14
  parent::__construct(
 
15
  'ink-slider',
 
16
  __( 'Inked Slider', 'wpinked-widgets' ),
 
17
  array(
18
  'description' => __( 'A most basic image slider to leave a great impression.', 'wpinked-widgets' ),
19
  'help' => 'http://widgets-docs.wpinked.com/article/35-slider-widget'
20
  ),
 
21
  array(
22
  ),
23
+ false,
24
+ plugin_dir_path(__FILE__)
25
+ );
26
+ }
27
 
28
+ function get_widget_form() {
29
+ return array(
30
 
31
+ 'admin' => array(
32
+ 'type' => 'text',
33
+ 'label' => __( 'Admin Label', 'wpinked-widgets' )
34
+ ),
35
+
36
+ 'slides' => array(
37
+ 'type' => 'repeater',
38
+ 'label' => __( 'Slides' , 'wpinked-widgets' ),
39
+ 'item_name' => __( 'Slide', 'wpinked-widgets' ),
40
+ 'item_label' => array(
41
+ 'selector' => "[id*='name']",
42
+ 'update_event' => 'change',
43
+ 'value_method' => 'val'
44
  ),
45
+ 'fields' => array(
46
 
47
+ 'name' => array(
48
+ 'type' => 'text',
49
+ 'label' => __( 'Name', 'wpinked-widgets' ),
50
+ 'default' => ''
 
 
 
 
51
  ),
 
 
 
 
 
 
 
52
 
53
+ 'image' => array(
54
+ 'type' => 'media',
55
+ 'fallback' => true,
56
+ 'label' => __( 'Image', 'wpinked-widgets' ),
57
+ 'default' => '',
58
+ 'library' => 'image',
59
+ ),
60
 
61
+ )
62
+ ),
63
 
64
+ 'settings' => array(
65
+ 'type' => 'section',
66
+ 'label' => __( 'Settings' , 'wpinked-widgets' ),
67
+ 'hide' => true,
68
+ 'fields' => array(
69
 
70
+ 'adaptive' => array(
71
+ 'type' => 'checkbox',
72
+ 'default' => false,
73
+ 'label' => __( 'Enable Adaptive Height', 'wpinked-widgets' ),
74
+ ),
75
 
76
+ 'autoplay' => array(
77
+ 'type' => 'checkbox',
78
+ 'default' => false,
79
+ 'label' => __( 'Enable Autoplay', 'wpinked-widgets' ),
80
+ ),
81
 
82
+ 'autoplay-speed' => array(
83
+ 'type' => 'number',
84
+ 'label' => __( 'Autoplay Speed', 'wpinked-widgets' ),
85
+ 'default' => '3000',
86
+ 'description' => __( 'Value in milliseconds.', 'wpinked-widgets' ),
87
+ ),
88
 
89
+ 'autoplay-focus' => array(
90
+ 'type' => 'checkbox',
91
+ 'default' => true,
92
+ 'label' => __( 'Pause Autoplay on Focus', 'wpinked-widgets' ),
93
+ ),
94
 
95
+ 'autoplay-hover' => array(
96
+ 'type' => 'checkbox',
97
+ 'default' => true,
98
+ 'label' => __( 'Pause Autoplay on Hover', 'wpinked-widgets' ),
99
+ ),
100
 
101
+ 'arrows' => array(
102
+ 'type' => 'checkbox',
103
+ 'default' => true,
104
+ 'label' => __( 'Enable Arrow Navigation', 'wpinked-widgets' ),
105
+ ),
106
 
107
+ 'arrows-hover' => array(
108
+ 'type' => 'checkbox',
109
+ 'default' => false,
110
+ 'label' => __( 'Show arrows only on hover', 'wpinked-widgets' ),
111
+ ),
112
 
113
+ 'prev-arrow' => array(
114
+ 'type' => 'icon',
115
+ 'label' => __( 'Previous Arrow', 'wpinked-widgets' ),
116
+ ),
117
 
118
+ 'next-arrow' => array(
119
+ 'type' => 'icon',
120
+ 'label' => __( 'Next Arrow', 'wpinked-widgets' ),
121
+ ),
122
 
123
+ 'dots' => array(
124
+ 'type' => 'checkbox',
125
+ 'default' => false,
126
+ 'label' => __( 'Enable Dots Navigation', 'wpinked-widgets' ),
127
+ ),
128
 
129
+ 'dots-hover' => array(
130
+ 'type' => 'checkbox',
131
+ 'default' => false,
132
+ 'label' => __( 'Pause Autoplay on Dots Hover', 'wpinked-widgets' ),
133
+ ),
134
 
135
+ 'fade' => array(
136
+ 'type' => 'checkbox',
137
+ 'default' => false,
138
+ 'label' => __( 'Enable Fade Transitions', 'wpinked-widgets' ),
139
+ ),
140
 
141
+ 'infinite' => array(
142
+ 'type' => 'checkbox',
143
+ 'default' => true,
144
+ 'label' => __( 'Enable Infinite Loop', 'wpinked-widgets' ),
145
+ ),
146
 
147
+ 'caption' => array(
148
+ 'type' => 'checkbox',
149
+ 'default' => true,
150
+ 'label' => __( 'Show Caption', 'wpinked-widgets' ),
151
+ ),
152
 
153
+ 'caption-icon' => array(
154
+ 'type' => 'icon',
155
+ 'label' => __( 'Caption Icon', 'wpinked-widgets' ),
156
+ ),
157
 
158
+ )
159
+ ),
160
 
161
+ 'styling' => array(
162
+ 'type' => 'section',
163
+ 'label' => __( 'Styling' , 'wpinked-widgets' ),
164
+ 'hide' => true,
165
+ 'fields' => array(
166
 
167
+ 'icon-color' => array(
168
+ 'type' => 'color',
169
+ 'label' => __( 'Icon Color', 'wpinked-widgets' ),
170
+ 'default' => '#fff'
171
+ ),
172
 
173
+ 'icon-size' => array(
174
+ 'type' => 'measurement',
175
+ 'label' => __( 'Icon Size', 'wpinked-widgets'),
176
+ 'default' => '25px'
177
+ ),
178
 
179
+ 'icon-bg' => array(
180
+ 'type' => 'color',
181
+ 'label' => __( 'Icon Background', 'wpinked-widgets' ),
182
+ 'default' => '#333'
183
+ ),
184
 
185
+ 'icon-border' => array(
186
+ 'type' => 'color',
187
+ 'label' => __( 'Icon Border', 'wpinked-widgets-pro' ),
188
+ 'default' => '#333'
189
+ ),
190
 
191
+ 'icon-border-width' => array(
192
+ 'type' => 'measurement',
193
+ 'label' => __( 'Icon Border Width', 'wpinked-widgets-pro'),
194
+ 'default' => '0px'
195
+ ),
196
 
197
+ 'icon-padding' => array(
198
+ 'type' => 'measurement',
199
+ 'label' => __( 'Icon Padding', 'wpinked-widgets-pro'),
200
+ 'default' => '10px'
201
+ ),
202
 
203
+ 'icon-margin' => array(
204
+ 'type' => 'measurement',
205
+ 'label' => __( 'Icon Margin', 'wpinked-widgets-pro'),
206
+ 'default' => '0px'
207
+ ),
208
 
209
+ 'icon-shape' => array(
210
+ 'type' => 'select',
211
+ 'label' => __( 'Icon Border Radius', 'wpinked-widgets-pro' ),
212
+ 'default' => '0',
213
+ 'options' => array(
214
+ '0' => __( 'Sharp', 'wpinked-widgets-pro' ),
215
+ '10em' => __( 'Curved', 'wpinked-widgets-pro' )
216
+ )
217
+ ),
218
 
219
+ 'dot-color' => array(
220
+ 'type' => 'color',
221
+ 'label' => __( 'Dot Color', 'wpinked-widgets' ),
222
+ 'default' => '#333'
223
+ ),
224
 
225
+ 'dot-size' => array(
226
+ 'type' => 'measurement',
227
+ 'label' => __( 'Dot Size', 'wpinked-widgets'),
228
+ 'default' => '18px'
229
+ ),
230
 
231
+ 'dot-position' => array(
232
+ 'type' => 'select',
233
+ 'label' => __( 'Dot position', 'wpinked-widgets' ),
234
+ 'default' => 'below',
235
+ 'options' => array(
236
+ 'below' => __( 'Below Slider', 'wpinked-widgets' ),
237
+ 'bottom' => __( 'Bottom of Slider', 'wpinked-widgets' ),
 
238
  ),
239
+ ),
240
 
241
+ 'caption-position' => array(
242
+ 'type' => 'select',
243
+ 'label' => __( 'Caption position', 'wpinked-widgets' ),
244
+ 'default' => 'bottom',
245
+ 'options' => array(
246
+ 'top' => __( 'Top', 'wpinked-widgets' ),
247
+ 'bottom' => __( 'Bottom', 'wpinked-widgets' ),
 
248
  ),
249
+ ),
250
 
251
+ 'caption-theme' => array(
252
+ 'type' => 'select',
253
+ 'label' => __( 'Caption theme', 'wpinked-widgets' ),
254
+ 'default' => 'dark',
255
+ 'options' => array(
256
+ 'light' => __( 'Light', 'wpinked-widgets' ),
257
+ 'dark' => __( 'Dark', 'wpinked-widgets' ),
 
258
  ),
259
+ ),
260
 
261
+ )
 
 
262
  ),
263
 
 
 
264
  );
265
  }
266
 
widgets/ink-tabb-widget/css/tabs.css CHANGED
@@ -13,7 +13,6 @@
13
  margin-right: 2px; }
14
  .iw-so-tabs .iw-so-tabs-nav .iw-so-tab-title a {
15
  display: block;
16
- font-family: inherit;
17
  font-size: 1em;
18
  padding: 1em 2em;
19
  text-decoration: none;
13
  margin-right: 2px; }
14
  .iw-so-tabs .iw-so-tabs-nav .iw-so-tab-title a {
15
  display: block;
 
16
  font-size: 1em;
17
  padding: 1em 2em;
18
  text-decoration: none;
widgets/ink-tabb-widget/ink-tabb-widget.php CHANGED
@@ -12,163 +12,192 @@ class Inked_Tabs_SO_Widget extends SiteOrigin_Widget {
12
  function __construct() {
13
 
14
  parent::__construct(
15
-
16
  'ink-tabs',
17
-
18
  __( 'Inked Tabs', 'wpinked-widgets' ),
19
-
20
  array(
21
  'description' => __( 'Organize and navigate multiple documents in a single container.', 'wpinked-widgets' ),
22
  'help' => 'http://widgets-docs.wpinked.com/article/27-tabs-widget'
23
  ),
24
-
25
  array(
26
  ),
 
 
 
 
27
 
28
- array(
29
- 'admin' => array(
30
- 'type' => 'text',
31
- 'label' => __( 'Admin Label', 'wpinked-widgets' ),
32
- 'default' => ''
33
- ),
 
34
 
35
- 'id' => array(
36
- 'type' => 'text',
37
- 'label' => __( 'ID', 'wpinked-widgets' ),
38
- 'description' => __( 'Should be unique on the page. Must begin with alphabets[A-Za-z]. Should not contain spaces.', 'wpinked-widgets' ),
39
- 'default' => ''
 
 
 
 
 
 
 
 
 
 
40
  ),
 
41
 
42
- 'tabs' => array(
43
- 'type' => 'repeater',
44
- 'label' => __( 'Tabs' , 'wpinked-widgets' ),
45
- 'item_name' => __( 'Tab', 'wpinked-widgets' ),
46
- 'item_label' => array(
47
- 'selector' => "[id*='title']",
48
- 'update_event' => 'change',
49
- 'value_method' => 'val'
50
- ),
51
- 'fields' => array(
52
-
53
- 'title' => array(
54
- 'type' => 'text',
55
- 'label' => __( 'Title', 'wpinked-widgets' ),
56
- 'default' => ''
57
- ),
58
 
59
- 'active' => array(
60
- 'type' => 'checkbox',
61
- 'label' => __( 'Open by default ?', 'wpinked-widgets' ),
62
- 'default' => false,
63
- 'description' => __( 'Check this for only one of the tabs.', 'wpinked-widgets' ),
64
- ),
65
 
66
- 'icon' => array(
67
- 'type' => 'icon',
68
- 'label' => __( 'Icon', 'wpinked-widgets' ),
69
- ),
70
 
71
- 'content' => array(
72
- 'type' => 'tinymce',
73
- 'label' => __( 'Content', 'wpinked-widgets' ),
74
- 'default' => '',
75
- 'rows' => 10,
76
- 'default_editor' => 'tinymce',
77
- 'button_filters' => array(
78
- 'mce_buttons' => array( $this, 'filter_mce_buttons' ),
79
- 'mce_buttons_2' => array( $this, 'filter_mce_buttons_2' ),
80
- 'mce_buttons_3' => array( $this, 'filter_mce_buttons_3' ),
81
- 'mce_buttons_4' => array( $this, 'filter_mce_buttons_5' ),
82
- 'quicktags_settings' => array( $this, 'filter_quicktags_settings' ),
83
- ),
84
  )
 
85
 
86
- )
87
- ),
88
-
89
- 'styling' => array(
90
- 'type' => 'section',
91
- 'label' => __( 'Styling' , 'wpinked-widgets' ),
92
- 'hide' => true,
93
- 'fields' => array(
94
-
95
- 'orientation' => array(
96
- 'type' => 'select',
97
- 'label' => __( 'Oritentation', 'wpinked-widgets' ),
98
- 'default' => 'horizontal',
99
- 'options' => array(
100
- 'horizontal' => __( 'Horizontal', 'wpinked-widgets' ),
101
- 'vertical' => __( 'Vertical', 'wpinked-widgets' )
102
- )
103
  ),
 
104
 
105
- 'responsive' => array(
106
- 'type' => 'select',
107
- 'label' => __( 'Mobile View', 'wpinked-widgets' ),
108
- 'default' => 'default',
109
- 'options' => array(
110
- 'default' => __( 'Default', 'wpinked-widgets' ),
111
- 'icons' => __( 'Icons Only', 'wpinked-widgets' ),
112
- 'fullwidth' => __( 'Fullwidth', 'wpinked-widgets' ),
113
- )
114
  ),
 
115
 
116
- 'theme' => array(
117
- 'type' => 'select',
118
- 'label' => __( 'Theme', 'wpinked-widgets' ),
119
- 'default' => 'flat',
120
- 'options' => array(
121
- 'boxed' => __( 'Boxed', 'wpinked-widgets' ),
122
- 'flat' => __( 'Flat', 'wpinked-widgets' ),
123
- 'underline' => __( 'Underline', 'wpinked-widgets' ),
124
- 'overline' => __( 'Overline', 'wpinked-widgets' ),
125
- 'minimal' => __( 'Minimal', 'wpinked-widgets' ),
126
- )
127
  ),
 
128
 
129
- 'icon' => array(
130
- 'type' => 'select',
131
- 'label' => __( 'Icon Location', 'wpinked-widgets' ),
132
- 'default' => 'flat',
133
- 'options' => array(
134
- 'left' => __( 'Left', 'wpinked-widgets' ),
135
- 'right' => __( 'Right', 'wpinked-widgets' ),
136
- 'above' => __( 'Above', 'wpinked-widgets' )
137
- )
138
- ),
139
 
140
- 'tab' => array(
141
- 'type' => 'color',
142
- 'label' => __( 'Tab Background Color', 'wpinked-widgets' ),
143
- 'default' => ''
144
- ),
 
 
 
 
 
 
 
 
 
 
145
 
146
- 'content' => array(
147
- 'type' => 'color',
148
- 'label' => __( 'Content Background Color', 'wpinked-widgets' ),
149
- 'default' => ''
150
- ),
 
 
 
 
 
151
 
152
- 'basic' => array(
153
- 'type' => 'color',
154
- 'label' => __( 'Basic Color', 'wpinked-widgets' ),
155
- 'default' => '',
156
- 'description' => __( 'Color of the title.', 'wpinked-widgets' ),
157
- ),
 
 
 
 
 
 
158
 
159
- 'highlight' => array(
160
- 'type' => 'color',
161
- 'label' => __( 'Highlight Color', 'wpinked-widgets' ),
162
- 'default' => '',
163
- 'description' => __( 'Color of title when it is active.', 'wpinked-widgets' ),
164
- ),
 
 
 
 
165
 
166
- )
167
- ),
168
- ),
 
 
169
 
170
- //The $base_folder path string.
171
- plugin_dir_path(__FILE__)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
172
  );
173
  }
174
 
@@ -200,7 +229,7 @@ class Inked_Tabs_SO_Widget extends SiteOrigin_Widget {
200
 
201
  if( empty( $instance ) ) return array();
202
 
203
- return array(
204
  'theme' => $instance['styling']['theme'],
205
  'bg' => $instance['styling']['tab'],
206
  'bg-c' => $instance['styling']['content'],
@@ -209,6 +238,24 @@ class Inked_Tabs_SO_Widget extends SiteOrigin_Widget {
209
  'icon' => $instance['styling']['icon'],
210
  );
211
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
212
  }
213
 
214
  }
12
  function __construct() {
13
 
14
  parent::__construct(
 
15
  'ink-tabs',
 
16
  __( 'Inked Tabs', 'wpinked-widgets' ),
 
17
  array(
18
  'description' => __( 'Organize and navigate multiple documents in a single container.', 'wpinked-widgets' ),
19
  'help' => 'http://widgets-docs.wpinked.com/article/27-tabs-widget'
20
  ),
 
21
  array(
22
  ),
23
+ false,
24
+ plugin_dir_path(__FILE__)
25
+ );
26
+ }
27
 
28
+ function get_widget_form() {
29
+ return array(
30
+ 'admin' => array(
31
+ 'type' => 'text',
32
+ 'label' => __( 'Admin Label', 'wpinked-widgets' ),
33
+ 'default' => ''
34
+ ),
35
 
36
+ 'id' => array(
37
+ 'type' => 'text',
38
+ 'label' => __( 'ID', 'wpinked-widgets' ),
39
+ 'description' => __( 'Should be unique on the page. Must begin with alphabets[A-Za-z]. Should not contain spaces.', 'wpinked-widgets' ),
40
+ 'default' => ''
41
+ ),
42
+
43
+ 'tabs' => array(
44
+ 'type' => 'repeater',
45
+ 'label' => __( 'Tabs' , 'wpinked-widgets' ),
46
+ 'item_name' => __( 'Tab', 'wpinked-widgets' ),
47
+ 'item_label' => array(
48
+ 'selector' => "[id*='title']",
49
+ 'update_event' => 'change',
50
+ 'value_method' => 'val'
51
  ),
52
+ 'fields' => array(
53
 
54
+ 'title' => array(
55
+ 'type' => 'text',
56
+ 'label' => __( 'Title', 'wpinked-widgets' ),
57
+ 'default' => ''
58
+ ),
 
 
 
 
 
 
 
 
 
 
 
59
 
60
+ 'active' => array(
61
+ 'type' => 'checkbox',
62
+ 'label' => __( 'Open by default ?', 'wpinked-widgets' ),
63
+ 'default' => false,
64
+ 'description' => __( 'Check this for only one of the tabs.', 'wpinked-widgets' ),
65
+ ),
66
 
67
+ 'icon' => array(
68
+ 'type' => 'icon',
69
+ 'label' => __( 'Icon', 'wpinked-widgets' ),
70
+ ),
71
 
72
+ 'content_type' => array(
73
+ 'type' => 'select',
74
+ 'label' => __( 'Content Type', 'wpinked-widgets' ),
75
+ 'default' => 'tinymce',
76
+ 'options' => array(
77
+ 'tinymce' => __( 'TinyMCE Editor', 'wpinked-widgets' ),
78
+ 'builder' => __( 'Page Builder', 'wpinked-widgets' )
79
+ ),
80
+ 'state_emitter' => array(
81
+ 'callback' => 'select',
82
+ 'args' => array( 'ctnt_type' )
 
 
83
  )
84
+ ),
85
 
86
+ 'content' => array(
87
+ 'type' => 'tinymce',
88
+ 'label' => __( 'Content', 'wpinked-widgets' ),
89
+ 'state_handler' => array(
90
+ 'ctnt_type[tinymce]' => array( 'show' ),
91
+ 'ctnt_type[builder]' => array( 'hide' ),
 
 
 
 
 
 
 
 
 
 
 
92
  ),
93
+ ),
94
 
95
+ 'autop' => array(
96
+ 'type' => 'checkbox',
97
+ 'default' => false,
98
+ 'label' => __( 'Automatically add paragraphs', 'wpinked-widgets' ),
99
+ 'state_handler' => array(
100
+ 'ctnt_type[tinymce]' => array( 'show' ),
101
+ 'ctnt_type[builder]' => array( 'hide' ),
 
 
102
  ),
103
+ ),
104
 
105
+ 'builder' => array(
106
+ 'type' => 'premium',
107
+ 'label' => __( 'Builder', 'wpinked-widgets' ),
108
+ 'state_handler' => array(
109
+ 'ctnt_type[tinymce]' => array( 'hide' ),
110
+ 'ctnt_type[builder]' => array( 'show' ),
 
 
 
 
 
111
  ),
112
+ ),
113
 
114
+ )
115
+ ),
 
 
 
 
 
 
 
 
116
 
117
+ 'styling' => array(
118
+ 'type' => 'section',
119
+ 'label' => __( 'Styling' , 'wpinked-widgets' ),
120
+ 'hide' => true,
121
+ 'fields' => array(
122
+
123
+ 'orientation' => array(
124
+ 'type' => 'select',
125
+ 'label' => __( 'Oritentation', 'wpinked-widgets' ),
126
+ 'default' => 'horizontal',
127
+ 'options' => array(
128
+ 'horizontal' => __( 'Horizontal', 'wpinked-widgets' ),
129
+ 'vertical' => __( 'Vertical', 'wpinked-widgets' )
130
+ )
131
+ ),
132
 
133
+ 'responsive' => array(
134
+ 'type' => 'select',
135
+ 'label' => __( 'Mobile View', 'wpinked-widgets' ),
136
+ 'default' => 'default',
137
+ 'options' => array(
138
+ 'default' => __( 'Default', 'wpinked-widgets' ),
139
+ 'icons' => __( 'Icons Only', 'wpinked-widgets' ),
140
+ 'fullwidth' => __( 'Fullwidth', 'wpinked-widgets' ),
141
+ )
142
+ ),
143
 
144
+ 'theme' => array(
145
+ 'type' => 'select',
146
+ 'label' => __( 'Theme', 'wpinked-widgets' ),
147
+ 'default' => 'flat',
148
+ 'options' => array(
149
+ 'boxed' => __( 'Boxed', 'wpinked-widgets' ),
150
+ 'flat' => __( 'Flat', 'wpinked-widgets' ),
151
+ 'underline' => __( 'Underline', 'wpinked-widgets' ),
152
+ 'overline' => __( 'Overline', 'wpinked-widgets' ),
153
+ 'minimal' => __( 'Minimal', 'wpinked-widgets' ),
154
+ )
155
+ ),
156
 
157
+ 'icon' => array(
158
+ 'type' => 'select',
159
+ 'label' => __( 'Icon Location', 'wpinked-widgets' ),
160
+ 'default' => 'flat',
161
+ 'options' => array(
162
+ 'left' => __( 'Left', 'wpinked-widgets' ),
163
+ 'right' => __( 'Right', 'wpinked-widgets' ),
164
+ 'above' => __( 'Above', 'wpinked-widgets' )
165
+ )
166
+ ),
167
 
168
+ 'tab' => array(
169
+ 'type' => 'color',
170
+ 'label' => __( 'Tab Background Color', 'wpinked-widgets' ),
171
+ 'default' => ''
172
+ ),
173
 
174
+ 'tab-font' => array(
175
+ 'type' => 'premium',
176
+ 'label' => __( 'Tab Font', 'wpinked-widgets' ),
177
+ ),
178
+
179
+ 'content' => array(
180
+ 'type' => 'color',
181
+ 'label' => __( 'Content Background Color', 'wpinked-widgets' ),
182
+ 'default' => ''
183
+ ),
184
+
185
+ 'basic' => array(
186
+ 'type' => 'color',
187
+ 'label' => __( 'Basic Color', 'wpinked-widgets' ),
188
+ 'default' => '',
189
+ 'description' => __( 'Color of the title.', 'wpinked-widgets' ),
190
+ ),
191
+
192
+ 'highlight' => array(
193
+ 'type' => 'color',
194
+ 'label' => __( 'Highlight Color', 'wpinked-widgets' ),
195
+ 'default' => '',
196
+ 'description' => __( 'Color of title when it is active.', 'wpinked-widgets' ),
197
+ ),
198
+
199
+ )
200
+ ),
201
  );
202
  }
203
 
229
 
230
  if( empty( $instance ) ) return array();
231
 
232
+ $less_variables = array(
233
  'theme' => $instance['styling']['theme'],
234
  'bg' => $instance['styling']['tab'],
235
  'bg-c' => $instance['styling']['content'],
238
  'icon' => $instance['styling']['icon'],
239
  );
240
 
241
+ if ( $instance['styling']['tab-font'] && function_exists( 'wpinked_pro_so_widgets' ) ) {
242
+ $selected_font = siteorigin_widget_get_font( $instance['styling']['tab-font'] );
243
+ $less_variables['tab-font-fly'] = $selected_font['family'];
244
+ if( ! empty( $selected_font['weight'] ) ) {
245
+ $less_variables['tab-font-wt'] = $selected_font['weight'];
246
+ }
247
+ }
248
+ return $less_variables;
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
  }
widgets/ink-tabb-widget/styles/tabs.less CHANGED
@@ -1,11 +1,15 @@
1
  @import "../mixins/less/mixins";
2
 
 
 
3
  @theme: classic;
4
  @bg: #fff;
5
  @bg-c: transparent;
6
  @title: #222;
7
  @highlight: #666;
8
  @icon: left;
 
 
9
 
10
  .iw-so-tabs .iw-so-tabs-content {
11
  background: @bg-c;
@@ -17,6 +21,7 @@
17
 
18
  a {
19
  color: @title;
 
20
 
21
  .tab-theme() when (@theme = boxed) {
22
  background: @bg;
1
  @import "../mixins/less/mixins";
2
 
3
+ .widget-function('import_google_font');
4
+
5
  @theme: classic;
6
  @bg: #fff;
7
  @bg-c: transparent;
8
  @title: #222;
9
  @highlight: #666;
10
  @icon: left;
11
+ @tab-font-fly: default;
12
+ @tab-font-wt: bold;
13
 
14
  .iw-so-tabs .iw-so-tabs-content {
15
  background: @bg-c;
21
 
22
  a {
23
  color: @title;
24
+ .font(@tab-font-fly, @tab-font-wt);
25
 
26
  .tab-theme() when (@theme = boxed) {
27
  background: @bg;
widgets/ink-tabb-widget/tpl/tabs.php CHANGED
@@ -39,7 +39,7 @@ endif;
39
 
40
  <?php foreach( $instance['tabs'] as $i => $tab ) : ?>
41
  <div class="iw-so-tabs-panel<?php echo ( ( $tab['active'] == 1 && !$cnt_active_set ) ? ' iw-so-tab-active' : '' ); ?>" id="<?php echo $unique . '-' . $cnt_no . '-content'; ?>">
42
- <?php echo do_shortcode( $tab['content'] ); ?>
43
  </div>
44
  <?php $cnt_active_set = ( $tab['active'] == 1 ) ? true : false; ?>
45
  <?php $cnt_no++; ?>
39
 
40
  <?php foreach( $instance['tabs'] as $i => $tab ) : ?>
41
  <div class="iw-so-tabs-panel<?php echo ( ( $tab['active'] == 1 && !$cnt_active_set ) ? ' iw-so-tab-active' : '' ); ?>" id="<?php echo $unique . '-' . $cnt_no . '-content'; ?>">
42
+ <?php echo wpinked_so_pb_content( $tab['content'], $tab['autop'], $tab['content_type'], $tab['builder'] ); ?>
43
  </div>
44
  <?php $cnt_active_set = ( $tab['active'] == 1 ) ? true : false; ?>
45
  <?php $cnt_no++; ?>
widgets/ink-tsml-widget/ink-tsml-widget.php CHANGED
@@ -12,162 +12,155 @@ class Inked_Testimonial_SO_Widget extends SiteOrigin_Widget {
12
  function __construct() {
13
 
14
  parent::__construct(
15
-
16
  'ink-testimonial',
17
-
18
  __( 'Inked Testimonial', 'wpinked-widgets' ),
19
-
20
  array(
21
  'description' => __( 'Highlight what your customers think of you.', 'wpinked-widgets' ),
22
  'help' => 'http://widgets-docs.wpinked.com/article/38-testimonial-widget'
23
  ),
24
-
25
  array(
26
  ),
 
 
 
 
27
 
28
- array(
 
29
 
30
- 'name' => array(
31
- 'type' => 'text',
32
- 'label' => __( 'Name', 'wpinked-widgets' ),
33
- 'default' => '',
34
- 'description' => __( 'Name of the testimonial author.', 'wpinked-widgets' ),
35
- ),
36
-
37
- 'testimonial' => array(
38
- 'type' => 'section',
39
- 'label' => __( 'Testimonial' , 'wpinked-widgets' ),
40
- 'hide' => true,
41
- 'fields' => array(
42
-
43
- 'image' => array(
44
- 'type' => 'media',
45
- 'label' => __( 'Image', 'wpinked-widgets' ),
46
- 'choose' => __( 'Choose image', 'wpinked-widgets' ),
47
- 'update' => __( 'Set image', 'wpinked-widgets' ),
48
- 'library' => 'image',
49
- 'fallback' => false
50
- ),
51
-
52
- 'company' => array(
53
- 'type' => 'text',
54
- 'label' => __( 'Company', 'wpinked-widgets' ),
55
- 'default' => ''
56
- ),
57
-
58
- 'link' => array(
59
- 'type' => 'link',
60
- 'label' => __( 'Company Link', 'wpinked-widgets' ),
61
- 'default' => ''
62
- ),
63
-
64
- 'target' => array(
65
- 'type' => 'select',
66
- 'label' => __( 'Open link in', 'wpinked-widgets' ),
67
- 'default' => '_blank',
68
- 'options' => array(
69
- '_self' => __( 'Same Window', 'wpinked-widgets' ),
70
- '_blank' => __( 'New Window', 'wpinked-widgets' )
71
- )
72
- ),
73
-
74
- 'content' => array(
75
- 'type' => 'tinymce',
76
- 'label' => __( 'Content', 'wpinked-widgets' ),
77
- 'default' => '',
78
- 'rows' => 5,
79
- 'default_editor' => 'tinymce',
80
- 'button_filters' => array(
81
- 'mce_buttons' => array( $this, 'filter_mce_buttons' ),
82
- 'mce_buttons_2' => array( $this, 'filter_mce_buttons_2' ),
83
- 'mce_buttons_3' => array( $this, 'filter_mce_buttons_3' ),
84
- 'mce_buttons_4' => array( $this, 'filter_mce_buttons_5' ),
85
- 'quicktags_settings' => array( $this, 'filter_quicktags_settings' ),
86
- ),
87
- 'description' => __( 'Change the color of the text in the editor.', 'wpinked-widgets' ),
88
- )
89
 
90
- )
91
- ),
92
-
93
- 'styling' => array(
94
- 'type' => 'section',
95
- 'label' => __( 'Styling' , 'wpinked-widgets' ),
96
- 'hide' => true,
97
- 'fields' => array(
98
-
99
- 'design' => array(
100
- 'type' => 'select',
101
- 'label' => __( 'Design', 'wpinked-widgets' ),
102
- 'default' => 'above',
103
- 'options' => array(
104
- 'above' => __( 'Image above', 'wpinked-widgets' ),
105
- 'below' => __( 'Image below', 'wpinked-widgets' ),
106
- 'between' => __( 'Image in-between', 'wpinked-widgets' ),
107
- 'left' => __( 'Image to the left', 'wpinked-widgets' ),
108
- 'right' => __( 'Image to the right', 'wpinked-widgets' ),
109
- 'by-above' => __( 'Byline above', 'wpinked-widgets' ),
110
- 'by-below' => __( 'Byline below', 'wpinked-widgets' ),
111
- )
112
- ),
113
-
114
- 'img-radius' => array(
115
- 'type' => 'select',
116
- 'label' => __( 'Image Shape', 'wpinked-widgets' ),
117
- 'default' => '0',
118
- 'options' => array(
119
- '0' => __( 'Square', 'wpinked-widgets' ),
120
- '5%' => __( 'Curved', 'wpinked-widgets' ),
121
- '50%' => __( 'Round', 'wpinked-widgets' )
122
- )
123
- ),
124
-
125
- 'img-width' => array(
126
- 'type' => 'measurement',
127
- 'label' => __( 'Image Width', 'wpinked-widgets' ),
128
- 'default' => '100%',
129
- ),
130
-
131
- 'text' => array(
132
- 'type' => 'select',
133
- 'label' => __( 'Text Alignment', 'wpinked-widgets' ),
134
- 'default' => 'iw-text-left',
135
- 'options' => array(
136
- 'iw-text-left' => __( 'Left', 'wpinked-widgets' ),
137
- 'iw-text-center' => __( 'Center', 'wpinked-widgets' ),
138
- 'iw-text-right' => __( 'Right', 'wpinked-widgets' ),
139
- )
140
- ),
141
-
142
- 'background' => array(
143
- 'type' => 'color',
144
- 'label' => __( 'Background Color', 'wpinked-widgets' ),
145
- 'default' => ''
146
- ),
147
-
148
- 'name' => array(
149
- 'type' => 'color',
150
- 'label' => __( 'Name Color', 'wpinked-widgets' ),
151
- 'default' => ''
152
- ),
153
-
154
- 'company' => array(
155
- 'type' => 'color',
156
- 'label' => __( 'Company Color', 'wpinked-widgets' ),
157
- 'default' => ''
158
- ),
159
-
160
- 'padding' => array(
161
- 'type' => 'checkbox',
162
- 'label' => __( 'Remove testimonial padding', 'wpinked-widgets' ),
163
- 'default' => false
164
  )
 
165
 
166
- )
167
- ),
 
 
 
 
 
 
 
 
 
 
168
  ),
169
 
170
- plugin_dir_path(__FILE__)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
171
  );
172
  }
173
 
12
  function __construct() {
13
 
14
  parent::__construct(
 
15
  'ink-testimonial',
 
16
  __( 'Inked Testimonial', 'wpinked-widgets' ),
 
17
  array(
18
  'description' => __( 'Highlight what your customers think of you.', 'wpinked-widgets' ),
19
  'help' => 'http://widgets-docs.wpinked.com/article/38-testimonial-widget'
20
  ),
 
21
  array(
22
  ),
23
+ false,
24
+ plugin_dir_path(__FILE__)
25
+ );
26
+ }
27
 
28
+ function get_widget_form() {
29
+ return array(
30
 
31
+ 'name' => array(
32
+ 'type' => 'text',
33
+ 'label' => __( 'Name', 'wpinked-widgets' ),
34
+ 'default' => '',
35
+ 'description' => __( 'Name of the testimonial author.', 'wpinked-widgets' ),
36
+ ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
 
38
+ 'testimonial' => array(
39
+ 'type' => 'section',
40
+ 'label' => __( 'Testimonial' , 'wpinked-widgets' ),
41
+ 'hide' => true,
42
+ 'fields' => array(
43
+
44
+ 'image' => array(
45
+ 'type' => 'media',
46
+ 'label' => __( 'Image', 'wpinked-widgets' ),
47
+ 'choose' => __( 'Choose image', 'wpinked-widgets' ),
48
+ 'update' => __( 'Set image', 'wpinked-widgets' ),
49
+ 'library' => 'image',
50
+ 'fallback' => false
51
+ ),
52
+
53
+ 'company' => array(
54
+ 'type' => 'text',
55
+ 'label' => __( 'Company', 'wpinked-widgets' ),
56
+ 'default' => ''
57
+ ),
58
+
59
+ 'link' => array(
60
+ 'type' => 'link',
61
+ 'label' => __( 'Company Link', 'wpinked-widgets' ),
62
+ 'default' => ''
63
+ ),
64
+
65
+ 'target' => array(
66
+ 'type' => 'select',
67
+ 'label' => __( 'Open link in', 'wpinked-widgets' ),
68
+ 'default' => '_blank',
69
+ 'options' => array(
70
+ '_self' => __( 'Same Window', 'wpinked-widgets' ),
71
+ '_blank' => __( 'New Window', 'wpinked-widgets' )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
  )
73
+ ),
74
 
75
+ 'content' => array(
76
+ 'type' => 'tinymce',
77
+ 'label' => __( 'Content', 'wpinked-widgets' ),
78
+ ),
79
+
80
+ 'autop' => array(
81
+ 'type' => 'checkbox',
82
+ 'default' => false,
83
+ 'label' => __( 'Automatically add paragraphs', 'wpinked-widgets' ),
84
+ ),
85
+
86
+ )
87
  ),
88
 
89
+ 'styling' => array(
90
+ 'type' => 'section',
91
+ 'label' => __( 'Styling' , 'wpinked-widgets' ),
92
+ 'hide' => true,
93
+ 'fields' => array(
94
+
95
+ 'design' => array(
96
+ 'type' => 'select',
97
+ 'label' => __( 'Design', 'wpinked-widgets' ),
98
+ 'default' => 'above',
99
+ 'options' => array(
100
+ 'above' => __( 'Image above', 'wpinked-widgets' ),
101
+ 'below' => __( 'Image below', 'wpinked-widgets' ),
102
+ 'between' => __( 'Image in-between', 'wpinked-widgets' ),
103
+ 'left' => __( 'Image to the left', 'wpinked-widgets' ),
104
+ 'right' => __( 'Image to the right', 'wpinked-widgets' ),
105
+ 'by-above' => __( 'Byline above', 'wpinked-widgets' ),
106
+ 'by-below' => __( 'Byline below', 'wpinked-widgets' ),
107
+ )
108
+ ),
109
+
110
+ 'img-radius' => array(
111
+ 'type' => 'select',
112
+ 'label' => __( 'Image Shape', 'wpinked-widgets' ),
113
+ 'default' => '0',
114
+ 'options' => array(
115
+ '0' => __( 'Square', 'wpinked-widgets' ),
116
+ '5%' => __( 'Curved', 'wpinked-widgets' ),
117
+ '50%' => __( 'Round', 'wpinked-widgets' )
118
+ )
119
+ ),
120
+
121
+ 'img-width' => array(
122
+ 'type' => 'measurement',
123
+ 'label' => __( 'Image Width', 'wpinked-widgets' ),
124
+ 'default' => '100%',
125
+ ),
126
+
127
+ 'text' => array(
128
+ 'type' => 'select',
129
+ 'label' => __( 'Text Alignment', 'wpinked-widgets' ),
130
+ 'default' => 'iw-text-left',
131
+ 'options' => array(
132
+ 'iw-text-left' => __( 'Left', 'wpinked-widgets' ),
133
+ 'iw-text-center' => __( 'Center', 'wpinked-widgets' ),
134
+ 'iw-text-right' => __( 'Right', 'wpinked-widgets' ),
135
+ )
136
+ ),
137
+
138
+ 'background' => array(
139
+ 'type' => 'color',
140
+ 'label' => __( 'Background Color', 'wpinked-widgets' ),
141
+ 'default' => ''
142
+ ),
143
+
144
+ 'name' => array(
145
+ 'type' => 'color',
146
+ 'label' => __( 'Name Color', 'wpinked-widgets' ),
147
+ 'default' => ''
148
+ ),
149
+
150
+ 'company' => array(
151
+ 'type' => 'color',
152
+ 'label' => __( 'Company Color', 'wpinked-widgets' ),
153
+ 'default' => ''
154
+ ),
155
+
156
+ 'padding' => array(
157
+ 'type' => 'checkbox',
158
+ 'label' => __( 'Remove testimonial padding', 'wpinked-widgets' ),
159
+ 'default' => false
160
+ )
161
+
162
+ )
163
+ ),
164
  );
165
  }
166
 
widgets/ink-tsml-widget/styles/testimonial.less CHANGED
@@ -1,4 +1,4 @@
1
- @import "../../mixins/less/mixins";
2
 
3
  @bg: transparent;
4
  @img-r: 0;
1
+ @import "../mixins/less/mixins";
2
 
3
  @bg: transparent;
4
  @img-r: 0;
widgets/ink-vids-widget/ink-vids-widget.php CHANGED
@@ -12,124 +12,122 @@ class Inked_Video_SO_Widget extends SiteOrigin_Widget {
12
  function __construct() {
13
 
14
  parent::__construct(
15
-
16
  'ink-video',
17
-
18
  __( 'Inked Video', 'wpinked-widgets' ),
19
-
20
  array(
21
  'description' => __( 'Play self or externally hosted videos.', 'wpinked-widgets' ),
22
  'help' => 'http://widgets-docs.wpinked.com/article/34-video-widget'
23
  ),
24
-
25
  array(
26
  ),
 
 
 
 
27
 
28
- array(
 
29
 
30
- 'admin' => array(
31
- 'type' => 'text',
32
- 'label' => __( 'Admin Label', 'wpinked-widgets' ),
33
- 'default' => ''
34
- ),
35
 
36
- 'video' => array(
37
- 'type' => 'section',
38
- 'label' => __( 'Video' , 'wpinked-widgets' ),
39
- 'hide' => true,
40
- 'fields' => array(
41
-
42
- 'type' => array(
43
- 'type' => 'select',
44
- 'label' => __( 'Video Type', 'wpinked-widgets' ),
45
- 'default' => 'oembed',
46
- 'options' => array(
47
- 'hosted' => __( 'Self Hosted', 'wpinked-widgets' ),
48
- 'oembed' => __( 'oEmbed', 'wpinked-widgets' ),
49
- ),
50
- 'state_emitter' => array(
51
- 'callback' => 'select',
52
- 'args' => array( 'video_type' )
53
- )
54
- ),
55
- 'hosted' => array(
56
- 'type' => 'media',
57
- 'fallback' => true,
58
- 'label' => __( 'Video File', 'wpinked-widgets' ),
59
- 'default' => '',
60
- 'library' => 'video',
61
- 'state_handler' => array(
62
- 'video_type[hosted]' => array( 'show' ),
63
- 'video_type[oembed]' => array( 'hide' ),
64
- )
65
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
 
67
- 'image' => array(
68
- 'type' => 'media',
69
- 'fallback' => true,
70
- 'label' => __( 'Cover Image', 'wpinked-widgets' ),
71
- 'default' => '',
72
- 'library' => 'image',
73
- 'state_handler' => array(
74
- 'video_type[hosted]' => array( 'show' ),
75
- 'video_type[oembed]' => array( 'hide' ),
76
- )
77
- ),
78
 
79
- 'oembed' => array(
80
- 'type' => 'text',
81
- 'sanitize' => 'url',
82
- 'label' => __( 'oEmbed Video URL', 'wpinked-widgets' ),
83
- 'state_handler' => array(
84
- 'video_type[hosted]' => array( 'hide' ),
85
- 'video_type[oembed]' => array( 'show' ),
86
- )
87
- ),
88
 
89
- 'controls' => array(
90
- 'type' => 'select',
91
- 'label' => __( 'Controls Theme', 'wpinked-widgets' ),
92
- 'default' => 'iw-text-center',
93
- 'options' => array(
94
- 'iw-so-player-light' => __( 'Light', 'wpinked-widgets' ),
95
- 'iw-so-player-dark' => __( 'Dark', 'wpinked-widgets' )
96
- ),
97
- 'state_handler' => array(
98
- 'video_type[hosted]' => array( 'show' ),
99
- 'video_type[oembed]' => array( 'hide' ),
100
- )
101
  ),
 
 
 
 
 
102
 
103
- 'background' => array(
104
- 'type' => 'color',
105
- 'label' => __( 'Controller Background Color', 'wpinked-widgets' ),
106
- 'default' => '',
107
- 'state_handler' => array(
108
- 'video_type[hosted]' => array( 'show' ),
109
- 'video_type[oembed]' => array( 'hide' ),
110
- ),
111
- 'description' => __( 'Leave blank for a transparent background.', 'wpinked-widgets' ),
112
  ),
 
 
113
 
114
- 'bg-opacity' => array(
115
- 'type' => 'slider',
116
- 'label' => __( 'Controller Background Opacity', 'wpinked-widgets' ),
117
- 'default' => 0,
118
- 'min' => 0,
119
- 'max' => 100,
120
- 'integer' => true,
121
- 'state_handler' => array(
122
- 'video_type[hosted]' => array( 'show' ),
123
- 'video_type[oembed]' => array( 'hide' ),
124
- )
125
- ),
126
 
127
 
128
- ),
129
  ),
130
  ),
131
-
132
- plugin_dir_path(__FILE__)
133
  );
134
  }
135
 
12
  function __construct() {
13
 
14
  parent::__construct(
 
15
  'ink-video',
 
16
  __( 'Inked Video', 'wpinked-widgets' ),
 
17
  array(
18
  'description' => __( 'Play self or externally hosted videos.', 'wpinked-widgets' ),
19
  'help' => 'http://widgets-docs.wpinked.com/article/34-video-widget'
20
  ),
 
21
  array(
22
  ),
23
+ false,
24
+ plugin_dir_path(__FILE__)
25
+ );
26
+ }
27
 
28
+ function get_widget_form() {
29
+ return array(
30
 
31
+ 'admin' => array(
32
+ 'type' => 'text',
33
+ 'label' => __( 'Admin Label', 'wpinked-widgets' ),
34
+ 'default' => ''
35
+ ),
36
 
37
+ 'video' => array(
38
+ 'type' => 'section',
39
+ 'label' => __( 'Video' , 'wpinked-widgets' ),
40
+ 'hide' => true,
41
+ 'fields' => array(
42
+
43
+ 'type' => array(
44
+ 'type' => 'select',
45
+ 'label' => __( 'Video Type', 'wpinked-widgets' ),
46
+ 'default' => 'oembed',
47
+ 'options' => array(
48
+ 'hosted' => __( 'Self Hosted', 'wpinked-widgets' ),
49
+ 'oembed' => __( 'oEmbed', 'wpinked-widgets' ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  ),
51
+ 'state_emitter' => array(
52
+ 'callback' => 'select',
53
+ 'args' => array( 'video_type' )
54
+ )
55
+ ),
56
+ 'hosted' => array(
57
+ 'type' => 'media',
58
+ 'fallback' => true,
59
+ 'label' => __( 'Video File', 'wpinked-widgets' ),
60
+ 'default' => '',
61
+ 'library' => 'video',
62
+ 'state_handler' => array(
63
+ 'video_type[hosted]' => array( 'show' ),
64
+ 'video_type[oembed]' => array( 'hide' ),
65
+ )
66
+ ),
67
 
68
+ 'image' => array(
69
+ 'type' => 'media',
70
+ 'fallback' => true,
71
+ 'label' => __( 'Cover Image', 'wpinked-widgets' ),
72
+ 'default' => '',
73
+ 'library' => 'image',
74
+ 'state_handler' => array(
75
+ 'video_type[hosted]' => array( 'show' ),
76
+ 'video_type[oembed]' => array( 'hide' ),
77
+ )
78
+ ),
79
 
80
+ 'oembed' => array(
81
+ 'type' => 'text',
82
+ 'sanitize' => 'url',
83
+ 'label' => __( 'oEmbed Video URL', 'wpinked-widgets' ),
84
+ 'state_handler' => array(
85
+ 'video_type[hosted]' => array( 'hide' ),
86
+ 'video_type[oembed]' => array( 'show' ),
87
+ )
88
+ ),
89
 
90
+ 'controls' => array(
91
+ 'type' => 'select',
92
+ 'label' => __( 'Controls Theme', 'wpinked-widgets' ),
93
+ 'default' => 'iw-text-center',
94
+ 'options' => array(
95
+ 'iw-so-player-light' => __( 'Light', 'wpinked-widgets' ),
96
+ 'iw-so-player-dark' => __( 'Dark', 'wpinked-widgets' )
 
 
 
 
 
97
  ),
98
+ 'state_handler' => array(
99
+ 'video_type[hosted]' => array( 'show' ),
100
+ 'video_type[oembed]' => array( 'hide' ),
101
+ )
102
+ ),
103
 
104
+ 'background' => array(
105
+ 'type' => 'color',
106
+ 'label' => __( 'Controller Background Color', 'wpinked-widgets' ),
107
+ 'default' => '',
108
+ 'state_handler' => array(
109
+ 'video_type[hosted]' => array( 'show' ),
110
+ 'video_type[oembed]' => array( 'hide' ),
 
 
111
  ),
112
+ 'description' => __( 'Leave blank for a transparent background.', 'wpinked-widgets' ),
113
+ ),
114
 
115
+ 'bg-opacity' => array(
116
+ 'type' => 'slider',
117
+ 'label' => __( 'Controller Background Opacity', 'wpinked-widgets' ),
118
+ 'default' => 0,
119
+ 'min' => 0,
120
+ 'max' => 100,
121
+ 'integer' => true,
122
+ 'state_handler' => array(
123
+ 'video_type[hosted]' => array( 'show' ),
124
+ 'video_type[oembed]' => array( 'hide' ),
125
+ )
126
+ ),
127
 
128
 
 
129
  ),
130
  ),
 
 
131
  );
132
  }
133