1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
<?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;
|