Show a background img in settings form

This commit is contained in:
Zach Copley 2009-06-16 22:57:28 -07:00
parent f2b6bde975
commit a0618b0e33

View File

@ -105,6 +105,12 @@ class DesignsettingsAction extends AccountSettingsAction
$this->elementEnd('li'); $this->elementEnd('li');
$this->elementStart('li', array('id' => 'design_background-image_onoff')); $this->elementStart('li', array('id' => 'design_background-image_onoff'));
if (!empty($design->backgroundimage)) {
$this->element('img', array('src' =>
Design::url($design->backgroundimage)));
}
$this->element('input', array('name' => 'design_background-image_onoff', $this->element('input', array('name' => 'design_background-image_onoff',
'type' => 'radio', 'type' => 'radio',
'id' => 'design_background-image_on', 'id' => 'design_background-image_on',