first commit

This commit is contained in:
2023-09-12 21:41:04 +02:00
commit 3361a7f053
13284 changed files with 2116755 additions and 0 deletions

View File

@@ -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
}
}