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,59 @@
<div class="js-wpml-active-service-wrapper">
<div class="js-ts-refreshing-message ts-refreshing-message" style="display:none">
<p><span class="spinner is-active"></span>{{ strings.refreshing_ts_message }}</p>
</div>
<div class="ts-active-service js-ts-active-service">
<input type="hidden" class="active-service-title" value="{{ strings.modal_title }}">
<input type="hidden" class="active-service-header" value="{{ strings.modal_header }}">
<input type="hidden" class="active-service-tip" value="{{ strings.modal_tip|format( "<a target='_blank' href='" ~ active_service.get_url ~ "'>" ~ active_service.get_name ~ "</a>" ) }}">
<input type="hidden" class="js-needs-info-refresh" value="{{ needs_info_refresh }}">
<input type="hidden" class="js-ts-refresh-nonce" value="{{ nonces['refresh_ts_info'] }}">
<div class="ts-admin-section-leftcol">
<h3>{{ strings.title }}</h3>
<div class="service-logo">
<a href="{{ active_service.get_url }}" target="_blank" rel="noopener">
<img src="{{ active_service.get_logo_url }}" alt="{{ active_service.get_name }}"/>
</a>
</div>
<p>
<button data-id="{{ active_service.get_id }}" class="wpml-antd-button wpml-antd-button-secondary js-deactivate-service">{{ strings.deactivate }}</button>
</p>
</div>
<div class="ts-admin-section-rightcol">
{% if active_service.get_has_language_pairs and active_service.get_custom_fields_data %}
<div class="refresh-language-pairs-section">
<div class="spinner"></div>
<div class="wpml_ajax_response"></div>
<a class="button-secondary js-refresh-language-pairs" data-nonce="{{ nonces['wpml-tp-refresh-language-pairs'] }}">
{{ strings.refresh_language_pairs }}
</a>
</div>
{% endif %}
<h3>{{ active_service.get_name }}</h3>
<p>{{ active_service.get_description|raw }}</p>
<p><a target="_blank" href="{{ active_service.get_doc_url }}">{{ strings.documentation }}</a></p>
{% if 1 == active_service.get_requires_authentication %}
<div class="ts-authentication notice notice-warning inline clearfix">
{% if active_service.get_custom_fields_data %}
<p>{{ strings.authentication.is_authorized|raw }}</p>
<p class="notice-action-link">
<button data-id="{{ active_service.get_id }}" data-custom-fields="{{ active_service.get_custom_fields | json_encode }}" class="js-invalidate-service button-primary">{{ strings.authentication.de_authorize_button }}</button>
<button data-id="{{ active_service.get_id }}" data-custom-fields="{{ active_service.get_custom_fields | json_encode }}" class="js-update-service-credentials button-primary">{{ strings.authentication.update_credentials_button }}</button>
</p>
{% else %}
<p>{{ strings.authentication.description|format( active_service.get_name, '<a target="_blank" href="' ~ active_service.get_doc_url ~ '">' ~ strings.documentation_lower ~ '</a>' )|raw }}</p>
<p class="notice-action-link"><button class="js-authenticate-service wpml-antd-button wpml-antd-button-primary" data-id="{{ active_service.get_id }}" data-custom-fields="{{ active_service.get_custom_fields | json_encode }}">{{ strings.authentication.authenticate_button }}</button></p>
{% endif %}
</div>
{% endif %}
</div>
</div>
</div>

View File

@@ -0,0 +1,3 @@
<div class="wpml-tm-nositekey-button-wrapper">
<a class="button-primary button-lg" href="{{ registration.link }}">{{ registration.text }}</a>
</div>

View File

@@ -0,0 +1,3 @@
<button id="wpml-tm-refresh-services" data-nonce="{{ nonce }}" class="button-secondary">{{ button_text }}</button>
<br />
<small class="wpml-tm-refresh-services-msg"></small>

View File

@@ -0,0 +1,39 @@
{% for key, nonce in nonces %}
<input type="hidden" class="{{ key }}" name="{{ key }}" value="{{ nonce }}">
{% endfor %}
<div class="wpml-tm-ts-admin-section wpml-section">
<h2>{{ strings.translation_services }}</h2>
<p>
{{ strings.translation_services_description|raw }}
</p>
{{ active_service|raw }}
{% if false == has_preferred_service and has_services %}
<div
id="wpml-tp-services"
data-services="{{ services|json_encode() }}"
data-endpoints="{{ endpoints|json_encode() }}"
data-logoPlaceholder="{{ lsp_logo_placeholder }}"
data-selectendpoint="{{ select_endpoint|json_encode() }}"
data-translate-everything="{{ translate_everything }}"
data-settings-url="{{ settings_url }}"
>
</div>
<div class="js-bottom-section">
<hr class="wpml-margin-top-base">
<p>{{ strings.ts.different }} <a target="_blank" class="wpml-external-link" href="{{ strings.ts.tell_us_url }}">{{ strings.ts.tell_us }}</a></p>
</div>
{% endif %}
{% if false == has_services %}
<div class="warning notice-warning otgs-notice">
{% for no_service_message in strings.no_service_found %}
<p>{{ no_service_message|format( "<a target='_blank' href='" ~ strings.support_link ~ "'>" ~ strings.wpml_support ~ "</a>" )|raw }}</p>
{% endfor %}
</div>
{% endif %}
</div>

View File

@@ -0,0 +1,5 @@
<div class="tablenav {{ nav_location }}">
{% include 'pagination.twig' with { 'pagination_model': pagination_model, 'nav_location': nav_location } only %}
</div>

View File

@@ -0,0 +1,3 @@
{% for i in 1..5 %}
<span class="otgs-ico-star{% if i <= filled %} full-star{% endif %}"></span>
{% endfor %}

View File

@@ -0,0 +1,9 @@
<tr>
<th scope="col" class="manage-column sortable ts-admin-section-logo-head {{ table_sort.name.classes }}"><a href="{{ table_sort.name.url }}"><span>{{ strings.columns.name }}</span><span class="sorting-indicator"></span></a></th>
<th scope="col" class="manage-column ts-admin-section-description-head">{{ strings.columns.description }}</th>
<th scope="col" class="{{ table_sort.popularity.classes }} ts-admin-section-rating sortable"><a href="{{ table_sort.popularity.url }}"><span>{{ strings.columns.popularity }}</span><span class="sorting-indicator"></span></a></th>
<th scope="col" class="{{ table_sort.speed.classes }} ts-admin-section-rating sortable"><a href="{{ table_sort.speed.url }}"><span>{{ strings.columns.speed }}</span><span class="sorting-indicator"></span></a></th>
<th scope="col" class="manage-column"></th>
</tr>