*/
class ServerInfo_Error_Logs_Details
{
public function __construct()
{
$this->init();
}
public function init()
{ ?>
$value) {
$status = 'disable has-text-white p-1 pl-3 pr-3 is-rounded';
$label = esc_html__('Disabled', WP_ADMINIFY_TD);
if ($value) {
$status = 'enable has-text-white p-1 pl-3 pr-3 is-rounded';
$label = esc_html__('Enabled', WP_ADMINIFY_TD);
} ?>
-
' . esc_html($file) . ''; ?>
exists($file)) {
$content = $wp_filesystem->get_contents($file);
// Check if the file content is empty
if ($wp_filesystem->get_contents($file) == '') {
$content = esc_html__('File content is empty. No errors logged.', WP_ADMINIFY_TD);
}
}
return $content;
}
}