mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-08 14:59:18 +08:00
feat:3.0.0版初次提交,新版将完全推倒重写
This commit is contained in:
parent
e556c4b6d9
commit
39735249ee
293 changed files with 26908 additions and 475 deletions
18
vendor/loco-translate/tpl/admin/bundle/setup/author.php
vendored
Normal file
18
vendor/loco-translate/tpl/admin/bundle/setup/author.php
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
/**
|
||||
* Bundle is configured by official author
|
||||
*/
|
||||
$this->extend('../setup');
|
||||
$this->start('header');
|
||||
?>
|
||||
|
||||
<div class="notice inline notice-success">
|
||||
<h3 class="has-icon">
|
||||
<?php esc_html_e('Official configuration','loco-translate')?>
|
||||
</h3>
|
||||
<p>
|
||||
<?php esc_html_e("This bundle's configuration is provided by the author",'loco-translate')?>.
|
||||
<?php esc_html_e("You can make changes in the Advanced tab if you need to override the current settings",'loco-translate')?>.
|
||||
</p>
|
||||
<?php echo $this->render('inc-nav')?>
|
||||
</div>
|
81
vendor/loco-translate/tpl/admin/bundle/setup/conf.php
vendored
Normal file
81
vendor/loco-translate/tpl/admin/bundle/setup/conf.php
vendored
Normal file
|
@ -0,0 +1,81 @@
|
|||
<?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;
|
||||
|
||||
|
20
vendor/loco-translate/tpl/admin/bundle/setup/core.php
vendored
Normal file
20
vendor/loco-translate/tpl/admin/bundle/setup/core.php
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
/**
|
||||
* Bundle is set up internally
|
||||
*/
|
||||
$this->extend('../../layout');
|
||||
?>
|
||||
|
||||
<div class="notice inline notice-success">
|
||||
<h3 class="has-icon">
|
||||
<?php esc_html_e('Bundle auto-configured','loco-translate')?>
|
||||
</h3>
|
||||
<p>
|
||||
<?php esc_html_e("This bundle's configuration is built into Loco",'loco-translate')?>.
|
||||
<?php esc_html_e("You can make changes in the Advanced tab if you need to override the current settings",'loco-translate')?>.
|
||||
</p>
|
||||
<p class="submit">
|
||||
<a href="<?php $tabs[2]->e('href')?>" class="button button-link has-icon icon-wrench"><?php esc_html_e('Advanced configuration','loco-translate')?></a>
|
||||
</p>
|
||||
</div>
|
||||
|
26
vendor/loco-translate/tpl/admin/bundle/setup/inc-nav.php
vendored
Normal file
26
vendor/loco-translate/tpl/admin/bundle/setup/inc-nav.php
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
/**
|
||||
* Common links below variable setup header.
|
||||
*/
|
||||
|
||||
$help = esc_url( apply_filters('loco_external','https://localise.biz/wordpress/plugin/manual/bundle-setup') );
|
||||
|
||||
if( $params->has('notices') ):?>
|
||||
<ul class="problems"><?php
|
||||
foreach( $params->notices as $text ):?>
|
||||
<li class="has-icon icon-remove">
|
||||
<?php echo $params->escape( $text )?>
|
||||
</li><?php
|
||||
endforeach?>
|
||||
</ul><?php
|
||||
endif?>
|
||||
|
||||
<p class="submit">
|
||||
<a href="<?php $tabs[2]->e('href')?>" class="button button-link has-icon icon-wrench"><?php esc_html_e('Advanced configuration','loco-translate')?></a>
|
||||
</p>
|
||||
<p>
|
||||
<a href="<?php $tabs[1]->e('href')?>&xml=1" class="button button-link has-icon icon-upload"><?php esc_html_e('Import config from XML','loco-translate')?></a>
|
||||
</p>
|
||||
<p>
|
||||
<a href="<?php echo $help?>" class="button button-link has-icon icon-help" target="_blank"><?php esc_html_e('Get help with this','loco-translate')?></a>
|
||||
</p>
|
18
vendor/loco-translate/tpl/admin/bundle/setup/meta.php
vendored
Normal file
18
vendor/loco-translate/tpl/admin/bundle/setup/meta.php
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
/**
|
||||
* Bundle is set up fully from self-declared metadata
|
||||
*/
|
||||
$this->extend('../setup');
|
||||
$this->start('header');
|
||||
?>
|
||||
|
||||
<div class="notice inline notice-success">
|
||||
<h3 class="has-icon">
|
||||
<?php esc_html_e('Bundle auto-configured','loco-translate')?>
|
||||
</h3>
|
||||
<p>
|
||||
<?php esc_html_e("This bundle's configuration has been automatically detected and seems to be fully compatible",'loco-translate')?>.
|
||||
<?php esc_html_e("You can make changes in the Advanced tab if you need to override the current settings",'loco-translate')?>.
|
||||
</p>
|
||||
<?php echo $this->render('inc-nav')?>
|
||||
</div>
|
18
vendor/loco-translate/tpl/admin/bundle/setup/none.php
vendored
Normal file
18
vendor/loco-translate/tpl/admin/bundle/setup/none.php
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
/**
|
||||
* Bundle is not set up at all
|
||||
*/
|
||||
$this->extend('../setup');
|
||||
$this->start('header');
|
||||
?>
|
||||
|
||||
<div class="notice inline notice-error">
|
||||
<h3 class="has-icon">
|
||||
<?php esc_html_e('Unconfigured bundle','loco-translate')?>
|
||||
</h3>
|
||||
<p>
|
||||
<?php esc_html_e('This bundle isn\'t set up for translation in a way we understand','loco-translate')?>.
|
||||
<?php esc_html_e('It needs configuring before you can do any translations','loco-translate')?>.
|
||||
</p>
|
||||
<?php echo $this->render('inc-nav')?>
|
||||
</div>
|
18
vendor/loco-translate/tpl/admin/bundle/setup/partial.php
vendored
Normal file
18
vendor/loco-translate/tpl/admin/bundle/setup/partial.php
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
/**
|
||||
* Bundle is set up from self-declared metadata, but has some missing bits
|
||||
*/
|
||||
$this->extend('../setup');
|
||||
$this->start('header');
|
||||
?>
|
||||
|
||||
<div class="notice inline notice-warning">
|
||||
<h3 class="has-icon icon-info">
|
||||
<?php esc_html_e('Partially configured bundle','loco-translate')?>
|
||||
</h3>
|
||||
<p>
|
||||
<?php esc_html_e("This bundle's configuration has been automatically detected, but isn't fully complete",'loco-translate')?>.
|
||||
</p>
|
||||
<?php echo $this->render('inc-nav')?>
|
||||
</div>
|
||||
|
23
vendor/loco-translate/tpl/admin/bundle/setup/saved.php
vendored
Normal file
23
vendor/loco-translate/tpl/admin/bundle/setup/saved.php
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?php
|
||||
/**
|
||||
* Bundle is saved in database, but can be reset
|
||||
*/
|
||||
$this->extend('../setup');
|
||||
$this->start('header');
|
||||
?>
|
||||
|
||||
<div class="notice inline notice-info">
|
||||
<h3 class="has-icon">
|
||||
<?php esc_html_e('Bundle configuration saved','loco-translate')?>
|
||||
</h3>
|
||||
<p>
|
||||
<?php esc_html_e("This bundle's configuration is saved in the WordPress database",'loco-translate')?>.
|
||||
</p>
|
||||
<form action="" method="post" enctype="application/x-www-form-urlencoded">
|
||||
<p class="submit">
|
||||
<input type="submit" name="reset-setup" class="button button-danger" value="<?php esc_html_e('Reset config','loco-translate')?>" />
|
||||
<a href="<?php $tabs[2]->e('href')?>" class="button button-link has-icon icon-wrench"><?php esc_html_e('Edit config','loco-translate')?></a>
|
||||
</p>
|
||||
<?php $reset->_e()?>
|
||||
</form>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue