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,21 @@
<div class="icl_tt_form wpml-dialog" id="icl_tt_form_<%= trid + '_' + lang %>" title="<%= labels.copyToAllLanguages %>">
<div class="wpml-dialog-body wpml-dialog-translate ">
<p class="wpml-dialog-cols-icon">
<i class="otgs-ico-copy wpml-dialog-icon-xl"></i>
</p>
<div class="wpml-dialog-cols-content">
<p>
<%= copyMessage %>
</p>
<label><input type="checkbox" name="overwrite"> <%= labels.copyAllOverwrite %></label>
</div>
<div class="wpml-dialog-footer ">
<span class="errors icl_error_text"></span>
<input class="cancel wpml-dialog-close-button alignleft" value="<%= labels.cancel %>" type="button">
<input class="button-primary js-copy-all-ok alignright" value="<%= labels.Ok %>" type="submit">
<span class="spinner alignright"></span>
</div>
</div>
</div>

View File

@@ -0,0 +1,18 @@
<div class="icl-tt-tools tablenav top clearfix">
<% if ( mode === "translate" ) { %>
<%= WPML_core[ "templates/taxonomy-translation/status-trans-select.html" ]( { taxonomy: taxonomy } ) %>
<label for="in-lang" id="in-lang-label" class="hidden"><%=labels.in%></label>
<select name="language" id="in-lang" class="hidden">
<option value="all"><%= labels.anyLang %></option>
<% _.each(langs, function( lang, code ) { %>
<option value="<%= code %>"><%= lang.label %></option>
<% }); %>
</select>
<div class="alignright">
<input type="text" name="search" id="tax-search" placeholder="<%= labels.searchPlaceHolder %>" value="">
</div>
<% } else { %>
<%= labels.refLang.replace( "%language%", WPML_core[ "templates/taxonomy-translation/ref_sync_select.html" ]( { taxonomy:taxonomy, langs:langs } ) ) %>
<% } %>
<span class="spinner"></span>
</div>

View File

@@ -0,0 +1,4 @@
<a class="icl_tt_label" id="<%=taxonomy%>_<%=lang%>" title="<%= langs[ lang ].label %>: <%= labels.editTranslation %>">
<i class="otgs-ico-edit"></i>
</a>
<div id="popup-<%=lang%>"></div>

View File

@@ -0,0 +1,39 @@
<div class="icl_tt_form wpml-dialog" id="icl_tt_form_<%= taxonomy %>" title="<%= labels.labelPopupDialogTitle %>">
<div class="wpml-dialog-body wpml-dialog-translate ">
<header class="wpml-term-translation-header">
<h3 class="wpml-header-original"><%- labels.original %> <span class="wpml-title-flag"><img src="<%= langs[ source_lang ].flag %>"></span><strong><%- langs[ source_lang ].label %></strong></h3>
<h3 class="wpml-header-translation"><%- labels.translationTo %> <span class="wpml-title-flag"><img src="<%= langs[ lang ].flag %>"></span><strong><%- langs[ lang ].label %></strong></h3>
</header>
<div class="wpml-form-row">
<label for="<%= taxonomy %>-singular"><%- labels.Singular %></label>
<input readonly id="<%= taxonomy %>-singular-original" value="<%- originalLabels.singular %>" type="text">
<button class="button-copy button-secondary js-button-copy otgs-ico-copy" title="<%- labels.copyFromOriginal %>"></button>
<input class="js-translation js-required-translation" id="<%= taxonomy %>-singular" value="<%- translatedLabels.singular %>" type="text">
</div>
<div class="wpml-form-row">
<label for="<%= taxonomy %>-plural"><%- labels.Plural %></label>
<input readonly id="<%= taxonomy %>-plural-original" value="<%-originalLabels.general %>" type="text">
<button class="button-copy button-secondary js-button-copy otgs-ico-copy" title="<%- labels.copyFromOriginal %>"></button>
<input class="js-translation js-required-translation" id="<%= taxonomy %>-plural" value="<%- translatedLabels.general %>" type="text">
</div>
<% if( slugTranslationEnabled ) { %>
<div class="wpml-form-row js-slug-translation-wrapper">
<label for="<%= taxonomy %>-slug"><%- labels.Slug %></label>
<input readonly id="<%= taxonomy %>-slug-original" value="<%-originalLabels.slug %>" type="text">
<button class="button-copy button-secondary js-button-copy otgs-ico-copy" title="<%- labels.copyFromOriginal %>"></button>
<input class="js-translation" id="<%= taxonomy %>-slug" value="<%- translatedLabels.slug %>" type="text">
</div>
<% } %>
<div class="wpml-dialog-footer ">
<span class="errors icl_error_text"></span>
<input class="cancel wpml-dialog-close-button alignleft" value="<%- labels.cancel %>" type="button">
<input class="button-primary js-label-save alignright" value="<%- labels.save %>" type="submit">
<span class="spinner alignright"></span>
</div>
</div>
</div>

