Responsive Pricing Table - Version 4.1.1

Version Description

  • SAFE UPDATE: from 3.0 or higher
  • Fixed unwanted shortcode title output
Download this release

Release Info

Developer spwebguy
Plugin Icon 128x128 Responsive Pricing Table
Version 4.1.1
Comparing to
See all releases

Code changes from version 4.0.2 to 4.1.1

Files changed (52) hide show
  1. cmb2/bootstrap.php +0 -0
  2. cmb2/css/cmb2.css +0 -0
  3. cmb2/css/cmb2.css.map +0 -0
  4. cmb2/css/cmb2.min.css +0 -0
  5. cmb2/css/index.php +0 -0
  6. cmb2/css/sass/cmb2.scss +0 -0
  7. cmb2/css/sass/index.php +0 -0
  8. cmb2/css/sass/partials/_collapsible_ui.scss +0 -0
  9. cmb2/css/sass/partials/_jquery_ui.scss +0 -0
  10. cmb2/css/sass/partials/_main_wrap.scss +0 -0
  11. cmb2/css/sass/partials/_misc.scss +0 -0
  12. cmb2/css/sass/partials/_mixins.scss +0 -0
  13. cmb2/css/sass/partials/_post_metaboxes.scss +0 -0
  14. cmb2/css/sass/partials/_sidebar_placements.scss +0 -0
  15. cmb2/css/sass/partials/_timepicker.scss +0 -0
  16. cmb2/css/sass/partials/_variables.scss +0 -0
  17. cmb2/css/sass/partials/index.php +0 -0
  18. cmb2/images/ico-delete.png +0 -0
  19. cmb2/images/index.php +0 -0
  20. cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  21. cmb2/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  22. cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  23. cmb2/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  24. cmb2/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  25. cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  26. cmb2/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  27. cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  28. cmb2/images/ui-icons_222222_256x240.png +0 -0
  29. cmb2/images/ui-icons_2e83ff_256x240.png +0 -0
  30. cmb2/images/ui-icons_454545_256x240.png +0 -0
  31. cmb2/images/ui-icons_888888_256x240.png +0 -0
  32. cmb2/images/ui-icons_cd0a0a_256x240.png +0 -0
  33. cmb2/includes/CMB2.php +0 -0
  34. cmb2/includes/CMB2_Ajax.php +0 -0
  35. cmb2/includes/CMB2_Boxes.php +0 -0
  36. cmb2/includes/CMB2_Field.php +0 -0
  37. cmb2/includes/CMB2_Options.php +0 -0
  38. cmb2/includes/CMB2_Sanitize.php +0 -0
  39. cmb2/includes/CMB2_Show_Filters.php +0 -0
  40. cmb2/includes/CMB2_Types.php +0 -0
  41. cmb2/includes/CMB2_Utils.php +0 -0
  42. cmb2/includes/CMB2_hookup.php +0 -0
  43. cmb2/includes/helper-functions.php +0 -0
  44. cmb2/includes/index.php +0 -0
  45. cmb2/index.php +0 -0
  46. cmb2/init.php +0 -0
  47. cmb2/js/cmb2.js +0 -0
  48. cmb2/js/cmb2.min.js +0 -0
  49. cmb2/js/index.php +0 -0
  50. cmb2/js/jquery.timePicker.min.js +0 -0
  51. readme.txt +79 -68
  52. rpt.php +43 -16
