public function initSetupForm(Am_Form_Setup_Theme $form) { $form->addText('bgcolor')->setLabel('Background Color')->default = '#00e'; }
public function initSetupForm(Am_Form_Setup_Theme $form) { $form->addUpload('header_logo', null, array('prefix' => 'theme-default'))->setLabel(___("Header Logo\n" . 'keep it empty for default value'))->default = ''; $form->addText('home_url', array('class' => 'el-wide', 'placeholder' => $this->getDi()->config->get('root_url')), array('prefix' => 'theme-default'))->setLabel(___("Logo Link URL\n" . "url of page on your site, user will be redirected to this url if click on logo (usually it is url of either your homepage or root url of aMember installation)"))->default = ''; $form->addHtmlEditor('header')->setLabel(___("Header\nthis content will be included to header"))->default = ''; }
function eventSetupForm(Am_Event_SetupForms $event) { $form = new Am_Form_Setup_Theme($this->getId()); $form->setTitle(ucfirst($this->getId()) . ' Theme')->setComment('Configure ' . ucfirst($this->getId()) . ' Theme'); $this->initSetupForm($form); $event->addForm($form); }