View File

@@ -0,0 +1,14 @@
<label for="icl_tt_tax_switch">
<%=labels.taxToTranslate%>
<select id="icl_tt_tax_switch">
<option disabled selected> -- <%=labels.taxonomy%> --</option>
<% _.each(taxonomies, function(taxonomy, index){ %>
<option value="<%=index%>">
<%=taxonomy.label%>
</option>
<% }); %>
</select>
</label>
<div class="wpml-loading-taxonomy"><span class="spinner is-active"></span><%=labels.preparingTermsData%></div>
<div id="taxonomy-translation">
</div>

View File

@@ -0,0 +1,17 @@
<div class="tablenav bottom">
<div class="tablenav-pages" id="taxonomy-terms-table-nav">
<span class="displaying-num">
<% if(pages > 1) { %>
<%=items%> <%=labels.items%>
<% } else if(pages === 1) {%>
1 <%=labels.item%>
<% } %>
</span>
<a class="first-page <% if(page <= 1 ){ %> disabled <% } %>" href="###" title="<%=labels.goToFirstPage%>">«</a>
<a href="###" title="<%=labels.goToPreviousPage%>" class="prev-page <% if(page < 2 ) {%> disabled<% } %>"></a>
<input class="current-page" size="1" value="<%=page%>" title="<%=labels.currentPage%>" type="text"/>
<%= labels.of %> <span class="total-pages"><%= pages %></span>
<a class="next-page <% if(page == pages ) {%> disabled <% } %>" href="###" title="<%=labels.goToNextPage%>"></a>
<a class="last-page <% if(page == pages ) {%> disabled <% } %>" href="###" title="<%=labels.goToLastPage%>">»</a>
</div>
</div>

View File

@@ -0,0 +1,5 @@
<tr>
<td colspan="2">
<h2 class="text-center"><%= message %></h2>
</td>
</tr>

View File

@@ -0,0 +1,4 @@
<a class="icl_tt_label lowlight" id="<%= taxonomy %>_<%= lang %>" title="<%= langs[ lang ].label %>: <%= labels.addTranslation %>" >
<i class="otgs-ico-add"></i>
</a>
<div id="popup-<%= lang %>"></div>

View File

@@ -0,0 +1,3 @@
<span title="<%= langs[ lang ].label %>: <%= labels.originalLanguage %>">
<i class="otgs-ico-original"></i>
</span>

View File

@@ -0,0 +1,7 @@
<td class="wpml-col-title">
<span class="wpml-title-flag"><img src="<%= flag %>"></span><strong><%= taxLabel.singular + ' / ' + taxLabel.general %></strong>
<p>
<% if(!langSelector){ %><a href="#" class="js-show-lang-selector"><%= labels.changeLanguage %></a><% } %>
<%= langSelector %>
</p>
</td>

View File

@@ -0,0 +1,27 @@
<div class="icl_tt_form wpml-dialog" id="icl_tt_form_<%= trid + '_' + lang %>" title="<%= labels.originalTermPopupDialogTitle %>">
<div class="wpml-dialog-body wpml-dialog-translate ">
<header class="wpml-term-translation-header">
<h3 class="wpml-header-original-no-translation"><%= labels.original %> <span class="wpml-title-flag"><img src="<%= langs[ lang ].flag %>"></span><strong><%= langs[ lang ].label %></strong></h3>
</header>
<div class="wpml-form-row-no-translation">
<label for="term-name"><%= labels.Name %></label >
<input id="term-name" value="<%= term.name %>" type="text">
</div>
<div class="wpml-form-row-no-translation">
<label for="term-slug"><%= labels.Slug %></label>
<input id="term-slug" value="<%= term.slug %>" type="text">
</div>
<div class="wpml-form-row-no-translation">
<label for="term-description"><%= labels.Description %></label>
<textarea id="term-description" cols="22" rows="4"><%= term.description %></textarea>
</div>
<div class="wpml-dialog-footer ">
<span class="errors icl_error_text"></span>
<input class="cancel wpml-dialog-close-button alignleft" value="<%= labels.cancel %>" type="button">
<input class="button-primary term-save alignright" value="<%= labels.save %>" type="submit">
<span class="spinner alignright"></span>
</div>
</div>
</div>

