<?php
/**
 * @author William Sergio Minossi
 * @copyright 2017
 */
   if(memory_status()) 
    { 
?>
      <div id="boatdealer-status-box">
        <div class="boatdealer-block-title">
          Optional
      </div>   
      <div id="boatdealer-help-status">
      <?php
        if($activated == '1' )
        {
           echo '<img alt="aux" id="connect_status" src="'.esc_url(get_template_directory_uri()).'/images/pluggedx64.png" />';
           echo '<div class= "boatdealer_status_row"> Opt-in: <font color="green">OK</font></div>';
           echo '</div>';
            ?> 
            <div id="boatdealer-connect-tip">
            Thank you for help us improve our theme. 
            You will get access to one <strong>free</strong> box, in this page, 
            to send messages to our support for 30 days (look for Open Support Form Button) and get <strong>automatic</strong> updates for Boat Dealer Theme for free.
          </div> 
          <div id="boatdealer-update-theme">
            <form id="boatdealer-update-theme2" action="<?php get_theme_file_uri()?>/wp-admin/themes.php?page=boat_dealer" method="post" target="_self" >
                <?php      
                if($boatdealer_update_theme == '1')
                 $checked = 'checked';
                else
                  $checked = '';
                echo '<input id="boatdealer_update_theme3" name="boatdealer_update_theme" type="checkbox" '.$checked. ' value="yes" />  Check to enable theme automatic update.';
                ?>
            </form>
          </div>       
          <?php
        }
        else
        {
             echo '<img alt="aux" id="connect_status" src="'.esc_url(get_template_directory_uri()).'/images/unpluggedx64.png" />';
             echo '<div class= "boatdealer_status_row"> Opt-in: <font color="red">Not Yet!</font></div>';
             echo '<a href="#" id="boatdealer-btn-connect-now" class="button button-primary">Opt-in Now</a>';
             echo '<img alt="aux" src="/wp-admin/images/wpspin_light-2x.gif" id="boatdealer-imagewait" style="visibility:hidden" />';
             echo '</div>';
          ?>
          <div id="boatdealer-connect-tip">
            Please help us improve our theme. 
            Click Opt-in and let us know about you and your site (some not sensitive data about your usage of the theme 
            will be sent to us).
            You will get access to one <strong>free</strong> box, in this page, 
            to send messages to our support for 30 days and get <strong>automatic</strong> updates for Boat Dealer Theme for free.
          </div> 
            <input type="hidden" id="version2" name="version" value="<?php echo $themeversion;?>" />
		    <input type="hidden" id="email2" name="email" value="<?php echo $email;?>" />
		    <input type="hidden" id="username2" name="username" value="<?php echo $username;?>" />
		    <input type="hidden" id="produto2" name="produto" value="boatdealer" />
		    <input type="hidden" id="wpversion2" name="wpversion" value="<?php echo $wpversion;?>" />
          <?php    
        }
        ?>
   </div> 
   <?php } // end connect div ?>
   <div id="boatdealer-steps3">
       <div class="boatdealer-block-title"> 
           <img alt="aux" src="<?php echo esc_url(get_template_directory_uri())?>/images/3steps.png" />
           <br />   <br />
           Follow this 3 steps after install the theme:
       </div>
    <div class="boatdealer-help-container1">
        <div class="boatdealer-help-column boatdealer-help-column-1">
        <img alt="aux" src="<?php echo esc_url(get_template_directory_uri())?>/images/step1.png" />
          <h3>Install Plugins</h3>
          After activate the theme, will show up top of your desktop:
           <em>Begin Installing Plugins</em>.
           <br />
          Just click over to install and activate all the required plugins.
           <br />
           Free Plugins included:
           <br />
           - Boat Dealer Plugin
           <br />
           - Anti Hacker Protection 
           <br />
           - Slider
           <br />
           - Shortcodes
           <br />
           - More ....
           <br />
       </div> <!-- "Column1">  -->      
        <div class="boatdealer-help-column boatdealer-help-column-2">
            <img alt="aux" src="<?php echo esc_url(get_template_directory_uri())?>/images/step2.png" />
            <h3>Install Demo Data (optional)</h3>
            To get the same look and feel of the demo site, install the demo data (only if you have now a blank website).
            <br />
            If necessary, to clear all data of your site and begin from fresh start, 
            we suggest to use this free plugin:
            Reset WP 
            <br /><br />             
            To use one click install demo feature, go to:
            <br />
            <strong>dashboard => Appearance => Import Demo Data</strong>
            <br /><br />
        </div> <!-- "columns 2">  --> 
       <div class="boatdealer-help-column boatdealer-help-column-3">
            <img alt="aux" src="<?php echo esc_url(get_template_directory_uri())?>/images/step3.png" />
            <h3>Theme Management</h3>  
            To manage the theme, click Appearance => Customize at the left menu or click the button bellow...
            <br /><br />   
            <a href="<?php echo get_site_url()?>/wp-admin/customize.php?return=%2Fwp-admin%2Findex.php" class="button button-primary">Theme Management</a>
        </div> <!-- "Column 3">  --> 
    </div> <!-- "Container 1 " -->    
   </div> <!-- "boatdealer-steps3"> -->
   <div id="boatdealer-services3">
     <div class="boatdealer-block-title">
      Help, Support, Troubleshooting:
    </div>
    <div class="boatdealer-help-container1">
        <div class="boatdealer-help-column boatdealer-help-column-1">
           <img alt="aux" src="<?php echo esc_url(get_template_directory_uri())?>/images/support.png" />
          <h3>Help and more tips</h3>
          Just click the HELP button at top right corner this page or click Open Help.
          <br />
          If you Opt-In, you are qualified to contact our support directly from this page for 30 days. It is not necessary leave this page . 
          <br /><br />
          <?php 
          if( memory_status())
            echo '<a href="#" id="boatdealer-open-help" class="button button-primary">Open Help</a>';
          else
            echo '<a href="#" id= "nohelp" class="button button-primary">Help</a>';
          ?>
          &nbsp;&nbsp;&nbsp;&nbsp;
          <?php 
          if( memory_status())
            echo '<a href="#" id="boatdealer-send-support" class="button button-primary">Open Support Form</a>';
          else
            echo '<a href="#" id= "nosupport" class="button button-primary">Support</a>';
          ?>
          <br /><br />
       </div> <!-- "Column1">  -->   
        <div class="boatdealer-help-column boatdealer-help-column-2">
            <img alt="aux" src="<?php echo esc_url(get_template_directory_uri())?>/images/service_configuration.png" />
          <h3>OnLine Guide, Support, Demo Video, Faq...</h3>  
          You will find our complete and updated OnLine guide, demo video, faqs page, link to support page and more usefull stuff in our site.
          <br /><br />
          <?php $site = 'http://boatdealerthemes.com'; ?>
         <a href="<?php echo $site;?>" class="button button-primary">Go</a>
         &nbsp;&nbsp;&nbsp;&nbsp;
         <a href="<?php echo $site;?>/premium" class="button button-primary">Upgrade to Premium</a>
        </div> <!-- "columns 2">  --> 
       <div class="boatdealer-help-column boatdealer-help-column-3">
         <img alt="aux" src="<?php echo esc_url(get_template_directory_uri()) ?>/images/system_health.png" />
          <h3>Troubleshooting Guide</h3>  
          Use old WordPress version, Low memory, some plugin with Javascript error, wrong permalink settings are some possible problems. Read this and fix it quickly!
          <br /><br />
          <a href="http://siterightaway.net/troubleshooting/" class="button button-primary">Troubleshooting Page</a>
       </div> <!-- "Column 3">  --> 
    </div> <!-- "Container1 ">  -->   
   </div> <!-- "services"> -->