first commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<p class="alignright">
|
||||
|
||||
{% set add_tooltip = tooltip_all_assigned %}
|
||||
|
||||
{% if existing_items == 0 %}
|
||||
{% set add_tooltip = tooltip_no_item %}
|
||||
{% endif %}
|
||||
|
||||
{% if settings_items >= existing_items %}
|
||||
{% set disabled = true %}
|
||||
{% endif %}
|
||||
|
||||
<span class="js-wpml-ls-tooltip-wrapper{% if not disabled %} hidden{% endif %}">
|
||||
{% include 'tooltip.twig' with { "content": add_tooltip } %}
|
||||
</span>
|
||||
|
||||
<button class="js-wpml-ls-open-dialog button-secondary"{% if disabled %} disabled="disabled"{% endif %}
|
||||
data-target="{{ button_target }}">+ {{ button_label }}</button>
|
||||
</p>
|
||||
@@ -0,0 +1,70 @@
|
||||
{% set force = data.templates[ template_slug ].force_settings %}
|
||||
{% set is_hierarchical = slot_settings.slot_group == 'menus' and slot_settings.is_hierarchical %}
|
||||
|
||||
<h4>{{ strings.misc.title_what_to_include }} {% include 'tooltip.twig' with { "content": strings.tooltips.what_to_include } %}</h4>
|
||||
<ul class="js-wpml-ls-to-include">
|
||||
<li>
|
||||
<label>
|
||||
<input
|
||||
type="checkbox"
|
||||
class="js-wpml-ls-setting-display_flags js-wpml-ls-toggle-suboptions js-wpml-ls-trigger-update"
|
||||
data-target=".js-wpml-ls-flag-sizes"
|
||||
data-show-on-checked="1"
|
||||
value="1"
|
||||
name="{% if name_base %}{{ name_base }}[display_flags]{% else %}display_flags{% endif %}"
|
||||
{% if force.display_flags is defined %} disabled="disabled"{% endif %}
|
||||
{% if slot_settings.display_flags %} checked="checked"{% endif %}
|
||||
> {{ strings.misc.label_include_flag }}
|
||||
</label>
|
||||
<ul class="js-wpml-ls-flag-sizes"
|
||||
style="display: {% if slot_settings.display_flags %}block{% else %}none{% endif %};">
|
||||
<li>
|
||||
<label>
|
||||
{{ strings.misc.label_include_flag_width }}
|
||||
<input
|
||||
type="number"
|
||||
class="js-wpml-ls-setting-include_flag_width js-wpml-ls-trigger-update"
|
||||
name="{% if name_base %}{{ name_base }}[include_flag_width]{% else %}include_flag_width{% endif %}"
|
||||
value="{{ slot_settings.include_flag_width > 0 ? slot_settings.include_flag_width : '' }}"
|
||||
placeholder="{{ strings.misc.label_include_flag_width_placeholder }}"
|
||||
>
|
||||
{{ strings.misc.label_include_flag_width_suffix }}
|
||||
</label>
|
||||
</li>
|
||||
<li>
|
||||
<label>
|
||||
{{ strings.misc.label_include_flag_height }}
|
||||
<input
|
||||
type="number"
|
||||
class="js-wpml-ls-setting-_include_flag_height js-wpml-ls-trigger-update"
|
||||
name="{% if name_base %}{{ name_base }}[include_flag_height]{% else %}include_flag_height{% endif %}"
|
||||
value="{{ slot_settings.include_flag_height > 0 ? slot_settings.include_flag_height : '' }}"
|
||||
placeholder="{{ strings.misc.label_include_flag_height_placeholder }}"
|
||||
>
|
||||
{{ strings.misc.label_include_flag_height_suffix }}
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<label><input type="checkbox" class="js-wpml-ls-setting-display_names_in_native_lang js-wpml-ls-trigger-update"
|
||||
name="{% if name_base %}{{ name_base }}[display_names_in_native_lang]{% else %}display_names_in_native_lang{% endif %}"
|
||||
{% if force.display_names_in_native_lang is defined %} disabled="disabled"{% endif %}
|
||||
value="1"{% if slot_settings.display_names_in_native_lang %} checked="checked"{% endif %}> {{ strings.misc.label_include_native_lang }}
|
||||
</label>
|
||||
</li>
|
||||
<li>
|
||||
<label><input type="checkbox" class="js-wpml-ls-setting-display_names_in_current_lang js-wpml-ls-trigger-update"
|
||||
name="{% if name_base %}{{ name_base }}[display_names_in_current_lang]{% else %}display_names_in_current_lang{% endif %}"
|
||||
{% if force.display_names_in_current_lang is defined %} disabled="disabled"{% endif %}
|
||||
value="1"{% if slot_settings.display_names_in_current_lang|default(1) %} checked="checked"{% endif %}> {{ strings.misc.label_include_display_lang }}
|
||||
</label>
|
||||
</li>
|
||||
<li>
|
||||
<label><input type="checkbox" class="js-wpml-ls-setting-display_link_for_current_lang js-wpml-ls-trigger-update"
|
||||
name="{% if name_base %}{{ name_base }}[display_link_for_current_lang]{% else %}display_link_for_current_lang{% endif %}"
|
||||
{% if force.display_link_for_current_lang is defined or is_hierarchical %} disabled="disabled"{% endif %}
|
||||
value="1"{% if slot_settings.display_link_for_current_lang|default(1) %} checked="checked"{% endif %}> {{ strings.misc.label_include_current_lang }}
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -0,0 +1,11 @@
|
||||
<div id="wpml-ls-dialog" style="display:none;" >
|
||||
<div class="js-wpml-ls-dialog-inner">
|
||||
|
||||
</div>
|
||||
<div class="wpml-dialog-footer ">
|
||||
<span class="errors icl_error_text"></span>
|
||||
<input class="js-wpml-ls-dialog-close cancel wpml-dialog-close-button alignleft" value="{{ strings.misc.button_cancel }}" type="button">
|
||||
<input class="js-wpml-ls-dialog-save button-primary term-save alignright" value="{{ strings.misc.button_save }}" type="submit">
|
||||
<span class="spinner alignright"></span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,14 @@
|
||||
<h4><label for="wpml-ls-available-menus">{{ strings.menus.select_label }}:</label> {% include 'tooltip.twig' with { "content": strings.tooltips.available_menus } %}</h4>
|
||||
<select name="wpml_ls_available_menus" class="js-wpml-ls-available-slots js-wpml-ls-available-menus">
|
||||
<option disabled="disabled">-- {{ strings.menus.select_option_choose }} --</option>
|
||||
{% for menu_key, menu in menus %}
|
||||
{% if menu_key == slug %}
|
||||
{% set attr = ' selected="selected"' %}
|
||||
{% elseif menu.term_id in settings.menus|keys %}
|
||||
{% set attr = ' disabled="disabled"' %}
|
||||
{% else %}
|
||||
{% set attr = '' %}
|
||||
{% endif %}
|
||||
<option value="{{ menu.term_id }}"{{ attr }}>{{ menu.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
@@ -0,0 +1,14 @@
|
||||
<h4><label for="wpml-ls-available-sidebars">{{ strings.sidebars.select_label }}:</label> {% include 'tooltip.twig' with { "content": strings.tooltips.available_sidebars } %}</h4>
|
||||
<select name="wpml_ls_available_sidebars" class="js-wpml-ls-available-slots js-wpml-ls-available-sidebars">
|
||||
<option disabled="disabled">-- {{ strings.sidebars.select_option_choose }} --</option>
|
||||
{% for sidebar_key, sidebar in sidebars %}
|
||||
{% if sidebar_key == slug %}
|
||||
{% set attr = ' selected="selected"' %}
|
||||
{% elseif sidebar.id in settings.sidebar|keys %}
|
||||
{% set attr = ' disabled="disabled"' %}
|
||||
{% else %}
|
||||
{% set attr = '' %}
|
||||
{% endif %}
|
||||
<option value="{{ sidebar.id }}"{{ attr }}>{{ sidebar.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
@@ -0,0 +1,38 @@
|
||||
{% set supported_core_templates = [] %}
|
||||
{% set supported_custom_templates = [] %}
|
||||
|
||||
{% for template in data.templates if slot_type in template.supported_slot_types %}
|
||||
{% if template.is_core %}
|
||||
{% set supported_core_templates = supported_core_templates|merge([template]) %}
|
||||
{% else %}
|
||||
{% set supported_custom_templates = supported_custom_templates|merge([template]) %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% set total_templates = (supported_core_templates|length) + (supported_custom_templates|length)%}
|
||||
|
||||
<div{% if total_templates <= 1 %} class="hidden"{% endif %}>
|
||||
|
||||
<h4><label for="template-{{ id }}">{{ strings.misc.templates_dropdown_label }}</label> {% include 'tooltip.twig' with { "content": strings.tooltips.available_templates } %}</h4>
|
||||
|
||||
<select id="template-{{ id }}" name="{{ name }}" class="js-wpml-ls-template-selector js-wpml-ls-trigger-update">
|
||||
|
||||
<optgroup label="{{ strings.misc.templates_wpml_group }}">
|
||||
{% for template in supported_core_templates %}
|
||||
{% set template_data = template.get_template_data() %}
|
||||
<option value="{{ template_data.slug }}" {% if value == template_data.slug %}selected="selected"{% endif %}>{{ template_data.name }}</option>
|
||||
{% endfor %}
|
||||
</optgroup>
|
||||
|
||||
{% if supported_custom_templates|length > 0 %}
|
||||
<optgroup label="{{ strings.misc.templates_custom_group }}">
|
||||
{% for template in supported_custom_templates %}
|
||||
{% set template_data = template.get_template_data() %}
|
||||
<option value="{{ template_data.slug }}" {% if value == template_data.slug %}selected="selected"{% endif %}>{{ template_data.name }}</option>
|
||||
{% endfor %}
|
||||
</optgroup>
|
||||
{% endif %}
|
||||
|
||||
</select>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,94 @@
|
||||
<form id="wpml-ls-settings-form" name="wpml_ls_settings_form">
|
||||
|
||||
<input type="hidden" name="wpml-ls-refresh-on-browser-back-button" id="wpml-ls-refresh-on-browser-back-button" value="no">
|
||||
|
||||
{% if notifications.css_not_loaded %}
|
||||
<div class="wpml-ls-message notice notice-info">
|
||||
<p>{{ notifications.css_not_loaded }}</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div id="wpml-language-switcher-options" class="js-wpml-ls-section wpml-section">
|
||||
<div class="wpml-section-header">
|
||||
<h3>{{ strings.options.section_title }}</h3>
|
||||
<p>{{ strings.options.section_description }}</p>
|
||||
</div>
|
||||
|
||||
<div class="js-setting-group wpml-ls-settings-group wpml-section-content">
|
||||
{% include 'section-options.twig' %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="wpml-language-switcher-menus" class="js-wpml-ls-section wpml-section">
|
||||
<div class="wpml-section-header">
|
||||
<h3>
|
||||
{{ strings.menus.section_title }}
|
||||
</h3>
|
||||
{% include 'save-notification.twig' %}
|
||||
</div>
|
||||
|
||||
<div class="js-setting-group wpml-ls-settings-group wpml-section-content">
|
||||
{% include 'section-menus.twig' %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="wpml-language-switcher-sidebars" class="js-wpml-ls-section wpml-section">
|
||||
<div class="wpml-section-header">
|
||||
<h3>
|
||||
{{ strings.sidebars.section_title }}
|
||||
</h3>
|
||||
{% include 'save-notification.twig' %}
|
||||
</div>
|
||||
|
||||
<div class="js-setting-group wpml-ls-settings-group wpml-section-content">
|
||||
{% include 'section-sidebars.twig' %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="wpml-language-switcher-footer" class="js-wpml-ls-section wpml-section">
|
||||
<div class="wpml-section-header">
|
||||
<h3>
|
||||
{{ strings.footer.section_title }}
|
||||
{% include 'tooltip.twig' with { "content": strings.tooltips.show_in_footer } %}
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
<div class="js-setting-group wpml-ls-settings-group wpml-section-content">
|
||||
{% include 'section-footer.twig' %}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="wpml-language-switcher-post-translations" class="js-wpml-ls-section wpml-section">
|
||||
<div class="wpml-section-header">
|
||||
<h3>
|
||||
{{ strings.post_translations.section_title }}
|
||||
{% include 'tooltip.twig' with { "content": strings.tooltips.section_post_translations } %}
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
<div class="js-setting-group wpml-ls-settings-group wpml-section-content">
|
||||
{% include 'section-post-translations.twig' %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="wpml-language-switcher-shortcode-action" class="js-wpml-ls-section wpml-section"
|
||||
{% if not setup_complete %} style="display:none;"{% endif %}>
|
||||
<div class="wpml-section-header">
|
||||
<h3>
|
||||
{{ strings.shortcode_actions.section_title }}
|
||||
{#{% include 'tooltip.twig' with { "content": strings.tooltips.section_shortcode_action } %}#}
|
||||
</h3>
|
||||
{% include 'save-notification.twig' %}
|
||||
</div>
|
||||
|
||||
<div class="js-setting-group wpml-ls-settings-group wpml-section-content">
|
||||
{% include 'section-shortcode-action.twig' %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% include 'setup-wizard-buttons.twig' %}
|
||||
|
||||
{% include 'dialog-box.twig' %}
|
||||
|
||||
</form>
|
||||
@@ -0,0 +1,17 @@
|
||||
<div class="wpml-section" id="wpml_ls_reset">
|
||||
<div class="wpml-section-header">
|
||||
<h3>{{ title }}</h3>
|
||||
</div>
|
||||
<div class="wpml-section-content">
|
||||
<p>{{ description|raw }}</p>
|
||||
|
||||
{% if theme_config_file %}
|
||||
<p class="explanation-text">{{ explanation_text|raw }}</p>
|
||||
{% endif %}
|
||||
|
||||
<p class="buttons-wrap">
|
||||
<a class="button button-secondary" onclick="if(!confirm('{{ confirmation_message }}')) return false;"
|
||||
href="{{ restore_page_url }}">{{ restore_button_label }}{% if theme_config_file %} *{% endif %}</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,12 @@
|
||||
{% spaceless %}
|
||||
{% if action == 'edit' %}
|
||||
{% set class = 'otgs-ico-edit' %}
|
||||
{% else %}
|
||||
{% set class = 'otgs-ico-add' %}
|
||||
{% endif %}
|
||||
|
||||
<p class="wpml-ls-slot-management-link-wrapper">
|
||||
<a href="{{ url }}" class="js-wpml-ls-slot-management-link button-secondary">
|
||||
<span class="{{ class }}"></span> {{ label -}}</a>
|
||||
</p>
|
||||
{% endspaceless %}
|
||||
@@ -0,0 +1,71 @@
|
||||
{% set wrapper_options = [
|
||||
{'label': strings.color_picker.background, 'name': 'background', 'schemes': ['normal'], 'default': '' },
|
||||
{'label': strings.color_picker.border, 'name': 'border', 'schemes': ['normal'], 'default': '' },
|
||||
]
|
||||
%}
|
||||
|
||||
{% set options = [
|
||||
{'label': strings.color_picker.font_current, 'name': 'font_current', 'schemes': ['normal', 'hover'], 'default': '' },
|
||||
{'label': strings.color_picker.background_current, 'name': 'background_current', 'schemes': ['normal', 'hover'], 'default': '' },
|
||||
{'label': strings.color_picker.font_other, 'name': 'font_other', 'schemes': ['normal', 'hover'], 'default': '' },
|
||||
{'label': strings.color_picker.background_other, 'name': 'background_other', 'schemes': ['normal', 'hover'], 'default': '' },
|
||||
]
|
||||
%}
|
||||
|
||||
{% if slot_type != 'menus' %}
|
||||
{% set options = wrapper_options|merge(options) %}
|
||||
{% endif %}
|
||||
|
||||
{% set css_class = css_class|default( 'js-wpml-ls-colorpicker' ) %}
|
||||
|
||||
<div class="js-wpml-ls-panel-colors wpml-ls-panel-colors">
|
||||
<h4>{{ strings.color_picker.panel_title }}</h4>
|
||||
|
||||
<label for="wpml-ls-{{ id }}-colorpicker-preset">{{ strings.color_picker.label_color_preset }}</label>
|
||||
<select name="wpml-ls-{{ id }}-colorpicker-preset" class="js-wpml-ls-colorpicker-preset">
|
||||
<option value="">-- {{ strings.color_picker.select_option_choose }} --</option>
|
||||
{% for scheme_id, scheme in color_schemes %}
|
||||
<option value="{{ scheme_id }}">{{ scheme.label }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
|
||||
<div>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
</td>
|
||||
<th>{{ strings.color_picker.label_normal_scheme }}</th>
|
||||
<th>{{ strings.color_picker.label_hover_scheme }}</th>
|
||||
</tr>
|
||||
{% for option in options %}
|
||||
<tr>
|
||||
<td>{{ option.label }}</td>
|
||||
<td class="js-wpml-ls-colorpicker-wrapper">
|
||||
{% if 'normal' in option.schemes %}
|
||||
{% if name_base %}
|
||||
{% set input_name = name_base ~ '[' ~ option.name ~ '_normal]' %}
|
||||
{% else %}
|
||||
{% set input_name = option.name ~ '_normal' %}
|
||||
{% endif %}
|
||||
<input class="{{ css_class }} js-wpml-ls-color-{{ option.name }}_normal" type="text" size="7"
|
||||
id="wpml-ls-{{ id }}-{{ option.name }}-normal" name="{{ input_name }}"
|
||||
value="{{ slot_settings[ option.name ~ "_normal" ]|default( option.default ) }}" data-default-color="{{ option.default }}" style="display: none;">
|
||||
{% endif %}
|
||||
</td>
|
||||
<td class="js-wpml-ls-colorpicker-wrapper">
|
||||
{% if 'hover' in option.schemes %}
|
||||
{% if name_base %}
|
||||
{% set input_name = name_base ~ '[' ~ option.name ~ '_hover]' %}
|
||||
{% else %}
|
||||
{% set input_name = option.name ~ '_hover' %}
|
||||
{% endif %}
|
||||
<input class="{{ css_class }} js-wpml-ls-color-{{ option.name }}_hover" type="text" size="7"
|
||||
id="wpml-ls-{{ id }}-{{ option.name }}-hover" name="{{ input_name }}"
|
||||
value="{{ slot_settings[ option.name ~ "_hover" ]|default( option.default ) }}" data-default-color="{{ option.default }}" style="display: none;">
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,5 @@
|
||||
<div class="js-wpml-ls-preview-wrapper wpml-ls-preview-wrapper{% if class %} {{ class }}{% endif %}">
|
||||
<strong class="wpml-ls-preview-label">{{ strings.misc.label_preview }}</strong>
|
||||
<span class="spinner"></span>
|
||||
<div class="js-wpml-ls-preview">{{ preview.html|raw }}</div>
|
||||
</div>
|
||||
@@ -0,0 +1,23 @@
|
||||
{% if not slot_settings.is_hierarchical is defined %}
|
||||
{% set is_hierarchical = 1 %}
|
||||
{% else %}
|
||||
{% set is_hierarchical = slot_settings.is_hierarchical %}
|
||||
{% endif %}
|
||||
|
||||
<h4><label>{{ strings.menus.is_hierarchical_label }}</label> {% include 'tooltip.twig' with { "content": strings.tooltips.menu_style_type } %}</h4>
|
||||
<ul>
|
||||
<li>
|
||||
<label>
|
||||
<input type="radio" class="js-wpml-ls-trigger-update js-wpml-ls-menu-is-hierarchical"
|
||||
name="{% if name_base %}{{ name_base }}[is_hierarchical]{% else %}is_hierarchical{% endif %}"
|
||||
value="1"{% if is_hierarchical == 1 %} checked="checked"{% endif %}><b>{{ strings.menus.hierarchical }}</b> - {{ strings.menus.hierarchical_desc }}
|
||||
</label>
|
||||
</li>
|
||||
<li>
|
||||
<label>
|
||||
<input type="radio" class="js-wpml-ls-trigger-update js-wpml-ls-menu-is-hierarchical"
|
||||
name="{% if name_base %}{{ name_base }}[is_hierarchical]{% else %}is_hierarchical{% endif %}"
|
||||
value="0"{% if is_hierarchical == 0 %} checked="checked"{% endif %}><b>{{ strings.menus.flat }}</b> - {{ strings.menus.flat_desc }}
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -0,0 +1,23 @@
|
||||
{% if not slot_settings.position_in_menu %}
|
||||
{% set menu_position = 'after' %}
|
||||
{% else %}
|
||||
{% set menu_position = slot_settings.position_in_menu %}
|
||||
{% endif %}
|
||||
|
||||
<h4><label>{{ strings.menus.position_label }}</label> {% include 'tooltip.twig' with { "content": strings.tooltips.menu_position } %}</h4>
|
||||
<ul>
|
||||
<li>
|
||||
<label>
|
||||
<input type="radio" name="{% if name_base %}{{ name_base }}[position_in_menu]{% else %}position_in_menu{% endif %}"
|
||||
class=" js-wpml-ls-trigger-update"
|
||||
value="before"{% if menu_position == 'before' %} checked="checked"{% endif %}>{{ strings.menus.position_first_item }}
|
||||
</label>
|
||||
</li>
|
||||
<li>
|
||||
<label>
|
||||
<input type="radio" name="{% if name_base %}{{ name_base }}[position_in_menu]{% else %}position_in_menu{% endif %}"
|
||||
class=" js-wpml-ls-trigger-update"
|
||||
value="after"{% if menu_position == 'after' %} checked="checked"{% endif %}>{{ strings.menus.position_last_item }}
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -0,0 +1 @@
|
||||
<span class="js-wpml-ls-messages wpml-ls-messages"></span><span class="spinner"></span>
|
||||
@@ -0,0 +1,25 @@
|
||||
<p class="wpml-ls-form-line js-wpml-ls-option">
|
||||
<label for="wpml-ls-show-in-footer">
|
||||
<input type="checkbox" id="wpml-ls-show-in-footer" name="statics[footer][show]" value="1"
|
||||
class="js-wpml-ls-toggle-slot js-wpml-ls-trigger-save" data-target=".js-wpml-ls-footer-toggle-target"
|
||||
{% if settings.statics.footer.show %}checked="checked"{% endif %}/>
|
||||
{{ strings.footer.show }}
|
||||
</label>
|
||||
|
||||
{% include 'save-notification.twig' %}
|
||||
</p>
|
||||
|
||||
<div class="js-wpml-ls-footer-toggle-target{% if settings.statics.footer.show != 1 %} hidden{% endif %}">
|
||||
|
||||
{% set slot_settings = [] %}
|
||||
{% set slot_settings = slot_settings|merge({'footer': settings.statics.footer}) %}
|
||||
|
||||
{% include 'table-slots.twig'
|
||||
with {
|
||||
"slot_type": "statics",
|
||||
"slots_settings": slot_settings,
|
||||
"slug" : 'footer',
|
||||
}
|
||||
%}
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,43 @@
|
||||
{% set slug_placeholder = '%id%' %}
|
||||
|
||||
{% include 'table-slots.twig'
|
||||
with {
|
||||
"slot_type": "menus",
|
||||
"slots_settings": settings.menus,
|
||||
"slots" : data.menus,
|
||||
}
|
||||
%}
|
||||
|
||||
{% include 'button-add-new-ls.twig'
|
||||
with {
|
||||
"existing_items": data.menus|length,
|
||||
"settings_items": settings.menus|length,
|
||||
"tooltip_all_assigned": strings.tooltips.add_menu_all_assigned,
|
||||
"tooltip_no_item": strings.tooltips.add_menu_no_menu,
|
||||
"button_target": "#wpml-ls-new-menus-template",
|
||||
"button_label": strings.menus.add_button_label,
|
||||
}
|
||||
%}
|
||||
|
||||
<script type="text/html" id="wpml-ls-new-menus-template" class="js-wpml-ls-template">
|
||||
<div class="js-wpml-ls-subform wpml-ls-subform" data-title="{{ strings.menus.dialog_title_new }}" data-item-slug="{{ slug_placeholder }}" data-item-type="menus">
|
||||
|
||||
{% include 'slot-subform-menus.twig'
|
||||
with {
|
||||
"slug": slug_placeholder,
|
||||
"slots_settings": slots_settings,
|
||||
"slots": data.menus,
|
||||
"preview": previews.menu[ slug ],
|
||||
}
|
||||
%}
|
||||
</div>
|
||||
</script>
|
||||
|
||||
<script type="text/html" id="wpml-ls-new-menus-row-template" class="js-wpml-ls-template">
|
||||
{% include 'table-slot-row.twig'
|
||||
with {
|
||||
"slug": slug_placeholder,
|
||||
"slots": menus
|
||||
}
|
||||
%}
|
||||
</script>
|
||||
@@ -0,0 +1,100 @@
|
||||
<div class="js-wpml-ls-option wpml-ls-language_order">
|
||||
<h4><label>{{ strings.options.label_language_order }}</label> {% include 'tooltip.twig' with { "content": strings.tooltips.languages_order } %}
|
||||
{% include 'save-notification.twig' %}
|
||||
</h4>
|
||||
<p class="explanation-text">{{ strings.options.tip_drag_languages }}</p>
|
||||
<ul id="wpml-ls-languages-order" class="wpml-ls-languages-order">
|
||||
{% for language in ordered_languages %}
|
||||
<li class="js-wpml-languages-order-item" data-language-code="{{ language.code }}">
|
||||
{{ language.flag_img | raw }} {{ language.display_name }}<input type="hidden" name="languages_order[]" value="{{ language.code }}">
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="js-wpml-ls-option wpml-ls-languages_with_no_translations">
|
||||
<h4><label>{{ strings.options.label_languages_with_no_translations }} {% include 'tooltip.twig' with { "content": strings.tooltips.languages_without_translation } %}
|
||||
</label>
|
||||
{% include 'save-notification.twig' %}
|
||||
</h4>
|
||||
<ul>
|
||||
<li>
|
||||
<label for="link_empty_off">
|
||||
<input type="radio" name="link_empty" id="link_empty_off"
|
||||
class="js-wpml-ls-trigger-save"
|
||||
value="0"{% if not settings.link_empty %} checked="checked"{% endif %}>{{ strings.options.option_skip_link }}
|
||||
</label>
|
||||
</li>
|
||||
<li>
|
||||
<label for="link_empty_on">
|
||||
<input type="radio" name="link_empty" id="link_empty_on"
|
||||
class="js-wpml-ls-trigger-save"
|
||||
value="1"{% if settings.link_empty %} checked="checked"{% endif %}>{{ strings.options.option_link_home }}
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="js-wpml-ls-option wpml-ls-preserve_url_args">
|
||||
<p class="wpml-ls-form-line">
|
||||
{% if not settings.copy_parameters %}<a href="#" class="js-wpml-ls-toggle-once">{% endif %}
|
||||
<label for="copy_parameters">
|
||||
{{ strings.options.label_preserve_url_args }}{% if not settings.copy_parameters -%}<span class="otgs-ico-caret-down js-arrow-toggle"></span>{%- endif -%}
|
||||
</label>{% if not settings.copy_parameters %}</a>{% endif %}
|
||||
|
||||
{% include 'tooltip.twig' with { "content": strings.tooltips.preserve_url_arguments } %}
|
||||
|
||||
{% include 'save-notification.twig' %}
|
||||
|
||||
<input type="text" size="100" id="copy_parameters" name="copy_parameters"
|
||||
value="{{ settings.copy_parameters }}"
|
||||
class="js-wpml-ls-trigger-save js-wpml-ls-trigger-need-save{% if not settings.copy_parameters %} js-wpml-ls-toggle-target hidden{% endif %}">
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="js-wpml-ls-option wpml-ls-additional_css">
|
||||
<p class="wpml-ls-form-line">
|
||||
{% if not settings.additional_css %}<a href="#" class="js-wpml-ls-toggle-once">{% endif %}
|
||||
<label for="additional_css">
|
||||
{{ strings.options.label_additional_css }}{% if not settings.additional_css %}<span class="otgs-ico-caret-down js-arrow-toggle"></span>{%- endif -%}
|
||||
</label>{% if not settings.additional_css %}</a>{% endif %}
|
||||
|
||||
|
||||
{% include 'tooltip.twig' with { "content": strings.tooltips.additional_css } %}
|
||||
|
||||
{% include 'save-notification.twig' %}
|
||||
|
||||
<textarea id="additional_css" name="additional_css" rows="4"
|
||||
class="large-text js-wpml-ls-additional-css js-wpml-ls-trigger-save js-wpml-ls-trigger-need-save{% if not settings.additional_css %} js-wpml-ls-toggle-target hidden{% endif %}">
|
||||
{{- settings.additional_css -}}
|
||||
</textarea>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="js-wpml-ls-option wpml-ls-backwards_compatibility">
|
||||
<div class="wpml-ls-form-line">
|
||||
{% if not settings.migrated == 1 %}
|
||||
{% set hide_backwards_compatibility = true %}
|
||||
{% endif %}
|
||||
|
||||
{% if hide_backwards_compatibility %}<a href="#" class="js-wpml-ls-toggle-once">{% endif %}
|
||||
<label>
|
||||
{{ strings.options.label_migrated_toggle }}{% if hide_backwards_compatibility %}<span class="otgs-ico-caret-down js-arrow-toggle"></span>{%- endif -%}
|
||||
</label>{% if hide_backwards_compatibility %}</a>{% endif %}
|
||||
|
||||
{% include 'tooltip.twig' with { "content": strings.tooltips.backwards_compatibility } %}
|
||||
|
||||
{% include 'save-notification.twig' %}
|
||||
|
||||
<p{% if hide_backwards_compatibility %} class="js-wpml-ls-toggle-target hidden"{% endif %}>
|
||||
<input type="checkbox" id="wpml-ls-backwards-compatibility" name="migrated"
|
||||
value="0"{% if settings.migrated == 0 %} checked="checked"{% endif %}
|
||||
class="js-wpml-ls-migrated js-wpml-ls-trigger-save js-wpml-ls-trigger-need-save">
|
||||
|
||||
<label for="wpml-ls-backwards-compatibility">
|
||||
{{ strings.options.label_skip_backwards_compatibility }}
|
||||
</label>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,25 @@
|
||||
<p class="wpml-ls-form-line js-wpml-ls-option">
|
||||
<label for="wpml-ls-show-in-post-translations">
|
||||
<input type="checkbox" id="wpml-ls-show-in-post-translations" name="statics[post_translations][show]" value="1"
|
||||
class="js-wpml-ls-toggle-slot js-wpml-ls-trigger-save" data-target=".js-wpml-ls-post-translations-toggle-target"
|
||||
{% if settings.statics.post_translations.show %}checked="checked"{% endif %}/>
|
||||
{{ strings.post_translations.show }}
|
||||
</label>
|
||||
|
||||
{% include 'save-notification.twig' %}
|
||||
</p>
|
||||
|
||||
<div class="js-wpml-ls-post-translations-toggle-target alignleft{% if settings.statics.post_translations.show != 1 %} hidden{% endif %}">
|
||||
|
||||
{% set slot_settings = [] %}
|
||||
{% set slot_settings = slot_settings|merge({'post_translations': settings.statics.post_translations}) %}
|
||||
|
||||
{% include 'table-slots.twig'
|
||||
with {
|
||||
"slot_type": "statics",
|
||||
"slots_settings": slot_settings,
|
||||
"slug" : 'post_translations',
|
||||
}
|
||||
%}
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,28 @@
|
||||
<p>{{ strings.shortcode_actions.section_description|raw }}</p>
|
||||
<p>
|
||||
<input type="checkbox" id="wpml-ls-show-in-shortcode-actions" name="statics[shortcode_actions][show]" value="1"
|
||||
class="js-wpml-ls-toggle-slot js-wpml-ls-trigger-save" data-target=".js-wpml-ls-shortcode-actions-toggle-target"
|
||||
{% if settings.statics.shortcode_actions.show %}checked="checked"{% endif %}/>
|
||||
|
||||
<label for="wpml-ls-show-in-shortcode-actions">{{ strings.shortcode_actions.show }}</label>
|
||||
</p>
|
||||
|
||||
<div class="hidden">
|
||||
{% set slot_settings = [] %}
|
||||
{% set slot_settings = slot_settings|merge({'shortcode_actions': settings.statics.footer}) %}
|
||||
|
||||
{% include 'table-slots.twig'
|
||||
with {
|
||||
"slot_type": "statics",
|
||||
"slots_settings": slot_settings,
|
||||
"slug" : 'shortcode_actions',
|
||||
}
|
||||
%}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="js-wpml-ls-shortcode-actions-toggle-target alignleft{% if settings.statics.shortcode_actions.show != 1 %} hidden{% endif %}">
|
||||
<button class="js-wpml-ls-open-dialog button-secondary"
|
||||
data-target="#wpml-ls-slot-list-statics-shortcode_actions"
|
||||
name="wpml-ls-customize">{{ strings.shortcode_actions.customize_button_label }}</button>
|
||||
</div>
|
||||
@@ -0,0 +1,44 @@
|
||||
{% set slug_placeholder = '%id%' %}
|
||||
|
||||
{% include 'table-slots.twig'
|
||||
with {
|
||||
"slot_type": "sidebars",
|
||||
"slots_settings": settings.sidebars,
|
||||
"slots" : data.sidebars,
|
||||
}
|
||||
%}
|
||||
|
||||
{% include 'button-add-new-ls.twig'
|
||||
with {
|
||||
"existing_items": data.sidebars|length,
|
||||
"settings_items": settings.sidebars|length,
|
||||
"tooltip_all_assigned": strings.tooltips.add_sidebar_all_assigned,
|
||||
"tooltip_no_item": strings.tooltips.add_sidebar_no_sidebar,
|
||||
"button_target": "#wpml-ls-new-sidebars-template",
|
||||
"button_label": strings.sidebars.add_button_label,
|
||||
}
|
||||
%}
|
||||
|
||||
<script type="text/html" id="wpml-ls-new-sidebars-template" class="js-wpml-ls-template">
|
||||
<div class="js-wpml-ls-subform wpml-ls-subform" data-title="{{ strings.sidebars.dialog_title_new }}" data-item-slug="{{ slug_placeholder }}" data-item-type="sidebars">
|
||||
|
||||
{% include 'slot-subform-sidebars.twig'
|
||||
with {
|
||||
"slug": slug_placeholder,
|
||||
"slots_settings": slots_settings,
|
||||
"slots": data.sidebars,
|
||||
"preview": previews.sidebars[ slug ],
|
||||
}
|
||||
%}
|
||||
|
||||
</div>
|
||||
</script>
|
||||
|
||||
<script type="text/html" id="wpml-ls-new-sidebars-row-template" class="js-wpml-ls-template">
|
||||
{% include 'table-slot-row.twig'
|
||||
with {
|
||||
"slug": slug_placeholder,
|
||||
"slots": sidebars
|
||||
}
|
||||
%}
|
||||
</script>
|
||||
@@ -0,0 +1,8 @@
|
||||
{% if not setup_complete %}
|
||||
<footer id="icl_setup_nav_3" class="js-wpml-ls-section wpml-section clearfix text-right">
|
||||
<input id="icl_setup_back_2" class="button-secondary alignleft" name="save" value="{{ strings.misc.button_back }}" type="button" />
|
||||
{{ setup_step_2_nonce_field|raw }}
|
||||
<input class="button-primary alignright" name="save" value="{{ strings.misc.button_next }}" type="submit" />
|
||||
<input type="hidden" name="submit_setup_wizard" value="0" />
|
||||
</footer>
|
||||
{% endif %}
|
||||
@@ -0,0 +1,57 @@
|
||||
{% if not slot_settings is defined %}
|
||||
{% set slot_settings = default_menus_slot %}
|
||||
{% endif %}
|
||||
|
||||
{% include 'preview.twig' with {"preview": preview } %}
|
||||
|
||||
<div class="wpml-ls-subform-options">
|
||||
|
||||
{% include 'dropdown-menus.twig'
|
||||
with {
|
||||
"slug": slug,
|
||||
"menus": slots,
|
||||
}
|
||||
%}
|
||||
|
||||
{% include 'dropdown-templates.twig'
|
||||
with {
|
||||
"id": "in-menus-" ~ slug,
|
||||
"name": "menus[" ~ slug ~ "][template]",
|
||||
"value": slot_settings.template,
|
||||
"slot_type": "menus",
|
||||
}
|
||||
%}
|
||||
|
||||
{% include 'radio-position-menu.twig'
|
||||
with {
|
||||
"name_base": "menus[" ~ slug ~ "]",
|
||||
"slot_settings": slot_settings
|
||||
}
|
||||
%}
|
||||
|
||||
{% include 'radio-hierarchical-menu.twig'
|
||||
with {
|
||||
"name_base": "menus[" ~ slug ~ "]",
|
||||
"slot_settings": slot_settings
|
||||
}
|
||||
%}
|
||||
|
||||
|
||||
{% include 'checkboxes-includes.twig'
|
||||
with {
|
||||
"name_base": "menus[" ~ slug ~ "]",
|
||||
"slot_settings": slot_settings,
|
||||
"template_slug": slot_settings.template,
|
||||
}
|
||||
%}
|
||||
|
||||
{% include 'panel-colors.twig'
|
||||
with {
|
||||
"id": "in-menus-" ~ slug,
|
||||
"name_base": "menus[" ~ slug ~ "]",
|
||||
"slot_settings": slot_settings,
|
||||
"slot_type": "menus",
|
||||
}
|
||||
%}
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,53 @@
|
||||
{% if not slot_settings is defined %}
|
||||
{% set slot_settings = default_sidebars_slot %}
|
||||
{% endif %}
|
||||
|
||||
{% include 'preview.twig' with {"preview": preview } %}
|
||||
|
||||
<div class="wpml-ls-subform-options">
|
||||
|
||||
{% include 'dropdown-sidebars.twig'
|
||||
with {
|
||||
"slug": slug,
|
||||
"settings": settings,
|
||||
"sidebars": slots,
|
||||
"strings": strings,
|
||||
}
|
||||
%}
|
||||
|
||||
{% include 'dropdown-templates.twig'
|
||||
with {
|
||||
"id": "in-sidebars-" ~ slug,
|
||||
"name": "sidebars[" ~ slug ~ "][template]",
|
||||
"value": slot_settings.template,
|
||||
"slot_type": "sidebars",
|
||||
}
|
||||
%}
|
||||
|
||||
{% include 'checkboxes-includes.twig'
|
||||
with {
|
||||
"name_base": "sidebars[" ~ slug ~ "]",
|
||||
"slot_settings": slot_settings,
|
||||
"strings": strings,
|
||||
"template_slug": slot_settings.template,
|
||||
}
|
||||
%}
|
||||
|
||||
<h4><label for="widget-title-in-{{ slug }}">
|
||||
{{ strings.sidebars.label_widget_title }} {% include 'tooltip.twig' with { "content": strings.tooltips.widget_title } %}</label></h4>
|
||||
|
||||
<input type="text" id="widget-title-in-{{ slug }}"
|
||||
name="sidebars[{{ slug }}][widget_title]" value="{{ slot_settings.widget_title }}" size="40">
|
||||
|
||||
|
||||
{% include 'panel-colors.twig'
|
||||
with {
|
||||
"strings": strings,
|
||||
"id": "in-sidebars-" ~ slug,
|
||||
"name_base": "sidebars[" ~ slug ~ "]",
|
||||
"slot_settings": slot_settings,
|
||||
"color_schemes": color_schemes,
|
||||
}
|
||||
%}
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,30 @@
|
||||
{% include 'preview.twig' with {"preview": previews.statics.footer } %}
|
||||
|
||||
<div class="wpml-ls-subform-options">
|
||||
|
||||
{% include 'dropdown-templates.twig'
|
||||
with {
|
||||
"id": "in-footer",
|
||||
"name": "statics[footer][template]",
|
||||
"value": settings.statics.footer.template,
|
||||
"slot_type": "footer",
|
||||
}
|
||||
%}
|
||||
|
||||
{% include 'checkboxes-includes.twig'
|
||||
with {
|
||||
"name_base": "statics[footer]",
|
||||
"slot_settings": settings.statics.footer,
|
||||
"template_slug": slot_settings.template,
|
||||
}
|
||||
%}
|
||||
|
||||
{% include 'panel-colors.twig'
|
||||
with {
|
||||
"id": "static-footer",
|
||||
"name_base": "statics[footer]",
|
||||
"slot_settings": settings.statics.footer,
|
||||
}
|
||||
%}
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,50 @@
|
||||
{% include 'preview.twig' with {"preview": previews.statics.post_translations } %}
|
||||
|
||||
<div class="wpml-ls-subform-options">
|
||||
|
||||
{% include 'dropdown-templates.twig'
|
||||
with {
|
||||
"id": "in-post-translations",
|
||||
"name": "statics[post_translations][template]",
|
||||
"value": settings.statics.post_translations.template,
|
||||
"slot_type": "post_translations",
|
||||
}
|
||||
%}
|
||||
|
||||
{% include 'checkboxes-includes.twig'
|
||||
with {
|
||||
"name_base": "statics[post_translations]",
|
||||
"slot_settings": settings.statics.post_translations,
|
||||
"template_slug": slot_settings.template,
|
||||
}
|
||||
%}
|
||||
|
||||
<h4><label>{{ strings.post_translations.position_label }}</label> {% include 'tooltip.twig' with { "content": strings.tooltips.post_translation_position } %}</h4>
|
||||
<ul>
|
||||
<li>
|
||||
<label>
|
||||
<input type="checkbox" name="statics[post_translations][display_before_content]"
|
||||
id="wpml-ls-before-in-post-translations"
|
||||
value="1"{% if settings.statics.post_translations.display_before_content %} checked="checked"{% endif %}>{{ strings.post_translations.position_above }}
|
||||
</label>
|
||||
</li>
|
||||
<li>
|
||||
<label>
|
||||
<input type="checkbox" name="statics[post_translations][display_after_content]"
|
||||
id="wpml-ls-after-in-post-translations"
|
||||
value="1"{% if settings.statics.post_translations.display_after_content %} checked="checked"{% endif %}>{{ strings.post_translations.position_below }}
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
{% if settings.statics.post_translations.availability_text is empty %}
|
||||
{% set availability_text = strings.post_translations.default_alternative_languages_text %}
|
||||
{% else %}
|
||||
{% set availability_text = settings.statics.post_translations.availability_text %}
|
||||
{% endif %}
|
||||
|
||||
<h4><label>{{ strings.post_translations.label_alternative_languages_text }}</label> {% include 'tooltip.twig' with { "content": strings.tooltips.alternative_languages_text } %}</h4>
|
||||
<input type="text" class="js-wpml-ls-trigger-update"
|
||||
name="statics[post_translations][availability_text]" value="{{ availability_text }}" size="40">
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,31 @@
|
||||
{% include 'preview.twig' with {"preview": previews.statics.shortcode_actions } %}
|
||||
|
||||
<div class="wpml-ls-subform-options">
|
||||
|
||||
{% include 'dropdown-templates.twig'
|
||||
with {
|
||||
"id": "in-shortcode-action",
|
||||
"name": "statics[shortcode_actions][template]",
|
||||
"value": settings.statics.shortcode_actions.template,
|
||||
"slot_type": "shortcode_actions",
|
||||
}
|
||||
%}
|
||||
|
||||
{% include 'checkboxes-includes.twig'
|
||||
with {
|
||||
"id": "in-shortcode-actions",
|
||||
"name_base": "statics[shortcode_actions]",
|
||||
"slot_settings": settings.statics.shortcode_actions,
|
||||
"template_slug": slot_settings.template,
|
||||
}
|
||||
%}
|
||||
|
||||
{% include 'panel-colors.twig'
|
||||
with {
|
||||
"id": "in-shortcode-actions",
|
||||
"name_base": "statics[shortcode_actions]",
|
||||
"slot_settings": settings.statics.shortcode_actions,
|
||||
}
|
||||
%}
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,45 @@
|
||||
{% if slot_type == 'statics' %}
|
||||
{% set is_static = true %}
|
||||
{% set dialog_title = strings[ slug ].dialog_title %}
|
||||
{% set include_row = 'slot-subform-' ~ slot_type ~ '-' ~ slug ~ '.twig' %}
|
||||
{% else %}
|
||||
{% set dialog_title = strings[ slot_type ].dialog_title %}
|
||||
{% set include_row = 'slot-subform-' ~ slot_type ~ '.twig' %}
|
||||
{% endif %}
|
||||
|
||||
{% set slot_row_id = 'wpml-ls-' ~ slot_type ~ '-row-' ~ slug %}
|
||||
<tr id="{{ slot_row_id }}" class="js-wpml-ls-row" data-item-slug="{{ slug }}" data-item-type="{{ slot_type }}">
|
||||
<td class="wpml-ls-cell-preview">
|
||||
<div class="js-wpml-ls-subform wpml-ls-subform" data-origin-id="{{ slot_row_id }}" data-title="{{ dialog_title }}" data-item-slug="{{ slug }}" data-item-type="{{ slot_type }}">
|
||||
{% if slot_settings %}
|
||||
{% include include_row
|
||||
with {
|
||||
"slug": slug,
|
||||
"slot_settings": slot_settings,
|
||||
"settings": settings,
|
||||
"slots": slots,
|
||||
"strings": strings,
|
||||
"preview": previews[ slot_type ][ slug ],
|
||||
"color_schemes": color_schemes,
|
||||
}
|
||||
%}
|
||||
{% endif %}
|
||||
</div>
|
||||
</td>
|
||||
|
||||
{% if not is_static %}
|
||||
<td>
|
||||
<span class="js-wpml-ls-row-title">{{ slots[ slug ].name }}</span>
|
||||
</td>
|
||||
{% endif %}
|
||||
|
||||
<td class="wpml-ls-cell-action">
|
||||
<a href="#" title="{{ strings.misc.title_action_edit }}" class="js-wpml-ls-row-edit wpml-ls-row-edit"><i class="otgs-ico-edit"></i></a>
|
||||
</td>
|
||||
|
||||
{% if not is_static %}
|
||||
<td class="wpml-ls-cell-action">
|
||||
<a href="#" title="{{ strings.misc.title_action_delete }}" class="js-wpml-ls-row-remove wpml-ls-row-remove"><i class="otgs-ico-delete"></i></a>
|
||||
</td>
|
||||
{% endif %}
|
||||
</tr>
|
||||
@@ -0,0 +1,33 @@
|
||||
{% if slot_type == 'statics' %}
|
||||
{% set is_static = true %}
|
||||
{% set table_id = 'wpml-ls-slot-list-' ~ slot_type ~ '-' ~ slug %}
|
||||
{% else %}
|
||||
{% set table_id = 'wpml-ls-slot-list-' ~ slot_type %}
|
||||
{% endif %}
|
||||
|
||||
{% if slug in ['footer', 'post_translations'] %}
|
||||
{% set label_action = strings.misc.label_action %}
|
||||
{% else %}
|
||||
{% set label_action = strings.misc.label_actions %}
|
||||
{% endif %}
|
||||
|
||||
<table id="{{ table_id }}" class="js-wpml-ls-slot-list wpml-ls-slot-list"{% if not slots_settings %} style="display:none;"{% endif %}>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ strings.misc.label_preview }}</th>
|
||||
{% if not is_static %}<th>{{ strings.misc.label_position }}</th>{% endif %}
|
||||
<th{% if not is_static %} colspan="2"{% endif %}>{{ label_action }}</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for slug, slot_settings in slots_settings %}
|
||||
{% include 'table-slot-row.twig'
|
||||
with {
|
||||
"slug": slug,
|
||||
"slot_type": slot_type,
|
||||
"slot_settings": slot_settings,
|
||||
"slots": slots,
|
||||
}
|
||||
%}
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1 @@
|
||||
<a href="#" class="js-wpml-ls-tooltip-open wpml-ls-tooltip-open otgs-ico-help" data-content="{{ content.text|e('html_attr') }}" data-link-text="{{ content.link.text|e('html_attr') }}" data-link-url="{{ content.link.url|e('html_attr') }}" data-link-target="{{ content.link.target|e('html_attr') }}"></a>
|
||||
Reference in New Issue
Block a user