| @@ -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; |
| @@ -154,10 +151,8 @@ | ||
| 154 | 151 | <?php |
| 155 | 152 | } |
| 156 | 153 | |
| 157 | 154 | /*** |
| 158 | - * @param $mimes | |
| 159 | - * | |
| 160 | 155 | * @return mixed |
| 161 | 156 | */ |
| 162 | 157 | public function dialog_box_style() { |
| 163 | 158 | ?> |
| @@ -212,12 +207,8 @@ | ||
| 212 | 207 | margin: auto; |
| 213 | 208 | padding: 0; |
| 214 | 209 | } |
| 215 | 210 | |
| 216 | - /*#deactivation-dialog-*/<?php // echo esc_attr( $this->textdomain ); ?>/* .feedback-label {*/ | |
| 217 | - /* font-size: 15px;*/ | |
| 218 | - /*}*/ | |
| 219 | - | |
| 220 | 211 | div#deactivation-dialog-<?php echo esc_attr( $this->textdomain ); ?> p { |
| 221 | 212 | font-size: 15px; |
| 222 | 213 | } |
| 223 | 214 | |
| @@ -406,11 +397,9 @@ | ||
| 406 | 397 | <?php |
| 407 | 398 | } |
| 408 | 399 | |
| 409 | 400 | /*** |
| 410 | - * @param $mimes | |
| 411 | - * | |
| 412 | - * @return mixed | |
| 401 | + * @return void | |
| 413 | 402 | */ |
| 414 | 403 | public function deactivation_scripts() { |
| 415 | 404 | wp_enqueue_script( 'jquery-ui-dialog' ); |
| 416 | 405 | ?> |
| @@ -477,9 +466,9 @@ | ||
| 477 | 466 | // Perform AJAX request to submit feedback |
| 478 | 467 | if (!reasons && !feedback && !better_plugin) { |
| 479 | 468 | // Define flag variables |
| 480 | 469 | $('#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.'); | |
| 470 | + $('.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 | 471 | return; |
| 483 | 472 | } |
| 484 | 473 | |
| 485 | 474 | if (!reasons ) { |
| @@ -484,9 +473,9 @@ | ||
| 484 | 473 | |
| 485 | 474 | if (!reasons ) { |
| 486 | 475 | // Define flag variables |
| 487 | 476 | $('#feedback-form-body-<?php echo esc_attr( $this->textdomain ); ?> span').text('Choose The Reason'); |
| 488 | - $('.feedback-text-wrapper-<?php echo esc_attr( $this->textdomain ); ?> span').text('Please provide me with some advice.'); | |
| 477 | + $('.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.'); | |
| 489 | 478 | return; |
| 490 | 479 | } |
| 491 | 480 | |
| 492 | 481 | if ( 'bug_issue_detected' === reasons && !feedback ) { |
| @@ -494,19 +483,28 @@ | ||
| 494 | 483 | $('.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.'); |
| 495 | 484 | return; |
| 496 | 485 | } |
| 497 | 486 | |
| 498 | - if ('temporary_deactivation' === reasons && !feedback) { | |
| 487 | + if ('temporary_deactivation' === reasons || ! feedback ) { | |
| 499 | 488 | window.location.href = href; |
| 500 | 489 | return; |
| 501 | 490 | } |
| 502 | 491 | |
| 492 | + if ( ! feedback.length > 0 ) { | |
| 493 | + window.location.href = href; | |
| 494 | + return; | |
| 495 | + } | |
| 496 | + var websiteUrl = '<?php echo esc_url( home_url() ); ?>'; | |
| 497 | + if ( ! websiteUrl.length > 0 ) { | |
| 498 | + window.location.href = href; | |
| 499 | + return; | |
| 500 | + } | |
| 503 | 501 | $.ajax({ |
| 504 | 502 | url: 'https://shopbuilderwp.com/wp-json/RadiusTheme/pluginSurvey/v1/Survey/appendToSheet', |
| 505 | 503 | method: 'GET', |
| 506 | 504 | dataType: 'json', |
| 507 | 505 | data: { |
| 508 | - website: '<?php echo esc_url( home_url() ); ?>', | |
| 506 | + website: websiteUrl, | |
| 509 | 507 | reasons: reasons ? reasons : '', |
| 510 | 508 | better_plugin: better_plugin, |
| 511 | 509 | feedback: feedback, |
| 512 | 510 | wpplugin: 'ShopBuilder', |