first commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
{% if item is iterable %}
|
||||
<ol>
|
||||
{% for key, value in item %}
|
||||
<li>{{ key }}: {% include 'iterable.twig' with {'item': value, 'child': true} %}</li>
|
||||
{% endfor %}
|
||||
</ol>
|
||||
{% elseif child %}
|
||||
<span class="child">{{ item }}</span>
|
||||
{% else %}
|
||||
{{ item }}
|
||||
{% endif %}
|
||||
@@ -0,0 +1,43 @@
|
||||
<div class="wrap">
|
||||
<h2 id="xml-config-log">{{ strings.title }}</h2>
|
||||
{% if entries %}
|
||||
<p>
|
||||
{{ strings.message }}
|
||||
</p>
|
||||
<p>
|
||||
{% for button_id,button in buttons %}
|
||||
<a href="{{ button.url }}" class="button-{{ button.type|default('secondary') }}">{{ button.label }}</a>
|
||||
{% endfor %}
|
||||
</p>
|
||||
<h3>{{ strings.details }}</h3>
|
||||
<table class="widefat wpml-xml-config-log">
|
||||
<thead>
|
||||
<tr>
|
||||
{% for column in columns %}
|
||||
<th>{{ column }}</th>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
{% for column in columns %}
|
||||
<th>{{ column }}</th>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
{% for entry in entries %}
|
||||
<tr>
|
||||
{% for entry_value in entry %}
|
||||
<td>
|
||||
{% include 'iterable.twig' with {'item': entry_value} %}
|
||||
</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% else %}
|
||||
<p>{{ strings.empty_log }}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
Reference in New Issue
Block a user