Skip to content

Commit

Permalink
Minor wording amends
Browse files Browse the repository at this point in the history
  • Loading branch information
jools-r committed Apr 16, 2016
1 parent f906acd commit d74b905
Show file tree
Hide file tree
Showing 3 changed files with 113 additions and 113 deletions.
8 changes: 4 additions & 4 deletions README.textile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
h1. jcr_link_custom

Adds a single extra custom field of up to 255 characters to the "Admin › Links":http://docs.textpattern.io/administration/links-panel panel and provides a corresponding tag to output the custom field.
Adds a single extra custom field of up to 255 characters to the "Content › Links":http://docs.textpattern.io/administration/links-panel panel and provides a corresponding tag to output the custom field.


h2. Use cases
Expand Down Expand Up @@ -43,13 +43,13 @@ p. when the link custom field is used to store the Image ID# of the logo.

h2. Changing the label of the custom field

The name of custom field can be changed by specifying a new label using the _Install from Textpack_ field in the "Admin › Languages":http://docs.textpattern.io/administration/languages-panel.html panel. Enter your own information in the following pattern and click *Upload*:
The name of custom field can be changed by specifying a new label using the _Install from Textpack_ field in the "Admin › Languages":http://docs.textpattern.io/administration/languages-panel panel. Enter your own information in the following pattern and click *Upload*:

bc.. #@admin
#@language en-gb
jcr_link_custom => Image ID
jcr_link_custom => Your label

p. replacing @en-gb@ with your own language and @Image ID@ with your own desired label.
p. replacing @en-gb@ with your own language and @Your label@ with your own desired label.


h2(#deinstallation). De-installation
Expand Down
10 changes: 5 additions & 5 deletions jcr_link_custom.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public static function save($event, $step)
}

