first commit
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
namespace WPML\TM\Templates\Notices;
|
||||
|
||||
class AteLocked {
|
||||
public function renderUser( $model ) {
|
||||
?>
|
||||
<div class="wpmltm-notice">
|
||||
<h2><?php echo esc_html( $model->title ); ?></h2>
|
||||
<p><?php echo esc_html( $model->intro ); ?></p>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
public function renderAdmin( $model ) {
|
||||
?>
|
||||
<div class="wpmltm-notice">
|
||||
<h2><?php echo esc_html( $model->title ); ?></h2>
|
||||
<p><?php echo esc_html( $model->intro ); ?></p>
|
||||
<?php wp_nonce_field( 'icl_doc_translation_method_cloned_nonce', 'icl_doc_translation_method_cloned_nonce' ); ?>
|
||||
<fieldset>
|
||||
<div>
|
||||
<label>
|
||||
<input type="radio" name="ate_locked_option" value="move"
|
||||
<?php echo $model->allowed_modes['move'] ? 'checked="checked"' : 'disabled="disabled"'; ?>
|
||||
>
|
||||
<span><?php echo esc_html( $model->radio_option_1 ); ?></span>
|
||||
</label>
|
||||
</div>
|
||||
<div>
|
||||
<label>
|
||||
<input type="radio" name="ate_locked_option" value="copy"
|
||||
<?php if ( ! $model->allowed_modes['copy'] ) { echo ' disabled="disabled"'; } ?>
|
||||
>
|
||||
<span><?php echo esc_html( $model->radio_option_2 ); ?></span>
|
||||
</label>
|
||||
</div>
|
||||
</fieldset>
|
||||
<div class="wpmltm-notice__actions">
|
||||
<a class="wpmltm-notice__actions-btn" id="wpml_save_cloned_sites_report_type"
|
||||
href="#"><?php echo esc_html( $model->btn_text ); ?></a>
|
||||
<a class="wpmltm-notice__actions-link" href="https://wpml.org/documentation/translating-your-contents/advanced-translation-editor/using-advanced-translation-editor-when-you-move-or-use-a-copy-of-your-site/?utm_source=plugin&utm_medium=gui&utm_campaign=wpmltm">
|
||||
<?php echo esc_html( $model->link_text ); ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
<h3>{{ strings.title }}</h3>
|
||||
<p>{{ strings.body }}</p>
|
||||
<ul>
|
||||
{% for job in strings.jobs %}
|
||||
<li>{{ job }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<p>{{ strings.bottom | raw }}</p>
|
||||
@@ -0,0 +1,48 @@
|
||||
<div id="wpml-tm-post-edit-alert" class="js-wpml-tm-post-edit-alert wpml-tm-post-edit-alert wpml-tm-post-edit-alert-in-progress" style="display: none;">
|
||||
{{ nonce | raw }}
|
||||
<p id="icl_side_by_site">
|
||||
{{ warning|raw }}
|
||||
<br /><br />
|
||||
{{ message|raw }}
|
||||
</p>
|
||||
|
||||
{% if translations_in_progress is defined %}
|
||||
{% set display_limit = translations_in_progress.display_limit %}
|
||||
{% set translations = translations_in_progress.translations %}
|
||||
{% if translations %}
|
||||
<table style="width:100%">
|
||||
<tr>
|
||||
<th colspan="3" style="text-align: left;">
|
||||
{{ translations_in_progress.title }}
|
||||
</th>
|
||||
</tr>
|
||||
{% set break = false %}
|
||||
{% for translation in translations if not break %}
|
||||
{% if loop.index == display_limit and translations|length > display_limit %}
|
||||
<tr>
|
||||
<td colspan="3"><i>{{ translations_in_progress.more|format( translations|length + 1 - display_limit )}}</i></td>
|
||||
</tr>
|
||||
{% set break = true %}
|
||||
{% else %}
|
||||
<tr>
|
||||
<td style="width: 5%">{{ translation.flag|raw }}</td>
|
||||
<td>{{ translation.translator ?: translations_in_progress.no_translator }}</td>
|
||||
<td style="text-align: right">{{ translation.waiting_for }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% if translations_in_progress.msg_stale_job %}
|
||||
<div class="notice inline notice-error notice-alt" style="margin: 10px 0; padding:5px">
|
||||
{{ translations_in_progress.msg_stale_job|raw }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
<p class="text-center">
|
||||
<a class="js-wpml-tm-continue button button-secondary">{{ edit_anyway_button }}</a>
|
||||
<a class="js-wpml-tm-go-back button button-secondary">{{ go_back_button }}</a>
|
||||
</p>
|
||||
<p><label><input class="do-not-show-again" type="checkbox" value="1" data-action="{{ do_not_show_again_action }}">{{ do_not_show_again }}</label></p>
|
||||
</div>
|
||||
@@ -0,0 +1,7 @@
|
||||
<div class="error fade">
|
||||
<p id="icl_side_by_site">
|
||||
{{ warning|raw }}
|
||||
<br /><br />
|
||||
{{ check_dashboard|raw }}
|
||||
</p>
|
||||
</div>
|
||||
@@ -0,0 +1,4 @@
|
||||
<div class="error">
|
||||
<p>{{ warning|raw }}</p>
|
||||
<p>{{ use_tm_dashboard|raw }}</p>
|
||||
</div>'
|
||||
@@ -0,0 +1,10 @@
|
||||
<div id="wpml-tm-post-edit-alert" class="js-wpml-tm-post-edit-alert wpml-tm-post-edit-alert" style="display: none;">
|
||||
{{ nonce | raw }}
|
||||
<p>{{ warning|raw }}</p>
|
||||
<p class="text-center">
|
||||
<a class="js-wpml-tm-go-back button button-secondary">{{ go_back_button }}</a>
|
||||
<a class="js-wpml-tm-continue button button-secondary">{{ edit_anyway_button }}</a>
|
||||
<a class="js-wpml-tm-open-in-te wpml-button button button-primary" href="{{ translation_editor_url }}">{{ open_in_te_button }}</a>
|
||||
</p>
|
||||
<p><label><input class="do-not-show-again" type="checkbox" value="1" data-action="{{ do_not_show_again_action }}">{{ do_not_show_again }}</label></p>
|
||||
</div>
|
||||
@@ -0,0 +1,35 @@
|
||||
<div id="translation-service-instruction" class="notice wpml-notice otgs-is-dismissible">
|
||||
<h3>{{ strings.title }}</h3>
|
||||
|
||||
<p>{{ strings.description }}</p>
|
||||
|
||||
<p class="ts-instruction-video">
|
||||
<a href="{{ video_link }}" target="_blank">
|
||||
<img src="{{ image_url }}" alt="" width="440" height="230"/>
|
||||
</a>
|
||||
</p>
|
||||
|
||||
<p class="ts-instruction-help">
|
||||
{{ strings.need_help }}
|
||||
<a href="{{ help_link }}" target="_blank">
|
||||
{{ strings.help_caption }}
|
||||
</a>
|
||||
</p>
|
||||
|
||||
<p class="ts-instruction-dismiss">
|
||||
<input type="checkbox" value="" id="checkbox-my-test-translation-went-fine" disabled="disabled" style="display: none;">
|
||||
<span id="this-stuff-is-important">
|
||||
{{ strings.this_stuff_is_important }}
|
||||
</span>
|
||||
<span id="my-test-translation-went-fine" style="display: none;">
|
||||
{{ strings.my_test_translation_went_fine }}
|
||||
<button class="js-ts-instruction-dismiss button button-secondary" id="dismiss-instruction" disabled="disabled" style="display: none;">
|
||||
{{ strings.dismiss }}
|
||||
</button>
|
||||
</span>
|
||||
</p>
|
||||
|
||||
<span class="js-ts-instruction-dismiss notice-dismiss" style="display:none">
|
||||
<span class="screen-reader-text">{{ strings.dismiss }}</span>
|
||||
</span>
|
||||
</div>
|
||||
Reference in New Issue
Block a user