From 606ae2d9164e5c2d5c2b3796602c220638bb2214 Mon Sep 17 00:00:00 2001 From: Phil Wareham Date: Tue, 4 Jul 2017 11:37:39 +0100 Subject: [PATCH] Docs correspond to latest release --- README.textile | 8 ++++---- pat_if_amp.php | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.textile b/README.textile index 4388ead..49049b4 100644 --- a/README.textile +++ b/README.textile @@ -22,7 +22,7 @@ Or download the latest version of the plugin from "the GitHub project page":http h2. pat_if_amp -h3. Attributes (v3.3 onwards) +h3. Attributes * @url@ _string_ (optional): The location (URL) of the website. Default: @hu@ (website URL as set in the Textpattern preferences panel). * @subdomain@ _string_ (optional): Sets the subdomain name of where to redirect to. Default: @amp@. @@ -66,7 +66,7 @@ bc. ...Do some normal (non-AMP) things... -h2. pat_amp_sanitize (v3.5 onwards) +h2. pat_amp_sanitize A tag to render article text content without any inline styles. To use as a drop-in replacement of the standard Textpattern @@ tag and/or @@ tag. @@ -80,7 +80,7 @@ In an article Form context: bc. -h2. pat_amp_redirect (v3.0 onwards) +h2. pat_amp_redirect A simple tag for web redirection to a subdomain name. Same behaviour as used in _The Guardian_ website. Must be used with a mobiles detection script (i.e. adi_mobile plugin). Some web designers could choose to use a subdomain for their mobiles websites (may be not recommended, but the official AMP Blog is located in a subdomain, see: "https://amphtml.wordpress.com":https://amphtml.wordpress.com). In this case, **the Textpattern multi-sites capacities makes things easier**. @@ -96,7 +96,7 @@ h3. Attributes * @url@ _string_ (optional): The location (URL) of the website. Default: @hu@ (website URL as set in the Textpattern preferences panel). * @subdomain@ _string_ (optional): Sets the subdomain name of where to redirect to. Default: @amp@. -* @permlink@ _boolean_ (optional): (v3.2 onwards) Choose to redirect the same individual article's title URL within the subdomain. Default: @0@ (false). +* @permlink@ _boolean_ (optional): Choose to redirect the same individual article's title URL within the subdomain. Default: @0@ (false). h3. Example diff --git a/pat_if_amp.php b/pat_if_amp.php index 3ff8f51..106829c 100644 --- a/pat_if_amp.php +++ b/pat_if_amp.php @@ -230,7 +230,7 @@ function pat_amp_redirect($atts) h2. pat_if_amp -h3. Attributes (v3.3 onwards) +h3. Attributes * @url@ _string_ (optional): The location (URL) of the website. Default: @hu@ (website URL as set in the Textpattern preferences panel). * @subdomain@ _string_ (optional): Sets the subdomain name of where to redirect to. Default: @amp@. @@ -274,7 +274,7 @@ function pat_amp_redirect($atts) ...Do some normal (non-AMP) things... -h2. pat_amp_sanitize (v3.5 onwards) +h2. pat_amp_sanitize A tag to render article text content without any inline styles. To use as a drop-in replacement of the standard Textpattern @@ tag and/or @@ tag. @@ -288,7 +288,7 @@ function pat_amp_redirect($atts) bc. -h2. pat_amp_redirect (v3.0 onwards) +h2. pat_amp_redirect A simple tag for web redirection to a subdomain name. Same behaviour as used in _The Guardian_ website. Must be used with a mobiles detection script (i.e. adi_mobile plugin). Some web designers could choose to use a subdomain for their mobiles websites (may be not recommended, but the official AMP Blog is located in a subdomain, see: "https://amphtml.wordpress.com":https://amphtml.wordpress.com). In this case, **the Textpattern multi-sites capacities makes things easier**. @@ -304,7 +304,7 @@ function pat_amp_redirect($atts) * @url@ _string_ (optional): The location (URL) of the website. Default: @hu@ (website URL as set in the Textpattern preferences panel). * @subdomain@ _string_ (optional): Sets the subdomain name of where to redirect to. Default: @amp@. -* @permlink@ _boolean_ (optional): (v3.2 onwards) Choose to redirect the same individual article's title URL within the subdomain. Default: @0@ (false). +* @permlink@ _boolean_ (optional): Choose to redirect the same individual article's title URL within the subdomain. Default: @0@ (false). h3. Example