<?php

if(!defined('ABSPATH'))
	exit;

class WPGMAPS_templates {


    /**
     * Includes WP Go Maps V6 Welome Page
     *
     * @return void
     */
    function welcome_page_v6() {
        include(dirname(dirname(__FILE__))."/includes/welcome.php");
    }

    /**
     * Includes credits page
     *
     * @return void
     */
    function welcome_page_credits() {
        include(dirname(dirname(__FILE__))."/includes/credits.php");
    }

    /**
     * Outputs WP Go Maps V5 Welcome Page
     *
     * @return void
     */
    function welcome_page() {
        global $wpgmza_global_array;
?>    


            <div class="wrap about-wrap">

                <h1><?php _e("Welcome to","wp-google-maps"); ?> <strong>WP Go Maps</strong> <small>v6</small></h1>

                <div class="about-text"><?php _e("Amazing maps. Simple interface. Powerful functionality. World Class Support.","wp-google-maps"); ?></div>

                <h3><?php _e("What's new?","wp-google-maps"); ?></h3>

                <div class="feature-section three-col">
                    <div class="col">
                    <h4><?php _e("Store Locator","wp-google-maps"); ?></h4>
                    <p><?php _e("Let users search for products, branches and stores near them","wp-google-maps"); ?></p>
                     <img src='<?php echo WPGMZA_PLUGIN_DIR_URL; ?>base/assets/storelocator.jpg' style="border:1px solid #ccc;" />              
                    </div>
                    <div class="col">
                    <h4><?php _e("Polygons","wp-google-maps"); ?></h4>
                    <p><?php _e("Create service areas or coverage maps with polygons","wp-google-maps"); ?></p>
                     <img src='<?php echo WPGMZA_PLUGIN_DIR_URL; ?>base/assets/polygons.png' style="border:1px solid #ccc;" />              
                    </div>
                    <div class="col">
                    <h4><?php _e("Polylines","wp-google-maps"); ?></h4>
                    <p><?php _e("Create custom routes or outlines using polylines","wp-google-maps"); ?></p>
                     <img src='<?php echo WPGMZA_PLUGIN_DIR_URL; ?>base/assets/polylines.png' style="border:1px solid #ccc;" style='margin-bottom:20px;' />              
                    </div>
                </div>
                
                <hr />
                
                <div class="feature-section normal clear" >
                    <div class="changelog ">
                    
                                <?php if ($wpgmza_global_array['code'] != "100") { 
								
								// NB: GDPR
								?>
                    
                                <!--<h3 style='margin-top:20px;'><?php _e("How did you find out about us?","wp-google-maps"); ?></h3>

                                <div class="feature-section normal">
                                    <form action='' method='POST' name='wpgmaps_feedback'>                                            
                                    <p><ul class="wpgmza_welcome_poll" style="list-style: none outside none;">
                                        <li style="list-style: none outside none;">
                                            <input type="radio" id="wpgmaps_findus_repository" value="repository" name="wpgmaps_findus">
                                            <label for="wpgmaps_search_term"><?php _e("WordPress.org plugin repository","wp-google-maps"); ?></label>
                                            <br /><input type="text" id="wpgmaps_search_term" class="regular-text" style='margin-top:5px; margin-left:40px;'  name="wpgmaps_search_term" placeholder="<?php _e("What search term did you use?","wp-google-maps"); ?>">
                                        </li>
                                        <li style="list-style: none outside none;">
                                            <input type="radio" id="wpgmaps_findus_searchengine" value="search_engine" name="wpgmaps_findus">
                                            <label for="wpgmaps_findus_searchengine"><?php _e("Google or other search engine","wp-google-maps"); ?></label>
                                        </li>
                                        <li style="list-style: none outside none;">
                                            <input type="radio" id="wpgmaps_findus_friend" value="friend" name="wpgmaps_findus">
                                            <label for="wpgmaps_findus_friend"><?php _e("Friend recommendation","wp-google-maps"); ?></label>
                                        </li>
                                        <li style="list-style: none outside none;">
                                            <input type="radio" id="wpgmaps_findus_other" value="other" name="wpgmaps_findus">
                                            <label for="wpgmaps_findus_other"><?php _e("Other","wp-google-maps"); ?></label>
                                            <br /><input type="text" id="wpgmaps_findus_other_url" class="regular-text"  style='margin-top:5px; margin-left:40px;'  name="wpgmaps_findus_other_url" placeholder="<?php _e("Please explain","wp-google-maps"); ?>">

                                        </li>
                                        
                                        
                                    </ul></p>
                                    <input type='submit' name='wpgmza_save_feedback' value='Submit'> 
                                    
                                </form>-->
                                </div>
                                <?php } else { ?>
                                <div class="wpgm_notice_message">
                                    <ul>
                                        <li>
                                            <?php echo esc_html($wpgmza_global_array['message']); ?>
                                        </li>
                                    </ul>
                                </div>
                                <?php } ?>

                        <div class="feature-section three-col">
                            <div class='col'>
                                <h4><?php _e("New to WP Go Maps?","wp-google-maps"); ?></h4>
                                <p><?php _e("You may want to","wp-google-maps"); ?> <a href='https://www.wpgmaps.com/help/' target='_blank' title='Documentation'><?php _e("review our documentation","wp-google-maps"); ?></a> <?php _e("before you get started. If you're a tech-savvy individual, you may skip this step.","wp-google-maps"); ?></p>
                            </div>
                            <div class='col'>
                                <h4><?php _e("Help me!","wp-google-maps"); ?></h4>
                                <p><?php _e("Visit our","wp-google-maps"); ?> <a title='Support Forum' target='_blank' href='http://www.wpgmaps.com/forums/forum/'><?php _e("Support Forum","wp-google-maps"); ?></a> <?php _e("for quick and friendly help. We'll answer your request within 24hours.","wp-google-maps"); ?></p>
                            </div>
                            <div class='col'>
                                <h4><?php _e("Feedback","wp-google-maps"); ?></h4>
                                <p><?php _e("We need you to help us make this plugin better.","wp-google-maps"); ?> <a href='http://www.wpgmaps.com/contact-us/' title='Feedback' target='_BLANK'><?php _e("Send us your feedback","wp-google-maps"); ?></a> <?php _e("and we'll act on it as soon as humanly possible.","wp-google-maps"); ?></p>
                            </div>
                        </div>
                        
                <a class="button-primary" href="admin.php?page=wp-google-maps-menu&override=1"><?php esc_html_e("OK! Let's start","wp-google-maps"); ?></a>

            </div>
                </div>
            </div>
        

    <?php
        
    } 
    
}