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
65
vendor/loco-translate/tpl/admin/common/inc-fsconn.php
vendored
Normal file
65
vendor/loco-translate/tpl/admin/common/inc-fsconn.php
vendored
Normal file
|
@ -0,0 +1,65 @@
|
|||
<?php
|
||||
/**
|
||||
* Include standard file system connect dialog
|
||||
*/
|
||||
|
||||
$help = esc_url( apply_filters('loco_external','https://localise.biz/wordpress/plugin/manual/filesystem') );
|
||||
|
||||
// Total file lock prevents any kind of update, regardless of connection
|
||||
if( $params->has('fsLocked') ):?>
|
||||
<div class="has-nav notice inline notice-locked">
|
||||
<p>
|
||||
<strong class="has-icon"><?php esc_html_e('Locked','loco-translate')?>:</strong>
|
||||
<span><?php $params->e('fsLocked')?>.</span>
|
||||
</p>
|
||||
<nav>
|
||||
<a href="<?php echo $help?>#wp" target="_blank"><?php esc_html_e('Documentation','loco-translate')?></a>
|
||||
<span>|</span>
|
||||
<a href="<?php $this->route('config')->e('href')?>#loco--fs-protect"><?php esc_html_e('Settings','loco-translate')?></a>
|
||||
</nav>
|
||||
</div><?php
|
||||
|
||||
|
||||
// else specific file may be protected from updates by the bundle config
|
||||
elseif( $params->has('fsDenied') ):?>
|
||||
<div class="has-nav notice inline notice-locked">
|
||||
<p>
|
||||
<strong class="has-icon"><?php esc_html_e('Read only','loco-translate')?>:</strong>
|
||||
<span><?php esc_html_e('File is protected by the bundle configuration','loco-translate')?>.</span>
|
||||
</p>
|
||||
</div><?php
|
||||
|
||||
|
||||
// else render remote connection form
|
||||
else:?>
|
||||
<div id="loco-fs-warn" class="has-nav notice inline notice-info jshide">
|
||||
<p>
|
||||
<strong class="has-icon"><?php esc_html_e('Notice','loco-translate')?>:</strong>
|
||||
<span class="loco-msg"><!-- warning to be loaded by ajax --></span>
|
||||
</p>
|
||||
<nav>
|
||||
<a href="<?php echo $help?>#wp" target="_blank"><?php esc_html_e('Documentation','loco-translate')?></a>
|
||||
<span>|</span>
|
||||
<a href="<?php $this->route('config')->e('href')?>#loco--fs-protect"><?php esc_html_e('Settings','loco-translate')?></a>
|
||||
</nav>
|
||||
</div>
|
||||
<form id="loco-fs" class="has-nav notice inline notice-locked jshide jsonly">
|
||||
<p>
|
||||
<strong class="has-icon"><?php
|
||||
// Translators: When a file or folder cannot be modified due to filesystem permissions
|
||||
esc_html_e('Write protected','loco-translate')?>:
|
||||
</strong>
|
||||
<span class="loco-msg">
|
||||
<!-- specific reason to be loaded by ajax -->
|
||||
</span>
|
||||
<span><?php
|
||||
esc_html_e('Click "Connect" to authenticate with the server','loco-translate')?>.
|
||||
</span>
|
||||
</p>
|
||||
<nav>
|
||||
<button type="button" class="button button-small button-primary"><?php esc_html_e('Connect','loco-translate')?></button>
|
||||
<a class="button button-small" href="<?php echo $help?>#remote" target="_blank"> ? </a>
|
||||
</nav><?php
|
||||
$fsFields->_e();?>
|
||||
</form><?php
|
||||
endif;
|
13
vendor/loco-translate/tpl/admin/common/inc-po-header.php
vendored
Normal file
13
vendor/loco-translate/tpl/admin/common/inc-po-header.php
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
|
||||
<h3>
|
||||
<a href="<?php $locale->e('href')?>" class="has-lang">
|
||||
<span class="<?php $locale->e('icon')?>" lang="<?php $locale->e('lang')?>"><code><?php $locale->e('code')?></code></span>
|
||||
<span><?php $locale->e('name')?></span>
|
||||
</a>
|
||||
<span class="loco-meta">
|
||||
<span><?php echo esc_html_x('Updated','Modified time','loco-translate')?>:</span>
|
||||
<span id="loco-po-modified"><?php $params->date('modified')?></span>
|
||||
–
|
||||
<span id="loco-po-status"><?php $params->has('meta') && self::e( $meta->getProgressSummary() )?></span>
|
||||
</span>
|
||||
</h3>
|
8
vendor/loco-translate/tpl/admin/common/inc-table-filter.php
vendored
Normal file
8
vendor/loco-translate/tpl/admin/common/inc-table-filter.php
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
|
||||
<form class="loco-filter" action="#">
|
||||
<fieldset class="loco-clearable">
|
||||
<input type="text" name="q" value="" autocomplete="off" placeholder="<?php
|
||||
// translators: text field placeholder
|
||||
esc_html_e('Filter...','loco-translate')?>" size="20" />
|
||||
</fieldset>
|
||||
</form>
|
Loading…
Add table
Add a link
Reference in a new issue