id, GEMOFFLOAD_PLUGIN_SLUG ) ) {
return;
}
$link = admin_url( 'admin.php?page=' . GEMOFFLOAD_PLUGIN_SLUG );
$name = __( 'GemOffload', 'gemoffload' );
if ( Settings::value( 'enabled' ) && Queue::is_paused() ) {
$state = Queue::state();
printf(
'
',
esc_html( $name ),
esc_html( 'clock' === $state['reason'] ? __( 'Uploads are paused because this server\'s clock is wrong.', 'gemoffload' ) : __( 'Uploads are paused after repeated connection errors.', 'gemoffload' ) ),
esc_html( (string) $state['message'] ),
esc_url( $link ),
esc_html__( 'Fix the connection', 'gemoffload' )
);
}
if ( Credentials::needs_reentry() ) {
printf(
'',
esc_html( $name ),
esc_html__( 'The stored secret key can\'t be read since the WordPress salts changed.', 'gemoffload' ),
esc_url( admin_url( 'admin.php?page=' . GEMOFFLOAD_PLUGIN_SLUG . '-settings' ) ),
esc_html__( 'Re-enter your secret key', 'gemoffload' )
);
}
$waiting = \GemOffload\Integrations\Integrations::waiting();
if ( $waiting && Settings::value( 'enabled' ) ) {
printf(
'',
esc_html( $name ),
esc_html( sprintf(
/* translators: %s: product names */
__( '%s files are not protected yet: add a private bucket.', 'gemoffload' ),
\GemOffload\Integrations\Integrations::labels( $waiting )
) ),
esc_url( admin_url( 'admin.php?page=' . GEMOFFLOAD_PLUGIN_SLUG . '-settings' ) ),
esc_html__( 'Open settings', 'gemoffload' )
);
}
$conflicts = Conflicts::active();
if ( $conflicts && Settings::value( 'enabled' ) ) {
printf(
'',
esc_html( $name ),
esc_html( sprintf(
/* translators: %s: plugin names */
__( 'Media library offload is off because %s also rewrites media URLs. Deactivate it to use ours; plugin file contexts keep working.', 'gemoffload' ),
implode( ', ', $conflicts )
) )
);
}
}
}