<?php
/**
 * Email Delivery — Advanced Settings modal stub.
 *
 * @package EmailSmtp
 */

use EmailSmtp\Module;
use WP_PowerSuite\Core\NetworkScope;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

if ( ! NetworkScope::canManagePlugin() ) {
	return;
}

$page_url = NetworkScope::adminUrl( 'admin.php', [ 'page' => Module::PAGE_SLUG ] );
?>
<div class="wp-powersuite-module-settings">
	<p class="description">
		<?php esc_html_e( 'Configure connections, sender routing, and delivery options on the Email Delivery page.', 'wp-powersuite' ); ?>
	</p>
	<p>
		<a class="button button-primary" href="<?php echo esc_url( $page_url ); ?>">
			<?php esc_html_e( 'Open Email Delivery', 'wp-powersuite' ); ?>
		</a>
	</p>
</div>
