From 0e7577f4ea7d5cec1130864f7fcdd8791094928e Mon Sep 17 00:00:00 2001 From: Benjamin Southall Date: Sat, 10 Dec 2016 18:32:18 +0900 Subject: [PATCH] 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(-) 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');