Browse Source

Add cssleft configuration parameter to donate theme

pull/40/head
Benjamin Southall 8 years ago
parent
commit
0e7577f4ea
  1. 4
      templates/themes/donate/donate.html
  2. 25
      templates/themes/donate/info.php

4
templates/themes/donate/donate.html

@ -38,10 +38,10 @@
<div class="container">
<div class="{{ settings.progressbarcssclass }}">
<span style="width:14%;position:relative;left:{{ settings.progressbarcssleft }}%;
<span style="width:{{ settings.progressbarcsswidth }};position:relative;left:{{ settings.progressbarcssleft }}%;
"> </span>
</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>

25
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');

Loading…
Cancel
Save