title = __ ( 'Checkbox Input', "wpcomment" ); $this -> desc = __ ( 'regular checkbox input', "wpcomment" ); $this -> icon = __ ( '', 'wp-comment-fields' ); $this -> settings = self::get_settings(); } private function get_settings(){ $input_meta = array ( 'title' => array ( 'type' => 'text', 'title' => __ ( 'Title', "wpcomment" ), 'desc' => __ ( 'It will be shown as field label', "wpcomment" ) ), 'data_name' => array ( 'type' => 'text', 'title' => __ ( 'Data name', "wpcomment" ), 'desc' => __ ( 'REQUIRED: The identification name of this field, that you can insert into body email configuration. Note:Use only lowercase characters and underscores.', "wpcomment" ) ), 'description' => array ( 'type' => 'textarea', 'title' => __ ( 'Description', "wpcomment" ), 'desc' => __ ( 'Small description, it will be display near name title.', "wpcomment" ) ), 'error_message' => array ( 'type' => 'text', 'title' => __ ( 'Error message', "wpcomment" ), 'desc' => __ ( 'Insert the error message for validation.', "wpcomment" ) ), 'options' => array ( 'type' => 'paired', 'title' => __ ( 'Add options', "wpcomment" ), 'desc' => __ ( 'Type option with price (optionally)', "wpcomment" ) ), 'class' => array ( 'type' => 'text', 'title' => __ ( 'Class', "wpcomment" ), 'desc' => __ ( 'Insert an additional class(es) (separateb by comma) for more personalization.', "wpcomment" ), 'col_classes' => array('col-md-3','col-sm-12') ), 'width' => array ( 'type' => 'select', 'title' => __ ( 'Width', 'wp-comment-fields' ), 'desc' => __ ( 'Select width column.', "wpcomment"), 'options' => wpcomment_get_input_cols(), 'default' => 12, 'col_classes' => array('col-md-3','col-sm-12') ), 'checked' => array ( 'type' => 'textarea', 'title' => __ ( 'Checked option(s)', "wpcomment" ), 'desc' => __ ( 'Type option(s) name given in (Add Options) tab if you want already checked.', "wpcomment" ) ), 'min_checked' => array ( 'type' => 'text', 'title' => __ ( 'Min. Checked option(s)', "wpcomment" ), 'desc' => __ ( 'How many options can be checked by user e.g: 2. Leave blank for default.', "wpcomment" ), 'col_classes' => array('col-md-3','col-sm-12') ), 'max_checked' => array ( 'type' => 'text', 'title' => __ ( 'Max. Checked option(s)', "wpcomment" ), 'desc' => __ ( 'How many options can be checked by user e.g: 3. Leave blank for default.', "wpcomment" ), 'col_classes' => array('col-md-3','col-sm-12') ), 'visibility' => array ( 'type' => 'select', 'title' => __ ( 'Visibility', 'wp-comment-fields' ), 'desc' => __ ( 'Set field visibility based on user.', "wpcomment"), 'options' => wpcomment_field_visibility_options(), 'default' => 'everyone', ), 'visibility_role' => array ( 'type' => 'text', 'title' => __ ( 'User Roles', 'wp-comment-fields' ), 'desc' => __ ( 'Role separated by comma.', "wpcomment"), 'hidden' => true, ), 'desc_tooltip' => array ( 'type' => 'checkbox', 'title' => __ ( 'Show tooltip (PRO)', 'wp-comment-fields' ), 'desc' => __ ( 'Show Description in Tooltip with Help Icon', 'wp-comment-fields' ), 'col_classes' => array('col-md-3','col-sm-12') ), 'required' => array ( 'type' => 'checkbox', 'title' => __ ( 'Required', "wpcomment" ), 'desc' => __ ( 'Select this if it must be required.', "wpcomment" ), 'col_classes' => array('col-md-3','col-sm-12') ), 'logic' => array ( 'type' => 'checkbox', 'title' => __ ( 'Enable Conditions', "wpcomment" ), 'desc' => __ ( 'Tick it to turn conditional logic to work below', "wpcomment" ) ), 'conditions' => array ( 'type' => 'html-conditions', 'title' => __ ( 'Conditions', "wpcomment" ), 'desc' => __ ( 'Tick it to turn conditional logic to work below', "wpcomment" ) ), ); $type = 'checkbox'; return apply_filters("poom_{$type}_input_setting", $input_meta, $this); } }