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