Skip to content

Commit 6731ef3

Browse files
committed
version 3.1.10 released
1 parent 4a5b8f4 commit 6731ef3

File tree

6 files changed

+50
-159
lines changed

6 files changed

+50
-159
lines changed

README.txt

Lines changed: 5 additions & 118 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: codeboxr, manchumahara
33
Tags: currency converter,currency conversion,currency exchange,currency calculator,bitcoin
44
Requires at least: 5.3
55
Tested up to: 6.8
6-
Stable tag: 3.1.9
6+
Stable tag: 3.1.10
77
PHP:7.4.*
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -95,6 +95,9 @@ How to install the plugin and get it working.
9595
== Screenshots ==
9696

9797
== Changelog ==
98+
= 3.1.10 =
99+
* [fixed] Visual Composer Widget fixed from previous two releases
100+
98101
= 3.1.9 =
99102
* [fixed] Elementor widget bug fix from previous release V3.1.8
100103

@@ -123,120 +126,4 @@ How to install the plugin and get it working.
123126
* [improvement] Security improvement
124127

125128
= 3.1.0 =
126-
* [new] New shortcode introduced 'cbcurrencyconverter_rate' for direct rate display
127-
128-
= 3.0.9 =
129-
* [improvement] Calculator form layout style improved
130-
* [improvement] Added option to display country flag
131-
* [improvement] Added option to display currency symbol
132-
* [improvement] Helper classed got some new methods related with symbol
133-
* [new] Mobile app support in pro addon(To be release soon)
134-
* [new] exchangerate.host api now needs api key
135-
* [new] exchangerate.host api free(core plugin) and pro(pro addon) introduced
136-
137-
= 3.0.8 =
138-
* [new] Setting field 'multiselect' is deprecated and now uses 'select' with 'multi' = 1
139-
* [new] exchangerate.host now needs api key, they have both free and pro
140-
141-
= 3.0.6 =
142-
* [improvement] Minor improvement for plugin setting panel
143-
144-
= 3.0.5 =
145-
* [fixed] Plugin activation error fixed
146-
* [improvement] Js and CSS enqueue names are now standard
147-
148-
= 3.0.4 =
149-
* [fixed] Nonce checking security fixed
150-
* [improvement] Style improvement for currency converter dropdown field(make it work for dark back background)
151-
* [improvement] Dashboard setting improvements
152-
153-
= 3.0.3 =
154-
* [improvement] Style improvement for currency converter dropdown field(make it work for dark back background)
155-
156-
= 3.0.2 =
157-
* [improvement] Style improvement for currency converter dropdown field
158-
159-
= 3.0.1 =
160-
* [improvement] Style improvement for currency converter input field
161-
162-
= 3.0.0 =
163-
* [note] There are breaking changes in Core plugin v3.0.0 and pro addon 1.7.0. Core plugin V3.0.0 needs pro addon 1.7.0
164-
* [Removed] Removed support for WP eCommerce https://wordpress.org/plugins/wp-e-commerce/
165-
166-
= 2.9.0 =
167-
* [note] Alphavantage no longer free for conversion
168-
* [new] Added some new currency api support in pro addon
169-
* [bug fix] Gutenberg multi select display
170-
* [new] Pro Addon - New REST API endpoint for currency conversion - for single currency
171-
* [new] Pro Addon - New REST API endpoint for currency conversion - for multi currencies
172-
173-
= 2.8.4 =
174-
* [note] There is breaking changes in core version 2.8.4, if you have pro addon less than 1.6.9 then it will be automatically deactivated, please update pro addon to version 1.6.9 with core 2.8.4
175-
* [bug fix] Bug fixed in rates api, pro addon needed update to make that work with core. On upgrade if pro addon not 1.6.9 or latest then pro addon will be disabled
176-
* [bug fix] JS error fixed
177-
178-
= 2.8.3 =
179-
* [improvement] Dashboard improvement & Pro addon compatibility fix
180-
* [new] Gutenberg blocks works in new WordPress 5.8 widget area that is block based
181-
182-
= 2.8.2 =
183-
* [new] Added new currency XOF - West African CFA franc (Currency rates and support depends on rates api)
184-
* [new] Added new currency XAF - Central African CFA franc (Currency rates and support depends on rates api)
185-
186-
= 2.8.1 =
187-
* [new] New currency api for currencylayer.com(https://currencylayer.com) if base only USD - free subscription
188-
* [new] Pro Addon - New currency api for currencylayer.com(https://currencylayer.com) - pro account holder of https://currencylayer.com with at least "Basic Plan"
189-
190-
191-
= 2.8.0 =
192-
* [new] Easy way to add new api using new hooks(filter) 'cbcurrencyconverter_rates_apis', see documentation
193-
* [new] New currency api for openexchangerates(https://openexchangerates.org/) if base only USD
194-
* [new] Pro Addon - New currency api for Openexchangerates(https://openexchangerates.org/) - pro account holder of https://openexchangerates.org/ with at least "The Unlimited Plan"
195-
* [new] Pro Addon - New currency api for Exchangeratesapi(Exchangeratesapi.io) - pro account holder of https://Exchangeratesapi.io/ with at least "Basic Plan"
196-
197-
= 2.7.12 =
198-
* [improvement] Dashboard improved
199-
* [new] CSS is now generated as scss files
200-
201-
= 2.7.11 =
202-
* [new] Added Bahrain Dinar(BHD) as new currency
203-
* [improvement] Some minor adjustments and improvements
204-
205-
= 2.7.10 =
206-
* [new] All Currency names are now translatable
207-
208-
= 2.7.9 =
209-
* [new] New Currency (Kenya Shilling) Added
210-
211-
= 2.7.8 =
212-
* [bug fix] Uninstall plugin(delete) now deletes properly the options created by this plugin
213-
* [new] Uninstall plugin(delete) now deletes currency rate caches
214-
215-
= 2.7.7 =
216-
* [new] Backend Setting on click shortcode copy and Demo
217-
* [new] Admin notice for full reset
218-
* [new] Admin notice for rate api cache reset
219-
220-
= 2.7.6 =
221-
* [new] WPBakery Widget
222-
223-
= 2.7.5 =
224-
* [bug fix] Style fix for widget page, last release was messing with widgets page style and header style which is now restricted
225-
226-
= 2.7.3 =
227-
228-
* [bug fix] Elementor widget loading conflict issue fixed
229-
230-
= 2.7.2 =
231-
232-
* [improvement] Replaced chosen select js library with select2 js library
233-
* [new] Template system for layout for list, calculator and inline
234-
* [new] Elementor widget
235-
* Overall improvement
236-
237-
= 2.7.1 =
238-
239-
* [new] Changed version format to x.y.z
240-
* [new] Added Rate api caching enable/disable
241-
* [new] Added Rate api caching time, default 2
242-
* [improvement] Minor overall improvement, pro addon updated as well
129+
* [new] New shortcode introduced 'cbcurrencyconverter_rate' for direct rate display

cbcurrencyconverter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Plugin Name: CBX Currency Converter
99
* Plugin URI: https://codeboxr.com/product/cbx-currency-converter-for-wordpress/
1010
* Description: Currency Converter and rate display
11-
* Version: 3.1.9
11+
* Version: 3.1.10
1212
* Author: codeboxr
1313
* Author URI: https://codeboxr.com
1414
* License: GPL-2.0+
@@ -24,7 +24,7 @@
2424
}
2525

2626
defined( 'CBCURRENCYCONVERTER_NAME' ) or define( 'CBCURRENCYCONVERTER_NAME', 'cbcurrencyconverter' );
27-
defined( 'CBCURRENCYCONVERTER_VERSION' ) or define( 'CBCURRENCYCONVERTER_VERSION', '3.1.9' );
27+
defined( 'CBCURRENCYCONVERTER_VERSION' ) or define( 'CBCURRENCYCONVERTER_VERSION', '3.1.10' );
2828
defined( 'CBCURRENCYCONVERTER_ROOT_PATH' ) or define( 'CBCURRENCYCONVERTER_ROOT_PATH', plugin_dir_path( __FILE__ ) );
2929
defined( 'CBCURRENCYCONVERTER_ROOT_URL' ) or define( 'CBCURRENCYCONVERTER_ROOT_URL', plugin_dir_url( __FILE__ ) );
3030
defined( 'CBCURRENCYCONVERTER_BASE_NAME' ) or define( 'CBCURRENCYCONVERTER_BASE_NAME', plugin_basename( __FILE__ ) );

includes/CBCurrencyConverterAdmin.php

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function __construct( $plugin_name, $version ) {
8181
* @since 1.0.0
8282
*/
8383
public function enqueue_styles( $hook ) {
84-
$version = $this->version;
84+
$ver = $this->version;
8585
$page = isset( $_GET['page'] ) ? sanitize_text_field( wp_unslash( $_GET['page'] ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended
8686

8787
$css_url_part = CBCURRENCYCONVERTER_ROOT_URL . 'assets/css/';
@@ -95,23 +95,23 @@ public function enqueue_styles( $hook ) {
9595

9696
if ( $page == 'cbcurrencyconverter' ) {
9797

98-
wp_register_style( 'awesome-notifications', $vendors_url_part . 'awesome-notifications/style.css', [], $version );
99-
wp_register_style( 'select2', $vendors_url_part . 'select2/css/select2.min.css', [], $version );
100-
wp_register_style( 'pickr', $vendors_url_part . 'pickr/themes/classic.min.css', [], $version );
98+
wp_register_style( 'awesome-notifications', $vendors_url_part . 'awesome-notifications/style.css', [], $ver );
99+
wp_register_style( 'select2', $vendors_url_part . 'select2/css/select2.min.css', [], $ver );
100+
wp_register_style( 'pickr', $vendors_url_part . 'pickr/themes/classic.min.css', [], $ver );
101101

102102

103103
wp_enqueue_style( 'pickr' );
104104

105-
wp_register_style( 'cbcurrencyconverter-public', $css_url_part . 'cbcurrencyconverter-public.css', [ 'select2' ], $version, 'all' );
106-
wp_register_style( 'cbcurrencyconverter-admin', $css_url_part . 'cbcurrencyconverter-admin.css', [], $version );
105+
wp_register_style( 'cbcurrencyconverter-public', $css_url_part . 'cbcurrencyconverter-public.css', [ 'select2' ], $ver, 'all' );
106+
wp_register_style( 'cbcurrencyconverter-admin', $css_url_part . 'cbcurrencyconverter-admin.css', [], $ver );
107107

108108
wp_register_style( 'cbcurrencyconverter-setting', $css_url_part . 'cbcurrencyconverter-setting.css', [
109109
'pickr',
110110
'select2',
111111
'awesome-notifications',
112112
'cbcurrencyconverter-public',
113113
'cbcurrencyconverter-admin'
114-
], $version );
114+
], $ver );
115115

116116

117117
wp_enqueue_style( 'select2' );
@@ -125,11 +125,11 @@ public function enqueue_styles( $hook ) {
125125

126126
//widgets pages
127127
if ( $hook == 'widgets.php' ) {
128-
wp_register_style( 'select2', $vendors_url_part . 'select2/css/select2.min.css', [], $version );
128+
wp_register_style( 'select2', $vendors_url_part . 'select2/css/select2.min.css', [], $ver );
129129

130130
wp_register_style( 'cbcurrencyconverter-widget', $css_url_part . 'cbcurrencyconverter-widget.css', [
131131
'select2'
132-
], $version );
132+
], $ver );
133133

134134
wp_enqueue_style( 'select2' );
135135
wp_enqueue_style( 'cbcurrencyconverter-widget' );
@@ -142,7 +142,7 @@ public function enqueue_styles( $hook ) {
142142
* @since 1.0.0
143143
*/
144144
public function enqueue_scripts( $hook ) {
145-
$version = $this->version;
145+
$ver = $this->version;
146146
$page = isset( $_GET['page'] ) ? sanitize_text_field( wp_unslash( $_GET['page'] ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended
147147

148148

@@ -159,15 +159,15 @@ public function enqueue_scripts( $hook ) {
159159

160160
//main setting page
161161
if ( $page == 'cbcurrencyconverter' ) {
162-
wp_register_script( 'awesome-notifications', $vendors_url_part . 'awesome-notifications/script.js', [], $version, true );
163-
wp_register_script( 'select2', $vendors_url_part . 'select2/js/select2.full.min.js', [ 'jquery' ], $version, true );
164-
wp_register_script( 'pickr', $vendors_url_part . 'pickr/pickr.min.js', [], $version, true );
162+
wp_register_script( 'awesome-notifications', $vendors_url_part . 'awesome-notifications/script.js', [], $ver, true );
163+
wp_register_script( 'select2', $vendors_url_part . 'select2/js/select2.full.min.js', [ 'jquery' ], $ver, true );
164+
wp_register_script( 'pickr', $vendors_url_part . 'pickr/pickr.min.js', [], $ver, true );
165165

166166
wp_register_script( 'cbcurrencyconverter-public', $js_url_part . 'cbcurrencyconverter-public.js', [
167167
'jquery',
168168
'select2',
169169
'awesome-notifications'
170-
], $version, true );
170+
], $ver, true );
171171

172172

173173
$ajax_nonce = wp_create_nonce( 'cbcurrencyconverter_nonce' );
@@ -194,7 +194,7 @@ public function enqueue_scripts( $hook ) {
194194
'pickr',
195195
'select2',
196196
'jquery',
197-
], $version, true );
197+
], $ver, true );
198198

199199
// Localize the script with new data
200200
$translation_array = [
@@ -264,12 +264,12 @@ public function enqueue_scripts( $hook ) {
264264
}
265265

266266
if ( $hook == 'widgets.php' ) {
267-
wp_register_script( 'select2', $vendors_url_part . 'select2/js/select2.full.min.js', [ 'jquery' ], $version, true );
267+
wp_register_script( 'select2', $vendors_url_part . 'select2/js/select2.full.min.js', [ 'jquery' ], $ver, true );
268268

269269
wp_register_script( 'cbcurrencyconverter-widget', $js_url_part . 'cbcurrencyconverter-widget.js', [
270270
'jquery',
271271
'select2'
272-
], $version, true );
272+
], $ver, true );
273273
$translation_array = [
274274
'please_select' => esc_html__( 'Please Select', 'cbcurrencyconverter' ),
275275
'upload_btn' => esc_html__( 'Upload', 'cbcurrencyconverter' ),
@@ -391,7 +391,7 @@ public function plugin_row_meta( $links_array, $plugin_file_name, $plugin_data,
391391
$links_array['pro'] = '<a style="color: #fb4e24; font-weight: bold;" href="https://codeboxr.com/product/cbx-currency-converter-for-wordpress/" target="_blank">' . esc_html__( 'Try Pro Addon', 'cbcurrencyconverter' ) . '</a>';
392392
}
393393

394-
$links_array['documentation'] = '<a style="color: #fb4e24; font-weight: bold;" href="https://codeboxr.com/docs/documentation-for-cbx-currency-converter-for-wordpress/" target="_blank">' . esc_html__( 'Documentation', 'cbcurrencyconverter' ) . '</a>';
394+
$links_array['documentation'] = '<a style="color: #fb4e24; font-weight: bold;" href="https://codeboxr.com/doc/cbcurrencyconverter-doc/" target="_blank">' . esc_html__( 'Documentation', 'cbcurrencyconverter' ) . '</a>';
395395
}
396396

397397
return $links_array;
@@ -448,19 +448,23 @@ public function custom_message_after_plugin_row_proaddon( $plugin_file, $plugin_
448448
return;
449449
}
450450

451-
$pro_addon_version = CBCurrencyConverterHelper::get_any_plugin_version( 'cbcurrencyconverteraddon/cbcurrencyconverteraddon.php' );
452-
$pro_addon_version_latest = '1.7.7';
451+
//$pro_addon_version = CBCurrencyConverterHelper::get_any_plugin_version( 'cbcurrencyconverteraddon/cbcurrencyconverteraddon.php' );
452+
//$pro_addon_version_latest = '1.7.9';
453453

454454

455-
if ( $pro_addon_version != '' && version_compare( $pro_addon_version, '1.7.7', '<' ) ) {
455+
//$pro_addon_version = CBXRBookingHelpers::get_any_plugin_version('cbxrbookingpro/cbxrbookingpro.php');
456+
$pro_addon_version = isset( $plugin_data['Version'] ) ? $plugin_data['Version'] : '';
457+
$required_version = '1.7.9';
458+
459+
if ( $pro_addon_version != '' && version_compare( $pro_addon_version, $required_version, '<' ) ) {
456460
// Custom message to display
457461

458462
//$plugin_setting_url = admin_url( 'admin.php?page=cbxwpbookmark_settings#cbxwpbookmark_licences' );
459463
$plugin_manual_update = 'https://codeboxr.com/manual-update-pro-addon/';
460464

461465
/* translators:translators: %s: plugin setting url for licence */
462466
$custom_message = wp_kses( sprintf( __( '<strong>Note:</strong> CBX Currency Converter Pro Addon is custom plugin. This plugin can not be auto update from dashboard/plugin manager. For manual update please check <a target="_blank" href="%1$s">documentation</a>. <strong style="color: red;">It seems this plugin\'s current version is older than %2$s . To get the latest pro addon features, this plugin needs to upgrade to %2$s or later.</strong>', 'cbcurrencyconverter' ),
463-
esc_url( $plugin_manual_update ), $pro_addon_version_latest ), [ 'strong' => [ 'style' => [] ], 'a' => [ 'href' => [], 'target' => [] ] ] );
467+
esc_url( $plugin_manual_update ), $required_version ), [ 'strong' => [ 'style' => [] ], 'a' => [ 'href' => [], 'target' => [] ] ] );
464468

465469
// Output a row with custom content
466470
echo '<tr class="plugin-update-tr">

includes/CBCurrencyConverterPublic.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ public function enqueue_styles() {
9595
$js_path_part = CBCURRENCYCONVERTER_ROOT_PATH . 'assets/js/';
9696
$vendors_path_part = CBCURRENCYCONVERTER_ROOT_PATH . 'assets/vendors/';
9797

98-
$version = $this->version;
98+
$ver = $this->version;
9999

100-
wp_register_style( 'select2', $vendors_url_part . 'select2/css/select2.min.css', [], $version );
101-
wp_register_style( 'cbcurrencyconverter-public', $css_url_part . 'cbcurrencyconverter-public.css', [ 'select2' ], $version, 'all' );
100+
wp_register_style( 'select2', $vendors_url_part . 'select2/css/select2.min.css', [], $ver );
101+
wp_register_style( 'cbcurrencyconverter-public', $css_url_part . 'cbcurrencyconverter-public.css', [ 'select2' ], $ver, 'all' );
102102

103103
wp_enqueue_style( 'select2' );
104104
wp_enqueue_style( 'cbcurrencyconverter-public' );
@@ -118,11 +118,11 @@ public function enqueue_scripts() {
118118
$js_path_part = CBCURRENCYCONVERTER_ROOT_PATH . 'assets/js/';
119119
$vendors_path_part = CBCURRENCYCONVERTER_ROOT_PATH . 'assets/vendors/';
120120

121-
$version = $this->version;
121+
$ver = $this->version;
122122
$ajax_nonce = wp_create_nonce( "cbcurrencyconverter_nonce" );
123123

124-
wp_register_script( 'select2', $vendors_url_part . 'select2/js/select2.full.min.js', [ 'jquery' ], $version, true );
125-
wp_register_script( 'cbcurrencyconverter-public', $js_url_part . 'cbcurrencyconverter-public.js', [ 'jquery', 'select2' ], $version, true );
124+
wp_register_script( 'select2', $vendors_url_part . 'select2/js/select2.full.min.js', [ 'jquery' ], $ver, true );
125+
wp_register_script( 'cbcurrencyconverter-public', $js_url_part . 'cbcurrencyconverter-public.js', [ 'jquery', 'select2' ], $ver, true );
126126

127127
wp_localize_script( 'cbcurrencyconverter-public',
128128
'cbcurrencyconverter_public',
@@ -327,7 +327,7 @@ public function register_widgets() {
327327
* Load Elementor Custom Icon
328328
*/
329329
function elementor_icon_loader() {
330-
$version = $this->version;
330+
$ver = $this->version;
331331

332332
$css_url_part = CBCURRENCYCONVERTER_ROOT_URL . 'assets/css/';
333333
$js_url_part = CBCURRENCYCONVERTER_ROOT_URL . 'assets/js/';
@@ -337,7 +337,7 @@ function elementor_icon_loader() {
337337
$js_path_part = CBCURRENCYCONVERTER_ROOT_PATH . 'assets/js/';
338338
$vendors_path_part = CBCURRENCYCONVERTER_ROOT_PATH . 'assets/vendors/';
339339

340-
wp_register_style( 'cbcurrencyconverter-elementor', $css_url_part . 'cbcurrencyconverter-elementor.css', false, $version );
340+
wp_register_style( 'cbcurrencyconverter-elementor', $css_url_part . 'cbcurrencyconverter-elementor.css', false, $ver );
341341
wp_enqueue_style( 'cbcurrencyconverter-elementor' );
342342
}//end elementor_icon_loader
343343

@@ -404,6 +404,6 @@ public function vc_before_init_actions() {
404404
require_once CBCURRENCYCONVERTER_ROOT_PATH . 'includes/Widgets/VisualComposer/CBCurrencyConverterWPBWidget.php';
405405
}
406406

407-
new CBCurrencyConverter_WPBWidget();
407+
new CBCurrencyConverterWPBWidget();
408408
}//end method vc_before_init_actions
409409
}//end class CBCurrencyConverterPublic

includes/Widgets/VisualComposer/CBCurrencyConverterWPBWidget.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,4 +148,4 @@ public function bakery_shortcode_mapping() {
148148
)
149149
] );
150150
}//end bakery_shortcode_mapping
151-
}//end class CBCurrencyConverter_WPBWidget
151+
}//end class CBCurrencyConverterWPBWidget

0 commit comments

Comments
 (0)