cmb2/bootstrap.php CHANGED
File without changes
cmb2/css/cmb2.css CHANGED
File without changes
cmb2/css/cmb2.css.map CHANGED
File without changes
cmb2/css/cmb2.min.css CHANGED
File without changes
cmb2/css/index.php CHANGED
File without changes
cmb2/css/sass/cmb2.scss CHANGED
File without changes
cmb2/css/sass/index.php CHANGED
File without changes
cmb2/css/sass/partials/_collapsible_ui.scss CHANGED
File without changes
cmb2/css/sass/partials/_jquery_ui.scss CHANGED
File without changes
cmb2/css/sass/partials/_main_wrap.scss CHANGED
File without changes
cmb2/css/sass/partials/_misc.scss CHANGED
File without changes
cmb2/css/sass/partials/_mixins.scss CHANGED
File without changes
cmb2/css/sass/partials/_post_metaboxes.scss CHANGED
File without changes
cmb2/css/sass/partials/_sidebar_placements.scss CHANGED
File without changes
cmb2/css/sass/partials/_timepicker.scss CHANGED
File without changes
cmb2/css/sass/partials/_variables.scss CHANGED
File without changes
cmb2/css/sass/partials/index.php CHANGED
File without changes
cmb2/images/ico-delete.png CHANGED
File without changes
cmb2/images/index.php CHANGED
File without changes
cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png CHANGED
File without changes
cmb2/images/ui-bg_flat_75_ffffff_40x100.png CHANGED
File without changes
cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png CHANGED
File without changes
cmb2/images/ui-bg_glass_65_ffffff_1x400.png CHANGED
File without changes
cmb2/images/ui-bg_glass_75_dadada_1x400.png CHANGED
File without changes
cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png CHANGED
File without changes
cmb2/images/ui-bg_glass_95_fef1ec_1x400.png CHANGED
File without changes
cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png CHANGED
File without changes
cmb2/images/ui-icons_222222_256x240.png CHANGED
File without changes
cmb2/images/ui-icons_2e83ff_256x240.png CHANGED
File without changes
cmb2/images/ui-icons_454545_256x240.png CHANGED
File without changes
cmb2/images/ui-icons_888888_256x240.png CHANGED
File without changes
cmb2/images/ui-icons_cd0a0a_256x240.png CHANGED
File without changes
cmb2/includes/CMB2.php CHANGED
File without changes
cmb2/includes/CMB2_Ajax.php CHANGED
File without changes
cmb2/includes/CMB2_Boxes.php CHANGED
File without changes
cmb2/includes/CMB2_Field.php CHANGED
File without changes
cmb2/includes/CMB2_Options.php CHANGED
File without changes
cmb2/includes/CMB2_Sanitize.php CHANGED
File without changes
cmb2/includes/CMB2_Show_Filters.php CHANGED
File without changes
cmb2/includes/CMB2_Types.php CHANGED
File without changes
cmb2/includes/CMB2_Utils.php CHANGED
File without changes
cmb2/includes/CMB2_hookup.php CHANGED
File without changes
cmb2/includes/helper-functions.php CHANGED
File without changes
cmb2/includes/index.php CHANGED
File without changes
cmb2/index.php CHANGED
File without changes
cmb2/init.php CHANGED
File without changes
cmb2/js/cmb2.js CHANGED
File without changes
cmb2/js/cmb2.min.js CHANGED
File without changes
cmb2/js/index.php CHANGED
File without changes
cmb2/js/jquery.timePicker.min.js CHANGED
File without changes
readme.txt CHANGED
@@ -1,8 +1,8 @@
1
  === Responsive Pricing Table ===
2
  Contributors: spwebguy
3
- Tags: pricing table, pricing tables, prices, plans, offer, shortcode, easy, price, responsive, pricing, tables, flexible, pricing plan
4
  Requires at least: 3.6
5
- Tested up to: 4.1.1
6
  Stable tag: trunk
7
  License: GPL2
8
  License URI: http://www.gnu.org/licenses/gpl.html
@@ -12,35 +12,36 @@ A responsive and elegant way to present your offer to your visitors. Create a ne
12
  == Description ==
13
  This plugin adds a “Pricing Tables” tab in the admin panel which allows you to create pricing tables for your website the easy way. You can quickly add features to your different plans, choose a color (as well as many other options) and display your price table anywhere with a simple shortcode. What you see is what you get, and it’s totally free.
14
 
15
- = Rate and review =
16
- We love to hear from our users, please take the time to rate this plugin and tell us what you think about it!
17
-
18
  = No limitation for the Free version =
19
  The Free version of the Responsive Pricing Table plugin is **not limited** and does not contain any ad.
20
 
