plugin_meta = get_plugin_meta_wpcomment(); $this -> title = __ ( 'Select-box Input', 'nm-wpcomments' ); $this -> desc = __ ( 'regular select-box input', 'nm-wpcomments' ); $this -> settings = self::get_settings(); } private function get_settings(){ return array ( 'title' => array ( 'type' => 'text', 'title' => __ ( 'Title', 'nm-wpcomments' ), 'desc' => __ ( 'It will be shown as field label', 'nm-wpcomments' ) ), 'data_name' => array ( 'type' => 'text', 'title' => __ ( 'Data name', 'nm-wpcomments' ), 'desc' => __ ( 'REQUIRED: The identification name of this field, that you can insert into body email configuration. Note:Use only lowercase characters and underscores.', 'nm-wpcomments' ) ), 'description' => array ( 'type' => 'text', 'title' => __ ( 'Description', 'nm-wpcomments' ), 'desc' => __ ( 'Small description, it will be diplay near name title.', 'nm-wpcomments' ) ), 'error_message' => array ( 'type' => 'text', 'title' => __ ( 'Error message', 'nm-wpcomments' ), 'desc' => __ ( 'Insert the error message for validation.', 'nm-wpcomments' ) ), 'options' => array ( 'type' => 'textarea', 'title' => __ ( 'Add options', 'nm-wpcomments' ), 'desc' => __ ( 'Type each option per line', 'nm-wpcomments' ) ), 'selected' => array ( 'type' => 'text', 'title' => __ ( 'Selected option', 'nm-wpcomments' ), 'desc' => __ ( 'Type option name (given above) if you want already selected.', 'nm-wpcomments' ) ), 'required' => array ( 'type' => 'checkbox', 'title' => __ ( 'Required', 'nm-wpcomments' ), 'desc' => __ ( 'Select this if it must be required.', 'nm-wpcomments' ), ), 'class' => array ( 'type' => 'text', 'title' => __ ( 'Class', 'nm-wpcomments' ), 'desc' => __ ( 'Insert an additional class(es) (separateb by comma) for more personalization.', 'nm-wpcomments' ) ), 'width' => array ( 'type' => 'select', 'default' => '6', 'options' => array('12'=>'12 Columns','6'=>'6 Columns', '4'=>'4 Columns', '3'=>'3 Columns',), 'title' => __ ( 'Width', 'nm-wpcomments' ), 'desc' => __ ( 'Select column for this field (12 Columns Grid)', 'nm-wpcomments' ) ), ); } /* * @params: $options */ function render_input($args, $options="", $default=""){ $_html = ''; echo $_html; } }