plugin.php
32 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | if ( ! defined('ABSPATH')) { |
| 6 | exit; |
| 7 | } |
| 8 | |
| 9 | ?> |
| 10 | |
| 11 | <style> |
| 12 | #the-list tr[data-plugin='<?= $this->plugin_basename ?>']:not(.plugin-update-tr--message) th, |
| 13 | #the-list tr[data-plugin='<?= $this->plugin_basename ?>']:not(.plugin-update-tr--message) td { |
| 14 | box-shadow: none; |
| 15 | } |
| 16 | |
| 17 | <?php if ( $this->icon ) : ?> |
| 18 | |
| 19 | .plugins tr[data-plugin='<?= $this->plugin_basename ?>'] .update-message p:before { |
| 20 | content: "<?= $this->icon ?>"; |
| 21 | } |
| 22 | |
| 23 | <?php endif; ?> |
| 24 | </style> |
| 25 | |
| 26 | <tr class="plugin-update-tr plugin-update-tr--message <?= esc_attr($this->status) ?>" data-slug="<?= esc_attr(basename($this->plugin_basename)) ?>" data-plugin="<?= esc_attr($this->plugin_basename) ?>"> |
| 27 | <td colspan="100%" class="plugin-update colspanchange"> |
| 28 | <div class="update-message notice notice-alt inline <?= esc_attr($this->class) ?>"> |
| 29 | <p><?= $this->message ?></p> |
| 30 | </div> |
| 31 | </td> |
| 32 | </tr> |