first commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<h1 id="icl20-migration">{{ title }}</h1><p>{{ message }}</p>
|
||||
<table class="widefat wpml-support-info striped">
|
||||
<tbody>
|
||||
{% for label,value in data %}
|
||||
<tr>
|
||||
<th style="vertical-align: top">
|
||||
{{ label }}
|
||||
</th>
|
||||
<td style="vertical-align: top">
|
||||
{{ value }}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% for action,button_data in buttons %}
|
||||
<tr>
|
||||
<th colspan="2" style="vertical-align: top">
|
||||
<a href="{{ button_data.url }}" class="button-{{ button_data.type }}">{{ button_data.label }}</a>
|
||||
</th>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,30 @@
|
||||
<h3>{{ strings.title }}</h3>
|
||||
<table class="widefat wpml-support-info">
|
||||
<tbody>
|
||||
{% for item in data %}
|
||||
{% set item_status = 'passed' %}
|
||||
{% if item.is_error %}
|
||||
{% set item_status = 'error' %}
|
||||
{% elseif item.is_warning %}
|
||||
{% set item_status = 'warning' %}
|
||||
{% endif %}
|
||||
<tr>
|
||||
<th>
|
||||
{% if item.url is defined %}
|
||||
<a href="{{ item.url }}" target="_blank">{{ item.label }}</a>
|
||||
{% else %}
|
||||
{{ item.label }}
|
||||
{% endif %}
|
||||
</th>
|
||||
<td class="wpml-support-info-check-{{ item_status }}">
|
||||
{{ item.value }}
|
||||
</td>
|
||||
{% if has_messages %}
|
||||
<td class="wpml-support-info-message">
|
||||
{% include 'messages.twig' %}
|
||||
</td>
|
||||
{% endif %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,7 @@
|
||||
<div class="wrap">
|
||||
<h2>{{ title }}</h2>
|
||||
|
||||
{% for block in blocks %}
|
||||
{% include 'block.twig' with block %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
@@ -0,0 +1,5 @@
|
||||
{% if more_url is defined and message != '' %}
|
||||
<a href="{{ more_url }}" target="_blank">{{ message }}</a>
|
||||
{% else %}
|
||||
{{ message ?: more_url }}
|
||||
{% endif %}
|
||||
@@ -0,0 +1,15 @@
|
||||
{% if item_status != 'passed' and item.messages is defined %}
|
||||
{% if item.messages|length > 1 %}
|
||||
<ol>
|
||||
{% for message, more_url in item.messages %}
|
||||
<li>
|
||||
{% include 'message.twig' %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ol>
|
||||
{% else %}
|
||||
{% for message, more_url in item.messages %}
|
||||
{% include 'message.twig' %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user