PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.11.14
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.11.14
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 All 149 releases
← All changes | vendor/codeinwp/themeisle-sdk/src/Modules/Uninstall_feedback.php +6 -22 4.0.43.11.14 View file →
@@ -138,10 +138,9 @@
138 138
139 139 ?>
140 140 <div class="ti-theme-uninstall-feedback-drawer ti-feedback">
141 141 <div class="popup--header">
142 - <h5><?php echo wp_kses( $heading, array( 'span' => true ) ); ?></h5>
143 - <?php $this->do_popup_header_after_heading_action( 'theme' ); ?>
142 + <h5><?php echo wp_kses( $heading, array( 'span' => true ) ); ?> </h5>
144 143 <button class="toggle"><span>&times;</span></button>
145 144 </div><!--/.popup--header-->
146 145 <div class="popup--body">
147 146 <?php $this->render_options_list( $options ); ?>
@@ -485,21 +484,8 @@
485 484 do_action( $this->product->get_key() . '_uninstall_feedback_after_js' );
486 485 }
487 486
488 487 /**
489 - * Fires after the popup header heading, allowing products to output extra markup.
490 - *
491 - * @param string $context Popup context. Either `theme` or `plugin`.
492 - */
493 - private function do_popup_header_after_heading_action( $context ) {
494 - do_action(
495 - $this->product->get_key() . '_uninstall_feedback_popup_header_after_heading',
496 - $this->product,
497 - $context
498 - );
499 - }
500 -
501 - /**
502 488 * Render the options list.
503 489 *
504 490 * @param array $options the options for the feedback form.
505 491 */
@@ -548,9 +534,8 @@
548 534 <div class="ti-plugin-uninstall-feedback-popup ti-feedback"
549 535 id="<?php echo esc_attr( $this->product->get_slug() . '_uninstall_feedback_popup' ); ?>">
550 536 <div class="popup--header">
551 537 <h5><?php echo wp_kses( Loader::$labels['uninstall']['heading_plugin'], array( 'span' => true ) ); ?> </h5>
552 - <?php $this->do_popup_header_after_heading_action( 'plugin' ); ?>
553 538 </div><!--/.popup--header-->
554 539 <div class="popup--body">
555 540 <?php $this->render_options_list( $options ); ?>
556 541 </div><!--/.popup--body-->
@@ -595,16 +580,15 @@
595 580 <script type="text/javascript" id="ti-deactivate-js">
596 581 (function ($) {
597 582 $(document).ready(function () {
598 583 var targetElement = 'tr[data-plugin^="<?php echo esc_attr( $this->product->get_slug() ); ?>/"] span.deactivate a';
599 - var $deactivateLink = $(targetElement);
600 - var redirectUrl = $deactivateLink.attr('href');
584 + var redirectUrl = $(targetElement).attr('href');
601 585 if ($('.ti-feedback-overlay').length === 0) {
602 586 $('body').prepend('<div class="ti-feedback-overlay"></div>');
603 587 }
604 - $('<?php echo esc_attr( $popup_id ); ?> ').appendTo($deactivateLink.parent());
588 + $('<?php echo esc_attr( $popup_id ); ?> ').appendTo($(targetElement).parent());
605 589
606 - $deactivateLink.on('click', function (e) {
590 + $(targetElement).on('click', function (e) {
607 591 e.preventDefault();
608 592 $('<?php echo esc_attr( $popup_id ); ?> ').addClass('active');
609 593 $('body').addClass('ti-feedback-open');
610 594 $('.ti-feedback-overlay').on('click', function () {
@@ -637,9 +621,9 @@
637 621
638 622 $('<?php echo esc_attr( $popup_id ); ?> #<?php echo esc_attr( $key ); ?>ti-deactivate-no').on('click', function (e) {
639 623 e.preventDefault();
640 624 e.stopPropagation();
641 - $deactivateLink.unbind('click');
625 + $(targetElement).unbind('click');
642 626 $('body').removeClass('ti-feedback-open');
643 627 $('<?php echo esc_attr( $popup_id ); ?>').remove();
644 628 if (redirectUrl !== '') {
645 629 location.href = redirectUrl;
@@ -648,9 +632,9 @@
648 632
649 633 $('<?php echo esc_attr( $popup_id ); ?> #<?php echo esc_attr( $key ); ?>ti-deactivate-yes').on('click', function (e) {
650 634 e.preventDefault();
651 635 e.stopPropagation();
652 - $deactivateLink.unbind('click');
636 + $(targetElement).unbind('click');
653 637 var selectedOption = $(
654 638 '<?php echo esc_attr( $popup_id ); ?> input[name="ti-deactivate-option"]:checked');
655 639 var data = {
656 640 'action': '<?php echo esc_attr( $key ) . '_uninstall_feedback'; ?>',