feat:3.0.0版初次提交,新版将完全推倒重写

This commit is contained in:
sunxiyuan 2020-07-13 18:44:03 +08:00
parent e556c4b6d9
commit 39735249ee
293 changed files with 26908 additions and 475 deletions

View file

@ -0,0 +1,43 @@
<?php
/**
* Confirmation form for moving localized files to a new location.
*/
$this->extend('move');
$this->start('source');
/* @var Loco_mvc_ViewParams $current */
/* @var Loco_mvc_ViewParams[] $locations */
?>
<div class="notice inline notice-generic">
<h2>
<?php self::e( __('Choose a new location for these translations','loco-translate') );?>
</h2>
<table class="form-table">
<tbody class="loco-paths"><?php
foreach( $locations as $typeId => $location ):?>
<tr class="compact">
<td>
<p class="description"><?php $location->e('label')?>:</p>
</td>
<td><?php
/* @var Loco_mvc_FileParams $choice */
foreach( $location['paths'] as $choice ):?>
<p><?php
if( $choice->active ):?>
<label>
<input type="radio" name="dest" value="" disabled checked /><?php
else:?>
<label>
<input type="radio" name="dest" value="<?php $choice->e('path')?>" /><?php
endif?>
<code class="path"><?php $choice->e('path')?></code>
</label>
</p><?php
endforeach?>
</td>
</tr><?php
endforeach?>
</tbody>
</table>
</div>