View File

@@ -0,0 +1,18 @@
<a class="icl_tt_term_name" id="<%=trid + '-' + lang%>">
<span class="wpml-title-flag"><img src="<%= langs[ lang ].flag %>"></span>
<strong>
<% if(!name){ %>
<%=labels.lowercaseTranslate%>
<% } else { %>
<% if ( level > 0 ) { %>
<%=Array(level+1).join('—') + " "%>
<% } %>
<%=name%>
<% } %>
</strong>
</a>
<div id="<%=trid + '-popup-' + lang%>"></div>
<div class="row-actions">
<a class="js-copy-to-all-langs"><%= labels.copyToAllLanguages %></a>
</div>

View File

@@ -0,0 +1,5 @@
<select id="in-lang" name="language">
<% _.each( langs, function( lang, code ) { %>
<option value="<%=code%>"><%= lang.label %></option>
<% }); %>
</select>

View File

@@ -0,0 +1,7 @@
<div class="alignleft">
<label for="status-select"><%=labels.Show%></label>
<select id="status-select" name="status">
<option value="0"><%=labels.all + ' ' + taxonomy.label%></option>
<option value="1"><%=labels.untranslated + ' ' + taxonomy.label%></option>
</select>
</div>

View File

@@ -0,0 +1,20 @@
<table class="widefat striped fixed <%= ( mode !== 'sync' )? 'wpml-tt-table' : 'wpml-tt-sync-table' %>" id="tax-table-<%=tableType%>">
<thead>
<tr>
<% if ( mode !== 'sync' ) { %>
<th class="wpml-col-title"><%= firstColumnHeading %></th>
<th class="wpml-col-languages">
<% _.each(langs, function( lang ) { %>
<span title="<%= lang.label %>"><img src="<%= lang.flag %>" alt="<%= lang.label %>"></span>
<% }); %>
</th>
<% } else { %>
<% _.each(langs, function( lang ) { %>
<th class="wpml-col-ttsync">
<span class="wpml-title-flag"><img src="<%= lang.flag %>" alt="<%= lang.label %>"></span><%= lang.label %>
</th>
<% }); %>
<% } %>
</tr>
</thead>
</table>

View File

@@ -0,0 +1,6 @@
<div id="term-table-tab-controls" class="wpml-tabs">
<button class="nav-tab <%= ( mode ==='translate' ? 'nav-tab-active' : '' ) %>" id="term-table-header"><%= headerTerms %></button>
<% if( taxonomy.hierarchical ) {%>
<button class="nav-tab <%= ( mode ==='sync' ? 'nav-tab-active' : '' ) %>" id="term-table-sync-header"><%= syncLabel %></button>
<% } %>
</div>

View File

@@ -0,0 +1,36 @@
<div class="wpml-wrap">
<% if ( mode === 'translate' ) { %>
<h3 id="term-table-summary"><%= summaryTerms %></h3>
<% if ( TaxonomyTranslation.data.resultsTruncated ) { %>
<div class="icl-admin-message-warning"><p><%= resultsTruncated %></p></div>
<% } %>
<div id="wpml-taxonomy-translation-filters"></div>
<div id="wpml-taxonomy-translation-terms-table"></div>
<div id="wpml-taxonomy-translation-terms-nav"></div>
<h3 id="term-label-summary"><%= labelSummary %></h3>
<% if ( TaxonomyTranslation.data.translatedTaxonomyLabels ) { %>
<div id="wpml-taxonomy-translation-labels-table"></div>
<% } else { %>
<div class="otgs-notice notice notice-warning"><p><%= labels.activateStringTranslation %></p></div>
<% } %>
<% } else if ( mode === 'sync' ) { %>
<div id="wpml-taxonomy-translation-filters"></div>
<% if ( hasContent ) { %>
<div id="wpml-taxonomy-translation-terms-table"></div>
<div id="wpml-taxonomy-translation-terms-nav"></div>
<div class="wpml-tt-sync-section">
<div class="wpml-tt-sync-legend">
<strong><%= labels.legend %></strong>
<span class="wpml-parent-added" style="background-color:#CCFF99;"><%= labels.willBeAdded %></span>
<span class="wpml-parent-removed" style="background-color:#F55959;"><%= labels.willBeRemoved %></span>
</div>
<div class="wpml-tt-sync-action">
<input type="submit" class="button-primary button-lg" value="<%= labels.synchronizeBtn %>" id="tax-apply">
</div>
</div>
<% } else { %>
<h2 class="text-center"><%= labelSynced %></h2>
<% } %>
<% } %>
</div>

