| 1 |
<?php |
| 2 |
/** |
| 3 |
* feedback layout. |
| 4 |
* |
| 5 |
* @package Depicter |
| 6 |
*/ |
| 7 |
|
| 8 |
if ( ! defined( 'ABSPATH' ) ) { |
| 9 |
exit; // Exit if accessed directly. |
| 10 |
} |
| 11 |
?> |
| 12 |
|
| 13 |
<div class="depicter-survey-container"> |
| 14 |
<div class="depicter-survey-list"> |
| 15 |
<div class="depicter-logo"> |
| 16 |
<img src="<?php echo Depicter::core()->assets()->getUrl() . '/resources/images/svg/light-logo.svg'; ?>" alt="logo"> |
| 17 |
<span class="depicter-close"></span> |
| 18 |
</div> |
| 19 |
<form action="#" method="post"> |
| 20 |
<?php |
| 21 |
wp_nonce_field( 'depicter-nonce' ); |
| 22 |
?> |
| 23 |
<h3><?php esc_html_e( 'If you have a moment, please share why you are deactivating Depicter:', 'depicter' );?></h3> |
| 24 |
<?php |
| 25 |
foreach( $reasons as $key => $reason ) { |
| 26 |
echo '<div class="depicter-deactivate-issue">'; |
| 27 |
echo '<input type="radio" id="depicter-option-'. esc_attr( $key ) .'" name="dep_deactivation_reason" value="'. esc_attr( $reason['key'] ) .'">'; |
| 28 |
echo '<label for="depicter-option-'. esc_attr( $key ) .'">'. esc_html( $reason['text'] ) .'</label>'; |
| 29 |
if ( !empty( $reason['user-description'] ) ) { |
| 30 |
echo '<br>'; |
| 31 |
echo '<input type="text" name="user-description-'. esc_attr( $key ) .'" value="" placeholder="'. esc_attr( $reason['user-description'] ) .'">'; |
| 32 |
} |
| 33 |
echo '</div>'; |
| 34 |
} |
| 35 |
?> |
| 36 |
<div class="depicter-button-wrapper"> |
| 37 |
<input type="button" class="depicter-skip" value="<?php esc_attr_e( 'Skip & Deactivate', 'depicter' );?>"> |
| 38 |
<input type="button" class="depicter-submit" value="<?php esc_attr_e( 'Submit & Deactivate', 'depicter' );?>" disabled> |
| 39 |
</div> |
| 40 |
</form> |
| 41 |
</div> |
| 42 |
</div> |
| 43 |
|