<?php
/**
 * "auto" config options
 */
$this->extend('../setup');
$this->start('header');


   /*if( $params->has('jsonFields') ):
    Remote JSON config is scrapped
    <form action="" method="post" enctype="application/x-www-form-urlencoded" class="panel jsonly" id="loco-remote">
        <h3>
            <?php esc_html_e('Check config repository','loco-translate')?>  
        </h3>
        <fieldset id="loco-remote-query">
            <p>
                <?php esc_html_e("We have a database of non-standard bundle configurations.\nIf we know your bundle, we'll configure it for you automatically",'loco-translate')?> 
            </p>
            <p>
                <select name="vendor">
                    <option value="wordpress"><?php esc_html_e('WordPress','default')?></option>
                </select>
                <input type="text" name="slug" value="<?php $params->e('vendorSlug')?>" class="regular-text" />
            </p>
        </fieldset>
        <div id="loco-remote-empty">
            <p>
                <button type="button" class="button button-primary"><?php esc_html_e('Find config','loco-translate')?></button>
                <a href="<?php $tabs[1]->e('href')?>" class="button button-link"><?php esc_html_e('Cancel','loco-translate')?></a>
                <span></span>
            </p>
        </div>
        <div id="loco-remote-found" class="jshide">
            <p>
                <input type="submit" class="button button-success" name="json-setup" value="<?php esc_attr_e('OK, Load this config','loco-translate')?>" />
                <input type="reset" class="button button-link" value="<?php esc_attr_e('Cancel','loco-translate')?>" />
            </p>
        </div>
        <?php $jsonFields->_e()?> 
    </form><?php
    endif;*/

    if( $params->has('xmlFields') ):?> 
    <form action="" method="post" enctype="application/x-www-form-urlencoded" class="panel">
        <h3>
            <?php esc_html_e('XML setup','loco-translate')?> 
        </h3>
        <p>
            <?php esc_html_e("If you've been given a configuration file by a developer, paste the XML code here",'loco-translate')?>:
        </p>
        <fieldset>
            <textarea name="xml-content" class="large-text" rows="3" wrap="virtual"></textarea>
        </fieldset>
        <p>
            <input type="submit" class="button button-primary" name="xml-setup" value="<?php esc_html_e('Load config','loco-translate')?>" />
            <a href="<?php $tabs[1]->e('href')?>" class="button button-link"><?php esc_html_e('Cancel','loco-translate')?></a>
        </p>
        <?php $xmlFields->_e()?> 
    </form><?php
    endif;

    if( $params->has('autoFields') ):?> 
    <form action="" method="post" enctype="application/x-www-form-urlencoded" class="panel">
        <h3>
            Auto setup
        </h3>
        <p>
            We can make some guesses about how this bundle is set up, but we can't guarantee they'll be right.
        </p>
        <p>
            This is not recommended unless you're a developer able to make manual changes afterwards.
        </p>
        <p>
            <input type="submit" class="button button-primary" name="auto-setup" value="Guess config" />
        </p>
        <?php $autoFields->_e()?> 
    </form><?php
    endif;

    