| Server IP : 216.250.13.251 / Your IP : 216.73.216.164 Web Server : nginx/1.24.0 System : Linux gunay 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64 User : root ( 0) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/gunay/wp-content/plugins/loco-translate/tpl/admin/bundle/setup/ |
Upload File : |
<?php
/**
* "auto" config options
*/
$this->extend('../setup');
$this->start('header');
if( $params->has('jsonFields') ):?>
<form action="" method="post" enctype="application/x-www-form-urlencoded" class="notice inline notice-generic 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','default')?></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','default')?>" />
</p>
</div>
<?php $jsonFields->_e()?>
</form><?php
endif;
if( $params->has('xmlFields') ):?>
<form action="" method="post" enctype="application/x-www-form-urlencoded" class="notice inline notice-generic">
<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','default')?></a>
</p>
<?php $xmlFields->_e()?>
</form><?php
endif;
if( $params->has('autoFields') ):?>
<form action="" method="post" enctype="application/x-www-form-urlencoded" class="notice inline notice-generic">
<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;