<?php

/**
 * @author William Sergio Minossi
 * @copyright 2017
 */

   if(memory_status()) 
    { 
?>
      <div id="kardealer-status-box">
        <div class="kardealer-block-title">
          Optional
      </div>   
         
      <div id="kardealer-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= "kardealer_status_row"> Opt-in: <font color="green">OK</font></div>';
           echo '</div>';
           
            ?> 
            <div id="kardealer-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 Kar Dealer Theme for free.
          </div> 
          
          <div id="kardealer-update-theme">
          
            <form id="kardealer-update-theme2" action="<?php esc_url(get_theme_file_uri())?>/wp-admin/themes.php?page=kar_dealer" method="post" target="_self" >
                <?php      
                if($kardealer_update_theme == '1')
                 $checked = 'checked';
                else
                  $checked = '';
                
                echo '<input id="kardealer_update_theme3" name="kardealer_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= "kardealer_status_row"> Opt-in: <font color="red">Not Yet!</font></div>';
             echo '<a href="#" id="kardealer-btn-connect-now" class="button button-primary">Opt-in Now</a>';
             echo '<img alt="aux" src="/wp-admin/images/wpspin_light-2x.gif" id="kardealer-imagewait" style="visibility:hidden" />';
             echo '</div>';
          ?>
          <div id="kardealer-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 Kar 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="kardealer" />
		    <input type="hidden" id="wpversion2" name="wpversion" value="<?php echo $wpversion;?>" />
          <?php    
        }
        ?>
        
   </div> 
   
   <?php } // end connect div ?>
       
   <div id="kardealer-steps3">
       <div class="kardealer-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="kardealer-help-container1">
        <div class="kardealer-help-column kardealer-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 />
           - Car Dealer Plugin
           <br />
           - Anti Hacker Protection 
           <br />
           - Slider, Shortcodes, More ...
           <br />
           You can also use this theme with our Free Multi Dealer Plugin instead Car Dealer Plugin.
           <br />
       </div> <!-- "Column1">  -->      
        <div class="kardealer-help-column kardealer-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 />  
            To use one click install demo feature, go to:
            <br />
            <strong>dashboard => Appearance => Import Demo Data</strong>
            <br /><br />
        </div> <!-- "columns 2">  --> 
       <div class="kardealer-help-column kardealer-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 esc_attr(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> <!-- "kardealer-steps3"> -->
   <div id="kardealer-services3">
     <div class="kardealer-block-title">
      Help, Support, Feedback:
    </div>
    
    <div class="kardealer-help-container1">
        <div class="kardealer-help-column kardealer-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="kardealer-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="kardealer-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="kardealer-help-column kardealer-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://kardealertheme.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="kardealer-help-column kardealer-help-column-3">
       <img alt="aux" src="<?php echo esc_url(get_template_directory_uri())?>/images/feedback.png" />
          <h3>Feedback</h3>  
          We want hear your feedback. Please, help us to improve ours products and services.
          <br /><br />
          
          <?php 
          if( memory_status())
            echo '<a href="#" id= "kardealer-give-feedback" class="button button-primary">Feedback</a>';
          else
            echo '<a href="#" id= "nofeedback" class="button button-primary">Feedback</a>';
          ?>


       </div> <!-- "Column 3">  --> 
    </div> <!-- "Container1 ">  -->   
   </div> <!-- "services"> -->