Skip to content

Commit 402a484

Browse files
committed
Merge branch 'master' into self-hosted
2 parents 66f6f73 + e29a860 commit 402a484

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

_includes/atts-common.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ <h3 id="common-presentational-attributes">Common presentational attributes</h3>
44
<p>These attributes, which affect presentation, are shared by many tags.</p>
55
{% endif %}
66
<dl>
7-
{% if include.breakby %}
8-
<dt><code>breakby="integer(s)"</code></dt>
9-
<dd>Used to group list items when separating by <code>break</code>. Possible values are lists of integers, like <code>2</code> (groups of 2 items) or <code>1,2</code> (alternate groups of 1 and 2 items).</dd>
10-
<dd><strong>Default:</strong> {% if include.breakby == "" %}1 (unset){% else %}{{ include.breakby }}{% endif %} (see <a href="/tags/tag-attributes-cross-reference#breakby">breakby cross-reference</a>). </dd>
11-
{% endif %}
127

138
{% if include.style %}
149
<dt><code>style="style rule"</code></dt>

_includes/atts-global.html

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,16 @@ <h3 id="common-global-attributes">Common global attributes</h3>
44
<p>These attributes are shared by all tags - and plugins, provided they do not override the functionality.</p>
55
{% endif %}
66
<dl>
7-
{% unless include.break == "" %}
8-
<dt><code>break="value"</code></dt>
9-
<dd>Where value is an HTML element, specified without brackets (e.g. <code>break="li"</code>) or some string to separate list items.</dd>
10-
<dd><strong>Default:</strong> {% if include.break == null %}br{% else %}{{ include.break }}{% endif %} (see <a href="/tags/tag-attributes-cross-reference#break">break cross-reference</a>).</dd>
11-
{% endunless %}
12-
7+
{% unless include.break == "" %}
8+
<dt><code>break="value"</code></dt>
9+
<dd>Where value is an HTML element, specified without brackets (e.g. <code>break="li"</code>) or some string to separate list items.</dd>
10+
<dd><strong>Default:</strong> {% if include.break == null %}br{% else %}{{ include.break }}{% endif %} (see <a href="/tags/tag-attributes-cross-reference#break">break cross-reference</a>).</dd>
11+
{% endunless %}
12+
{% unless include.breakby == "" %}
13+
<dt><code>breakby="integer(s)"</code></dt>
14+
<dd>Used to group list items when separating by <code>break</code>. Possible values are lists of integers, like <code>2</code> (groups of 2 items) or <code>1,2</code> (alternate groups of 1 and 2 items).</dd>
15+
<dd><strong>Default:</strong> {% if include.breakby == null %}1 (unset){% else %}{{ include.breakby }}{% endif %} (see <a href="/tags/tag-attributes-cross-reference#breakby">breakby cross-reference</a>). </dd>
16+
{% endunless %}
1317
<dt><code>class="class name"</code></dt>
1418
<dd>HTML <code>class</code> to apply to the wrapper.</dd>
1519
<dd><strong>Values:</strong> Any valid string.</dd>
@@ -42,6 +46,11 @@ <h3 id="common-global-attributes">Common global attributes</h3>
4246
_any tag_</dd>
4347
<dd><strong>Default:</strong> {% if include.escape == null %}html{% else %}{{ include.escape }}{% endif %}.</dd>
4448

49+
<dt><code>evaluate="number list"</code></dt>
50+
<dd>Alter the processing order of top-level tags inside a form/container. Tags are normally executed from top to bottom. If you wish to change this order, imagine Textpattern tags are numbered incrementally from 1 inside a container. To process tags 3 and 5 first, then 1, 2, and 4, specify <code>evaluate="3, 5"</code> in your container tag.</dd>
51+
<dd><strong>Values:</strong> Any comma-separated numbers corresponding with the numerical position of primary (top-level) tags inside the container.</dd>
52+
<dd><strong>Default:</strong> {% if include.evaluate == null %}unset{% else %}{{ include.evaluate }}{% endif %}.</dd>
53+
4554
<dt><code>html_id="value"</code></dt>
4655
<dd>HTML <code>id</code> to apply to the wrapper.</dd>
4756
<dd><strong>Values:</strong> Any valid string.</dd>
@@ -56,12 +65,12 @@ <h3 id="common-global-attributes">Common global attributes</h3>
5665
<dd>The tag (without angle brackets) to wrap the label.</dd>
5766
<dd><strong>Values:</strong> Any valid HTML tag, e.g. <code>h3</code> or <code>div</code>.</dd>
5867
<dd><strong>Default:</strong> {% if include.labeltag == null %}unset{% else %}{{ include.labeltag }}{% endif %}.</dd>
59-
68+
{% unless include.not == "" %}
6069
<dt><code>not="boolean"</code></dt>
6170
<dd>Switch <code><txp:else /></code> parts.</dd>
6271
<dd><strong>Values:</strong> 0 (no) or 1 (yes).</dd>
6372
<dd><strong>Default:</strong> {% if include.not == null %}unset (0){% else %}{{ include.not }}{% endif %}.</dd>
64-
73+
{% endunless %}
6574
<dt><code>replace="string"</code></dt>
6675
<dd>Replace the content stripped via the <code>trim</code> attribute.</dd>
6776
<dd><strong>Values:</strong> Any valid string.</dd>

0 commit comments

Comments
 (0)