Skip to content

Commit cf9aa69

Browse files
committed
version 1.1.4 released
1 parent 299a4ed commit cf9aa69

14 files changed

+432
-511
lines changed

README.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
Contributors: codeboxr, manchumahara
33
Tags: tour,walkthroughs,take a tour,guided tours
44
Requires at least: 5.3
5-
Tested up to: 6.7.1
6-
Stable tag: 1.1.3
5+
Tested up to: 6.7.2
6+
Stable tag: 1.1.4
77
License: GPLv2 or later
88
License URI: http://www.gnu.org/licenses/gpl-2.0.html
99

@@ -163,6 +163,10 @@ Custom layout helps to style both the tour button and the tour popup box all ele
163163

164164

165165
== Changelog ==
166+
= 1.1.4 =
167+
* [fixed] Tour step content data save issue solved.
168+
* [new] Pro addon V1.1.4 release and compatible
169+
166170
= 1.1.3 =
167171
* [new] Pro addon V1.1.3 compatible
168172
* [fixed] Uninstall error fixed

assets/css/cbxtakeatour-admin.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/cbxtakeatour-manage.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/cbxtakeatour-setting.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/cbxtakeatour-edit.js

Lines changed: 6 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -302,78 +302,15 @@
302302
$color_field_fire.data('current-color', '');
303303
$color_field.val('');
304304
}
305-
306-
307-
//console.log(instance);
308-
//console.log(color.toHEXA());
309-
//console.log(color.toHEX);
310305
}).on('clear', instance => {
311-
//console.log('Event: "clear"', instance);
312-
313-
314306
}).on('change', (color, source, instance) => {
315-
//console.log('Event: "change"', color, source, instance);
316-
317307
}).on('changestop', (source, instance) => {
318-
//console.log('Event: "changestop"', source, instance);
319308
}).on('cancel', instance => {
320-
//console.log('Event: "cancel"', instance);
321309
}).on('swatchselect', (color, instance) => {
322-
//console.log('Event: "swatchselect"', color, instance);
323310
});
324311

325312
});
326313

327-
/*$('.minitoggle_trigger').each(function (index, element) {
328-
cbxtakeatour_miniToggle($, $(element));
329-
330-
331-
});*/
332-
333-
334-
/*Add color picker */
335-
/*var myOptions = {
336-
// you can declare a default color here,
337-
// or in the data-default-color attribute on the input
338-
defaultColor: false,
339-
// a callback to fire whenever the color changes to a valid color
340-
change: function (event, ui) {
341-
},
342-
// a callback to fire when the input is emptied or an invalid color
343-
clear: function () {
344-
},
345-
// hide the color picker controls on load
346-
hide: true,
347-
// show a group of common colors beneath the square
348-
// or, supply an array of colors to customize further
349-
palettes: true
350-
};
351-
352-
$('.cbxtakeatour-color-field').wpColorPicker(myOptions);*/
353-
354-
//select all text on click of shortcode text
355-
/*$('.cbxtakeatourshortcode').on('click', function (e) {
356-
var text = $(this).text();
357-
var $this = $(this);
358-
var $input = $('<input class="cbxtakeatourshortcode-text" type="text">');
359-
$input.prop('value', text);
360-
$input.insertAfter($(this));
361-
$input.focus();
362-
$input.select();
363-
$this.hide();
364-
365-
try {
366-
document.execCommand('copy');
367-
} catch (err) {
368-
369-
}
370-
371-
$input.focusout(function () {
372-
$this.show();
373-
$input.remove();
374-
});
375-
});*/
376-
377314

378315
//$('.wrap').addClass('cbx-chota cbxtakeatour-page-wrapper cbxtakeatour-addedit-wrapper');
379316
$('#screen-meta').addClass('cbx-chota cbxtakeatour-page-wrapper cbxtakeatour-addedit-wrapper');
@@ -387,7 +324,6 @@
387324
//$(cbxtakeatour_edit.global_setting_link_html).insertAfter('.page-title-action');
388325

