From ecf16d4ba3ad86e7b84ec67751b8ab83de579354 Mon Sep 17 00:00:00 2001 From: gze Date: Mon, 14 Aug 2017 15:09:47 +0000 Subject: [PATCH] first commit --- Readme.md | 7 +++++++ shortcode.php | 34 ++++++++++++++++++++++++++++++++++ shortcode.xml | 18 ++++++++++++++++++ 3 files changed, 59 insertions(+) create mode 100644 Readme.md create mode 100644 shortcode.php create mode 100644 shortcode.xml diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..ed5f3ad --- /dev/null +++ b/Readme.md @@ -0,0 +1,7 @@ +# Usage + +This is a content plugin, to add working shortcodes use syntax as follows in the example: + +`... part RD 10 [[::rd10::]] ... ` which will generate `... part RD 10 ⇗ OctoPart.com ...` (url to OctoPart.com) + + diff --git a/shortcode.php b/shortcode.php new file mode 100644 index 0000000..489244c --- /dev/null +++ b/shortcode.php @@ -0,0 +1,34 @@ +text = str_replace('[[::', ' ⇗ OctoPart.com', $article->text); + + + + return true; + } + + +} + +?> + + diff --git a/shortcode.xml b/shortcode.xml new file mode 100644 index 0000000..e2d511e --- /dev/null +++ b/shortcode.xml @@ -0,0 +1,18 @@ + + + Shortcodes for OctoPart.com + Greg + August 2017 + No copyrights, I don't care + MIT + no@no.nom + github.com/phm3g + 1.0 + Shortcodes for OctoPart.com, usage: [[::partName::]] + + shortcode.php + index.html + + + +