public function print_deactivate_feedback_dialog()
{
$deactivate_reasons = ['no_longer_needed' => ['title' => __('I no longer need the plugin', 'elementor'), 'input_placeholder' => ''], 'found_a_better_plugin' => ['title' => __('I found a better plugin', 'elementor'), 'input_placeholder' => __('Please share which plugin', 'elementor')], 'couldnt_get_the_plugin_to_work' => ['title' => __('I couldn\'t get the plugin to work', 'elementor'), 'input_placeholder' => ''], 'temporary_deactivation' => ['title' => __('It\'s a temporary deactivation', 'elementor'), 'input_placeholder' => ''], 'other' => ['title' => __('Other', 'elementor'), 'input_placeholder' => __('Please share the reason', 'elementor')]];
?>
<div id="elementor-deactivate-feedback-dialog-wrapper">
<div id="elementor-deactivate-feedback-dialog-header">
<i class="eicon-elementor-square"></i>
<span id="elementor-deactivate-feedback-dialog-header-title"><?php
_e('Quick Feedback', 'elementor');
?>
</span>
</div>
<form id="elementor-deactivate-feedback-dialog-form" method="post">
<?php
wp_nonce_field('_elementor_deactivate_feedback_nonce');
?>
<input type="hidden" name="action" value="elementor_deactivate_feedback" />
<div id="elementor-deactivate-feedback-dialog-form-caption"><?php
_e('If you have a moment, please share why you are deactivating Elementor:', 'elementor');
?>
</div>
<div id="elementor-deactivate-feedback-dialog-form-body">
<?php
foreach ($deactivate_reasons as $reason_key => $reason) {
?>
<div class="elementor-deactivate-feedback-dialog-input-wrapper">
<input id="elementor-deactivate-feedback-<?php
echo esc_attr($reason_key);
?>
" class="elementor-deactivate-feedback-dialog-input" type="radio" name="reason_key" value="<?php
echo esc_attr($reason_key);
?>
" />
<label for="elementor-deactivate-feedback-<?php
echo esc_attr($reason_key);
?>
" class="elementor-deactivate-feedback-dialog-label"><?php
echo $reason['title'];
?>
</label>
<?php
if (!empty($reason['input_placeholder'])) {
?>
<input class="elementor-feedback-text" type="text" name="reason_<?php
echo esc_attr($reason_key);
?>
" placeholder="<?php
echo esc_attr($reason['input_placeholder']);
?>
" />
<?php
}
?>
</div>
<?php
}
?>
</div>
</form>
</div>
<?php
}