<?php

if (!defined('WPINC')) {
    die;
}

?>

<div class="signals-tile" id="pro">
    <div class="signals-tile-body">
        <div class="signals-tile-title">Coming Soon &amp; Maintenance Mode PRO - Save time &amp; money when building pages</div>
        <p>PRO version of the plugin gives you access to numerous <a href="<?php echo csmm_generate_web_link('pro-header', '/features/'); ?>" target="_blank">advanced features</a> including best-in-class SEO options, gallery of over a million images, 100+ themes, 10+ page modules, and
            refined access control options.</p>

        <div class="signals-section-content">
            <?php
            if (csmm_chat_available()) {
            ?>
                <p class="below-pricing">Our agents are online and available for any questions you have about the PRO version! <a title="Chat with our support agents" style="margin: 0 0 0 15px;" href="#" class="signals-btn csmm-open-chat"><span style="font-size: 19px;" class="dashicons dashicons-format-chat"></span> <strong>Chat with Live Support</strong></a></p>
            <?php
            }
            ?>

            <table id="features-table">
                <tr>
                    <td>
                        <div class="home-box"><span>150+ Pixel Perfect Themes</span>
                            <p>Professional, easily editable <a href="#themes" class="csmm-change-tab">themes</a> that fit and adjust to any brand will enable you
                                to build a page for your online or offline business in minutes. 4 new themes are added every month.</p>
                        </div>
                    </td>
                    <td>
                        <div class="home-box"><span>Over Two Million Premium HD Images</span>
                            <p>Are you still googling for images? Good ones are costly, and others are low-res with watermarks? With our image library, the only
                                thing you have to do is enter a search term and pick an image. Five seconds of work.</p>
                        </div>
                    </td>
                    <td>
                        <div class="home-box"><span>Advanced SEO Preview &amp; Analysis</span>
                            <p>Our SEO analytics tool provides actionable advice based on over 30 SEO signals analyzed on your page. With a bit of optimization,
                                you'll be on the first position in search results in no time.</p>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="home-box"><span>Drag &amp; Drop Builder that Doesn't Frustrate</span>
                            <p>Nobody has time to read a manual just to use a drag&amp;drop builder because it has 50% options that nobody needs. Our builder has
                                only the options you need. It's fast and dead simple to use!</p>
                        </div>
                    </td>
                    <td>
                        <div class="home-box"><span>Advanced Access Rules</span>
                            <p>Want to show off the new website to a client? But you know they are not very "technical" and need a simple solution? Just send them a
                                secret access link, and they can view the site while it's still in coming soon mode.</p>
                        </div>
                    </td>
                    <td>
                        <div class="home-box"><span>Connect any Email, CRM or Webinar System</span>
                            <p>Are you using a less popular email service provider, CRM or webinar platform that other plugins don't support? Well, we do support
                                them! Our universal autoresponder system works with any 3rd party service.</p>
                        </div>
                    </td>
                </tr>
            </table>

            <p class="below-pricing">Find out more about the <b>PRO features</b> on the plugin's site - <a href="<?php echo csmm_generate_web_link('find-out-more'); ?>" target="_blank">comingsoonwp.com</a></p>

            <hr id="pricing-table-above">

            <table id="pricing-table">
                <colgroup></colgroup>
                <colgroup></colgroup>
                <colgroup></colgroup>
                <tbody>
                    <tr>
                        <td>
                            <h3>Lifetime<br>Agency License</h3>
                            <span>Best value for money</span>
                        </td>
                        <td>
                            <h3>Lifetime<br>PRO License</h3>
                            <span>For single site owners who like paying only once</span>
                            <div class="corner-ribbon">Most<br>Popular</div>
                        </td>
                        <td>
                            <h3>Personal<br>PRO License</h3>
                            <span>Pay only for the time you use the plugin</span>
                        </td>
                    </tr>
                    <tr>
                        <td>One Time Payment</td>
                        <td>One Time Payment</td>
                        <td>Monthly / Yearly Payment</td>
                    </tr>
                    <tr>
                        <td>100 Client or Personal Sites (sites can be changed)</td>
                        <td>1 Personal or Client Site</td>
                        <td>1 Personal or Client Site</td>
                    </tr>
                    <tr>
                        <td>Dashboard for managing sites &amp; licenses</td>
                        <td>Dashboard for managing sites &amp; licenses</td>
                        <td>Dashboard for managing sites &amp; licenses</td>
                    </tr>
                    <tr>
                        <td><b>Remote sites stats</b></td>
                        <td class="not-available">n/a</td>
                        <td class="not-available">n/a</td>
                    </tr>
                    <tr>
                        <td><b>White-Label License Mode</b></td>
                        <td class="not-available">n/a</td>
                        <td class="not-available">n/a</td>
                    </tr>
                    <tr>
                        <td><b>Full Rebranding Rights</b></td>
                        <td class="not-available">n/a</td>
                        <td class="not-available">n/a</td>
                    </tr>
                    <tr>
                        <td>Lifetime Priority Support &amp; Updates</td>
                        <td>Lifetime Support &amp; Updates</td>
                        <td>1 Year/Month of Support &amp; Updates</td>
                    </tr>
                    <tr>
                        <td>Advanced SEO Preview &amp; Anaylsis</td>
                        <td>Advanced SEO Preview &amp; Anaylsis</td>
                        <td>Advanced SEO Preview &amp; Anaylsis</td>
                    </tr>
                    <tr>
                        <td>2+ Million Hi-Resolution Images</td>
                        <td>2+ Million Hi-Resolution Images</td>
                        <td>2+ Million Hi-Resolution Images</td>
                    </tr>
                    <tr>
                        <td>75+ PRO Templates</td>
                        <td>75+ PRO Templates</td>
                        <td>75+ PRO Templates</td>
                    </tr>
                    <tr>
                        <td><b>75+ Extra Agency Templates = 150+ Templates</b></td>
                        <td class="not-available">n/a</td>
                        <td class="not-available">n/a</td>
                    </tr>
                    <tr>
                        <td>10+ Page Modules</td>
                        <td>10+ Page Modules</td>
                        <td>10+ Page Modules</td>
                    </tr>
                    <tr>
                        <td>All Current &amp; Future Features Included</td>
                        <td>All Current &amp; Future Features Included</td>
                        <td>All Current &amp; Future Features Included</td>
                    </tr>
                    <tr>
                        <?php
                        $meta = csmm_get_meta();
                        $promo_delta = HOUR_IN_SECONDS;
                        $promo_delta2 = DAY_IN_SECONDS * 28;
                        if ((time() - $meta['first_install_gmt']) < $promo_delta) {
                        ?>
                            <td>
                                <a data-gumroad-single-product="true" class="promo-button go-to-license-key" href="https://gum.co/csmm-agency-lifetime/welcome/?wanted=true&plugin_info=CSMM+v<?php echo csmm_get_plugin_version(); ?>" target="_blank">BUY NOW - $60 OFF<br><del>$199</del> $139<br><span style="font-weight: normal;">Discount ends in <span class="mm-countdown" data-endtime="<?php echo $meta['first_install_gmt'] + $promo_delta; ?>" style="">59 min</span></span></a>
                                <span class="instant-download"><span class="dashicons dashicons-yes"></span> Secure payment<br><span class="dashicons dashicons-yes"></span> Instant activation from WordPress admin<br><span class="dashicons dashicons-yes"></span>
                                    100% No-Risk Money Back Guarantee</span>
                            </td>
                            <td>
                                <a data-gumroad-single-product="true" class="promo-button go-to-license-key" href="https://gum.co/csmm-pro-lifetime/welcome/?wanted=true&plugin_info=CSMM+v<?php echo csmm_get_plugin_version(); ?>" target="_blank">BUY NOW - 25% OFF<br><del>$79</del> $59<br><span style="font-weight: normal;">Discount ends in <span class="mm-countdown" data-endtime="<?php echo $meta['first_install_gmt'] + $promo_delta; ?>" style="">59 min</span></span></a>
                                <span class="instant-download"><span class="dashicons dashicons-yes"></span> Secure payment<br><span class="dashicons dashicons-yes"></span> Instant activation from WordPress admin<br><span class="dashicons dashicons-yes"></span>
                                    100% No-Risk Money Back Guarantee</span>
                            </td>
                            <td>
                                <a data-gumroad-single-product="true" class="promo-button go-to-license-key" href="https://gum.co/csmm-pro-yearly/welcome/?monthly=true&plugin_info=CSMM+v<?php echo csmm_get_plugin_version(); ?>" target="_blank">BUY NOW - 25% OFF<br><del>$7.99</del> $5.99<small> /month</small><br><span style="font-weight: normal;">Discount ends in <span class="mm-countdown" data-endtime="<?php echo $meta['first_install_gmt'] + $promo_delta; ?>" style="">59 min</span></span></a>
                                <span class="instant-download"><span class="dashicons dashicons-yes"></span> Secure payment<br><span class="dashicons dashicons-yes"></span> Instant activation from WordPress admin<br><span class="dashicons dashicons-yes"></span>
                                    100% No-Risk Money Back Guarantee</span>
                            </td>
                        <?php
                        } elseif ((time() - $meta['first_install_gmt']) > $promo_delta2) {
                        ?>
                            <td>
                                <a data-gumroad-single-product="true" class="promo-button go-to-license-key" href="https://gum.co/csmm-agency-lifetime/olduser/?wanted=true&plugin_info=CSMM+v<?php echo csmm_get_plugin_version(); ?>" target="_blank">BUY NOW - $60 OFF<br><del>$199</del> $139</a>
                                <span class="instant-download"><span class="dashicons dashicons-yes"></span> Secure payment<br><span class="dashicons dashicons-yes"></span> Instant activation from WordPress admin<br><span class="dashicons dashicons-yes"></span>
                                    100% No-Risk Money Back Guarantee</span>
                            </td>
                            <td>
                                <a data-gumroad-single-product="true" class="promo-button go-to-license-key" href="https://gum.co/csmm-pro-lifetime/olduser/?wanted=true&plugin_info=CSMM+v<?php echo csmm_get_plugin_version(); ?>" target="_blank">BUY NOW - 25% OFF<br><del>$79</del> $59</a>
                                <span class="instant-download"><span class="dashicons dashicons-yes"></span> Secure payment<br><span class="dashicons dashicons-yes"></span> Instant activation from WordPress admin<br><span class="dashicons dashicons-yes"></span>
                                    100% No-Risk Money Back Guarantee</span>
                            </td>
                            <td>
                                <a data-gumroad-single-product="true" class="promo-button go-to-license-key" href="https://gum.co/csmm-pro-yearly/olduser/?monthly=true&plugin_info=CSMM+v<?php echo csmm_get_plugin_version(); ?>" target="_blank">BUY NOW - 25% OFF<br><del>$7.99</del> $5.99<small> /month</small></a>
                                <span class="instant-download"><span class="dashicons dashicons-yes"></span> Secure payment<br><span class="dashicons dashicons-yes"></span> Instant activation from WordPress admin<br><span class="dashicons dashicons-yes"></span>
                                    100% No-Risk Money Back Guarantee</span>
                            </td>
                        <?php
                        } else {
                        ?>
                            <td>
                                <a data-gumroad-single-product="true" class="promo-button go-to-license-key" href="https://gum.co/csmm-agency-lifetime/?wanted=true&plugin_info=CSMM+v<?php echo csmm_get_plugin_version(); ?>" target="_blank">BUY
                                    NOW<br>$199</a>
                                <span class="instant-download"><span class="dashicons dashicons-yes"></span> Secure payment<br><span class="dashicons dashicons-yes"></span> Instant activation from WordPress admin<br><span class="dashicons dashicons-yes"></span>
                                    100% No-Risk Money Back Guarantee</span>
                            </td>
                            <td>
                                <a data-gumroad-single-product="true" class="promo-button go-to-license-key" href="https://gum.co/csmm-pro-lifetime/?wanted=true&plugin_info=CSMM+v<?php echo csmm_get_plugin_version(); ?>" target="_blank">BUY
                                    NOW<br>$79</a>
                                <span class="instant-download"><span class="dashicons dashicons-yes"></span> Secure payment<br><span class="dashicons dashicons-yes"></span> Instant activation from WordPress admin<br><span class="dashicons dashicons-yes"></span>
                                    100% No-Risk Money Back Guarantee</span>
                            </td>
                            <td>
                                <a data-gumroad-single-product="true" class="promo-button go-to-license-key" href="https://gum.co/csmm-pro-yearly/?yearly=true&plugin_info=CSMM+v<?php echo csmm_get_plugin_version(); ?>" target="_blank">BUY
                                    NOW<br>$39<small>/year</small></a>
                                <span class="instant-download"><span class="dashicons dashicons-yes"></span> Secure payment<br><span class="dashicons dashicons-yes"></span> Instant activation from WordPress admin<br><span class="dashicons dashicons-yes"></span>
                                    100% No-Risk Money Back Guarantee</span>
                            </td>
                        <?php
                        }
                        ?>
                    </tr>
                </tbody>
            </table>

            <?php
            if (csmm_chat_available()) {
            ?>
                <p class="below-pricing">Our agents are online and available for any questions you have about the PRO version! <a title="Chat with our support agents" style="margin: 0 0 0 15px;" href="#" class="signals-btn csmm-open-chat"><span style="font-size: 19px;" class="dashicons dashicons-format-chat"></span> <strong>Chat with Live Support</strong></a></p>
            <?php
            }
            ?>
            <hr>


            <div class="signals-form-group" id="tab-pro">
                <?php
                global $csmm_lc;
                echo '<p>The License key is visible on the confirmation screen, right after purchasing. You can also find it in the confirmation email sent to the email address provided on purchase. Or use keys created with the <a href="https://dashboard.comingsoonwp.com/licenses/" target="_blank">license manager</a>.</p>
                    <p>If you don\'t have a license - <a class="scrollto" href="#pricing-table">purchase one now</a>. In case of problems with the license please <a href="' . csmm_generate_web_link('pro-tab-license', '/contact/') . '" target="_blank">contact support</a>.</p>';

                echo '<hr>';
                echo '<p><label for="csmm-license-key">License Key: </label><input class="regular-text" type="text" id="signals_csmm_license_key" value="' . ($csmm_lc->get_license('license_key') != 'keyless' ? esc_attr($csmm_lc->get_license('license_key')) : '') . '" placeholder="12345678-12345678-12345678-12345678">';

                echo '<br><label>Status: </label>';
                if ($csmm_lc->is_active()) {
                    $license_formatted = $csmm_lc->get_license_formatted();
                    echo '<b style="color: #66b317;">Active</b><br>
                    <label>Type: </label>' . $license_formatted['name_long'];
                    echo '<br><label>Valid: </label>' . $license_formatted['valid_until'];

                    $plugin = plugin_basename(CSMM_FILE);
                    $update_url = wp_nonce_url(admin_url('update.php?action=upgrade-plugin&amp;plugin=' . urlencode($plugin)), 'upgrade-plugin_' . $plugin);
                    echo '<p class="center">Thank you for purchasing Coming Soon &amp; Maintenance Mode PRO! <b>Your license has been verified and activated.</b> ';
                    echo 'Please <b>click the button below</b> to update plugin files to the PRO version.</p>';
                    echo '<p><a href="' . esc_url($update_url) . '" class="button button-primary"><b>Update Coming Soon &amp; Maintenance Mode files to PRO &amp; finish the activation</b></a></p>';
                } else { // not active
                    echo '<strong style="color: #ea1919;">Inactive</strong>';
                    if (!empty($csmm_lc->get_license('error'))) {
                        echo '<br><label>Error: </label>' . $csmm_lc->get_license('error');
                    }
                }
                echo '</p>';

                echo '<p>';
                if ($csmm_lc->is_active()) {
                    echo '<a href="#" id="csmm_save_license" data-text-wait="Validating. Please wait." class="signals-btn">Save &amp; Revalidate License</a>';
                    echo '&nbsp; &nbsp;<a href="#" id="csmm_deactivate_license" data-text-wait="Deactivating. Please wait." class="signals-btn signals-btn-red">Deactivate License</a>';
                } else {
                    echo '<a href="#" id="csmm_save_license" data-text-wait="Activating. Please wait." class="signals-btn">Save &amp; Activate License</a>';
                    echo '&nbsp; &nbsp;<a href="#" data-text-wait="Activating. Please wait." class="signals-btn signals-btn-secondary" id="csmm_keyless_activation">Keyless Activation</a>';
                }
                echo '</p>';
                echo '<p class="mb0"><i>By attempting to activate a license you agree to share the following data with <a target="_blank" href="https://www.webfactoryltd.com/">WebFactory Ltd</a>: license key, site URL, site title, site WP version, and Coming Soon &amp; Maintenance Mode (free) version.</i>';
                echo '</p>';
                ?>
            </div>

        </div>
    </div>
</div><!-- #pro -->