Add cssleft configuration parameter to donate theme

This commit is contained in:
Benjamin Southall 2016-12-10 18:32:18 +09:00
parent c4810e4e38
commit 0e7577f4ea
2 changed files with 18 additions and 11 deletions

View File

@ -38,10 +38,10 @@
<div class="container"> <div class="container">
<div class="{{ settings.progressbarcssclass }}"> <div class="{{ settings.progressbarcssclass }}">
<span style="width:14%;position:relative;left:{{ settings.progressbarcssleft }}%; <span style="width:{{ settings.progressbarcsswidth }};position:relative;left:{{ settings.progressbarcssleft }}%;
"> </span> "> </span>
</div> </div>
<div id="value" style="position:relative;left:{{ settings.progressbartextcssleft }}px;top:-45px">{{ settings.currentprogress }}</div> <div id="value" style="position:relative;left:{{ settings.progressbartextcssleft }}px;top:-45px;color:#0000ff;">{{ settings.currentprogress }}</div>
</div> </div>
</div> </div>

View File

@ -22,7 +22,8 @@ $theme = array(
array('title' => 'Monthly Amount', array('title' => 'Monthly Amount',
'name' => 'monthlyamount', 'name' => 'monthlyamount',
'type' => 'text', 'type' => 'text',
'default' => '$55'), 'default' => '$0'),
array('title' => 'Current Sticker Amount', array('title' => 'Current Sticker Amount',
'name' => 'stickeramount', 'name' => 'stickeramount',
@ -42,17 +43,23 @@ $theme = array(
array('title' => 'Progress Bar CSS class', array('title' => 'Progress Bar CSS class',
'name' => 'progressbarcssclass', 'name' => 'progressbarcssclass',
'type' => 'text', 'type' => 'text',
'default' => 'progress-bar red glow'), 'default' => 'progress-bar green glow'),
array('title' => 'Progress Bar CSS width',
'name' => 'progressbarcsswidth',
'type' => 'text',
'default' => '15%'),
array('title' => 'Progress Bar CSS left', array('title' => 'Progress Bar CSS left',
'name' => 'progressbarcssleft', 'name' => 'progressbarcssleft',
'type' => 'text', 'type' => 'text',
'default' => '36'), 'default' => '51'),
array('title' => 'Progress Bar Text CSS left', array('title' => 'Progress Bar Text CSS left',
'name' => 'progressbartextcssleft', 'name' => 'progressbartextcssleft',
'type' => 'text', 'type' => 'text',
'default' => '135'), 'default' => '195'),
), ),
'build_function' => 'donate_build'); 'build_function' => 'donate_build');