<?php

namespace Uncanny_Automator;

/**
 * Auto-prune logs (tease)
 * Settings > General > Logs > Auto-prune logs
 *
 * Variables:
 * $upgrade_to_pro_url URL to upgrade to Automator Pro
 */

?>

<div class="uap-settings-panel-content-separator"></div>

<div class="uap-settings-panel-content-subtitle">
	<?php esc_html_e( 'Auto-prune activity logs', 'uncanny-automator' ); ?><uo-pro-tag></uo-pro-tag>
</div>

<uo-switch 
	disabled
	status-label="<?php esc_attr_e( 'Enabled', 'uncanny-automator' ); ?>,<?php esc_attr_e( 'Disabled', 'uncanny-automator' ); ?>" 
	class="uap-spacing-top"
></uo-switch>

<p>
	<uo-icon id="lock"></uo-icon>
	<?php

	printf(
		/* translators: 1. Trademarked term */
		esc_html__( 'This is a pro-only feature that requires %1$s', 'uncanny-automator' ),
		// "Uncanny Automator Pro" link
		sprintf(
			'<a href="%s" target="_blank">%s <uo-icon id="external-link"></uo-icon></a>',
			esc_url( $upgrade_to_pro_url ),
			'Uncanny Automator Pro'
		)
	);

	?>
</p>
