first commit
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
<div class="icl_slug_translation_choice {{ css_class_wrapper }}">
|
||||
<p>
|
||||
<a href="#" class="js-toggle-slugs-table">{{- strings.toggle_slugs_table -}}
|
||||
<span class="otgs-ico-caret-down"></span></a>
|
||||
</p>
|
||||
|
||||
<table class="js-custom-type-slugs" style="display:none;">
|
||||
{% for slug in slugs %}
|
||||
|
||||
<tr{% if slug.is_original %} style="display:none;"{% endif %}>
|
||||
<td>
|
||||
<label for="{{ slug.input_id }}">
|
||||
{{ slug.language_flag|raw }} {{ slug.language_name }}
|
||||
</label>
|
||||
</td>
|
||||
<td>
|
||||
<input id="{{ slug.input_id }}" class="js-translate-slug" name="{{ slug.input_id }}"
|
||||
type="text" value="{{ slug.value }}" placeholder="{{ slug.placeholder }}"
|
||||
data-lang="{{ slug.language_code }}" />
|
||||
|
||||
{% if slug.status_is_incomplete %}
|
||||
<em class="icl_st_slug_tr_warn">{{ strings.slug_status_incomplete }}</em>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{% if slug.is_original %}
|
||||
<tr>
|
||||
<td>
|
||||
{{ slug.language_selector|raw }}
|
||||
<label for="{{ slug.input_id }}">
|
||||
<em>{{ strings.original_label }}</em>
|
||||
</label>
|
||||
</td>
|
||||
<td>
|
||||
<input disabled="disabled" class="disabled" id="{{ slug.input_id }}"
|
||||
name="{{ slug.input_id }}" type="text" value="{{ slug.value }}"/>
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
|
||||
{% endfor %}
|
||||
|
||||
</table>
|
||||
</div>
|
||||
@@ -0,0 +1,10 @@
|
||||
<div id="icl_show_source_top">
|
||||
{% for key, page in pages %}
|
||||
{% set number = key + 1 %}
|
||||
<a href="#" onclick="jQuery('#icl_string_track_frame_wrap iframe').attr('src','{{ page.iframe_url }}'); jQuery('#icl_string_track_url a').html('{{ page.url }}').attr('href', '{{ page.url }}'); return false;">{{ number }}</a><br />
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div id="icl_string_track_frame_wrap">
|
||||
<iframe onload="iclResizeIframe()" src="{{ pages[0].iframe_url }}" width="10" height="10" frameborder="0" marginheight="0" marginwidth="0"></iframe>
|
||||
<div id="icl_string_track_url" class="icl_string_track_url"><a href="{{ pages[0].url }}">{{ pages[0].url }}</a></div>
|
||||
</div>
|
||||
@@ -0,0 +1,33 @@
|
||||
{%- if positions -%}
|
||||
<div id="icl_show_source_top">
|
||||
{% for key, position in positions %}
|
||||
{% set number = key + 1 %}
|
||||
<a href="#" onclick="icl_show_in_source({{ key }},{{ position.line }})">{{ number }}</a><br />
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div id="icl_show_source_wrap">
|
||||
{% for key, position in positions %}
|
||||
<div class="icl_string_track_source" id="icl_string_track_source_{{ key }}"
|
||||
{% if key > 0 %}style="display:none"{% endif %}>
|
||||
|
||||
{% if key > 0 %}
|
||||
<script type="text/javascript">icl_show_in_source_scroll_once = '{{ position.line }}'</script>
|
||||
{% endif %}
|
||||
|
||||
<div class="icl_string_track_filename">{{ position.path }}</div>
|
||||
|
||||
<pre>
|
||||
<ol>
|
||||
{%- for line_number, line in position.content -%}
|
||||
<li id="icl_source_line_{{ key }}_{{ line_number }}"
|
||||
{%- if line_number == position.line - 1 -%}style="background-color:{{ highlight_color }}"{%- endif -%}
|
||||
>{{- line -}} </li>
|
||||
{%- endfor -%}
|
||||
</ol>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
{{ no_result_label }}
|
||||
{% endif %}
|
||||
@@ -0,0 +1,22 @@
|
||||
{% if position == "header" %}
|
||||
<thead>
|
||||
{% elseif position == "footer" %}
|
||||
<tfoot>
|
||||
{% endif %}
|
||||
<tr>
|
||||
<td class="check-column">
|
||||
<input type="checkbox">
|
||||
</td>
|
||||
<th>{{ component }}</th>
|
||||
<th>{{ domain }}</th>
|
||||
<th class="wpml-col-center"><span class="otgs-ico-translated" title="{{ completed_title }}"></span></th>
|
||||
<th class="wpml-col-center"><span class="otgs-ico-needs-update" title="{{ needs_update_title }}"></span></th>
|
||||
{% if 'plugin' == type %}
|
||||
<th></th>
|
||||
{% endif %}
|
||||
</tr>
|
||||
{% if position == "header" %}
|
||||
</thead>
|
||||
{% elseif position == "footer" %}
|
||||
</tfoot>
|
||||
{% endif %}
|
||||
@@ -0,0 +1,102 @@
|
||||
<div class="wpml-section wpml-st-localization {{ section_class }}"
|
||||
{% for field, data in nonces %}
|
||||
data-{{ field }}-action="{{ data.action }}" data-{{ field }}-nonce="{{ data.nonce }}"
|
||||
{% endfor %}
|
||||
>
|
||||
<div id="wpml-{{ type }}-content">
|
||||
<div class="wpml-section-header">
|
||||
<h3>{{ section_label }}</h3>
|
||||
</div>
|
||||
<div class="wpml-section-content">
|
||||
<ul class="state-selector">
|
||||
<li data-status="all">{{ all_text }} ({{ status_count.active + status_count.inactive }})</li>
|
||||
<li>|</li>
|
||||
<li data-status="active">{{ active_text }} ({{ status_count.active }})</li>
|
||||
<li>|</li>
|
||||
<li data-status="inactive">{{ inactive_text }} ({{ status_count.inactive }})</li>
|
||||
</ul>
|
||||
<table class="widefat striped">
|
||||
|
||||
<input type="hidden" name="{{ scan_folder_nonce_field }}" value="{{ scan_folder_nonce_val }}">
|
||||
<input type="hidden" name="{{ scan_files_nonce_field }}" value="{{ scan_files_nonce_val }}">
|
||||
|
||||
{% include 'theme-plugin-localization-ui-header.twig' with {'position': 'header'} %}
|
||||
|
||||
{% for dir_and_file, component_data in components %}
|
||||
|
||||
<tr class="item{{ component_data.active ? ' active' }}">
|
||||
<td>
|
||||
<input type="checkbox" name="{{ type }}[]" id="{{ type }}-{{ component_data.id }}" value="{{ dir_and_file }}" data-component-name="{{ component_data.component_name|replace(' ', '-')|lower }}">
|
||||
</td>
|
||||
<td>
|
||||
<label for="{{ type }}-{{ component_data.id }}">{{ component_data.component_name }}</label>
|
||||
</td>
|
||||
<td>
|
||||
{% if component_data.domains %}
|
||||
<ul>
|
||||
{% for domain, domains_statistics in component_data.domains %}
|
||||
<li><a title="{{ domains_statistics.title_all_strings }}" href="{{ domains_statistics.domain_link }}">{{ domain }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</td>
|
||||
|
||||
<td class="wpml-translated">
|
||||
{% if component_data.domains %}
|
||||
<ul>
|
||||
{% for domain, domains_statistics in component_data.domains %}
|
||||
<li>
|
||||
{{ domains_statistics.translated }}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</td>
|
||||
|
||||
<td class="wpml-needs-update">
|
||||
{% if component_data.domains %}
|
||||
<ul>
|
||||
{% for domain, domains_statistics in component_data.domains %}
|
||||
<li>
|
||||
{% if domains_statistics.needs_update %}
|
||||
<a title="{{ domains_statistics.title_needs_translation }}" href="{{ domains_statistics.needs_update_link }}">
|
||||
{% endif %}
|
||||
{{ domains_statistics.needs_update }}
|
||||
{% if domains_statistics.needs_update %}
|
||||
</a>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</td>
|
||||
{% if 'plugin' == type %}
|
||||
<td class="wpml-create-po-file">
|
||||
{% if component_data.domains %}
|
||||
<ul>
|
||||
{% for domain, domains_statistics in component_data.domains %}
|
||||
<li>
|
||||
{% if domains_statistics.translated or domains_statistics.needs_update %}
|
||||
<a class="wpml_st_pop_download button-secondary"
|
||||
data-file="{{ dir_and_file|e }}" data-domain="{{ domain|e }}"
|
||||
href="#">create PO file</a>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</td>
|
||||
{% endif %}
|
||||
{% set current = current - 1 %}
|
||||
</tr>
|
||||
|
||||
{% endfor %}
|
||||
|
||||
{% include 'theme-plugin-localization-ui-header.twig' with {'position': 'footer'} %}
|
||||
|
||||
</table>
|
||||
<br />
|
||||
<button id="{{ scan_button_id }}" type="button" class="button-primary btn-scan" disabled="disabled">{{ scan_button_label }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,10 @@
|
||||
<select class="wpml-select2-button js-change-translation-priority" id="icl-st-change-translation-priority-selected" disabled="disabled">
|
||||
<option value="">{{ strings.empty_text|e }}</option>
|
||||
{% for translation_priority in translation_priorities %}
|
||||
<option value="{{ translation_priority.name }}">
|
||||
{{ translation_priority.name }}
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
|
||||
{{ nonce|raw }}
|
||||
@@ -0,0 +1,10 @@
|
||||
<p>
|
||||
<input id="icl_run_st_db_cache_command"
|
||||
type="button" class="button-secondary"
|
||||
value="{{ buttonLabel }}"
|
||||
data-success-message="{{ successMsg }}"
|
||||
data-nonce="{{ nonce }}"
|
||||
/>
|
||||
<br/>
|
||||
<small style="margin-left:10px;">{{ description }}</small>
|
||||
</p>
|
||||
Reference in New Issue
Block a user