# Name: cbe_if_prod_status v0.2 # Type: Client side plugin # Outputs or does something for a given production status. Automatically sets noindex directive if site is not live. # Author: Claire Brione # URL: http://www.clairebrione.com/ # Recommended load order: 5 # ..................................................................... # This is a plugin for Textpattern - http://textpattern.com/ # To install: textpattern > admin > plugins # Paste the following text into the 'Install plugin' box: # ..................................................................... YToxMTp7czo0OiJuYW1lIjtzOjE4OiJjYmVfaWZfcHJvZF9zdGF0dXMiO3M6NjoiYXV0aG9y IjtzOjEzOiJDbGFpcmUgQnJpb25lIjtzOjEwOiJhdXRob3JfdXJpIjtzOjI4OiJodHRwOi8v d3d3LmNsYWlyZWJyaW9uZS5jb20vIjtzOjc6InZlcnNpb24iO3M6MzoiMC4yIjtzOjExOiJk ZXNjcmlwdGlvbiI7czoxMTQ6Ik91dHB1dHMgb3IgZG9lcyBzb21ldGhpbmcgZm9yIGEgZ2l2 ZW4gcHJvZHVjdGlvbiBzdGF0dXMuIEF1dG9tYXRpY2FsbHkgc2V0cyBub2luZGV4IGRpcmVj dGl2ZSBpZiBzaXRlIGlzIG5vdCBsaXZlLiI7czo0OiJoZWxwIjtzOjMwMDY6IjxkaXYgaWQ9 ImNiZS1wbHVnaW4taGVscCI+CjxoMT5jYmVfaWZfcHJvZF9zdGF0dXM8L2gxPgoKPHA+VGhp cyBwbHVnaW4gY29tZXMgZnJvbSBhIHNob3J0IHN0b3J5LiBJIHdhcyBnaXZlbiBhbiBVUkwg YXMgaW5kaWNlcyB3aXRoIHRoZSBmb2xsb3dpbmcgY29tbWVudCA6ICJJIGRpZG4ndCBtYWtl IGl0IGNsaWNrYWJsZSBiZWNhdXNlIEkgZG9uJ3Qgd2FudCBpdCB0byBiZSBpbmRleGVkLCBp dCBpcyBzdGlsbCBiZWluZyB0ZXN0ZWQiLgo8YnIgLz5Tbywgd2h5IG5vdCBhdXRvbWF0aWNh bGx5IHByZXZlbnQgaW5kZXhhdGlvbiBpZiB0aGUgc2l0ZSBub3QgeWV0IGxpdmUgPzwvcD4K C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huIChHb2NvbSkgaHR0cDovL2ZvcnVtLnRleHRwYXR0ZXJuLmNvbS92aWV3dG9waWMucGhw P3BpZD0yNzQxNzgjcDI3NDE3OA0KKioNCiAqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovDQoNCi8qKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg0KICoqDQog KiogQXV0b21hdGlzbQ0KICoqDQogKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKiovDQoNCi8qKg0KICogUmVnaXN0ZXJzIHJvYm90cyBtZXRhIGlu amVjdG9yIHdoZW4gc2l0ZSBpcyBpbiB0ZXN0aW5nIG9yIGRlYnVnZ2luZyBtb2RlLg0KICov DQppZiAoZ2V0X3ByZWYoJ3Byb2R1Y3Rpb25fc3RhdHVzJykgIT09ICdsaXZlJykNCnsNCiAg ICByZWdpc3Rlcl9jYWxsYmFjayggJ2NiZV9tZXRhX3Byb2Rfc3RhdHVzJywgJ3RleHRwYXR0 ZXJuX2VuZCcgKTsNCn0NCg0KLyoqDQogKiBSZXBsYWNlcyB0aGUgY3VycmVudCBvdXRwdXQg YnVmZmVyIGNvbnRlbnRzLg0KICovDQpmdW5jdGlvbiBjYmVfbWV0YV9wcm9kX3N0YXR1cygp DQp7DQogICAgaWYgKCRvYiA9IG9iX2dldF9jb250ZW50cygpKQ0KICAgIHsNCiAgICAgICAg b2JfY2xlYW4oKTsNCiAgICAgICAgZWNobyBzdHJfcmVwbGFjZSgnPGhlYWQ+JywgJzxoZWFk Picubi4nPG1ldGEgbmFtZT0icm9ib3RzIiBjb250ZW50PSJub2luZGV4LCBub2ZvbGxvdyIg Lz4nLCAkb2IpOw0KICAgIH0NCn0NCg0KLyoqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqDQogKioNCiAqKiBBdmFpbGFibGUgdGF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