| 1 |
<?php |
| 2 |
namespace FileBird\Classes; |
| 3 |
|
| 4 |
defined( 'ABSPATH' ) || exit; |
| 5 |
|
| 6 |
class Feedback { |
| 7 |
|
| 8 |
public function __construct() { |
| 9 |
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_filebird_feedback' ) ); |
| 10 |
} |
| 11 |
|
| 12 |
public function enqueue_filebird_feedback() { |
| 13 |
if ( ! in_array( get_current_screen()->id, array( 'plugins', 'plugins-network' ), true ) ) { |
| 14 |
return; |
| 15 |
} |
| 16 |
|
| 17 |
add_action( 'admin_footer', array( $this, 'form_feedback' ) ); |
| 18 |
} |
| 19 |
|
| 20 |
public function form_feedback() { |
| 21 |
echo '<div id="fbv-feedback"></div>'; |
| 22 |
} |
| 23 |
} |
| 24 |
|
| 25 |
|