PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 3.2.0
ShopBuilder – WooCommerce Builder For Elementor v3.2.0
3.4.2 3.4.1 3.4.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 All 63 releases
← All changes | app/Controllers/Admin/PluginRow.php +40 -27 2.0.23.2.0 View file →
@@ -44,9 +44,9 @@
44 44 $new_links = [];
45 45 $demo_url = 'https://shopbuilderwp.com/';
46 46 $new_links[] = '<a href="' . admin_url( 'admin.php?page=rtsb-settings' ) . '">' . esc_html__( 'Settings', 'shopbuilder' ) . '</a>';
47 47 $new_links[] = '<a target="_blank" href="' . esc_url( $demo_url ) . '">' . esc_html__( 'Demo', 'shopbuilder' ) . '</a>';
48 - $new_links[] = '<a target="_blank" href="' . esc_url( 'https://www.radiustheme.com/docs/shopbuilder/getting-started/requirements/' ) . '">' . esc_html__( 'Documentation', 'shopbuilder' ) . '</a>';
48 + $new_links[] = '<a target="_blank" href="' . esc_url( 'https://shopbuilderwp.com/docs/' ) . '">' . esc_html__( 'Documentation', 'shopbuilder' ) . '</a>';
49 49
50 50 $links = array_merge( $new_links, $links );
51 51
52 52 if ( ! rtsb()->has_pro() ) {
@@ -68,8 +68,9 @@
68 68
69 69 if ( RTSB_ACTIVE_FILE_NAME === $file ) {
70 70 $report_url = 'https://www.radiustheme.com/contact/';
71 71 $row_meta['issues'] = sprintf(
72 + /* translators: %1$s: Report URL, %2$s: Facing issue?, %3$s: Please open a support ticket. */
72 73 '%2$s <a target="_blank" href="%1$s"><span style="color: red">%3$s</span></a>',
73 74 esc_url( $report_url ),
74 75 esc_html__( 'Facing issue?', 'shopbuilder' ),
75 76 esc_html__( 'Please open a support ticket.', 'shopbuilder' )
@@ -80,13 +81,9 @@
80 81
81 82 return (array) $links;
82 83 }
83 84
84 - // Servay
85 -
86 85 /***
87 - * @param $mimes
88 - *
89 86 * @return mixed
90 87 */
91 88 public function deactivation_popup() {
92 89 global $pagenow;
@@ -100,10 +97,12 @@
100 97 <div id="deactivation-dialog-<?php echo esc_attr( $this->textdomain ); ?>" title="Quick Feedback">
101 98 <!-- Modal content -->
102 99 <div class="modal-content">
103 100 <div id="feedback-form-body-<?php echo esc_attr( $this->textdomain ); ?>">
101 + <p style="margin: 0 0 15px 0;"> Having trouble? <br/> It’s best to <a target="_blank" href="https://www.radiustheme.com/contact/" style="text-decoration: none;"><span style="color: red"> open a support ticket </span></a> — our agent will assist you personally. </p>
102 +
104 103 <div class="feedback-input-header">
105 - <?php echo esc_html__( 'If you have a moment, please share why you are deactivating ShopBuilder:', 'shopbuilder' ); ?>
104 + <?php echo esc_html__( 'If you’d prefer not to open a support ticket, please take a moment to share why you’re deactivating ShopBuilder:', 'shopbuilder' ); ?>
106 105 </div>
107 106
108 107 <div class="feedback-input-wrapper">
109 108 <input id="feedback-deactivate-<?php echo esc_attr( $this->textdomain ); ?>-bug_issue_detected" class="feedback-input"
@@ -154,10 +153,8 @@
154 153 <?php
155 154 }
156 155
157 156 /***
158 - * @param $mimes
159 - *
160 157 * @return mixed
161 158 */
162 159 public function dialog_box_style() {
163 160 ?>
@@ -212,12 +209,8 @@
212 209 margin: auto;
213 210 padding: 0;
214 211 }
215 212
216 - /*#deactivation-dialog-*/<?php //echo esc_attr( $this->textdomain ); ?>/* .feedback-label {*/
217 - /* font-size: 15px;*/
218 - /*}*/
219 -
220 213 div#deactivation-dialog-<?php echo esc_attr( $this->textdomain ); ?> p {
221 214 font-size: 15px;
222 215 }
223 216
@@ -233,9 +226,9 @@
233 226 }
234 227
235 228 #deactivation-dialog-<?php echo esc_attr( $this->textdomain ); ?> .modal-content textarea:focus {
236 229 border-color: #2271b1;
237 - }
230 + }
238 231
239 232 #deactivation-dialog-<?php echo esc_attr( $this->textdomain ); ?> .modal-content input.feedback-feedback-text {
240 233 border: 1px solid rgba(0, 0, 0, 0.3);
241 234 min-width: 250px;
@@ -301,13 +294,13 @@
301 294 font-weight: 700;
302 295 font-size: 16px;
303 296 padding-left: 15px;
304 297 padding-right: 15px;
305 - }
298 + }
306 299
307 - #deactivation-dialog-<?php echo esc_attr( $this->textdomain ); ?> {
300 + #deactivation-dialog-<?php echo esc_attr( $this->textdomain ); ?> {
308 301 padding: 30px !important;
309 - }
302 + }
310 303
311 304 #deactivation-dialog-<?php echo esc_attr( $this->textdomain ); ?> .feedback-input-header {
312 305 font-weight: 600;
313 306 font-size: 15px;
@@ -333,9 +326,9 @@
333 326 }
334 327
335 328 div#deactivation-dialog-<?php echo esc_attr( $this->textdomain ); ?> .modal-content .feedback-input-wrapper.conditional {
336 329 flex-wrap: wrap;
337 - }
330 + }
338 331
339 332 div#deactivation-dialog-<?php echo esc_attr( $this->textdomain ); ?> .modal-content .feedback-input-wrapper.conditional .feedback-feedback-text {
340 333 flex: 0 0 calc(100% - 24px);
341 334 margin: 5px 0 10px 24px;
@@ -341,13 +334,13 @@
341 334 margin: 5px 0 10px 24px;
342 335 min-height: 40px;
343 336 border: 1px solid rgba(0, 0, 0, 0.3);
344 337 padding: 0 15px;
345 - }
338 + }
346 339
347 340 div#deactivation-dialog-<?php echo esc_attr( $this->textdomain ); ?> .modal-content .feedback-input-wrapper.conditional .feedback-feedback-text:focus {
348 341 border-color: #2271b1;
349 - }
342 + }
350 343
351 344 .ui-widget-overlay.ui-front {
352 345 position: fixed;
353 346 top: 0;
@@ -381,14 +374,14 @@
381 374 line-height: 1.2;
382 375 padding: 8px 16px;
383 376 outline: none;
384 377 border: none;
385 - }
378 + }
386 379
387 380 .ui-dialog[aria-describedby="deactivation-dialog-shopbuilder"] .ui-dialog-buttonset .ui-button:first-child {
388 381 background: #4360ef;
389 382 color: #fff;
390 - }
383 + }
391 384
392 385 .ui-dialog[aria-describedby="deactivation-dialog-shopbuilder"] .ui-dialog-buttonset .ui-button:first-child:hover {
393 386 background: #1f3edc;
394 387 }
@@ -406,11 +399,9 @@
406 399 <?php
407 400 }
408 401
409 402 /***
410 - * @param $mimes
411 - *
412 - * @return mixed
403 + * @return void
413 404 */
414 405 public function deactivation_scripts() {
415 406 wp_enqueue_script( 'jquery-ui-dialog' );
416 407 ?>
@@ -477,23 +468,45 @@
477 468 // Perform AJAX request to submit feedback
478 469 if (!reasons && !feedback && !better_plugin) {
479 470 // Define flag variables
480 471 $('#feedback-form-body-<?php echo esc_attr( $this->textdomain ); ?> span').text('Choose The Reason');
481 - $('.feedback-text-wrapper-<?php echo esc_attr( $this->textdomain ); ?> span').text('Please provide me with some advice.');
472 + $('.feedback-text-wrapper-<?php echo esc_attr( $this->textdomain ); ?> span').text('Please provide more details regarding the issue so we can address it in future updates.');
482 473 return;
483 474 }
484 475
485 - if ('temporary_deactivation' == reasons && !feedback) {
476 + if (!reasons ) {
477 + // Define flag variables
478 + $('#feedback-form-body-<?php echo esc_attr( $this->textdomain ); ?> span').text('Choose The Reason');
479 + $('.feedback-text-wrapper-<?php echo esc_attr( $this->textdomain ); ?> span').text('Please provide more details regarding the issue so we can address it in future updates.');
480 + return;
481 + }
482 +
483 + if ( 'bug_issue_detected' === reasons && !feedback ) {
484 + // Define flag variables
485 + $('.feedback-text-wrapper-<?php echo esc_attr( $this->textdomain ); ?> span').text('Please provide more details regarding the issue so we can address it in future updates.');
486 + return;
487 + }
488 +
489 + if ('temporary_deactivation' === reasons || ! feedback ) {
486 490 window.location.href = href;
487 491 return;
488 492 }
489 493
494 + if ( ! feedback.length > 0 ) {
495 + window.location.href = href;
496 + return;
497 + }
498 + var websiteUrl = '<?php echo esc_url( home_url() ); ?>';
499 + if ( ! websiteUrl.length > 0 ) {
500 + window.location.href = href;
501 + return;
502 + }
490 503 $.ajax({
491 504 url: 'https://shopbuilderwp.com/wp-json/RadiusTheme/pluginSurvey/v1/Survey/appendToSheet',
492 505 method: 'GET',
493 506 dataType: 'json',
494 507 data: {
495 - website: '<?php echo esc_url( home_url() ); ?>',
508 + website: websiteUrl,
496 509 reasons: reasons ? reasons : '',
497 510 better_plugin: better_plugin,
498 511 feedback: feedback,
499 512 wpplugin: 'ShopBuilder',