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,25 @@
<?php
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
function header_part() {
$screen = get_current_screen();
if ( 'es_dashboard' == $screen->parent_base || 'es_template' == $screen->id || 'admin_page_es_template_preview' == $screen->parent_base ) {
?>
<div class="headerpart">
<div class="esbgheader">
<h1>Icegram Express V4.0</h1>
</div>
</div>
<?php
}
}
// add_action( 'admin_notices', 'header_part' );
?>

View File

@@ -0,0 +1,271 @@
<?php
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<?php
global $ig_es_tracker, $ig_es_feedback;
$ig_install_url = admin_url( 'plugin-install.php?s=icegram&tab=search&type=term' );
$rainmaker_install_url = admin_url( 'plugin-install.php?s=rainmaker&tab=search&type=term' );
$smart_manager_install_url = admin_url( 'plugin-install.php?s=smart+manager&tab=search&type=term' );
$tlwp_install_url = admin_url( 'plugin-install.php?s=temporary+login+without+password&tab=search&type=term' );
$deactivate_link = admin_url( 'plugins.php' );
$icegram_plugin = 'icegram/icegram.php';
$rainmaker_plugin = 'icegram-rainmaker/icegram-rainmaker.php';
$smart_manager_plugin = 'smart-manager-for-wp-e-commerce/smart-manager';
$temporary_login = admin_url( 'plugin-install.php?s=temporary+login+without+password&tab=search&type=term' );
$active_plugins = $ig_es_tracker::get_active_plugins();
$inactive_plugins = $ig_es_tracker::get_inactive_plugins();
$all_plugins = $ig_es_tracker::get_plugins();
$contact_us_btn_class = "ig-feedback-button-{$ig_es_feedback->plugin}";
$ig_plugins = array(
array(
'title' => __( 'Icegram', 'email-subscribers' ),
'logo' => 'https://ps.w.org/icegram/assets/icon-128x128.png',
'desc' => __( 'The best WP popup plugin that creates a popup. Customize popup, target popups to show offers, email signups, social buttons, etc and increase conversions on your website.', 'email-subscribers' ),
'name' => 'icegram/icegram.php',
'install_url' => $ig_install_url,
'plugin_url' => 'https://wordpress.org/plugins/icegram/',
),
array(
'title' => __( 'Rainmaker', 'email-subscribers' ),
'logo' => 'https://ps.w.org/icegram-rainmaker/assets/icon-128x128.png',
'desc' => __( 'Get readymade contact forms, email subscription forms and custom forms for your website. Choose from beautiful templates and get started within seconds', 'email-subscribers' ),
'name' => 'icegram-rainmaker/icegram-rainmaker.php',
'install_url' => $rainmaker_install_url,
'plugin_url' => 'https://wordpress.org/plugins/icegram-rainmaker/',
),
array(
'title' => __( 'Smart Manager For WooCommerce', 'email-subscribers' ),
'logo' => 'https://ps.w.org/smart-manager-for-wp-e-commerce/assets/icon-128x128.png',
'desc' => __( 'The #1 and a powerful tool to manage stock, inventory from a single place. Super quick and super easy', 'email-subscribers' ),
'name' => 'smart-manager-for-wp-e-commerce/smart-manager.php',
'install_url' => $smart_manager_install_url,
'plugin_url' => 'https://wordpress.org/plugins/smart-manager-for-wp-e-commerce/',
),
array(
'title' => __( 'Temporary Login Without Password', 'email-subscribers' ),
'logo' => 'https://ps.w.org/temporary-login-without-password/assets/icon-128x128.png',
'desc' => __( 'Create self-expiring, automatic login links for WordPress. Give them to developers when they ask for admin access to your site.', 'email-subscribers' ),
'name' => 'temporary-login-without-password/temporary-login-without-password.php',
'install_url' => $tlwp_install_url,
'plugin_url' => 'https://wordpress.org/plugins/temporary-login-without-password/',
),
);
$topics = ES_Common::get_useful_articles();
$topics_indexes = array_rand( $topics, 5 );
$articles = array(
array(
'title' => 'Create and Send Newsletter Emails',
'link' => 'https://www.icegram.com/documentation/es-how-to-create-and-send-newsletter-emails/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page',
'class' => 'font-medium text-blue-500 hover:text-blue-700',
),
array(
'title' => 'Schedule Cron Emails in cPanel',
'link' => 'https://www.icegram.com/documentation/es-how-to-schedule-cron-emails/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page',
'class' => 'font-medium text-blue-500 hover:text-blue-700',
),
array(
'title' => 'How to enable consent checkbox in the subscribe form?',
'link' => 'https://www.icegram.com/documentation/es-gdpr-how-to-enable-consent-checkbox-in-the-subscription-form/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page',
'class' => 'font-medium text-blue-500 hover:text-blue-700',
),
array(
'title' => 'What data Icegram Express stores on your end?',
'link' => 'https://www.icegram.com/documentation/es-gdpr-what-data-email-subscribers-stores-on-your-end/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page',
'class' => 'font-medium text-blue-500 hover:text-blue-700',
),
array(
'title' => 'Create and Send Post Notification Emails when new posts are published',
'link' => 'https://www.icegram.com/documentation/es-how-to-create-and-send-post-notification-emails-when-new-posts-are-published/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page',
'class' => 'font-medium text-blue-500 hover:text-blue-700',
),
array(
'title' => 'Keywords in the Broadcast',
'link' => 'https://www.icegram.com/documentation/what-keywords-can-be-used-while-designing-the-campaign/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page',
'class' => 'font-medium text-blue-500 hover:text-blue-700',
),
array(
'title' => 'Keywords in the Post Notifications',
'link' => 'https://www.icegram.com/documentation/what-keywords-can-be-used-while-designing-the-campaign/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page',
'class' => 'font-medium text-blue-500 hover:text-blue-700',
),
);
?>
<div class="font-sans wrap pt-4">
<header>
<h2 class="wp-heading-inline text-3xl font-bold text-gray-700 sm:leading-9 sm:truncate pr-4">
<?php echo esc_html__( 'Help & Info', 'email-subscribers' ); ?>
</h2>
</header>
<div><hr class="wp-header-end"></div>
<div class="container flex flex-wrap w-full bg-white rounded-lg shadow mt-8">
<div class="inline-block w-4/12 px-2 pl-2 border-r border-dashed ">
<div class="max-h-full" id="features_display">
<div class="pt-6 pb-6 pl-2 mt-2">
<ul class="mx-6 leading-relaxed list-disc">
<?php foreach ( $articles as $article ) { ?>
<li><a target="_blank" href="<?php echo esc_url( $article['link'] ); ?>" class="<?php echo esc_attr( $article['class'] ); ?>"><?php echo esc_html( $article['title'] ); ?></a></li>
<?php } ?>
</ul>
</div>
</div>
</div>
<div class="inline-block w-4/12 border-r border-dashed">
<?php if ( ES()->is_current_user_administrator() && $enable_manual_update ) { ?>
<div class="px-4 py-4 bg-gray-200 database-migration">
<h3 class="mt-4 mb-6 text-2xl font-medium text-center text-gray-700"><?php echo esc_html__( 'Database Migration', 'email-subscribers' ); ?></h3>
<p class="px-2 py-2">
<?php
/* translators: 1. Starting strong tag 2. Closing strong tag */
echo sprintf( esc_html__( 'If you found duplicate campaigns, lists, forms, reports after upgrading from Icegram Express 3.5.x to 4.x and want to run the database migration again to fix this, please click the below %1$sRun the updater%2$s button.', 'email-subscribers' ), '<strong>', '</strong>' );
?>
</p>
<p class="px-2 py-2">
<?php
/* translators: 1. Starting strong tag 2. Closing strong tag */
echo sprintf( esc_html__( 'Once you click on %1$sRun the updater%2$s button, it will run the migration process from 3.5.x once again. So, if you have created new campaigns, forms or lists after migration to 4.x earlier, you will lose those data. So, make sure you have a backup with you.', 'email-subscribers' ), '<strong>', '</strong>' );
?>
</p>
<div class="flex justify-start w-2/3 py-2">
<span class="rounded-md shadow-sm">
<a href="<?php echo esc_url( $update_url ); ?>">
<button type="button" class="inline-flex justify-center w-full px-4 py-2 text-sm font-medium leading-5 text-white transition duration-150 ease-in-out bg-white bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-500 focus:outline-none focus:shadow-outline-blue">
<?php
echo esc_html__( 'Run the updater', 'email-subscribers' );
?>
</button>
</a>
</span>
</div>
</div>
<?php } else { ?>
<h3 class="mt-4 mb-6 text-2xl font-medium text-center text-gray-700"><?php echo esc_html__( 'Get Help?', 'email-subscribers' ); ?></h3>
<ul class="mx-6 leading-relaxed list-disc">
<li>Install & Activate <a href="https://www.icegram.com/r7gg" target="_blank" class="text-indigo-600">Temporary Login Without Password</a> plugin</li>
<li>Create & Copy new Temporary Login link. <a href="https://www.icegram.com/r7gg" target="_blank" class="text-indigo-600">Learn why you should use this plugin</a></li>
<li>Click on <b>Contact US</b> button and let us know your queries along with Temporary Login Link </li>
</ul>
<div class="flex w-2/3 py-2 justify-center <?php echo esc_attr( $contact_us_btn_class ); ?>">
<span class="rounded-md shadow-sm">
<button type="button" class="inline-flex justify-center w-full px-4 py-2 text-sm font-medium leading-5 text-white transition duration-150 ease-in-out bg-white bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-500 focus:outline-none focus:shadow-outline-blue">
<?php
echo esc_html__( 'Contact US', 'email-subscribers' );
?>
</button>
</span>
</div>
<?php } ?>
</div>
<div class="inline-block w-4/12">
<ul>
<?php foreach ( $topics_indexes as $index ) { ?>
<li class="border-b border-gray-200">
<a href="<?php echo esc_url( $topics[ $index ]['link'] ); ?>" class="block transition duration-150 ease-in-out hover:bg-gray-50 focus:outline-none focus:bg-gray-50" target="_blank">
<div class="flex items-center px-2 py-2 md:justify-between sm:px-2">
<div class="text-sm leading-5 text-gray-900">
<?php
echo wp_kses_post( $topics[ $index ]['title'] );
if ( ! empty( $topics[ $index ]['label'] ) ) {
?>
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full <?php echo esc_attr( $topics[ $index ]['label_class'] ); ?>"><?php echo esc_html( $topics[ $index ]['label'] ); ?></span>
<?php } ?>
</div>
<div>
<svg class="w-5 h-5 text-gray-400" fill="currentColor" viewBox="0 0 20 20">
<path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd"></path>
</svg>
</div>
</div>
</a>
</li>
<?php } ?>
</ul>
</div>
</div>
<div class="container flex flex-wrap w-full mt-4 mb-7">
<div class="block mt-6">
<h3 class="text-2xl font-bold leading-9 text-gray-700 sm:truncate mb-3"><?php echo esc_html__( 'Other awesome plugins from same author', 'email-subscribers' ); ?></h3>
</div>
<div class="grid w-full grid-cols-3 ">
<?php foreach ( $ig_plugins as $ig_plugin ) { ?>
<div class="flex flex-col mb-4 mr-3 bg-white rounded-lg shadow">
<div class="flex h-48">
<div class="flex pl-1">
<div class="flex w-1/4 rounded">
<div class="flex flex-col w-full h-6">
<div>
<img class="mx-auto my-4 border-0 h-15" src="<?php echo esc_url( $ig_plugin['logo'] ); ?>" alt="">
</div>
</div>
</div>
<div class="flex w-3/4 pt-2">
<div class="flex flex-col">
<div class="flex w-full">
<a href="<?php echo esc_url( $ig_plugin['plugin_url'] ); ?>" target="_blank"><h3 class="pb-2 pl-2 mt-2 text-lg font-medium text-indigo-600"><?php echo esc_html( $ig_plugin['title'] ); ?></h3></a>
</div>
<div class="flex w-full pl-2 leading-normal xl:pb-4 lg:pb-2 md:pb-2">
<h4 class="pt-1 pr-4 text-sm text-gray-700"><?php echo esc_html( $ig_plugin['desc'] ); ?></h4>
</div>
</div>
</div>
</div>
</div>
<div class="flex flex-row mb-0 border-t">
<div class="flex w-2/3 px-3 py-5 text-sm"><?php echo esc_html__( 'Status', 'email-subscribers' ); ?>:
<?php if ( in_array( $ig_plugin['name'], $active_plugins ) ) { ?>
<span class="font-bold text-green-600">&nbsp;<?php echo esc_html__( 'Active', 'email-subscribers' ); ?></span>
<?php } elseif ( in_array( $ig_plugin['name'], $inactive_plugins ) ) { ?>
<span class="font-bold text-red-600">&nbsp;<?php echo esc_html__( 'Inactive', 'email-subscribers' ); ?></span>
<?php } else { ?>
<span class="font-bold text-orange-500">&nbsp;<?php echo esc_html__( 'Not Installed', 'email-subscribers' ); ?></span>
<?php } ?>
</div>
<div class="flex justify-center w-1/3 py-3 md:pr-4">
<span class="rounded-md shadow-sm">
<?php if ( ! in_array( $ig_plugin['name'], $active_plugins ) ) { ?>
<a href="<?php echo esc_url( $ig_plugin['install_url'] ); ?>">
<?php
}
if ( ! in_array( $ig_plugin['name'], $all_plugins ) ) {
?>
<button type="button" class="inline-flex justify-center w-full px-4 py-2 text-sm font-medium leading-5 text-white transition duration-150 ease-in-out bg-white bg-green-600 border border-transparent rounded-md hover:bg-green-500 focus:outline-none focus:shadow-outline-blue">
<?php echo esc_html__( 'Install', 'email-subscribers' ); ?> </button>
<?php } elseif ( in_array( $ig_plugin['name'], $inactive_plugins ) ) { ?>
<button type="button" class="inline-flex justify-center w-full px-4 py-2 text-sm font-medium leading-5 text-white transition duration-150 ease-in-out bg-white bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-500 focus:outline-none focus:shadow-outline-blue">
<?php echo esc_html__( 'Activate', 'email-subscribers' ); ?> </button>
<?php } ?>
</a>
</span>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</div>

View File

@@ -0,0 +1,567 @@
<?php
$onboarding_step = IG_ES_Onboarding::get_onboarding_step();
$current_year = gmdate( 'Y' );
$admin_email = get_option( 'admin_email' );
$from_name = get_option( 'ig_es_from_name' );
$from_email = get_option( 'ig_es_from_email' );
?>
<!-- Start-IG-Code -->
<div class="mx-auto mt-6 sm:mt-5">
<img src="<?php echo esc_url( ES_PLUGIN_URL . 'lite/admin/images/icegram_logo.svg' ); ?>" class="mx-auto h-7" alt="Icegram" />
</div>
<!-- End-IG-Code -->
<div id="slider-wrapper font-sans">
<div id="slider">
<div class="sp es-send-email-screen<?php echo esc_attr( 1 === $onboarding_step ? ' active' : '' ); ?>" style="<?php echo esc_attr( 1 === $onboarding_step ? '' : 'display:none' ); ?>">
<section class="mx-auto my-6 sm:my-7">
<div
class="w-full h-full overflow-hidden bg-white lg:flex md:rounded-lg md:shadow-xl md:mx-auto lg:max-w-3xl xl:max-w-4xl"
>
<div class="relative hidden w-1/4 overflow-hidden bg-blue-300 lg:block">
<svg
class="absolute object-cover w-full top-8"
viewBox="0 0 128 172"
xmlns="http://www.w3.org/2000/svg"
>
<g fill="none" stroke="#fff" stroke-width="20">
<circle cx="64" cy="84" opacity=".15" r="70"></circle>
<circle cx="64" cy="84" opacity=".15" r="35"></circle>
</g>
</svg>
<img
src="<?php echo esc_url( ES_PLUGIN_URL . 'lite/admin/images/anne-email-suggestion.svg' ); ?>"
class="absolute object-cover w-full px-3 bottom-2"
/>
</div>
<div class="flex-1">
<div class="p-4 md:px-8 md:py-5">
<span class="text-xs text-gray-400"><?php echo esc_html__( 'STEP 1 of 3', 'email-subscribers' ); ?> </span>
<h3
class="mb-1 text-2xl font-bold leading-snug text-gray-800 sm:text-3xl"
>
<?php echo esc_html__( 'Welcome!', 'email-subscribers' ); ?>
</h3>
<form id="es-send-email-form">
<div class="space-y-5 text-gray-800">
<p class="text-base -mb-2">
<?php
echo esc_html__(
'We\'ve simplified and automated email marketing, so you can get
results quickly.',
'email-subscribers'
);
?>
</p>
<div class="space-y-1">
<h3 class="text-base font-medium text-gray-900"><?php echo esc_html__( 'Essentials:', 'email-subscribers' ); ?></h3>
<div
class="space-y-2 text-sm sm:space-y-0 sm:space-x-4 sm:flex sm:items-center"
>
<div class="w-full sm:w-1/2">
<label for="es_from_name"><?php echo esc_html__( '"From" name for emails: ', 'email-subscribers' ); ?></label>
<input
id="es_from_name" name="es_from_name" value="<?php echo esc_attr( $from_name ); ?>" required
class="es_from_name block w-full mt-1 text-sm transition duration-150 ease-in-out rounded-md shadow-sm form-input sm:leading-5"
placeholder="Name" autocomplete="nope"
/>
</div>
<div class="w-full sm:w-1/2">
<label for="es_from_email"><?php echo esc_html__( '"From" email: ', 'email-subscribers' ); ?></label>
<input type="email"
id="es_from_email" name="es_from_email" value="<?php echo esc_attr( $from_email ); ?>" required
class="es_from_email es_onboard_email block w-full mt-1 text-sm transition duration-150 ease-in-out rounded-md shadow-sm form-input sm:leading-5"
placeholder="name@domain.com" autocomplete="nope"
/>
</div>
</div>
</div>
<div class="">
<h3 class="text-base font-medium text-gray-900">
<?php echo esc_html__( 'Email delivery testing:', 'email-subscribers' ); ?>
</h3>
<p class="text-sm leading-6 pt-1">
<?php
echo esc_html__(
'Add a couple of your own email addresses below. We will add
them to your audience lists.',
'email-subscribers'
);
?>
</p>
<div
class="my-2 space-y-2 sm:my-0 sm:space-y-0 sm:space-x-4 sm:flex sm:items-center"
>
<div class="w-full sm:w-1/2">
<input type="email"
name="es_test_email[]"
required
class="es_email es_onboard_email block w-full text-sm transition duration-150 ease-in-out rounded-md shadow-sm form-input sm:leading-5"
placeholder="name@domain.com" autocomplete="nope"
/>
</div>
<div class="w-full sm:w-1/2">
<input type="email"
name="es_test_email[]"
class="es_email es_onboard_email block w-full text-sm transition duration-150 ease-in-out rounded-md shadow-sm form-input sm:leading-5"
placeholder="name@domain.com" autocomplete="nope"
/>
</div>
</div>
</div>
<div class="space-y-1 leading-5">
<h3 class="text-base font-medium text-gray-900 -mb-0.5"><?php echo esc_html__( 'Your preferences:', 'email-subscribers' ); ?></h3>
<!-- Start-IG-Code -->
<?php if ( ! ES()->is_premium() ) { ?>
<div class="flex pt-1">
<div class="pt-1">
<input
id="es_allow_tracking"
type="checkbox"
checked="checked"
class="w-4 h-4 transition duration-150 ease-in-out form-checkbox"
/>
</div>
<div class="pl-3">
<label for="es_allow_tracking" class="text-sm">
<?php
/* translators: %s. Plugin name. */
echo sprintf( esc_html__( 'Help us to improve %s by opting in to share non-sensitive plugin usage data. No personal data is tracked or stored.', 'email-subscribers' ), '<strong>Icegram Express</strong>' );
?>
</label>
</div>
</div>
<?php } ?>
<div class="flex">
<div class="pt-1">
<input
id="es_post_notification_preference"
type="checkbox"
checked="checked"
class="w-4 h-4 transition duration-150 ease-in-out form-checkbox"
/>
</div>
<div class="pl-3">
<label for="es_post_notification_preference" class="text-sm">
<?php
echo esc_html__(
'I want to send email notifications when new blog posts are
published',
'email-subscribers'
);
?>
</label>
</div>
</div>
<!-- End-IG-Code -->
<div class="flex">
<div class="pt-1">
<input
id="ig_es_enable_double_optin"
type="checkbox"
checked="checked"
class="w-4 h-4 transition duration-150 ease-in-out form-checkbox"
/>
</div>
<div class="pl-3">
<label for="ig_es_enable_double_optin" class="text-sm">
<?php
echo esc_html__(
'Enable double opt-in (people have to click a confirmation
link in email before they\'re subscribed)',
'email-subscribers'
);
?>
</label>
</div>
</div>
<div class="flex">
<div class="pt-1">
<input
id="ig_es_add_gdpr_consent"
type="checkbox"
class="w-4 h-4 transition duration-150 ease-in-out form-checkbox"
/>
</div>
<div class="pl-3">
<label for="ig_es_add_gdpr_consent" class="text-sm">
<?php echo esc_html__( 'Add GDPR consent in subscription forms', 'email-subscribers' ); ?>
</label>
</div>
</div>
</div>
</div>
</form>
</div>
<div class="px-4 py-3 text-right bg-gray-50 md:px-8 -mt-5">
<button
type="button" id="es-button-send"
class="es-button-send relative inline-flex items-center px-4 py-2 text-base font-medium leading-5 text-white bg-indigo-800 border border-transparent rounded-md hover:bg-indigo-600 focus:outline-none focus:shadow-outline"
>
<?php echo esc_html__( 'Ok, set it up for me →', 'email-subscribers' ); ?>
</button>
</div>
</div>
</div>
</section>
</div>
<div class="sp es-delivery-check<?php echo esc_attr( 2 === $onboarding_step ? ' active' : '' ); ?>" style="<?php echo esc_attr( 2 === $onboarding_step ? '' : 'display:none' ); ?>">
<section class="mx-auto my-6 sm:my-7">
<div
class="w-full h-full overflow-hidden bg-white lg:flex md:rounded-lg md:shadow-xl md:mx-auto lg:max-w-3xl xl:max-w-4xl">
<div class="relative hidden w-1/4 overflow-hidden bg-pink-200 lg:block">
<svg
class="absolute object-cover w-full animate animate-pulse top-8"
viewBox="0 0 128 172"
xmlns="http://www.w3.org/2000/svg"
>
<g fill="none" stroke="#fff" stroke-width="20">
<circle cx="64" cy="84" opacity=".25" r="70"></circle>
<circle cx="64" cy="84" opacity=".15" r="35"></circle>
</g>
</svg>
<img
src="<?php echo esc_url( ES_PLUGIN_URL . 'lite/admin/images/anne-working.svg' ); ?>"
class="absolute object-cover w-full px-3 bottom-2"
/>
</div>
<div class="flex-1">
<div style="height:33.2rem" class="p-4 md:px-8 md:py-5">
<span class="text-xs text-gray-400"><?php echo esc_html__( 'STEP 2 of 3', 'email-subscribers' ); ?> </span>
<h3
class="mb-2 text-2xl font-bold leading-snug text-gray-800 sm:text-3xl"
>
<?php echo esc_html__( 'Hold on, personalizing for you...', 'email-subscribers' ); ?>
</h3>
<div class="space-y-4 text-gray-800">
<p class="text-base">
<?php
echo esc_html__(
'We\'ll create audience lists, campaigns and a subscription form.
And then try to send a test email to make sure everything works.',
'email-subscribers'
);
?>
</p>
<ul class="space-y-4 text-sm font-medium leading-5 text-gray-400">
<li id="ig-es-onboard-create_default_lists" class="flex items-start space-x-3 group">
<div class="relative pt-1 flex items-center justify-center flex-shrink-0 w-5 h-5">
<span class="animate-ping absolute w-4 h-4 bg-indigo-200 rounded-full"></span>
<span class="relative block w-2 h-2 bg-indigo-700 rounded-full"></span>
</div>
<p class="text-sm text-indigo-800">
<?php
/* translators: 1: Main List 2: Test List */
echo sprintf( esc_html__( 'Creating audience lists - %1$s &amp; %2$s', 'email-subscribers' ), esc_html( IG_MAIN_LIST ), esc_html( IG_DEFAULT_LIST ) );
?>
</p>
</li>
<li id="ig-es-onboard-create_contacts_and_add_to_list" class="flex items-start space-x-3 group">
<div
class="relative pt-1 flex items-center justify-center flex-shrink-0 w-5 h-5"
>
<span
class="block w-2 h-2 transition duration-150 ease-in-out bg-gray-300 rounded-full group-hover:bg-gray-400 group-focus:bg-gray-400"
></span>
</div>
<p class="text-sm">
<?php echo esc_html__( 'Subscribing you and ', 'email-subscribers' ); ?>
<span id="es_onboarding_emails_list"></span>
<?php echo esc_html__( ' to these lists', 'email-subscribers' ); ?>
</p>
</li>
<li id="ig-es-onboard-create_default_newsletter_broadcast" class="flex items-start space-x-3 group">
<div
class="relative pt-1 flex items-center justify-center flex-shrink-0 w-5 h-5"
>
<span
class="block w-2 h-2 transition duration-150 ease-in-out bg-gray-300 rounded-full group-hover:bg-gray-400 group-focus:bg-gray-400"
></span>
</div>
<p class="text-sm"><?php echo esc_html__( 'Creating a campaign - newsletter broadcast test', 'email-subscribers' ); ?></p>
</li>
<!-- Start-IG-Code -->
<li id="ig-es-onboard-create_default_post_notification" class="flex items-start space-x-3 group" id="es_create_post_notification">
<div
class="relative pt-1 flex items-center justify-center flex-shrink-0 w-5 h-5"
>
<span
class="block w-2 h-2 transition duration-150 ease-in-out bg-gray-300 rounded-full group-hover:bg-gray-400 group-focus:bg-gray-400"
></span>
</div>
<p class="text-sm"><?php echo esc_html__( 'Creating a campaign - new post notification test', 'email-subscribers' ); ?></p>
</li>
<!-- End-IG-Code -->
<li id="ig-es-onboard-create_default_subscription_form" class="flex items-start space-x-3 group">
<div
class="relative pt-1 flex items-center justify-center flex-shrink-0 w-5 h-5"
>
<span
class="block w-2 h-2 transition duration-150 ease-in-out bg-gray-300 rounded-full group-hover:bg-gray-400 group-focus:bg-gray-400"
></span>
</div>
<p class="text-sm"><?php echo esc_html__( 'Creating a subscription opt-in form for the Main list', 'email-subscribers' ); ?></p>
</li>
<li id="ig-es-onboard-add_widget_to_sidebar" class="flex items-start space-x-3 group">
<div
class="relative pt-1 flex items-center justify-center flex-shrink-0 w-5 h-5"
>
<span
class="block w-2 h-2 transition duration-150 ease-in-out bg-gray-300 rounded-full group-hover:bg-gray-400 group-focus:bg-gray-400"
></span>
</div>
<p class="text-sm">
<?php
echo esc_html__(
'Adding the form to an active sidebar, so you can show it on
the site',
'email-subscribers'
);
?>
</p>
</li>
</ul>
</div>
</div>
<div class="px-4 py-3 text-right bg-gray-50 md:px-8">
<button
type="button"
id="es_delivery_check_processed"
class="relative inline-flex items-center px-4 py-2 text-base font-medium leading-5 text-white bg-indigo-800 border border-transparent rounded-md hover:bg-indigo-600 focus:outline-none focus:shadow-outline"
data-error-text="<?php echo esc_attr__( 'Continue anyway →', 'email-subscribers' ); ?>"
>
<?php echo esc_html__( 'All good, let\'s finish up →', 'email-subscribers' ); ?>
</button>
</div>
</div>
</section>
</div>
<div class="sp es-onboard-success<?php echo esc_attr( 3 === $onboarding_step ? ' active' : '' ); ?>" style="<?php echo esc_attr( 3 === $onboarding_step ? '' : 'display:none' ); ?>">
<section class="mx-auto my-6 sm:my-7" >
<div class="w-full overflow-hidden bg-white lg:flex md:rounded-lg md:shadow-xl md:mx-auto lg:max-w-3xl xl:max-w-4xl">
<div class="relative hidden w-1/4 overflow-hidden bg-green-300 lg:block">
<svg
class="absolute object-cover w-full text-white top-8"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2.5"
d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"
opacity="0.25"
></path>
</svg>
<img
src="<?php echo esc_url( ES_PLUGIN_URL . 'lite/admin/images/anne-welcome.svg' ); ?>"
class="absolute object-cover w-full px-3 lg:top-1/2 xl:top-1/3"
/>
</div>
<div class="flex-1">
<form id="ig-es-onboarding-final-steps-form">
<div style="height:33.2rem" class="p-4 md:px-8 md:py-5">
<span class="text-xs text-gray-400"><?php echo esc_html__( 'STEP 3 of 3', 'email-subscribers' ); ?> </span>
<h3
class="mb-2 text-2xl font-bold leading-snug text-gray-800 sm:text-3xl"
>
<?php echo esc_html__( 'Done! Now speed up your success!', 'email-subscribers' ); ?>
</h3>
<input type="hidden" id="sign-up-list" name="list[]" value="<?php echo esc_attr( ES()->get_es_optin_list_hash() ); ?>"/>
<input type="hidden" id="sign-up-form-source" name="form-source" value="es-onboarding"/>
<div class="space-y-3 text-gray-800">
<div class="space-y-5 text-gray-800">
<p class="text-base -mb-1"><?php echo esc_html__( 'Setup is complete. Couple of things to support you...', 'email-subscribers' ); ?>
</p>
<!-- Start-IG-Code -->
<div class="">
<?php
if ( ! ES()->is_premium() ) {
?>
<p class="pt-2 text-sm leading-6">
<?php
/* translators: %d. Current year */
echo sprintf( esc_html__( 'Get free WordPress Email Marketing Masterclass %d Course and grow your audience.', 'email-subscribers' ), esc_html( $current_year ) );
?>
</p>
<?php
} else {
?>
<h3 class="text-base font-medium text-gray-900">
<?php
/* translators: %d. Current year */
echo sprintf( esc_html__( 'Free course: WordPress Email Marketing Masterclass %d', 'email-subscribers' ), esc_html( $current_year ) );
?>
</h3>
<p class="pt-2 text-sm leading-6">
<?php
echo esc_html__(
'How to build your list, make sure your email reach your
audience and influence your audience.',
'email-subscribers'
);
?>
</p>
<?php
}
?>
<div
class="pt-1 space-y-2 text-sm sm:space-y-0 sm:space-x-4 sm:flex sm:items-center"
>
<div class="w-full sm:w-1/2">
<input
id="ig-es-sign-up-name"
class="block w-full mt-1 text-sm transition duration-150 ease-in-out rounded-md shadow-sm form-input sm:leading-5"
placeholder="<?php echo esc_html__('Your name', 'email-subscribers' ); ?>"
/>
</div>
<div class="w-full sm:w-1/2">
<input
type="email"
id="ig-es-sign-up-email"
class="es_onboard_email block w-full mt-1 text-sm transition duration-150 ease-in-out rounded-md shadow-sm form-input sm:leading-5"
placeholder="<?php echo esc_html__('Your email', 'email-subscribers' ); ?>"
value="<?php echo esc_attr( $admin_email ); ?>"
/>
</div>
</div>
</div>
<!-- End-IG-Code -->
<div class="space-y-1">
<h3 class="text-base font-medium text-gray-900 pt-2">
<?php echo esc_html__( 'Recommended next steps:', 'email-subscribers' ); ?>
</h3>
<ul class="ml-4 space-y-2 text-sm list-disc pt-1.5">
<li><?php echo esc_html__( 'Review "Settings" and make adjustments if needed', 'email-subscribers' ); ?></li>
<li><?php echo esc_html__( 'Import your contacts, create new campaigns and test', 'email-subscribers' ); ?></li>
<!-- Start-IG-Code -->
<li>
<?php echo esc_html__( 'Review', 'email-subscribers' ); ?>
<a
class="text-indigo-800 hover:underline"
href="https://www.icegram.com/knowledgebase_category/email-subscribers/"
target="_blank"
><?php echo esc_html__( 'documentation', 'email-subscribers' ); ?></a
>
<?php echo esc_html__( 'if you need any help', 'email-subscribers' ); ?>
</li>
<!-- End-IG-Code -->
</ul>
</div>
</div>
</div>
</div>
</form>
<div class="px-4 py-3 text-right bg-gray-50 md:px-8">
<button
type="button" id="ig-es-complete-onboarding"
class="relative inline-flex items-center px-4 py-2 text-base font-medium leading-5 text-white bg-indigo-800 border border-transparent rounded-md hover:bg-indigo-600 focus:outline-none focus:shadow-outline">
<span class="mr-1"><?php echo esc_html__( 'Complete setup &amp; take me to "Dashboard" ', 'email-subscribers' ); ?></span>
<span class="es-btn-arrow"> → </span>
<svg style="display:none" class="es-btn-loader h-4 w-4 text-white" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
<path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
</svg>
</button>
</div>
</div>
</div>
</section>
</div>
<div class="sp es-popup-message" style="display:none">
<div class="fixed flex inset-0 overflow-x-hidden overflow-y-auto z-50 flex justify-center w-full h-full" style="background-color: rgba(0,0,0,.5);">
<section class="absolute flex justify-center mx-auto md:mx-auto lg:mx-auto my-12 sm:my-12 lg:my-24">
<div
class="inline-block overflow-hidden text-left align-bottom transition-all transform bg-white rounded-lg shadow-xl sm:my-8 sm:align-middle sm:max-w-lg sm:w-full"
role="dialog"
aria-modal="true"
aria-labelledby="modal-headline"
>
<div class="px-4 pt-5 pb-4 bg-white sm:p-6 sm:pb-4">
<div class="sm:flex sm:items-start">
<div class="flex items-center justify-center flex-shrink-0 w-12 h-12 mx-auto bg-red-100 rounded-full sm:mx-0 sm:h-10 sm:w-10">
<svg
class="w-6 h-6 text-red-600"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"
></path>
</svg>
</div>
<div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left">
<h3 class="text-lg font-medium leading-6 text-gray-900" id="modal-headline">
<?php echo esc_html__( 'Email sending did not work', 'email-subscribers' ); ?>
</h3>
<div class="mt-2 space-y-4 leading-5 text-gray-800">
<div>
<p class="font-medium text-sm text-gray-900">
<?php echo esc_html__( 'Here\'s the error we encountered:', 'email-subscribers' ); ?>
</p>
<div class="px-1 py-0.5 text-sm font-mono message">
[error-message]
</div>
</div>
<p class="additional-message text-sm">
</p>
<p class="error-message font-medium text-sm">
<?php
echo esc_html__(
'We recommend you solve this problem quickly after completing
the setup. Do make sure emails are getting delivered before
you send any real campaigns.',
'email-subscribers'
);
?>
</p>
</div>
</div>
</div>
</div>
<div class="px-4 py-3 bg-gray-50 sm:px-6 sm:flex sm:flex-row-reverse">
<span class="flex w-full rounded-md shadow-sm sm:ml-3 sm:w-auto">
<button
type="button"
id="es-delivery-error-button"
class="es-delivery-error-button relative inline-flex items-center px-4 py-2 text-base font-medium leading-5 text-white bg-indigo-800 border border-transparent rounded-md hover:bg-indigo-600 focus:outline-none focus:shadow-outline"
>
<?php echo esc_html__( ' Understood, continue for now →', 'email-subscribers' ); ?>
</button>
</span>
</div>
</div>
</section>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,4 @@
First Name,Last Name,Email
John,Doe,john@example.com
Mark,T,mark.t@example.com
Tracy,Thomas,tracy@example.com
1 First Name Last Name Email
2 John Doe john@example.com
3 Mark T mark.t@example.com
4 Tracy Thomas tracy@example.com