}
$this->elementStart('li');
- $this->element('label', array('for' => 'swatch-0'), _('Background'));
+ $this->element('label', array('for' => 'swatch-1'), _('Background'));
$this->element('input', array('name' => 'design_background',
'type' => 'text',
- 'id' => 'swatch-0',
+ 'id' => 'swatch-1',
'class' => 'swatch',
'maxlength' => '7',
'size' => '7',
$this->elementEnd('li');
$this->elementStart('li');
- $this->element('label', array('for' => 'swatch-1'), _('Content'));
+ $this->element('label', array('for' => 'swatch-2'), _('Content'));
$this->element('input', array('name' => 'design_content',
'type' => 'text',
- 'id' => 'swatch-1',
+ 'id' => 'swatch-2',
'class' => 'swatch',
'maxlength' => '7',
'size' => '7',
$this->elementEnd('li');
$this->elementStart('li');
- $this->element('label', array('for' => 'swatch-2'), _('Sidebar'));
+ $this->element('label', array('for' => 'swatch-3'), _('Sidebar'));
$this->element('input', array('name' => 'design_sidebar',
'type' => 'text',
- 'id' => 'swatch-2',
+ 'id' => 'swatch-3',
'class' => 'swatch',
'maxlength' => '7',
'size' => '7',
$this->elementEnd('li');
$this->elementStart('li');
- $this->element('label', array('for' => 'swatch-3'), _('Text'));
+ $this->element('label', array('for' => 'swatch-4'), _('Text'));
$this->element('input', array('name' => 'design_text',
'type' => 'text',
- 'id' => 'swatch-3',
+ 'id' => 'swatch-4',
'class' => 'swatch',
'maxlength' => '7',
'size' => '7',
$this->elementEnd('li');
$this->elementStart('li');
- $this->element('label', array('for' => 'swatch-4'), _('Links'));
+ $this->element('label', array('for' => 'swatch-5'), _('Links'));
$this->element('input', array('name' => 'design_links',
'type' => 'text',
- 'id' => 'swatch-4',
+ 'id' => 'swatch-5',
'class' => 'swatch',
'maxlength' => '7',
'size' => '7',
'value' => $design->linkcolor));
-
$this->elementEnd('li');
$this->elementEnd('ul');
function UpdateColors(S) {
C = $(S).val();
switch (parseInt(S.id.slice(-1))) {
- case 0: default:
+ case 1: default:
$('body').css({'background-color':C});
break;
- case 1:
- $('#content').css({'background-color':C});
- break;
case 2:
- $('#aside_primary').css({'background-color':C});
+ $('#content').css({'background-color':C});
break;
case 3:
- $('body').css({'color':C});
+ $('#aside_primary').css({'background-color':C});
break;
case 4:
+ $('html body').css({'color':C});
+ break;
+ case 5:
$('a').css({'color':C});
break;
}