-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmkp_if_amp.txt
59 lines (57 loc) · 3.75 KB
/
mkp_if_amp.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Name: mkp_if_amp v1.0
# Type: Public plugin
# A Textpattern Conditional Plugin for Google's Accelerated Mobile Pages Project (AMP)
# Author: Michael K Pate
# URL: https://github.com/michaelkpate/
# Recommended load order: 5
# .....................................................................
# This is a plugin for Textpattern CMS - http://textpattern.com/
# To install: textpattern > admin > plugins
# Paste the following text into the 'Install plugin' box:
# .....................................................................
YToxMTp7czo0OiJuYW1lIjtzOjEwOiJta3BfaWZfYW1wIjtzOjY6ImF1dGhvciI7czoxNDoi
TWljaGFlbCBLIFBhdGUiO3M6MTA6ImF1dGhvcl91cmkiO3M6MzI6Imh0dHBzOi8vZ2l0aHVi
LmNvbS9taWNoYWVsa3BhdGUvIjtzOjc6InZlcnNpb24iO3M6MzoiMS4wIjtzOjExOiJkZXNj
cmlwdGlvbiI7czo4NToiQSBUZXh0cGF0dGVybiBDb25kaXRpb25hbCBQbHVnaW4gZm9yIEdv
b2dsZSdzIEFjY2VsZXJhdGVkIE1vYmlsZSBQYWdlcyBQcm9qZWN0IChBTVApICI7czo0OiJj
b2RlIjtzOjU5MjoiLy8gVFhQIDQuNiB0YWcgcmVnaXN0cmF0aW9uCmlmIChjbGFzc19leGlz
dHMoJ1xUZXh0cGF0dGVyblxUYWdcUmVnaXN0cnknKSkgewpUeHA6OmdldCgnXFRleHRwYXR0
ZXJuXFRhZ1xSZWdpc3RyeScpCi0+cmVnaXN0ZXIoJ21rcF9pZl9hbXAnKQo7Cn0KCmZ1bmN0
aW9uIG1rcF9pZl9hbXAoJGF0dHMsICR0aGluZz0nJykKewoKCWdsb2JhbCAkdmFyaWFibGU7
CgoJLy8gcHJl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