/**
* Public tag: show custom link field
* Public tag: Output custom link field
* @param string $atts[escape] Convert special characters to HTML entities.
* @return string custom field output
* <code>
Expand Down Expand Up @@ -192,7 +192,7 @@ function jcr_link_custom($atts)
# --- BEGIN PLUGIN HELP ---
h1. jcr_link_custom

Adds a single extra custom field of up to 255 characters to the "Admin › Links":http://docs.textpattern.io/administration/links-panel panel and provides a corresponding tag to output the custom field.
Adds a single extra custom field of up to 255 characters to the "Content › Links":http://docs.textpattern.io/administration/links-panel panel and provides a corresponding tag to output the custom field.


h2. Use cases
Expand Down Expand Up @@ -235,13 +235,13 @@ function jcr_link_custom($atts)

h2. Changing the label of the custom field

The name of custom field can be changed by specifying a new label using the _Install from Textpack_ field in the "Admin › Languages":http://docs.textpattern.io/administration/languages-panel.html panel. Enter your own information in the following pattern and click *Upload*:
The name of custom field can be changed by specifying a new label using the _Install from Textpack_ field in the "Admin › Languages":http://docs.textpattern.io/administration/languages-panel panel. Enter your own information in the following pattern and click *Upload*:

bc.. #@admin
#@language en-gb
jcr_link_custom => Image ID
jcr_link_custom => Your label

p. replacing @en-gb@ with your own language and @Image ID@ with your own desired label.
p. replacing @en-gb@ with your own language and @Your label@ with your own desired label.


h2(#deinstallation). De-installation
Expand Down
208 changes: 104 additions & 104 deletions jcr_link_custom_v0.1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,109 +19,109 @@ IHRoZSBsaW5rcyBwYW5lbCI7czo1OiJvcmRlciI7czoxOiI1IjtzOjQ6InR5cGUiO3M6MToi
MSI7czo1OiJmbGFncyI7czowOiIiO3M6ODoidGV4dHBhY2siO3M6OTc6IiNAYWRtaW4KI0Bs
YW5ndWFnZSBlbi1nYgpqY3JfbGlua19jdXN0b20gPT4gSW1hZ2UgSUQKI0BsYW5ndWFnZSBk
ZS1kZQpqY3JfbGlua19jdXN0b20gPT4gQmlsZCBJRAoiO3M6MTA6ImxvYWRfb3JkZXIiO3M6
MToiNSI7czo0OiJoZWxwIjtzOjI5MTI6IjxoMT5qY3JfbGlua19jdXN0b208L2gxPgoKPHA+
MToiNSI7czo0OiJoZWxwIjtzOjI5MTM6IjxoMT5qY3JfbGlua19jdXN0b208L2gxPgoKPHA+
QWRkcyBhIHNpbmdsZSBleHRyYSBjdXN0b20gZmllbGQgb2YgdXAgdG8gMjU1IGNoYXJhY3Rl
cnMgdG8gdGhlIDxhIGhyZWY9Imh0dHA6Ly9kb2NzLnRleHRwYXR0ZXJuLmlvL2FkbWluaXN0
cmF0aW9uL2xpbmtzLXBh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oJfQoKICAv
KioKICAgKiBBZGQgYW5kIHJlbW92ZSBjdXN0b20gZmllbGQgZnJvbSB0eHBfbGluayB0YWJs
ZS4KICAgKgogICAqIEBwYXJhbSAkZXZlbnQgc3RyaW5nCiAgICogQHBhcmFtICRzdGVwIHN0
cmluZyAgVGhlIGxpZmVjeWNsZSBwaGFzZSBvZiB0aGlzIHBsdWdpbgogICAqLwogIHB1Ymxp
YyBzdGF0aWMgZnVuY3Rpb24gbGlmZWN5Y2xlKCRldmVudCwgJHN0ZXApCiAgewogICAgICBz
d2l0Y2ggKCRzdGVwKSB7CiAgICAgICAgICBjYXNlICdlbmFibGVkJzoKICAgICAgICAgICAg
ICBicmVhazsKICAgICAgICAgIGNhc2UgJ2Rpc2FibGVkJzoKICAgICAgICAgICAgICBicmVh
azsKICAgICAgICAgIGNhc2UgJ2luc3RhbGxlZCc6CiAgICAgICAgICAgICAgc2FmZV9hbHRl
cigKICAgICAgICAgICAgICAgICd0eHBfbGluaycsCiAgICAgICAgICAgICAgICAnQUREIENP
TFVNTiBqY3JfbGlua19jdXN0b20gVkFSQ0hBUigyNTUpIE5VTEwgQUZURVIgYXV0aG9yJwog
ICAgICAgICAgICAgICk7CiAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICBjYXNlICdk
ZWxldGVkJzoKICAgICAgICAgICAgICBzYWZlX2FsdGVyKAogICAgICAgICAgICAgICAgJ3R4
cF9saW5rJywKICAgICAgICAgICAgICAgICdEUk9QIENPTFVNTiBqY3JfbGlua19jdXN0b20n
CiAgICAgICAgICAgICAgKTsKICAgICAgICAgICAgICBicmVhazsKICAgICAgfQogICAgICBy
ZXR1cm47CiAgfQoKCS8qKgoJICogUGFpbnQgYWRkaXRpb25hbCBmaWVsZHMgZm9yIGxpbmsg
Y3VzdG9tIGZpZWxkCgkgKgoJICogQHBhcmFtICRldmVudCBzdHJpbmcKCSAqIEBwYXJhbSAk
c3RlcCBzdHJpbmcKCSAqIEBwYXJhbSAkZHVtbXkgc3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3NhdmUnKTsKCX0KCiAg
LyoqCiAgICogQWRkIGFuZCByZW1vdmUgY3VzdG9tIGZpZWxkIGZyb20gdHhwX2xpbmsgdGFi
bGUuCiAgICoKICAgKiBAcGFyYW0gJGV2ZW50IHN0cmluZwogICAqIEBwYXJhbSAkc3RlcCBz
dHJpbmcgIFRoZSBsaWZlY3ljbGUgcGhhc2Ugb2YgdGhpcyBwbHVnaW4KICAgKi8KICBwdWJs
aWMgc3RhdGljIGZ1bmN0aW9uIGxpZmVjeWNsZSgkZXZlbnQsICRzdGVwKQogIHsKICAgICAg
c3dpdGNoICgkc3RlcCkgewogICAgICAgICAgY2FzZSAnZW5hYmxlZCc6CiAgICAgICAgICAg
ICAgYnJlYWs7CiAgICAgICAgICBjYXNlICdkaXNhYmxlZCc6CiAgICAgICAgICAgICAgYnJl
YWs7CiAgICAgICAgICBjYXNlICdpbnN0YWxsZWQnOgogICAgICAgICAgICAgIHNhZmVfYWx0
ZXIoCiAgICAgICAgICAgICAgICAndHhwX2xpbmsnLAogICAgICAgICAgICAgICAgJ0FERCBD
T0xVTU4gamNyX2xpbmtfY3VzdG9tIFZBUkNIQVIoMjU1KSBOVUxMIEFGVEVSIGF1dGhvcicK
ICAgICAgICAgICAgICApOwogICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgY2FzZSAn
ZGVsZXRlZCc6CiAgICAgICAgICAgICAgc2FmZV9hbHRlcigKICAgICAgICAgICAgICAgICd0
eHBfbGluaycsCiAgICAgICAgICAgICAgICAnRFJPUCBDT0xVTU4gamNyX2xpbmtfY3VzdG9t
JwogICAgICAgICAgICAgICk7CiAgICAgICAgICAgICAgYnJlYWs7CiAgICAgIH0KICAgICAg
cmV0dXJuOwogIH0KCgkvKioKCSAqIFBhaW50IGFkZGl0aW9uYWwgZmllbGRzIGZvciBsaW5r
IGN1c3RvbSBmaWVsZAoJICoKCSAqIEBwYXJhbSAkZXZlbnQgc3RyaW5nCgkgKiBAcGFyYW0g
JHN0ZXAgc3Ry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ug
PT09ICdwdWJsaWMnKSB7CgogICAgaWYgKGNsYXNzX2V4aXN0cygnXFRleHRwYXR0ZXJuXFRh
Z1xSZWdpc3RyeScpKSB7CiAgICAgICAgVHhwOjpnZXQoJ1xUZXh0cGF0dGVyblxUYWdcUmVn
aXN0cnknKQogICAgICAgICAgICAtPnJlZ2lzdGVyKCdqY3JfbGlua19jdXN0b20nKTsKICAg
IH0KCn0KCiAgLyoqCiAgICogUHVibGljIHRhZzogT3V0cHV0IGN1c3RvbSBsaW5rIGZpZWxk
CiAgICogQHBhcmFtICBzdHJpbmcgJGF0dHNbZXNjYXBlXSBDb252ZXJ0IHNwZWNpYWwgY2hh
cmFjdGVycyB0byBIVE1MIGVudGl0aWVzLgogICAqIEByZXR1cm4gc3RyaW5nICBjdXN0b20g
ZmllbGQgb3V0cHV0CiAgICogPGNvZGU+CiAgICogICAgICAgIDx0eHA6amNyX2xpbmtfY3Vz
dG9tIGVzY2FwZT0iaHRtbCIgLz4KICAgKiA8L2NvZGU+CiAgICovCgogICAgZnVuY3Rpb24g
amNyX2xpbmtfY3VzdG9tKCRhdHRzKQogICAgewogICAgICAgIGdsb2JhbCAkdGhpc2xpbms7
CgogICAgICAgIGFzc2VydF9saW5rKCk7CgogICAgICAgIGV4dHJhY3QobEF0dHMoYXJyYXko
CiAgICAgICAgICAgICdlc2NhcGUnID0+ICdodG1sJywKICAgICAgICApLCAkYXR0cykpOwoK
ICAgICAgICByZXR1cm4gKCRlc2NhcGUgPT0gJ2h0bWwnKQogICAgICAgICAgICA/IHR4cHNw
ZWNpYWxjaGFycygkdGhpc2xpbmtbJ2pjcl9saW5rX2N1c3RvbSddKQogICAgICAgICAgICA6
ICR0aGlzbGlua1snamNyX2xpbmtfY3VzdG9tJ107CiAgICB9IjtzOjM6Im1kNSI7czozMjoi
NmE0MDhlZDBhOGZlODBhNGIzY2Y1YTI4YjllZDA4YjQiO30=

0 comments on commit d74b905

Please sign in to comment.