first commit

This commit is contained in:
2026-03-05 13:07:40 +01:00
commit 64ba0721ee
25709 changed files with 4691006 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
<?php
/**
* Admin View: Notice - Trial Optin
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$referer = wp_get_referer();
$optin_url = wp_nonce_url(
add_query_arg( 'ig_es_trial_consent', 'yes', $referer ),
'ig_es_trial_consent'
);
$optout_url = wp_nonce_url(
add_query_arg( 'ig_es_trial_consent', 'no', $referer ),
'ig_es_trial_consent'
);
?>
<div class="notice notice-success">
<p>
<?php
/* translators: %s: Trial period in days */
echo esc_html__( sprintf( 'Start your %s days free trial of Icegram Express premium services like email delivery check, spam protection, cron handling & lot more..', ES()->trial->get_trial_period( 'in_days' ) ), 'email-subscribers' );
?>
<br/>
<a href="<?php echo esc_url( $optin_url ); ?>" class="ig-es-primary-button px-3 py-1 mt-2 align-middle">
<?php
echo esc_html__( 'Yes, start my free trial!', 'email-subscribers' );
?>
</a>
<a href="<?php echo esc_url( $optout_url ); ?>" class="ig-es-title-button px-3 py-1 mt-2 ml-2 align-middle">
<?php
echo esc_html__( 'No, its ok!', 'email-subscribers' );
?>
</a>
</p>
</div>