'textbox', 'placeholder' => null, 'autocomplete' => 'on', 'derscription' => '', 'type' => 'text', 'width'=> null, 'default_value' => '' ); public function RsTextbox(){ $this->addControl('text', array('text', 'number', 'email', 'phone')); $this->addControl('textbox', array('text', 'number', 'email', 'phone')); } public function render($options = array()){ if(!$options = $this->parseOptions($options)){ return $this->renderError(); } $options['value'] = htmlentities((string)$options['value'], ENT_QUOTES, 'UTF-8'); $wrapid = $this->addConditionalLogic($options); if(is_numeric($options['width'])){ $options['width'] .= 'px'; } $style = $options['width'] ? "width: {$options['width']}" : ""; ?>
'hidden', 'type' => 'hidden', 'default_value' => '' ); public function RsHidden(){ $this->addControl('hidden', 'hidden'); } public function render($options = array()){ if(!$options = $this->parseOptions($options)){ return $this->renderError(); } $options['value'] = htmlentities((string)$options['value'], ENT_QUOTES, 'UTF-8'); ?> 'textarea', 'placeholder' => '', 'type' => 'textarea', 'width' => null, 'height' => null, 'auto_height' => false ); public function RsTextarea(){ $this->addControl('textarea', 'textarea'); } public function renderrender($options = array()){ if(!$options = $this->parseOptions($options)){ return $this->renderError(); } $wrapid = $this->addConditionalLogic($options); if(is_numeric($options['height'])){ $options['height'] .= 'px'; } if(is_numeric($options['width'])){ $options['width'] .= 'px'; } $options['auto_height'] = $options['auto_height'] ? 'auto-height' : ''; $wstyle = $options['width'] ? "width: {$options['width']}" : ""; $tstyle = $options['height'] ? "height: {$options['height']}" : ""; ?>