lelms-copyright/lib/plugin-update-checker/Puc/v5p3/DebugBar/PluginPanel.php
feibisi 73c8825c46 Update zh_CN translation and bump version to 1.1.9
Added lelms-copyright-zh_CN.l10n.php for improved localization, updated zh_CN.po and zh_CN.mo with new and revised translations, and incremented plugin version to 1.1.9 in lelms-copyright.php. File permissions were also updated for several files.
2025-12-05 10:44:10 +08:00

41 lines
980 B
PHP
Executable file

<?php
namespace YahnisElsts\PluginUpdateChecker\v5p3\DebugBar;
use YahnisElsts\PluginUpdateChecker\v5p3\Plugin\UpdateChecker;
if ( !class_exists(PluginPanel::class, false) ):
class PluginPanel extends Panel {
/**
* @var UpdateChecker
*/
protected $updateChecker;
protected function displayConfigHeader() {
$this->row('Plugin file', htmlentities($this->updateChecker->pluginFile));
parent::displayConfigHeader();
}
protected function getMetadataButton() {
$requestInfoButton = '';
if ( function_exists('get_submit_button') ) {
$requestInfoButton = get_submit_button(
'Request Info',
'secondary',
'puc-request-info-button',
false,
array('id' => $this->updateChecker->getUniqueName('request-info-button'))
);
}
return $requestInfoButton;
}
protected function getUpdateFields() {
return array_merge(
parent::getUpdateFields(),
array('homepage', 'upgrade_notice', 'tested',)
);
}
}
endif;