ThemePanel.php 573 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace YahnisElsts\PluginUpdateChecker\v5p1\DebugBar;
  3. use YahnisElsts\PluginUpdateChecker\v5p1\Theme\UpdateChecker;
  4. if ( !class_exists(ThemePanel::class, false) ):
  5. class ThemePanel extends Panel {
  6. /**
  7. * @var UpdateChecker
  8. */
  9. protected $updateChecker;
  10. protected function displayConfigHeader() {
  11. $this->row('Theme directory', htmlentities($this->updateChecker->directoryName));
  12. parent::displayConfigHeader();
  13. }
  14. protected function getUpdateFields() {
  15. return array_merge(parent::getUpdateFields(), array('details_url'));
  16. }
  17. }
  18. endif;