| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin deactivation feedback modal. |
| 4 |
* |
| 5 |
* @var string $from FROM header for the email. |
| 6 |
* @var string $email Email address of the current user. |
| 7 |
*/ |
| 8 |
?> |
| 9 |
<div id="isc-feedback-overlay" style="display: none;"> |
| 10 |
<div id="isc-feedback-content"> |
| 11 |
<span id="isc-feedback-overlay-close-button">✕</span> |
| 12 |
<form action="" method="post" autocomplete="off"> |
| 13 |
<p> |
| 14 |
<span class="dashicons dashicons-admin-comments"></span> |
| 15 |
<strong> |
| 16 |
<?php |
| 17 |
printf( |
| 18 |
// translators: %s is the plugin name, %d is the year the plugin was first released |
| 19 |
esc_html__( 'Your feedback shapes %1$s since %2$d', 'image-source-control-isc' ), |
| 20 |
esc_html( ISCNAME ), |
| 21 |
2012 |
| 22 |
); |
| 23 |
?> |
| 24 |
</strong> |
| 25 |
</p> |
| 26 |
<textarea class="isc-feedback-text" name="isc-feedback-text" placeholder="<?php esc_attr_e( 'How can I improve Image Source Control?', 'image-source-control-isc' ); ?>"></textarea> |
| 27 |
<ul> |
| 28 |
<li><?php esc_html_e( 'Was anything confusing?', 'image-source-control-isc' ); ?></li> |
| 29 |
<li><?php esc_html_e( 'Did you expect different features?', 'image-source-control-isc' ); ?></li> |
| 30 |
<li><?php esc_html_e( 'Did you experience a technical issue?', 'image-source-control-isc' ); ?></li> |
| 31 |
</ul> |
| 32 |
<?php if ( $email ) : ?> |
| 33 |
<label> |
| 34 |
<input type="checkbox" id="isc-feedback-send-reply" name="isc-feedback-send-reply" value="1"/> |
| 35 |
<?php esc_html_e( 'I am open to chat', 'image-source-control-isc' ); ?> |
| 36 |
</label> |
| 37 |
<input type="email" id="isc-feedback-reply-email" name="isc-feedback-reply-email" value="<?php echo esc_attr( $email ); ?>" style="display: none;"/> |
| 38 |
<?php endif; ?> |
| 39 |
<?php if ( $from ) : ?> |
| 40 |
<input type="hidden" name="isc-feedback-from" value="<?php echo esc_attr( $from ); ?>"/> |
| 41 |
<?php endif; ?> |
| 42 |
<hr> |
| 43 |
<input class="isc-feedback-submit button button-primary" type="submit" value="<?php esc_attr_e( 'Send feedback & deactivate', 'image-source-control-isc' ); ?>"/> |
| 44 |
<input class="isc-feedback-only-deactivate button" type="submit" value="<?php esc_html_e( 'Just deactivate', 'image-source-control-isc' ); ?>"/> |
| 45 |
<?php wp_nonce_field( 'isc-feedback-form', 'isc-feedback-form-nonce' ); ?> |
| 46 |
</form> |
| 47 |
<div id="isc-feedback-after-submit" style="display: none"> |
| 48 |
<h2> |
| 49 |
<?php esc_html_e( 'Thanks for submitting your feedback. I will get in touch soon.', 'image-source-control-isc' ); ?> |
| 50 |
</h2> |
| 51 |
<p> |
| 52 |
<?php esc_html_e( 'Disabling the plugin now…', 'image-source-control-isc' ); ?> |
| 53 |
</p> |
| 54 |
</div> |
| 55 |
</div> |
| 56 |
</div> |
| 57 |
|