120 lines
4.5 KiB
PHP
120 lines
4.5 KiB
PHP
<?php
|
|
/**
|
|
* Deactivation thickbox.
|
|
*
|
|
* @var $plugin_title string
|
|
* @var $plugin_file string
|
|
* @var $plugin_slug string
|
|
* @var $thickbox_id string
|
|
* @var $ajax_action string
|
|
* @var $ajax_nonce string
|
|
*
|
|
* @package Flexible Shipping
|
|
*/
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit;
|
|
}
|
|
?>
|
|
<div id="<?php echo esc_attr( $thickbox_id ); ?>" style="display:none;">
|
|
<h2>
|
|
<?php
|
|
echo esc_html(
|
|
sprintf(
|
|
// Translators: plugin name.
|
|
__( 'You are deactivating %s plugin.', 'flexible-shipping' ),
|
|
$plugin_title
|
|
)
|
|
);
|
|
?>
|
|
</h2>
|
|
<div class="wpdesk_tracker_deactivate <?php echo esc_attr( $thickbox_id ); ?>">
|
|
<div class="body">
|
|
<div class="panel" data-panel-id="confirm"><p></p></div>
|
|
<div class="panel active" data-panel-id="reasons">
|
|
<h4>
|
|
<strong><?php echo esc_html( __( 'If you have a moment, please let us know why you are deactivating the plugin (anonymous feedback):', 'flexible-shipping' ) ); ?></strong>
|
|
</h4>
|
|
<ul class="reasons-list">
|
|
<li class="reason">
|
|
<label>
|
|
<span>
|
|
<input type="radio" name="selected-reason" value="plugin_stopped_working">
|
|
</span>
|
|
<span><?php echo esc_html( __( 'The plugin suddenly stopped working', 'flexible-shipping' ) ); ?></span>
|
|
</label>
|
|
</li>
|
|
<li class="reason">
|
|
<label>
|
|
<span>
|
|
<input type="radio" name="selected-reason" value="broke_my_site">
|
|
</span>
|
|
<span><?php echo esc_html( __( 'The plugin broke my site', 'flexible-shipping' ) ); ?></span>
|
|
</label>
|
|
</li>
|
|
<li class="reason has-input">
|
|
<label>
|
|
<span>
|
|
<input type="radio" name="selected-reason" value="dont_like_rules_table" data-show="dont-like-rules-table">
|
|
</span>
|
|
<span><?php echo esc_html( __( 'I don\'t like the new version of the rules table', 'flexible-shipping' ) ); ?></span>
|
|
</label>
|
|
<div class="dont-like-rules-table" class="reason-input" style="display: none">
|
|
<input type="text" class="additional-info" name="dont_like_rules_table_info" placeholder="<?php echo esc_html( __( 'Please let us know how we can improve it', 'flexible-shipping' ) ); ?>">
|
|
</div>
|
|
</li>
|
|
<li class="reason has-input">
|
|
<label>
|
|
<span>
|
|
<input type="radio" name="selected-reason" value="found_better_plugin" data-show="found-better-plugin">
|
|
</span>
|
|
<span><?php echo esc_html( __( 'I have found a better plugin', 'flexible-shipping' ) ); ?></span>
|
|
</label>
|
|
<div class="found-better-plugin" class="reason-input" style="display: none">
|
|
<input type="text" class="additional-info" name="better_plugin_name" placeholder="<?php echo esc_html( __( 'What\'s the plugin\'s name?', 'flexible-shipping' ) ); ?>">
|
|
</div>
|
|
</li>
|
|
<li class="reason">
|
|
<label>
|
|
<span>
|
|
<input type="radio" name="selected-reason" value="plugin_for_short_period">
|
|
</span>
|
|
<span><?php echo esc_html( __( 'I only needed the plugin for a short period', 'flexible-shipping' ) ); ?></span>
|
|
</label>
|
|
</li>
|
|
<li class="reason">
|
|
<label>
|
|
<span>
|
|
<input type="radio" name="selected-reason" value="no_longer_need">
|
|
</span>
|
|
<span><?php echo esc_html( __( 'I no longer need the plugin', 'flexible-shipping' ) ); ?></span>
|
|
</label>
|
|
</li>
|
|
<li class="reason">
|
|
<label>
|
|
<span>
|
|
<input type="radio" name="selected-reason" value="temporary_deactivation">
|
|
</span>
|
|
<span><?php echo esc_html( __( 'It\'s a temporary deactivation. I\'m just debugging an issue.', 'flexible-shipping' ) ); ?></span>
|
|
</label>
|
|
</li>
|
|
<li class="reason has-input">
|
|
<label>
|
|
<span>
|
|
<input type="radio" name="selected-reason" value="other" data-show="other">
|
|
</span>
|
|
<span><?php echo esc_html( __( 'Other', 'flexible-shipping' ) ); ?></span>
|
|
</label>
|
|
<div class="other" class="reason-input" style="display: none">
|
|
<input type="text" name="other" class="additional-info" placeholder="<?php echo esc_html( __( 'Please let us know how we can improve our plugin', 'flexible-shipping' ) ); ?>">
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="footer">
|
|
<a href="#" class="button button-secondary button-close tracker-button-close"><?php echo esc_html( __( 'Cancel', 'flexible-shipping' ) ); ?></a>
|
|
<a href="#" class="button button-primary button-deactivate allow-deactivate"><?php echo esc_html( __( 'Skip & Deactivate', 'flexible-shipping' ) ); ?></a>
|
|
</div>
|
|
</div>
|
|
</div>
|