PluginPanel.php 928 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. if ( !class_exists('Puc_v4p11_DebugBar_PluginPanel', false) ):
  3. class Puc_v4p11_DebugBar_PluginPanel extends Puc_v4p11_DebugBar_Panel {
  4. /**
  5. * @var Puc_v4p11_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;