| 1 |
<?php |
| 2 |
use Imagify\Notices\Notices; |
| 3 |
|
| 4 |
defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' ); |
| 5 |
|
| 6 |
$this->print_template( 'notice-header', array( |
| 7 |
'classes' => array( 'error' ), |
| 8 |
) ); |
| 9 |
?> |
| 10 |
<p><?php echo _n( 'The following plugin is not compatible with this plugin and may cause unexpected results:', 'The following plugins are not compatible with this plugin and may cause unexpected results:', count( $data ), 'imagify' ); ?></p> |
| 11 |
|
| 12 |
<ul class="imagify-plugins-error"> |
| 13 |
<?php |
| 14 |
foreach ( $data as $plugin ) { |
| 15 |
$plugin_data = get_plugin_data( WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . $plugin ); |
| 16 |
$deactivate_url = esc_url( wp_nonce_url( admin_url( 'admin-post.php?action=imagify_deactivate_plugin&plugin=' . rawurlencode( $plugin ) ), Notices::DEACTIVATE_PLUGIN_NONCE_ACTION ) ); |
| 17 |
echo '<li>' . $plugin_data['Name'] . '</span> <a href="' . $deactivate_url . '" class="button button-mini alignright">' . __( 'Deactivate', 'imagify' ) . '</a></li>'; |
| 18 |
} |
| 19 |
?> |
| 20 |
</ul> |
| 21 |
<?php |
| 22 |
$this->print_template( 'notice-footer' ); |
| 23 |
|