-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an optional survey when deactivating
- Loading branch information
Showing
3 changed files
with
62 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<dialog id="friends-why-deactivate-dialog"> | ||
<form action=""> | ||
<h1><?php esc_html_e( 'Deactivating the Friends Plugin', 'friends' ); ?></h1> | ||
<label for="why-deactivate"><?php esc_html_e( 'Thank you for tell us why you are deactivating this plugin:', 'friends' ); ?></label> | ||
<ul> | ||
<li><label><input type="checkbox" name="reason[]" value="complicated"> <?php esc_html_e( 'Too complicated', 'friends' ); ?></label></li> | ||
<li><label><input type="checkbox" name="reason[]" value="ugly"> <?php esc_html_e( 'Too Ugly', 'friends' ); ?></label></li> | ||
</ul> | ||
<textarea id="why-deactivate" name="why-deactivate" placeholder="Something else"></textarea> | ||
<p> | ||
<?php esc_html_e( 'Your response will be submitted anonymously.', 'friends' ); ?> | ||
<?php | ||
echo wp_kses( | ||
sprintf( | ||
// translators: %s: URL to the GitHub issue tracker. | ||
__( 'If you encountered a bug, <a href="%s">please report it</a>!', 'friends' ), | ||
'https://github.com/akirk/friends' | ||
), | ||
array( 'a' => array( 'href' => array() ) ) | ||
); | ||
?> | ||
</p> | ||
<p> | ||
<button type="submit" class="button btn-primary"><?php esc_html_e( 'Deactivate', 'friends' ); ?></button> | ||
<button type="button" class="button btn-secondary"><?php esc_html_e( 'Cancel', 'friends' ); ?></button> | ||
</p> | ||
</form> | ||
</dialog> |