From ea9da7da611509fbe9c5f23867414242a443e3a8 Mon Sep 17 00:00:00 2001 From: Benjamin Southall Date: Sun, 2 Oct 2016 01:15:34 +0900 Subject: Make slack report notifier, donate page, irc page and radio page use configuration variables instead of hard coding values. --- templates/themes/donate/info.php | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) (limited to 'templates/themes/donate/info.php') diff --git a/templates/themes/donate/info.php b/templates/themes/donate/info.php index fa3f649b..2b618e89 100644 --- a/templates/themes/donate/info.php +++ b/templates/themes/donate/info.php @@ -17,7 +17,38 @@ $theme = array( array('title' => 'File', 'name' => 'file', 'type' => 'text', - 'default' => 'donate.html')), + 'default' => 'donate.html'), + + array('title' => 'Monthly Amount', + 'name' => 'monthlyamount', + 'type' => 'text', + 'default' => '$55'), + + array('title' => 'Current Amount', + 'name' => 'currentamount', + 'type' => 'text', + 'default' => '$0'), + + array('title' => 'Current Progress', + 'name' => 'currentprogress', + 'type' => 'text', + 'default' => '$0'), + + array('title' => 'Progress Bar CSS class', + 'name' => 'progressbarcssclass', + 'type' => 'text', + 'default' => 'progress-bar red glow'), + + array('title' => 'Progress Bar CSS left', + 'name' => 'progressbarcssleft', + 'type' => 'text', + 'default' => '36'), + + array('title' => 'Progress Bar Text CSS left', + 'name' => 'progressbartextcssleft', + 'type' => 'text', + 'default' => '135'), + ), 'build_function' => 'donate_build'); ?> -- cgit v1.3 From c0d1f60752f9a9c2ff6c2516cd7edd946fd3a441 Mon Sep 17 00:00:00 2001 From: Benjamin Southall Date: Sat, 8 Oct 2016 00:47:55 +0900 Subject: Add other donation fields to donate theme / extension --- templates/themes/donate/donate.html | 4 +++- templates/themes/donate/info.php | 9 +++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) (limited to 'templates/themes/donate/info.php') diff --git a/templates/themes/donate/donate.html b/templates/themes/donate/donate.html index 27f16747..1ecf008e 100644 --- a/templates/themes/donate/donate.html +++ b/templates/themes/donate/donate.html @@ -32,7 +32,9 @@

Cost per month {{ settings.monthlyamount }}

-

Funds from stickers {{ settings.currentamount }}

+

Funds from stickers {{ settings.stickeramount }}

+ +

Funds from other donations {{ settings.otheramount }}

diff --git a/templates/themes/donate/info.php b/templates/themes/donate/info.php index 2b618e89..6fa57cd6 100644 --- a/templates/themes/donate/info.php +++ b/templates/themes/donate/info.php @@ -24,8 +24,13 @@ $theme = array( 'type' => 'text', 'default' => '$55'), - array('title' => 'Current Amount', - 'name' => 'currentamount', + array('title' => 'Current Sticker Amount', + 'name' => 'stickeramount', + 'type' => 'text', + 'default' => '$0'), + + array('title' => 'Current Other Donations Amount', + 'name' => 'otheramount', 'type' => 'text', 'default' => '$0'), -- cgit v1.3 From 0e7577f4ea7d5cec1130864f7fcdd8791094928e Mon Sep 17 00:00:00 2001 From: Benjamin Southall Date: Sat, 10 Dec 2016 18:32:18 +0900 Subject: Add cssleft configuration parameter to donate theme --- templates/themes/donate/donate.html | 4 ++-- templates/themes/donate/info.php | 25 ++++++++++++++++--------- 2 files changed, 18 insertions(+), 11 deletions(-) (limited to 'templates/themes/donate/info.php') diff --git a/templates/themes/donate/donate.html b/templates/themes/donate/donate.html index 1ecf008e..1047cf56 100644 --- a/templates/themes/donate/donate.html +++ b/templates/themes/donate/donate.html @@ -38,10 +38,10 @@
-
-
{{ settings.currentprogress }}
+
{{ settings.currentprogress }}
diff --git a/templates/themes/donate/info.php b/templates/themes/donate/info.php index 6fa57cd6..751f8a23 100644 --- a/templates/themes/donate/info.php +++ b/templates/themes/donate/info.php @@ -22,37 +22,44 @@ $theme = array( array('title' => 'Monthly Amount', 'name' => 'monthlyamount', 'type' => 'text', - 'default' => '$55'), + 'default' => '$0'), + array('title' => 'Current Sticker Amount', 'name' => 'stickeramount', 'type' => 'text', 'default' => '$0'), - + array('title' => 'Current Other Donations Amount', 'name' => 'otheramount', 'type' => 'text', 'default' => '$0'), - - array('title' => 'Current Progress', + + array('title' => 'Current Progress', 'name' => 'currentprogress', 'type' => 'text', 'default' => '$0'), - + array('title' => 'Progress Bar CSS class', 'name' => 'progressbarcssclass', 'type' => 'text', - 'default' => 'progress-bar red glow'), + 'default' => 'progress-bar green glow'), - array('title' => 'Progress Bar CSS left', + + array('title' => 'Progress Bar CSS width', + 'name' => 'progressbarcsswidth', + 'type' => 'text', + 'default' => '15%'), + + array('title' => 'Progress Bar CSS left', 'name' => 'progressbarcssleft', 'type' => 'text', - 'default' => '36'), + 'default' => '51'), array('title' => 'Progress Bar Text CSS left', 'name' => 'progressbartextcssleft', 'type' => 'text', - 'default' => '135'), + 'default' => '195'), ), 'build_function' => 'donate_build'); -- cgit v1.3