<?php
if (!defined('WPINC')) {
    die('Closed');
}
if(!empty($_REQUEST['gs'])): ?>
    <?php if(!class_exists('Event_Magic')): ?>
        <div class="rmlms-promo-wrap rmagic">
            <div  class="rmcontent">
                <div class="rmheader"><?php _e( 'EventPrime', 'registrationmagic-addon' ); ?></div>  

                <div class="rmrow rmlms-banner"><img src="<?php echo RM_IMG_URL; ?>eventprime-hero.jpg"/></div>

                <div class="rmrow rmlms-prag">
                    <div class="rm-ep-promo-content">
                        <?php echo sprintf(__('Planning to publish events calendar on your site? Use EventPrime to create simple or complex events and manage bookings. EventPrime is free and you can get started within minutes. ', 'registrationmagic-addon'),'https://eventprime.net/'); ?>
                    </div>
                </div>
                
                <div class="rmrow rm-ep-promo-features">
                    
                    <ul>
                        <li>Extend power of your RegistrationMagic forms by connecting them to a complete Event Management toolkit.</li>
                        <li>Create/ edit, drag and drop Events directly on the Events Calendar.</li>
                        <li>Manage Event Sites/ Venues (Optional)</li>
                        <li>Manage Event Performers, Keynote Speakers, Hosts etc. (Optional)</li>
                        <li>Powerful widgets to showcase Events and Calendar on your website.</li>
                        <li>Dedicated area for your users to manage bookings.</li>
                        <li>Works with any theme.</li>
                    </ul>
                
                </div>

                <div class="rmlms-button-wrap rmrow"><a class="button" href="<?php echo $data->ep_install_url; ?>" target="_self"><?php _e( 'Install Now', 'registrationmagic-addon' ) ?></a></div>
                <div class="rmrow rm-mg-icon"><img src="<?php echo RM_IMG_URL; ?>mg-icon.png"/></div>
            </div>
        </div>
    <?php else: ?>
        <div class="rmlms-promo-wrap rmagic">
            <div  class="rmcontent">
                <div class="rmheader"><?php _e( 'EventPrime is installed and active.', 'registrationmagic-addon' ); ?></div> 
                <div class="rmrow"><a href="<?php echo admin_url('admin.php?page=event_magic'); ?>" target="_blank"><?php _e('Click here to open EventPrime','registrationmagic-addon'); ?></a></div>
                <div class="rmrow"><a href="https://eventprime.net/starter-guide/" target="_blank"><?php _e('EventPrime Starter Guide','registrationmagic-addon'); ?></a></div>
                <div class="rmrow"><a href="https://registrationmagic.com/boost-registrationmagic-event-froms-eventprime-integration/" target="_blank"><?php _e('Learn what you can do with EventPrime integration','registrationmagic-addon'); ?></a></div>
                <div class="buttonarea"><a href="javascript:void(0);" onclick="window.history.back()">&larr; &nbsp;<?php _e('Back','registrationmagic-addon') ?></a></div>
            </div>
        </div>
    <?php endif; ?>
<?php else: ?>
    <div class="rmlms-promo-wrap rmagic">
        <div  class="rmcontent">
            <div class="rmheader"><?php _e( 'EventPrime is installed and active.', 'registrationmagic-addon' ); ?></div>  
              <div class="rmrow"><a href="<?php echo admin_url('admin.php?page=event_magic'); ?>" target="_blank"><?php _e('Click here to open EventPrime','registrationmagic-addon'); ?></a></div>
                <div class="rmrow"><a href="https://eventprime.net/starter-guide/" target="_blank"><?php _e('EventPrime Starter Guide','registrationmagic-addon'); ?></a></div>
                <div class="rmrow"><a href="https://registrationmagic.com/boost-registrationmagic-event-froms-eventprime-integration/" target="_blank"><?php _e('Learn what you can do with EventPrime integration','registrationmagic-addon'); ?></a></div>
            <div class="buttonarea"><a href="javascript:void(0);" onclick="window.history.back()">&larr; &nbsp;<?php _e('Back','registrationmagic-addon') ?></a></div>
        </div>
    </div>
<?php endif;
