*/
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', 'adminify' );
if ( $value ) {
$status = 'enable has-text-white p-1 pl-3 pr-3 is-rounded';
$label = esc_html__( 'Enabled', 'adminify' );
}
?>
-
' . 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.', 'adminify' );
}
}
return $content;
}
}