389326
//submit form and validation
390-
391327
var $tour_form = $('#cbxtakeatour_add');
392328
var $tour_form_validator = $tour_form.validate({
393329
/* errorPlacement: function (error, element) {
@@ -421,20 +357,21 @@
421357

422358
var $form = $(this);
423359

360+
// Trigger tinyMCE to save its content to the textarea
361+
if (typeof tinymce !== 'undefined') {
362+
tinymce.triggerSave();
363+
}
364+
424365

425366
if ($tour_form_validator.valid()) {
426367
e.preventDefault();
427368

428369
$tour_form.data('busy', 0);
429370

430-
//$tour_form.data('busy', 1);
431-
//$tour_form.find('.cbxpetition_ajax_icon').show();
371+
432372
$('#cbxtakeatour_submit').prop('disabled', true);
433373
$('#cbxtakeatour_submit').addClass('running');
434374

435-
//$form_wrapper.find('.cbxpetition-error-messages').empty();
436-
//$form_wrapper.find('.cbxpetition-error-messages').empty();
437-
438375

439376
var form_data = $form.serialize();
440377

@@ -449,10 +386,7 @@
449386

450387
request.done(function (data) {
451388

452-
//console.log(data.validation_errors);
453-
454389
if (Object.keys(data.validation_errors).length > 0) {
455-
//console.log(data.validation_errors);
456390
var val_errors = data.validation_errors;
457391
$tour_form_validator.showErrors(val_errors);
458392

@@ -467,14 +401,12 @@
467401
$tour_form.data('busy', 0);
468402
$('#cbxtakeatour_submit').prop('disabled', false);
469403
$('#cbxtakeatour_submit').removeClass('running');
470-
// $tour_form.find('.cbxpetition_ajax_icon').hide();
471404
});
472405

473406
request.fail(function (jqXHR, textStatus) {
474407
$tour_form.data('busy', 0);
475408
$('#cbxtakeatour_submit').prop('disabled', false);
476409
$('#cbxtakeatour_submit').removeClass('running');
477-
// $tour_form.find('.cbxpetition_ajax_icon').hide();
478410

479411

480412
//awn notification

assets/js/cbxtakeatour-public.js

Lines changed: 0 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -132,114 +132,30 @@
132132
tourguide_instance.onBeforeStepChange(async ()=>{
133133
//console.log('event fired: onBeforeStepChange');
134134

135-
//console.log(tourguide_instance.backdrop);
136-
//console.log(tourguide_instance.isVisible);
137-
//console.log(tourguide_instance.activeStep);
138-
//console.log(tourguide_instance.dialog);
139-
140-
//$(tourguide_instance.dialog).addClass('cbxtakeatour_dialog_step_'+tourguide_instance.activeStep);
141-
142-
143-
144135
CBXTakeatourEvents_do_action('cbxtakeatour_tour_onBeforeStepChange', $, $element, $tour_id, tourguide_instance);
145136
});
146137

147138
tourguide_instance.onAfterStepChange(async ()=>{
148139
//console.log('event fired: onAfterStepChange');
149140

150-
//console.log(tourguide_instance.backdrop);
151-
//console.log(tourguide_instance.isVisible);
152-
//console.log(tourguide_instance.activeStep);
153-
//console.log(tourguide_instance.dialog);
154-
155141
$tour_active_step = tourguide_instance.activeStep;
156142

157-
//$(tourguide_instance.dialog).addClass('cbxtakeatour_dialog_step_'+$tour_active_step);
158-
/*if($tour_active_step !== 0){
159-
$(tourguide_instance.dialog).find('#tg-dialog-prev-btn').show();
160-
}*/
161-
162143
CBXTakeatourEvents_do_action('cbxtakeatour_tour_onAfterStepChange', $, $element, $tour_id, tourguide_instance);
163144
});
164145

165146
tourguide_instance.onBeforeExit(async ()=>{
166147
//console.log('event fired: onBeforeExit');
167148

168-
//console.log(tourguide_instance.backdrop);
169-
//console.log(tourguide_instance.isVisible);
170-
//console.log(tourguide_instance.activeStep);
171-
//console.log(tourguide_instance.dialog);
172-
173-
174-
175149
CBXTakeatourEvents_do_action('cbxtakeatour_tour_onBeforeExit', $, $element, $tour_id, tourguide_instance);
176150
});
177151