View File

@@ -0,0 +1,9 @@
<span class="icl_tt_term_name_sync" id="<%=trid + '-' + lang%>">
<% if ( name ) { %>
<%= parent %></br>
<% if ( level > 0 ) { %>
<%= Array(level+1).join('—') + " " %>
<% } %>
<%= name %>
<% } %>
</span>

View File

@@ -0,0 +1,4 @@
<a class="icl_tt_term_name lowlight" id="<%= trid + '-' + lang %>" title="<%= langs[ lang ].label %>: <%= labels.addTranslation %>" >
<i class="otgs-ico-add"></i>
</a>
<div id="<%= trid + '-popup-' + lang %>"></div>

View File

@@ -0,0 +1,3 @@
<span title="<%= langs[ lang ].label %>: <%= labels.originalLanguage %>">
<i class="otgs-ico-original"></i>
</span>

View File

@@ -0,0 +1,46 @@
<div class="icl_tt_form wpml-dialog" id="icl_tt_form_<%= trid + '_' + lang %>" title="<%= labels.termPopupDialogTitle %>">
<div class="wpml-dialog-body wpml-dialog-translate ">
<header class="wpml-term-translation-header">
<h3 class="wpml-header-original"><%= labels.original %> <span class="wpml-title-flag"><img src="<%= langs[ source_lang ].flag %>"></span><strong><%= langs[ source_lang ].label %></strong></h3>
<h3 class="wpml-header-translation"><%= labels.translationTo %> <span class="wpml-title-flag"><img src="<%= langs[ lang ].flag %>"></span><strong><%= langs[ lang ].label %></strong></h3>
</header>
<div class="wpml-form-row">
<label for="term-name"><%= labels.Name %></label>
<input readonly id="term-name-original" value="<%= original_term.name %>" type="text">
<button class="button-copy button-secondary js-button-copy otgs-ico-copy" title="<%= labels.copyFromOriginal %>"></button>
<input id="term-name" value="<%= term.name %>" type="text">
</div>
<div class="wpml-form-row">
<label for="term-slug"><%= labels.Slug %></label>
<input readonly id="term-slug-original" value="<%= original_term.slug %>" type="text">
<button class="button-copy button-secondary js-button-copy otgs-ico-copy" title="<%= labels.copyFromOriginal %>"></button>
<input id="term-slug" value="<%= term.slug %>" type="text">
</div>
<div class="wpml-form-row">
<label for="term-description"><%= labels.Description %></label>
<textarea readonly id="term-description-original" cols="22" rows="4"><%= original_term.description %></textarea>
<button class="button-copy button-secondary js-button-copy otgs-ico-copy" title="<%= labels.copyFromOriginal %>"></button>
<textarea id="term-description" cols="22" rows="4"><%= term.description %></textarea>
</div>
<% if ( original_term_meta.length ) { %>
<hr>
<label><%= labels.termMetaLabel%></label>
<div class="wpml-form-row">
<% _.each(original_term_meta, function(meta_data){ %>
<label for="term-meta"><%= meta_data.meta_key %></label>
<input readonly value="<%- meta_data.meta_value %>" type="text">
<button class="button-copy button-secondary js-button-copy otgs-ico-copy" title="<%= labels.copyFromOriginal %>"></button>
<input name="term-meta" class="term-meta" data-meta-key="<%= meta_data.meta_key %>" value="<%- term_meta[meta_data.meta_key] %>" type="text">
<% }); %>
</div>
<% } %>
</div>
<div class="wpml-dialog-footer ">
<span class="errors icl_error_text"></span>
<input class="cancel wpml-dialog-close-button alignleft" value="<%= labels.cancel %>" type="button">
<input class="button-primary term-save alignright" value="<%= labels.save %>" type="submit">
<span class="spinner alignright"></span>
</div>
</div>

View File

@@ -0,0 +1,10 @@
<span class="icl_tt_term_name_sync" id="<%=trid + '-' + lang%>">
<% if ( name ) { %>
<%= parent %>
<%if ( level > 0 ) { %>
</br>
<%= Array(level+1).join('—') + " " %>
<% } %>
<%= name %>
<% } %>
</span>

View File

@@ -0,0 +1,4 @@
<a class="icl_tt_term_name " id="<%= trid + '-' + lang %>" title="<%= langs[ lang ].label %>: <%= labels.editTranslation %>">
<i class="otgs-ico-edit"></i>
</a>
<div id="<%= trid + '-popup-' + lang %>"></div>