| @@ -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/requirements/' ) . '">' . esc_html__( 'Documentation', 'shopbuilder' ) . '</a>'; | |
| 49 | 49 | |
| 50 | 50 | $links = array_merge( $new_links, $links ); |
| 51 | 51 | |
| 52 | 52 | if ( ! rtsb()->has_pro() ) { |
| @@ -212,9 +212,9 @@ | ||
| 212 | 212 | margin: auto; |
| 213 | 213 | padding: 0; |
| 214 | 214 | } |
| 215 | 215 | |
| 216 | - /*#deactivation-dialog-*/<?php //echo esc_attr( $this->textdomain ); ?>/* .feedback-label {*/ | |
| 216 | + /*#deactivation-dialog-*/<?php // echo esc_attr( $this->textdomain ); ?>/* .feedback-label {*/ | |
| 217 | 217 | /* font-size: 15px;*/ |
| 218 | 218 | /*}*/ |
| 219 | 219 | |
| 220 | 220 | div#deactivation-dialog-<?php echo esc_attr( $this->textdomain ); ?> p { |
| @@ -233,9 +233,9 @@ | ||
| 233 | 233 | } |
| 234 | 234 | |
| 235 | 235 | #deactivation-dialog-<?php echo esc_attr( $this->textdomain ); ?> .modal-content textarea:focus { |
| 236 | 236 | border-color: #2271b1; |
| 237 | - } | |
| 237 | + } | |
| 238 | 238 | |
| 239 | 239 | #deactivation-dialog-<?php echo esc_attr( $this->textdomain ); ?> .modal-content input.feedback-feedback-text { |
| 240 | 240 | border: 1px solid rgba(0, 0, 0, 0.3); |
| 241 | 241 | min-width: 250px; |
| @@ -301,13 +301,13 @@ | ||
| 301 | 301 | font-weight: 700; |
| 302 | 302 | font-size: 16px; |
| 303 | 303 | padding-left: 15px; |
| 304 | 304 | padding-right: 15px; |
| 305 | - } | |
| 305 | + } | |
| 306 | 306 | |
| 307 | - #deactivation-dialog-<?php echo esc_attr( $this->textdomain ); ?> { | |
| 307 | + #deactivation-dialog-<?php echo esc_attr( $this->textdomain ); ?> { | |
| 308 | 308 | padding: 30px !important; |
| 309 | - } | |
| 309 | + } | |
| 310 | 310 | |
| 311 | 311 | #deactivation-dialog-<?php echo esc_attr( $this->textdomain ); ?> .feedback-input-header { |
| 312 | 312 | font-weight: 600; |
| 313 | 313 | font-size: 15px; |
| @@ -333,9 +333,9 @@ | ||
| 333 | 333 | } |
| 334 | 334 | |
| 335 | 335 | div#deactivation-dialog-<?php echo esc_attr( $this->textdomain ); ?> .modal-content .feedback-input-wrapper.conditional { |
| 336 | 336 | flex-wrap: wrap; |
| 337 | - } | |
| 337 | + } | |
| 338 | 338 | |
| 339 | 339 | div#deactivation-dialog-<?php echo esc_attr( $this->textdomain ); ?> .modal-content .feedback-input-wrapper.conditional .feedback-feedback-text { |
| 340 | 340 | flex: 0 0 calc(100% - 24px); |
| 341 | 341 | margin: 5px 0 10px 24px; |
| @@ -341,13 +341,13 @@ | ||
| 341 | 341 | margin: 5px 0 10px 24px; |
| 342 | 342 | min-height: 40px; |
| 343 | 343 | border: 1px solid rgba(0, 0, 0, 0.3); |
| 344 | 344 | padding: 0 15px; |
| 345 | - } | |
| 345 | + } | |
| 346 | 346 | |
| 347 | 347 | div#deactivation-dialog-<?php echo esc_attr( $this->textdomain ); ?> .modal-content .feedback-input-wrapper.conditional .feedback-feedback-text:focus { |
| 348 | 348 | border-color: #2271b1; |
| 349 | - } | |
| 349 | + } | |
| 350 | 350 | |
| 351 | 351 | .ui-widget-overlay.ui-front { |
| 352 | 352 | position: fixed; |
| 353 | 353 | top: 0; |
| @@ -381,14 +381,14 @@ | ||
| 381 | 381 | line-height: 1.2; |
| 382 | 382 | padding: 8px 16px; |
| 383 | 383 | outline: none; |
| 384 | 384 | border: none; |
| 385 | - } | |
| 385 | + } | |
| 386 | 386 | |
| 387 | 387 | .ui-dialog[aria-describedby="deactivation-dialog-shopbuilder"] .ui-dialog-buttonset .ui-button:first-child { |
| 388 | 388 | background: #4360ef; |
| 389 | 389 | color: #fff; |
| 390 | - } | |
| 390 | + } | |
| 391 | 391 | |
| 392 | 392 | .ui-dialog[aria-describedby="deactivation-dialog-shopbuilder"] .ui-dialog-buttonset .ui-button:first-child:hover { |
| 393 | 393 | background: #1f3edc; |
| 394 | 394 | } |
| @@ -481,9 +481,22 @@ | ||
| 481 | 481 | $('.feedback-text-wrapper-<?php echo esc_attr( $this->textdomain ); ?> span').text('Please provide me with some advice.'); |
| 482 | 482 | return; |
| 483 | 483 | } |
| 484 | 484 | |
| 485 | - if ('temporary_deactivation' == reasons && !feedback) { | |
| 485 | + if (!reasons ) { | |
| 486 | + // Define flag variables | |
| 487 | + $('#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.'); | |
| 489 | + return; | |
| 490 | + } | |
| 491 | + | |
| 492 | + if ( 'bug_issue_detected' === reasons && !feedback ) { | |
| 493 | + // Define flag variables | |
| 494 | + $('.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 | + return; | |
| 496 | + } | |
| 497 | + | |
| 498 | + if ('temporary_deactivation' === reasons && !feedback) { | |
| 486 | 499 | window.location.href = href; |
| 487 | 500 | return; |
| 488 | 501 | } |
| 489 | 502 | |