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,9 @@
<span>
{% if value is same as(true) %}
<i class="otgs-ico-ok"></i>
{% elseif value is not same as(false) %}
<span>
{{ value }}
</span>
{% endif %}
</span>

View File

@@ -0,0 +1,46 @@
<div class="wpml-wizard-step wpml-summary-step js-wpml-summary-step"
data-mode='{{ mode }}'>
<h2 class="text-center">{{ strings.title }}</h2>
<div class="wpml-translators-wrapper">
{% if( translators|length > 0 ) %}
<div class="wpml-local-translators js-wpml-local-translators">
<h3>{{ strings.local_translators }}:</h3>
<ul>
{% for user in translators %}
<li>{{ user.display_name }}</li>
{% endfor %}
</ul>
<div class="notice notice-success inline">
<p>{{ strings.local_summary }}</p>
</div>
</div>
{% endif %}
{% if ( translation_service ) %}
<div class="wpml-translation-service js-wpml-translation-service">
<h3>{{ strings.translation_service }}:</h3>
<div class="wpml-translation-service-activated">
<img src="{{ translation_service.logo_url }}">
<strong>{{ translation_service.name }}</strong>
</div>
</div>
{% endif %}
</div>
<div class="wpml-tm-instructions">
{{ strings.instructions|raw }}
</div>
<div class="wpml-wizard-buttons-container">
<button class="button button-secondary alignleft js-go-back">&laquo; {{ strings.go_back }}</button>
<button class="button wpml-button button-lg alignright js-done">{{ strings.done }}</button>
<div class="wpml-translation-summary-step__ate-error"></div>
</div>
</div>

View File

@@ -0,0 +1,106 @@
<div class="wpml-wizard-step wpml-who-will-translate-step js-who-will-translate-step"
data-nonce="{{ nonce }}"
data-mode='{{ mode }}'
>
<div class="js-main">
<h2 class="text-center">{{ strings.title }}</h2>
<div class="wpml-who-will-translate-option">
<input type="checkbox" class="js-only-i" id="who-only-i"/>
<label for="who-only-i">{{ strings.only_i }}</label>
{% include 'help-tooltip.twig' with {'help': strings.only_i_help} %}
</div>
<div class="wpml-who-will-translate-option">
<input type="checkbox" class="js-users" id="who-users"/>
<label for="who-users">{{ strings.users }}</label>
{% include 'help-tooltip.twig' with {'help': strings.users_help} %}
</div>
<div class="js-users-section js-section wpml-who-will-translate-settings" style="display:none">
{{ translators_ui|raw }}
</div>
<div class="wpml-who-will-translate-option">
<input type="checkbox" class="js-translation-service" id="who-translation-service"/>
<label for="who-translation-service">{{ strings.translation_service }}</label>
{% include 'help-tooltip.twig' with {'help': strings.translation_service_help} %}
</div>
<div class="js-translation-service-section js-section wpml-who-will-translate-settings" style="display:none">
<div class="wpml-section js-choose-section text-center">
<button class="button-primary js-choose-translation-service">{{ strings.choose_translation_service }}</button>
</div>
<div class="wpml-section js-selected-section" style="display: none">
</div>
<div id="js-translation-services-dialog"
class=""
title="{{ strings.translation_service_dialog.title }}"
style="display:none"
data-cancel-text="{{ strings.dialog_cancel }}"
>
<p>{{ strings.translation_service_dialog.into }}</p>
{{ translation_services_table | raw }}
</div>
<div id="js-activate-translation-services-dialog"
class="ts-activate-section"
data-title="{{ strings.activate_translation_service_dialog.title }}"
style="display: none"
data-cancel-text="&laquo; {{ strings.activate_translation_service_dialog.cancel }}"
data-ok-text="{{ strings.activate_translation_service_dialog.ok }}"
>
<div class="ts-activate-logo">
<img class="js-activate-logo" src="">
</div>
<div class="ts-activate-content">
<p class="js-connect-desc"
data-text="{{ strings.activate_translation_service_dialog.connect_desc }}"></p>
<p><a href="" class="wpml-external-link js-connect-how-to-find"
data-text="{{ strings.activate_translation_service_dialog.connect_how_to_find }}"
target="_blank"></a></p>
<div class="custom_fields_wrapper js-custom-fields-wrapper"></div>
<div class="notice notice-error inline js-error-message ts-activate-notice"
style="display: none"></div>
<p class="js-create-account ts-create-account-link"
data-text="{{ strings.activate_translation_service_dialog.no_account }}">
<span></span> <a class="wpml-external-link" href=""
target="_blank">{{ strings.activate_translation_service_dialog.create_one }}</a>
</p>
</div>
</div>
</div>
{% if is_administrator %}
<div class="wpml-who-will-translate-option">
<input type="checkbox" class="js-leave-choice" id="who-leave-choice"/>
<label for="who-leave-choice">{{ strings.leave_choice }}</label>
{% include 'help-tooltip.twig' with {'help': strings.leave_choice_help } %}
</div>
<div class="js-leave-choice-section js-section wpml-who-will-translate-settings" style="display:none">
{{ translation_manager_ui|raw }}
</div>
{% endif %}
<div class="wpml-wizard-buttons-container ">
<button class="button wpml-button button-lg alignright js-continue button-primary">{{ strings.button_text }} &raquo;</button>
</div>
</div>
</div>

View File

@@ -0,0 +1,20 @@
<div class="wpml-wizard js-wpml-wizard" data-nonce="{{ nonce }}" style="display:none;">
<ul class="wizard-steps-container js-wizard-steps-container">
{% set before_current_step_class = 'wizard-active-step' %}
{% for step in steps %}
{% if step.slug == current_step_slug %}
<li class="wizard-current-step wizard-step js-wizard-step" data-step-slug="{{ step.slug }}">{{ step.title }}</li>
{% set before_current_step_class = '' %}
{% else %}
<li class="wizard-step {{ before_current_step_class }} js-wizard-step" data-step-slug="{{ step.slug }}">{{ step.title }}</li>
{% endif %}
{% endfor %}
</ul>
<div class="wizard-step-content js-wizard-step-content" data-current-step="{{ current_step_slug }}">
</div>
<button class="wizard-back js-wizard-back">{{ strings.back }}</button>
<button class="wizard-next js-wizard-next">{{ strings.next }}</button>
</div>