178152
tourguide_instance.onAfterExit(async ()=>{
179153
//console.log('event fired: onAfterExit');
180154

181-
//console.log(tourguide_instance.backdrop);
182-
//console.log(tourguide_instance.isVisible);
183-
//console.log(tourguide_instance.activeStep);
184-
//console.log(tourguide_instance.dialog);
185-
186155
$(document.body).attr('data-cbxtakeatour-dialog', 0);
187156

188-
189-
190157
CBXTakeatourEvents_do_action('cbxtakeatour_tour_onAfterExit', $, $element, $tour_id, tourguide_instance);
191158
});
192-
193-
194-
//console.log($steps);
195-
196-
/*var $tour = new Tour({
197-
steps : $steps,
198-
template : '<div class="cbxtakeatour_popover ' + $layout_class + ' cbxtakeatour_popover_' + $tour_id + '" role="tooltip"> <div class="cbxtatarrow"></div> <h3 class="cbxtakeatour_popover-header"></h3> <div class="cbxtakeatour_popover-body"></div> <div class="cbxtakeatour_popover-navigation"> <div class="btn-group"> <button class="btn btn-sm btn-secondary" data-role="prev">&laquo; ' + cbxtakeatour.tour_label_prev + '</button> <button class="btn btn-sm btn-secondary" data-role="next">' + cbxtakeatour.tour_label_next + ' &raquo;</button> <button class="btn btn-sm btn-secondary" data-role="pause-resume" data-pause-text="' + cbxtakeatour.tour_label_pause + '" data-resume-text="' + cbxtakeatour.tour_label_resume + '">' + cbxtakeatour.tour_label_pause + '</button> </div> <button class="btn btn-sm btn-secondary" data-role="end">' + cbxtakeatour.tour_label_endtour + '</button> </div> </div>',
199-
onStart : function (tour) {
200-
CBXTakeatourEvents_do_action('cbxtakeatour_tour_onStart', $, $element, $tour_id, tour);
201-
},
202-
onEnd : function (tour) {
203-
CBXTakeatourEvents_do_action('cbxtakeatour_tour_onEnd', $, $element, $tour_id, tour);
204-
205-
if ($url !== '') {
206-
document.location.href = $url;
207-
return (new $.Deferred()).promise();
208-
}
209-
},
210-
onShow : function (tour) {
211-
CBXTakeatourEvents_do_action('cbxtakeatour_tour_onShow', $, $element, $tour_id, tour);
212-
},
213-
onShown : function (tour) {
214-
CBXTakeatourEvents_do_action('cbxtakeatour_tour_onShown', $, $element, $tour_id, tour);
215-
},
216-
onHide : function (tour) {
217-
CBXTakeatourEvents_do_action('cbxtakeatour_tour_onHide', $, $element, $tour_id, tour);
218-
},
219-
onHidden : function (tour) {
220-
CBXTakeatourEvents_do_action('cbxtakeatour_tour_onHidden', $, $element, $tour_id, tour);
221-
},
222-
onNext : function (tour) {
223-
CBXTakeatourEvents_do_action('cbxtakeatour_tour_onNext', $, $element, $tour_id, tour);
224-
},
225-
onPrev : function (tour) {
226-
CBXTakeatourEvents_do_action('cbxtakeatour_tour_onPrev', $, $element, $tour_id, tour);
227-
},
228-
onPause : function (tour, duration) {
229-
CBXTakeatourEvents_do_action('cbxtakeatour_tour_onPause', $, $element, $tour_id, tour);
230-
},
231-
onResume : function (tour, duration) {
232-
CBXTakeatourEvents_do_action('cbxtakeatour_tour_onResume', $, $element, $tour_id, tour);
233-
},
234-
onRedirectError: function (tour) {
235-
CBXTakeatourEvents_do_action('cbxtakeatour_tour_onRedirectError', $, $element, $tour_id, tour);
236-
}
237-
});
238-
239-
//$tour.init();
240-
//$tour.start();
241-
242-
$tour.restart();*/
243159
}//end function cbxtakeatour_render
244160
}); //dom ready
245161
})(jQuery);

assets/js/minitoggle.js

Lines changed: 0 additions & 32 deletions
This file was deleted.

cbxtakeatour.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
* @wordpress-plugin
1616
* Plugin Name: CBX Tour - User Walkthroughs & Guided Tours
1717
* Plugin URI: https://codeboxr.com/product/cbx-tour-user-walkthroughs-guided-tours-for-wordpress//
18-
* Description: Interactive tour creator for product/service feature for wordpress
19-
* Version: 1.1.3
18+
* Description: Interactive tour creator for product/service feature for WordPress
19+
* Version: 1.1.4
2020
* Author: Codeboxr Team
2121
* Author URI: https://codeboxr.com
2222
* License: GPL-2.0+
@@ -31,7 +31,7 @@
3131
}
3232

3333
defined( 'CBXTAKEATOUR_PLUGIN_NAME' ) or define( 'CBXTAKEATOUR_PLUGIN_NAME', 'cbxtakeatour' );
34-
defined( 'CBXTAKEATOUR_PLUGIN_VERSION' ) or define( 'CBXTAKEATOUR_PLUGIN_VERSION', '1.1.3' );
34+
defined( 'CBXTAKEATOUR_PLUGIN_VERSION' ) or define( 'CBXTAKEATOUR_PLUGIN_VERSION', '1.1.4' );
3535
defined( 'CBXTAKEATOUR_BASE_NAME' ) or define( 'CBXTAKEATOUR_BASE_NAME', plugin_basename( __FILE__ ) );
3636
defined( 'CBXTAKEATOUR_ROOT_PATH' ) or define( 'CBXTAKEATOUR_ROOT_PATH', plugin_dir_path( __FILE__ ) );
3737
defined( 'CBXTAKEATOUR_ROOT_URL' ) or define( 'CBXTAKEATOUR_ROOT_URL', plugin_dir_url( __FILE__ ) );

0 commit comments

Comments
 (0)