An updated theme (based on Atticus Finch) for ClassicPress
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
923 B

3 years ago
  1. <?php
  2. if ( !class_exists('Puc_v4p1_DebugBar_PluginPanel', false) ):
  3. class Puc_v4p1_DebugBar_PluginPanel extends Puc_v4p1_DebugBar_Panel {
  4. /**
  5. * @var Puc_v4p1_Plugin_UpdateChecker
  6. */
  7. protected $updateChecker;
  8. protected function displayConfigHeader() {
  9. $this->row('Plugin file', htmlentities($this->updateChecker->pluginFile));
  10. parent::displayConfigHeader();
  11. }
  12. protected function getMetadataButton() {
  13. $requestInfoButton = '';
  14. if ( function_exists('get_submit_button') ) {
  15. $requestInfoButton = get_submit_button(
  16. 'Request Info',
  17. 'secondary',
  18. 'puc-request-info-button',
  19. false,
  20. array('id' => $this->updateChecker->getUniqueName('request-info-button'))
  21. );
  22. }
  23. return $requestInfoButton;
  24. }
  25. protected function getUpdateFields() {
  26. return array_merge(
  27. parent::getUpdateFields(),
  28. array('homepage', 'upgrade_notice', 'tested',)
  29. );
  30. }
  31. }
  32. endif;