Files
websdev.gconex.com/wp-content/plugins/wpforms-lite/templates/builder/revisions/notice-limited.php
2024-04-08 12:13:55 -04:00

36 lines
1.0 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* "Revisions are limited" notice in the Form Builder Revisions panel.
*
* @since 1.7.3
*
* @var int $revisions_to_keep How many revisions are kept.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$url = wpforms_utm_link(
'https://wpforms.com/docs/how-to-use-form-revisions-in-wpforms/#enable-post-revisions',
'Builder Revisions',
'Revisions Limited Notice'
);
?>
<div class='wpforms-revisions-notice wpforms-revisions-notice-warning'>
<h2><?php esc_html_e( 'Form Revisions Are Limited', 'wpforms-lite' ); ?></h2>
<p>
<?php
printf( /* translators: %d - maximum number of revisions to keep. */
esc_html__( 'Revisions are enabled, but theyre limited to %d. You can increase this by making a simple change to your WordPress configuration.', 'wpforms-lite' ),
absint( $revisions_to_keep )
);
?>
</p>
<a href="<?php echo esc_url( $url ); ?>" target="_blank" rel="noopener noreferrer" class='button button-primary button-large'>
<?php esc_html_e( 'Learn How', 'wpforms-lite' ); ?>
</a>
</div>