From a5418b8b565b5e9ecb4aeb488b04008d02ed2596 Mon Sep 17 00:00:00 2001 From: tony baldwin Date: Mon, 18 Feb 2013 23:14:26 -0500 Subject: [PATCH 1/3] added pledgie plugin --- pledgie/pledgie.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pledgie/pledgie.php diff --git a/pledgie/pledgie.php b/pledgie/pledgie.php new file mode 100644 index 000000000..9d38320e2 --- /dev/null +++ b/pledgie/pledgie.php @@ -0,0 +1,16 @@ + + * */ + + +function pledgie_install() { register_hook('page_end', 'addon/pledgie/pledgie.php', 'pledgie_active'); } + + +function pledgie_uninstall() { unregister_hook('page_end', 'addon/pledgie/pledgie.php', 'pledgie_active'); } + +function pledgie_active(&$a,&$b) { $b .= '\'Click'; } + From dc2ef952b650efbaf36f7281c4ce8169065e3fc7 Mon Sep 17 00:00:00 2001 From: tony baldwin Date: Mon, 18 Feb 2013 23:19:24 -0500 Subject: [PATCH 2/3] fixed pledgie (added div tags) --- pledgie/pledgie.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pledgie/pledgie.php b/pledgie/pledgie.php index 9d38320e2..97699766a 100644 --- a/pledgie/pledgie.php +++ b/pledgie/pledgie.php @@ -12,5 +12,5 @@ function pledgie_install() { register_hook('page_end', 'addon/pledgie/pledgie.ph function pledgie_uninstall() { unregister_hook('page_end', 'addon/pledgie/pledgie.php', 'pledgie_active'); } -function pledgie_active(&$a,&$b) { $b .= '\'Click'; } +function pledgie_active(&$a,&$b) { $b .= '
\'Click
'; } From 2cd5ff6b63953364d5d4521bad6359bbf60de52c Mon Sep 17 00:00:00 2001 From: tony baldwin Date: Mon, 18 Feb 2013 23:25:48 -0500 Subject: [PATCH 3/3] made pledgie link open in new tab/window --- pledgie/pledgie.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pledgie/pledgie.php b/pledgie/pledgie.php index 97699766a..8f6228f69 100644 --- a/pledgie/pledgie.php +++ b/pledgie/pledgie.php @@ -12,5 +12,5 @@ function pledgie_install() { register_hook('page_end', 'addon/pledgie/pledgie.ph function pledgie_uninstall() { unregister_hook('page_end', 'addon/pledgie/pledgie.php', 'pledgie_active'); } -function pledgie_active(&$a,&$b) { $b .= '
\'Click
'; } +function pledgie_active(&$a,&$b) { $b .= '
\'Click
'; }