21
  The [PRO version](http://wpdarko.com/items/responsive-pricing-table-pro/) gives you access to two new features: **skins** and **tooltips**. Skins are new designs for your pricing tables, tooltips are “info bubbles” that you can easily add to your features.
22
 
23
- = Author =
24
- [WP Darko](http://wpdarko.com/) is one more great place to find exclusive WordPress themes & plugins.
25
-
26
- = Available fields/options =
27
  * Title
28
  * Subtitle
29
  * Description
30
  * Price
31
- * Currency
32
  * Recurrence (“one-time fee”, “per month”)
 
33
  * Features (as many as you want)
34
  * Button URL and text
35
- * Links behaviour
36
- * Color
37
- * Font size
 
 
 
 
 
 
 
38
 
39
  = Usage =
40
- Go to [the plugin's documentation](http://wpdarko.com/support/documentation/get-started-responsive-pricing-table/) if you need more information on how to use this plugin.
41
 
42
  = Support =
43
- Find help in [our forums](http://wpdarko.com/support/forum/plugins/responsive-pricing-table/) for this plugin (we’ll answer you fast, promise).
44
 
45
  == Installation ==
46
 
@@ -51,127 +52,137 @@ Find help in [our forums](http://wpdarko.com/support/forum/plugins/responsive-pr
51
  4. Activate the plugin
52
 
53
  = Usage =
54
- Go to [the plugin's documentation](http://wpdarko.com/support/documentation/get-started-responsive-pricing-table/) for information on how to use it.
55
 
56
- == Frequently Asked Questions ==
57
-
58
- = Example & Support =
59
- Go to [the plugin's documentation](http://wpdarko.com/support/documentation/get-started-responsive-pricing-table/) for information on how to use this plugin.
60
-
61
- = Where can I get help with this plugin? =
62
- Find help in [our forums](http://wpdarko.com/support/forum/plugins/responsive-pricing-table/) for this plugin (we’ll answer you fast, promise).
63
 
 
64
  = No limitation for the Free version =
65
  The free version of the Responsive Pricing Table plugin is **not limited** and does not contain any ad.
66
 
67
  The [PRO version](http://wpdarko.com/items/responsive-pricing-table-pro/) gives you access to two new features: **skins** and **tooltips**. Skins are new designs for your pricing tables, tooltips are “info bubbles” that you can easily add to your features.
68
 
 
 
 
 
 
 
69
  == Screenshots ==
70
  1. Displaying the pricing table (front view)
71
  2. Displaying the pricing table 2 (front view)
72
  3. Creating a pricing table 1 (admin view)
73
  4. Creating a pricing table 2 (admin view)
74
- 5. Finding the shortcode (admin view)
 
75
 
76
  == Changelog ==
 
 
 
 
 
 
 
 
77
  = 4.0.2 =
78
- * SAFE UPDATE: No data loss for those upgrading from version 3.0 or higher
79
  * Fixed a conflict between the shortcode and custom themes.
80
 
81
  = 4.0.1 =
82
- * SAFE UPDATE: No data loss for those upgrading from version 3.0 or higher
83
- * Fixed a bug when removing currency sign (e.g.. for free plans)
84
 
85
  = 4.0 =
86
- * SAFE UPDATE: No data loss for those upgrading from version 3.0 or higher
87
  * New admin interface (new framework)
88
- * You can now add links in the feature area using the <a> tag (user request)
89
- * You can now force the plugin's original fonts (user request)
90
  * Added docs and support forums links
91
  * Added instructions
92
- * Much cleaner code
93
 
94
  = 3.5.1 =
95
- * SAFE UPDATE: No data loss for those upgrading from version 3.0 or higher
96
- * You can now add pictures/icons in the feature area using the <img> tag
97
 
98
  = 3.5 =
99
- * SAFE UPDATE: No data loss for those upgrading from version 3.0 or higher
100
- * You can now put this shortcode inside another one if you want (nested shortcodes)
101
 
102
  = 3.4.2 =
103
- * SAFE UPDATE: No data loss for those upgrading from version 3.0 or higher
104
  * Admin panel small bug fix
105
 
106
  = 3.4.1 =
107
- * SAFE UPDATE: No data loss for those upgrading from version 3.0 or higher
108
  * Minor bug fix
109
 
110
  = 3.4.0 =
111
- * SAFE UPDATE: No data loss for those upgrading from version 3.0 or higher
112
- * Possible to hide the currency symbol
113
- * Allow pricing tables with no button
114
- * Allow special characters in the button link (third party sites/payments)
115
- * Allow <br> tags in the features (adjust line breaks to your liking)
116
- * Allow <br> tags in the description
117
- * Allow <br> tags in the subtitle
118
 
119
  = 3.3.0 =
120
- * SAFE UPDATE: No data loss for those upgrading from version 3.0 or higher
121
  * Added a new font-size preset for the price element
122
  * All font-sizes are more accurate and will better fit on your pages
123
  * Fixed styling issues for small screens
124
 
125
  = 3.2.4 =
126
- * SAFE UPDATE: No data loss for those upgrading from version 3.0 or higher
127
- * Solved conflict when generating shortcode
128
 
129
  = 3.2.3 =
130
- * SAFE UPDATE: No data loss for those upgrading from version 3.0 or higher
131
  * Fixed icon position issue
132
- * Prepared for WordPress 4.1
133
 
134
  = 3.2.2 =
135
- * SAFE UPDATE: No data loss for those upgrading from version 3.0 or higher
136
  * Preventing plugin conflicts
137
  * Minor bug fixes
138
 
139
  = 3.2.1 =
140
- * SAFE UPDATE: No data loss for those upgrading from version 3.0 or higher
141
- * Allows automatic recovery of all pricing tables when switching to PRO version
142
 
143
  = 3.2 =
144
- * SAFE UPDATE: No data loss for those upgrading from version 3.0 or higher
145
- * CSS bug fixes (icons/titles)
146
 
147
  = 3.1 =
148
- * SAFE UPDATE: No data loss for those upgrading from version 3.0
149
  * Preventing plugin conflicts
150
 
151
  = 3.0 =
152
- * WARNING: FOR THOSE WHO UPGRADE FROM AN EARLIER VERSION TO THIS VERSION, YOU WILL NEED TO RE-CREATE YOUR PRICING TABLES!
153
- * Cleaner plugin admin
154
- * Cleaner code
155
 
156
  = 2.3 =
157
- * SAFE UPDATE: No data loss for those upgrading from version 2.0 or higher
158
- * Modified CSS - fits better on small-width websites (or websites with sidebars)
159
 
160
  = 2.2 =
161
- * SAFE UPDATE: No data loss for those upgrading from version 2.0 or higher
162
  * Links behavior can be changed
163
 
164
  = 2.1 =
165
- * SAFE UPDATE: No data loss for those upgrading from version 2.0
166
- * Font sizes can be changed in case some word doesn’t fit
167
 
168
  = 2.0 =
169
- * WARNING: FOR THOSE WHO UPGRADE FROM AN EARLIER VERSION TO THIS VERSION, YOU WILL NEED TO RE-CREATE YOUR PRICING TABLES!
170
- * Use custom post type feature to create pricing tables
171
- * Plans can be set to Free
172
- * Plans can be set to Recommended
173
  * Currency can be changed
174
  * Much nicer look
175
 
176
  = 1.0 =
177
- * Simple pricing table shortcode
1
  === Responsive Pricing Table ===
2
  Contributors: spwebguy
3
+ Tags: pricing table, pricing tables, prices, pricing, plans, offer, shortcode, price, responsive, pricing, tables, pricing plan
4
  Requires at least: 3.6
5
+ Tested up to: 4.2.3
6
  Stable tag: trunk
7
  License: GPL2
8
  License URI: http://www.gnu.org/licenses/gpl.html
12
  == Description ==
13
  This plugin adds a “Pricing Tables” tab in the admin panel which allows you to create pricing tables for your website the easy way. You can quickly add features to your different plans, choose a color (as well as many other options) and display your price table anywhere with a simple shortcode. What you see is what you get, and it’s totally free.
14
 
 
 
 
15
  = No limitation for the Free version =
16
  The Free version of the Responsive Pricing Table plugin is **not limited** and does not contain any ad.
17
 
18
  The [PRO version](http://wpdarko.com/items/responsive-pricing-table-pro/) gives you access to two new features: **skins** and **tooltips**. Skins are new designs for your pricing tables, tooltips are “info bubbles” that you can easily add to your features.
19
 
20
+ = Available fields =
 
 
 
21
  * Title
22
  * Subtitle
23
  * Description
24
  * Price
 
25
  * Recurrence (“one-time fee”, “per month”)
26
+ * Small icon
27
  * Features (as many as you want)
28
  * Button URL and text
29
+ * Custom buttons (Stripe, Paypal…)
30
+ * Color (per plan)
31
+
32
+ = Available settings =
33
+ * Recommended plan (highlight any plan)
34
+ * Remove currency sign (eg. for free plans)
35
+ * Change currency sign (€, £, ¥, $…)
36
+ * Links behavior (current/new window)
37
+ * Force original fonts
38
+ * Font size presets
39
 
40
  = Usage =
41
+ Go to [the plugin's documentation](https://wpdarko.zendesk.com/hc/en-us/articles/206303517-Get-started-with-the-Responsive-Pricing-Table-plugin) if you need more information on how to use this plugin.
42
 
43
  = Support =
44
+ Find help in [our forums](http://wpdarko.com/support/) for this plugin (we’ll answer you fast, promise).
45
 
46
  == Installation ==
47
 
52
  4. Activate the plugin
53
 
54
  = Usage =
55
+ Go to [the plugin's documentation](https://wpdarko.zendesk.com/hc/en-us/articles/206303517-Get-started-with-the-Responsive-Pricing-Table-plugin) for information on how to use it.
56
 
57
+ = Support =
58
+ Find help in [our forums](http://wpdarko.com/support/) for this plugin (we’ll answer you fast, promise).
 
 
 
 
 
59
 
60
+ == Frequently Asked Questions ==
61
  = No limitation for the Free version =
62
  The free version of the Responsive Pricing Table plugin is **not limited** and does not contain any ad.
63
 
64
  The [PRO version](http://wpdarko.com/items/responsive-pricing-table-pro/) gives you access to two new features: **skins** and **tooltips**. Skins are new designs for your pricing tables, tooltips are “info bubbles” that you can easily add to your features.
65
 
66
+ = Usage =
67
+ Go to [the plugin's documentation](https://wpdarko.zendesk.com/hc/en-us/articles/206303517-Get-started-with-the-Responsive-Pricing-Table-plugin) for information on how to use it.
68
+
69
+ = Support =
70
+ Find help in [our forums](http://wpdarko.com/support/) for this plugin (we’ll answer you fast, promise).
71
+
72
  == Screenshots ==
73
  1. Displaying the pricing table (front view)
74
  2. Displaying the pricing table 2 (front view)
75
  3. Creating a pricing table 1 (admin view)
76
  4. Creating a pricing table 2 (admin view)
77
+ 5. Setting panel (admin view)
78
+ 6. Finding the shortcode (admin view)
79
 
80
  == Changelog ==
81
+ = 4.1.1 =
82
+ * SAFE UPDATE: from 3.0 or higher
83
+ * Fixed unwanted shortcode title output
84
+
85
+ = 4.1 =
86
+ * SAFE UPDATE: from 3.0 or higher
87
+ * Added support for custom buttons (Paypal, Stripe etc…)
88
+
89
  = 4.0.2 =
90
+ * SAFE UPDATE: from 3.0 or higher
91
  * Fixed a conflict between the shortcode and custom themes.
92
 
93
  = 4.0.1 =
94
+ * SAFE UPDATE: from 3.0 or higher
95
+ * Fixed a bug when removing currency sign
96
 
97
  = 4.0 =
98
+ * SAFE UPDATE: from 3.0 or higher
99
  * New admin interface (new framework)
100
+ * Allow adding links in the feature area using the a tag (user request)
101
+ * Allow forcing the plugin's original fonts (user request)
102
  * Added docs and support forums links
103
  * Added instructions
104
+ * Cleaning code
105
 
106
  = 3.5.1 =
107
+ * SAFE UPDATE: from 3.0 or higher
108
+ * Allowing pictures/icons in the feature area using the img tag
109
 
110
  = 3.5 =
111
+ * SAFE UPDATE: from 3.0 or higher
112
+ * Added nested shortcode support
113
 
114
  = 3.4.2 =
115
+ * SAFE UPDATE: from 3.0 or higher
116
  * Admin panel small bug fix
117
 
118
  = 3.4.1 =
119
+ * SAFE UPDATE: from 3.0 or higher
120
  * Minor bug fix
121
 
122
  = 3.4.0 =
123
+ * SAFE UPDATE: from 3.0 or higher
124
+ * Allowing hiding the currency symbol
125
+ * Allowing pricing tables with no button
126
+ * Allowing br tags in the features (adjust line breaks to your liking)
127
+ * Allowing br tags in the description
128
+ * Allowing br tags in the subtitle
 
129
 
130
  = 3.3.0 =
131
+ * SAFE UPDATE: from 3.0 or higher
132
  * Added a new font-size preset for the price element
133
  * All font-sizes are more accurate and will better fit on your pages
134
  * Fixed styling issues for small screens
135
 
136
  = 3.2.4 =
137
+ * SAFE UPDATE: from 3.0 or higher
138
+ * Fixed conflict when generating shortcode
139
 
140
  = 3.2.3 =
141
+ * SAFE UPDATE: from 3.0 or higher
142
  * Fixed icon position issue
143
+ * Preparing for WordPress 4.1
144
 
145
  = 3.2.2 =
146
+ * SAFE UPDATE: from 3.0 or higher
147
  * Preventing plugin conflicts
148
  * Minor bug fixes
149
 
150
  = 3.2.1 =
151
+ * SAFE UPDATE: from 3.0 or higher
152
+ * Automatic recovery of all pricing tables when switching to PRO version
153
 
154
  = 3.2 =
155
+ * SAFE UPDATE: from 3.0 or higher
156
+ * CSS bug fixes - icons/titles
157
 
158
  = 3.1 =
159
+ * SAFE UPDATE: from 3.0
160
  * Preventing plugin conflicts
161
 
162
  = 3.0 =
163
+ * WARNING: YOU’LL NEED TO RE-CREATE YOUR PRICING TABLES
164
+ * Cleaning plugin admin
165
+ * Cleaning code
166
 
167
  = 2.3 =
168
+ * SAFE UPDATE: from 2.0 or higher
169
+ * CSS bug fixes - better on small-width websites (or websites with sidebars)
170
 
171
  = 2.2 =
172
+ * SAFE UPDATE: from 2.0 or higher
173
  * Links behavior can be changed
174
 
175
  = 2.1 =
176
+ * SAFE UPDATE: from 2.0
177
+ * Font sizes can be changed in case some words don’t fit
178
 
179
  = 2.0 =
180
+ * WARNING: YOU’LL NEED TO RE-CREATE YOUR PRICING TABLES
181
+ * Using WordPress’ custom post type feature to create Pricing Tables
182
+ * Plans can be marked as Free
183
+ * Plans can be marked as Recommended
184
  * Currency can be changed
185
  * Much nicer look
186
 
187
  = 1.0 =
188
+ * Initial release (yay!)
rpt.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /*
3
  Plugin Name: Responsive Pricing Table
4
- Plugin URI: http://wpdarko.com/support/documentation/get-started-responsive-pricing-table/
5
- Description: A responsive, easy and elegant way to present your offer to your visitors. Just create a new pricing table (custom type) and copy-paste the shortcode into your posts/pages. Find support and information on the <a href="http://wpdarko.com/responsive-pricing-table/">plugin's page</a>. This free version is NOT limited and does not contain any ad. Check out the <a href='http://wpdarko.com/items/responsive-pricing-table-pro/'>PRO version</a> for more great features.
6
- Version: 4.0.2
7
  Author: WP Darko
8
  Author URI: http://wpdarko.com
9
  License: GPL2
@@ -247,6 +247,26 @@ function rpt_register_plan_group_metabox() {
247
  ),
248
  'row_classes' => 'de_fifty de_text de_input',
249
  ));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
250
 
251
  $main_group->add_group_field( $rpt_plan_group, array(
252
  'name' => 'Plan styling',
@@ -442,7 +462,7 @@ function rpt_register_plan_group_metabox() {
442
 
443
  $help_group->add_field( array(
444
  'name' => '',
445
- 'desc' => 'Plan\'s skeleton<br/><img src="'.$plan_skeleton_url.'"/><br/>Find help at WPdarko.com<br/><br/><a target="_blank" href="http://wpdarko.com/support/forum/plugins/responsive-pricing-table/"><span class="dashicons dashicons-arrow-right-alt2"></span> Support forum</a><br/><a target="_blank" href="http://wpdarko.com/support/documentation/get-started-responsive-pricing-table/"><span class="dashicons dashicons-arrow-right-alt2"></span> Documentation</a>',
446
  'id' => $prefix . 'help_desc',
447
  'type' => 'title',
448
  'row_classes' => 'de_hundred de_info de_info_side',
@@ -461,7 +481,7 @@ function rpt_register_plan_group_metabox() {
461
 
462
  $pro_group->add_field( array(
463
  'name' => '',
464
- 'desc' => 'This free version is <strong>not</strong> limited and does <strong>not</strong> contain any ad. Check out the PRO version for more great features.<br/><br/><a target="_blank" href="http://wpdarko.com/items/responsive-pricing-table-pro"><span class="dashicons dashicons-arrow-right-alt2"></span> See plugin\'s page</a><br/><br/><span style="font-size:13px; color:#88acbc;">Coupon code <strong>7832949</strong> (20% OFF).</span>',
465
  'id' => $prefix . 'pro_desc',
466
  'type' => 'title',
467
  'row_classes' => 'de_hundred de_info de_info_side',
@@ -530,7 +550,7 @@ foreach($custom_posts as $post) : setup_postdata($post);
530
  // Forcing original fonts?
531
  $original_font = get_post_meta( $post->ID, '_rpt_original_font', true );
532
  if ($original_font == true){
533
- $ori_f = 'rpt_tab_ori';
534
  } else {
535
  $ori_f = '';
536
  }
@@ -736,17 +756,24 @@ foreach($custom_posts as $post) : setup_postdata($post);
736
  $link_behavior = 'target="_self"';
737
  }
738
 
739
- // Foot
740
- if (!empty($plans['_rpt_btn_text'])){
741
- $output2 .= '<a '. $link_behavior .' href="' . do_shortcode($btn_link) . '" style="background:' . $plans['_rpt_color'] . '" class="rpt_foot rpt_foot_' . $key . '">';
 
 
742
  } else {
743
- $output2 .= '<a '. $link_behavior .' style="background:' . $plans['_rpt_color'] . '" class="rpt_foot rpt_foot_' . $key . '">';
 
 
 
 
 
 
 
 
 
 
744
  }
745
-
746
- $output2 .= do_shortcode($btn_text);
747
-
748
- // Closing foot
749
- $output2 .= '</a>';
750
 
751
  $output2 .= '</div>';
752
 
@@ -760,7 +787,7 @@ foreach($custom_posts as $post) : setup_postdata($post);
760
 
761
  $output2 .= '<div style="clear:both;"></div>';
762
 
763
- endforeach; wp_reset_query();
764
  return $output2;
765
 
766
  }
1
  <?php
2
  /*
3
  Plugin Name: Responsive Pricing Table
4
+ Plugin URI: http://wpdarko.com/items/responsive-pricing-table-pro/
5
+ Description: A responsive, easy and elegant way to present your offer to your visitors. Just create a new pricing table (custom type) and copy-paste the shortcode into your posts/pages. Find help and information on our <a href="http://wpdarko.com/support/">support site</a>. This free version is NOT limited and does not contain any ad. Check out the <a href='http://wpdarko.com/items/responsive-pricing-table-pro/'>PRO version</a> for more great features.
6
+ Version: 4.1.1
7
  Author: WP Darko
8
  Author URI: http://wpdarko.com
9
  License: GPL2
247
  ),
248
  'row_classes' => 'de_fifty de_text de_input',
249
  ));
250
+
251
+ $main_group->add_group_field( $rpt_plan_group, array(
252
+ 'name' => '<span class="dashicons dashicons-media-code"></span> Or use a Custom button',
253
+ 'id' => $prefix . 'btn_custom_btn',
254
+ 'type' => 'textarea',
255
+ 'sanitization_cb' => false,
256
+ 'attributes' => array(
257
+ 'placeholder' => 'Paste any button code here (Stripe, Paypal...)',
258
+ ),
259
+ 'row_classes' => 'de_first de_fifty de_textarea de_text de_input',
260
+ ));
261
+
262
+
263
+ $main_group->add_group_field( $rpt_plan_group, array(
264
+ 'name' => 'What\'s a custom button?',
265
+ 'desc' => '<span class="dashicons dashicons-editor-help"></span> Custom buttons are provided by third-party payment plateforms to allow direct redirection to the payment page. Paypal, Stripe as well as many other companies will generate buying buttons for you. <br/><br/><span class="dashicons dashicons-admin-generic"></span> If you want your Pricing plan\'s footer to be replaced by a custom button, copy-paste the button code in this box. This will override the default button settings.<br/><br/>We do <strong>not</strong> recommend doing this as it may not always go well with the design.',
266
+ 'id' => $prefix . 'custom_button_desc',
267
+ 'type' => 'title',
268
+ 'row_classes' => 'de_fifty de_info',
269
+ ));
270
 
271
  $main_group->add_group_field( $rpt_plan_group, array(
272
  'name' => 'Plan styling',
462
 
463
  $help_group->add_field( array(
464
  'name' => '',
465
+ 'desc' => 'Plan\'s skeleton<br/><img src="'.$plan_skeleton_url.'"/><br/>Find help at WPdarko.com<br/><br/><a target="_blank" href="http://wpdarko.com/support/"><span class="dashicons dashicons-arrow-right-alt2"></span> Support forum</a><br/><a target="_blank" href="https://wpdarko.zendesk.com/hc/en-us/articles/206303517-Get-started-with-the-Responsive-Pricing-Table-plugin"><span class="dashicons dashicons-arrow-right-alt2"></span> Documentation</a>',
466
  'id' => $prefix . 'help_desc',
467
  'type' => 'title',
468
  'row_classes' => 'de_hundred de_info de_info_side',
481
 
482
  $pro_group->add_field( array(
483
  'name' => '',
484
+ 'desc' => 'This free version is <strong>not</strong> limited and does <strong>not</strong> contain any ad. Check out the PRO version for more great features.<br/><br/><a target="_blank" href="http://wpdarko.com/items/responsive-pricing-table-pro"><span class="dashicons dashicons-arrow-right-alt2"></span> See plugin\'s page</a><br/><br/><span style="font-size:13px; color:#88acbc;">Coupon code <strong>7832949</strong> (10% OFF).</span>',
485
  'id' => $prefix . 'pro_desc',
486
  'type' => 'title',
487
  'row_classes' => 'de_hundred de_info de_info_side',
550
  // Forcing original fonts?
551
  $original_font = get_post_meta( $post->ID, '_rpt_original_font', true );
552
  if ($original_font == true){
553
+ $ori_f = 'rpt_plan_ori';
554
  } else {
555
  $ori_f = '';
556
  }
756
  $link_behavior = 'target="_self"';
757
  }
758
 
759
+ // Check for custom button
760
+ if (!empty($plans['_rpt_btn_custom_btn'])){
761
+ $output2 .= '<div class="rpt_custom_btn" style="border-bottom-left-radius:5px; border-bottom-right-radius:5px; text-align:center; padding:16px 20px; background-color:'.$plans['_rpt_color'].'">';
762
+ $output2 .= $plans['_rpt_btn_custom_btn'];
763
+ $output2 .= '</div>';
764
  } else {
765
+ // Default footer
766
+ if (!empty($plans['_rpt_btn_text'])){
767
+ $output2 .= '<a '. $link_behavior .' href="' . do_shortcode($btn_link) . '" style="background:' . $plans['_rpt_color'] . '" class="rpt_foot rpt_foot_' . $key . '">';
768
+ } else {
769
+ $output2 .= '<a '. $link_behavior .' style="background:' . $plans['_rpt_color'] . '" class="rpt_foot rpt_foot_' . $key . '">';
770
+ }
771
+
772
+ $output2 .= do_shortcode($btn_text);
773
+
774
+ // Closing default footer
775
+ $output2 .= '</a>';
776
  }
 
 
 
 
 
777
 
778
  $output2 .= '</div>';
779
 
787
 
788
  $output2 .= '<div style="clear:both;"></div>';
789
 
790
+ endforeach; wp_reset_postdata();
791
  return $output2;
792
 
793
  }