Skip to content

Commit 37cf770

Browse files
committed
Housekeeping
1 parent 69ac4a2 commit 37cf770

1 file changed

Lines changed: 20 additions & 20 deletions

File tree

src/templates/pages/plugins.txp

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<txp:evaluate query='"<txp:page_url type="3" />" = "json"'>
22
<txp:output_form form="json_card_reader" />
3-
<txp:variable name="body"><txp:body /></txp:variable>
3+
<txp:variable name="body"><txp:article><txp:body /></txp:article></txp:variable>
44
<txp:header value="application/json; charset=utf-8" />{
55
"name": "<txp:title escape="json" />",
66
<txp:if_variable name="superseded-by-type">
77
"supersededBy": {
8-
"name": "<txp:variable name="superseded-by-type" />",
9-
"location": "<txp:variable name="superseded-by-location" />"
8+
"name": "<txp:variable name="superseded-by-type" escape="json" />",
9+
"location": "<txp:variable name="superseded-by-location" escape="json" />"
1010
},
1111
</txp:if_variable>
1212
<txp:php>
@@ -45,25 +45,25 @@ if (!empty($json->legacy)) {
4545
</txp:php>
4646
<txp:if_variable name="json-latest-is-beta">
4747
"beta": {
48-
"version": "<txp:variable name="json-beta-version" />",
49-
<txp:if_custom_field name="max-txp-version-verified-beta">"verifiedMaxTxpCompatibility": "<txp:custom_field name="max-txp-version-verified-beta" />",</txp:if_custom_field>
50-
<txp:if_variable name="json-beta-date">"datePublished": "<txp:variable name="json-beta-date" />",</txp:if_variable>
51-
<txp:if_variable name="json-beta-php">"endpointUrl": "<txp:variable name="json-beta-php" />"<txp:else />"endpointUrl": "<txp:variable name="json-beta-txt" />"</txp:if_variable>
48+
"version": "<txp:variable name="json-beta-version" escape="json" />",
49+
<txp:if_custom_field name="max-txp-version-verified-beta">"verifiedMaxTxpCompatibility": "<txp:custom_field name="max-txp-version-verified-beta" escape="json" />",</txp:if_custom_field>
50+
<txp:if_variable name="json-beta-date">"datePublished": "<txp:variable name="json-beta-date" escape="json" />",</txp:if_variable>
51+
<txp:if_variable name="json-beta-php">"endpointUrl": "<txp:variable name="json-beta-php" escape="json" />"<txp:else />"endpointUrl": "<txp:variable name="json-beta-txt" escape="json" />"</txp:if_variable>
5252
},
5353
</txp:if_variable>
5454
<txp:if_variable name="json-stable-version">
5555
"stable": {
56-
"version": "<txp:variable name="json-stable-version" />",
57-
<txp:if_custom_field name="max-txp-version-verified">"verifiedMaxTxpCompatibility": "<txp:custom_field name="max-txp-version-verified" />",</txp:if_custom_field>
58-
<txp:if_variable name="json-stable-date">"datePublished": "<txp:variable name="json-stable-date" />",</txp:if_variable>
59-
<txp:if_variable name="json-stable-php">"endpointUrl": "<txp:variable name="json-stable-php" />"<txp:else />"endpointUrl": "<txp:variable name="json-stable-txt" />"</txp:if_variable>
56+
"version": "<txp:variable name="json-stable-version" escape="json" />",
57+
<txp:if_custom_field name="max-txp-version-verified">"verifiedMaxTxpCompatibility": "<txp:custom_field name="max-txp-version-verified" escape="json" />",</txp:if_custom_field>
58+
<txp:if_variable name="json-stable-date">"datePublished": "<txp:variable name="json-stable-date" escape="json" />",</txp:if_variable>
59+
<txp:if_variable name="json-stable-php">"endpointUrl": "<txp:variable name="json-stable-php" escape="json" />"<txp:else />"endpointUrl": "<txp:variable name="json-stable-txt" escape="json" />"</txp:if_variable>
6060
}
6161
<txp:else />
6262
"beta": {
63-
"version": "<txp:variable name="json-beta-version" />",
64-
<txp:if_custom_field name="max-txp-version-verified-beta">"verifiedMaxTxpCompatibility": "<txp:custom_field name="max-txp-version-verified-beta" />",</txp:if_custom_field>
65-
<txp:if_variable name="json-beta-date">"datePublished": "<txp:variable name="json-beta-date" />",</txp:if_variable>
66-
<txp:if_variable name="json-beta-php">"endpointUrl": "<txp:variable name="json-beta-php" />"<txp:else />"endpointUrl": "<txp:variable name="json-beta-txt" />"</txp:if_variable>
63+
"version": "<txp:variable name="json-beta-version" escape="json" />",
64+
<txp:if_custom_field name="max-txp-version-verified-beta">"verifiedMaxTxpCompatibility": "<txp:custom_field name="max-txp-version-verified-beta" escape="json" />",</txp:if_custom_field>
65+
<txp:if_variable name="json-beta-date">"datePublished": "<txp:variable name="json-beta-date" escape="json" />",</txp:if_variable>
66+
<txp:if_variable name="json-beta-php">"endpointUrl": "<txp:variable name="json-beta-php" escape="json" />"<txp:else />"endpointUrl": "<txp:variable name="json-beta-txt" escape="json" />"</txp:if_variable>
6767
}
6868
</txp:if_variable>
6969
}
@@ -168,8 +168,8 @@ if (!empty($json->legacy)) {
168168
"priceCurrency": "USD",
169169
"price": "0"
170170
},
171-
"softwareVersion": "<txp:variable name="json-beta-version" />",
172-
<txp:if_variable name="json-beta-date">"datePublished": "<txp:variable name="json-beta-date" />",</txp:if_variable>
171+
"softwareVersion": "<txp:variable name="json-beta-version" escape="json" />",
172+
<txp:if_variable name="json-beta-date">"datePublished": "<txp:variable name="json-beta-date" escape="json" />",</txp:if_variable>
173173
"downloadUrl": "<txp:if_variable name="json-beta-php"><txp:variable name="json-beta-php" escape="json" /><txp:else /><txp:variable name="json-beta-txt" escape="json" /></txp:if_variable>"
174174
}
175175
},
@@ -190,8 +190,8 @@ if (!empty($json->legacy)) {
190190
"priceCurrency": "USD",
191191
"price": "0"
192192
},
193-
"softwareVersion": "<txp:if_variable name="json-stable-version"><txp:variable name="json-stable-version" /><txp:else /><txp:variable name="json-beta-version" /></txp:if_variable>",
194-
<txp:if_variable name="json-stable-version"><txp:if_variable name="json-stable-date">"datePublished": "<txp:variable name="json-stable-date" />",</txp:if_variable><txp:else /><txp:if_variable name="json-beta-date">"datePublished": "<txp:variable name="json-beta-date" />",</txp:if_variable></txp:if_variable>
193+
"softwareVersion": "<txp:if_variable name="json-stable-version"><txp:variable name="json-stable-version" escape="json" /><txp:else /><txp:variable name="json-beta-version" escape="json" /></txp:if_variable>",
194+
<txp:if_variable name="json-stable-version"><txp:if_variable name="json-stable-date">"datePublished": "<txp:variable name="json-stable-date" escape="json" />",</txp:if_variable><txp:else /><txp:if_variable name="json-beta-date">"datePublished": "<txp:variable name="json-beta-date" escape="json" />",</txp:if_variable></txp:if_variable>
195195
<txp:if_variable name="json-stable-version">"downloadUrl": "<txp:if_variable name="json-stable-php"><txp:variable name="json-stable-php" escape="json" /><txp:else /><txp:variable name="json-stable-txt" escape="json" /></txp:if_variable>"<txp:else />"downloadUrl": "<txp:if_variable name="json-beta-php"><txp:variable name="json-beta-php" escape="json" /><txp:else /><txp:variable name="json-beta-txt" escape="json" /></txp:if_variable>"</txp:if_variable>
196196
}
197197
}
@@ -287,7 +287,7 @@ if (!empty($json->legacy)) {
287287
<txp:excerpt />
288288
</div>
289289
</txp:if_excerpt>
290-
<txp:body />
290+
<txp:article><txp:body /></txp:article>
291291
<txp:if_variable not name="json-name">
292292
<p class="alert-block error">Plugin resources not currently available. If this problem persists, <a href="https://github.com/textpattern/textpattern-curated-plugins-list/issues/new?labels=plugin-broken&amp;template=report-a-broken-textpattern-plugin-listing.md&amp;title=%5BBROKEN%5D+<txp:title escape="json" />">open an issue</a> and we’ll investigate.</p>
293293
<txp:else />

0 commit comments

Comments
 (0)