addElement('text', 'title', ['label' => 'Title']); $options = array( self::TYPE_DEFAULT => 'Default', self::TYPE_SMALL => 'Small' ); if (true === Qs_Application::getConfig('news')->hasFeatured) { $options[self::TYPE_FEATURED] = 'Featured'; } $this->addElement('select', 'type', array('label' => 'Block Type', 'multiOptions' => $options)); return $this; } }