title = __ ( 'Images', 'wp-comment-fields' ); $this -> desc = __ ( 'Images selection', 'wp-comment-fields' ); $this -> icon = __ ( '', 'wp-comment-fields' ); $this -> settings = self::get_settings(); } private function get_settings(){ $input_meta = array ( 'title' => array ( 'type' => 'text', 'title' => __ ( 'Title', 'wp-comment-fields' ), 'desc' => __ ( 'It will be shown as field label', 'wp-comment-fields' ) ), 'data_name' => array ( 'type' => 'text', 'title' => __ ( 'Data name', 'wp-comment-fields' ), 'desc' => __ ( 'REQUIRED: The identification name of this field, that you can insert into body email configuration. Note:Use only lowercase characters and underscores.', 'wp-comment-fields' ) ), 'description' => array ( 'type' => 'textarea', 'title' => __ ( 'Description', 'wp-comment-fields' ), 'desc' => __ ( 'Small description, it will be display near name title.', 'wp-comment-fields' ) ), 'error_message' => array ( 'type' => 'text', 'title' => __ ( 'Error message', 'wp-comment-fields' ), 'desc' => __ ( 'Insert the error message for validation.', 'wp-comment-fields' ) ), 'class' => array ( 'type' => 'text', 'title' => __ ( 'Class', 'wp-comment-fields' ), 'desc' => __ ( 'Insert an additional class(es) (separateb by comma) for more personalization.', 'wp-comment-fields' ), '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') ), 'selected_img_bordercolor' => array ( 'type' => 'color', 'title' => __ ( 'Selected Image Border Color', 'wp-comment-fields' ), 'desc' => __ ( 'Change selected images border color, e.g: #fff', 'wp-comment-fields' ), 'col_classes' => array('col-md-3','col-sm-12') ), 'images' => array ( 'type' => 'pre-images', 'title' => __ ( 'Select images', 'wp-comment-fields' ), 'desc' => __ ( 'Select images from media library', 'wp-comment-fields' ) ), 'selected' => array ( 'type' => 'text', 'title' => __ ( 'Selected image', 'wp-comment-fields' ), 'desc' => __ ( 'Type option title given in (Add Images) tab if you want it already selected.', 'wp-comment-fields' ), 'col_classes' => array('col-md-3','col-sm-12') ), 'image_width' => array ( 'type' => 'text', 'title' => __ ( 'Image Width', 'wp-comment-fields' ), 'desc' => __ ( 'Change image width e,g: 50px or 50%.', 'wp-comment-fields' ), 'col_classes' => array('col-md-3','col-sm-12') ), 'image_height' => array ( 'type' => 'text', 'title' => __ ( 'Image Height', 'wp-comment-fields' ), 'desc' => __ ( 'Change image height e,g: 50px or 50%. ', 'wp-comment-fields' ), 'col_classes' => array('col-md-3','col-sm-12') ), 'min_checked' => array ( 'type' => 'text', 'title' => __ ( 'Min. Image Select', "wpcomment" ), 'desc' => __ ( 'How many Images 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. Image Select', "wpcomment" ), 'desc' => __ ( 'How many Images 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, ), 'legacy_view' => array ( 'type' => 'checkbox', 'title' => __ ( 'Enable legacy view', 'wp-comment-fields' ), 'desc' => __ ( 'Tick it to turn on old boxes view for images', 'wp-comment-fields' ), 'col_classes' => array('col-md-3','col-sm-12') ), 'multiple_allowed' => array ( 'type' => 'checkbox', 'title' => __ ( 'Multiple selections?', 'wp-comment-fields' ), 'desc' => __ ( 'Allow users to select more then one images?.', 'wp-comment-fields' ), 'col_classes' => array('col-md-3','col-sm-12') ), 'show_popup' => array ( 'type' => 'checkbox', 'title' => __ ( 'Popup', 'wp-comment-fields' ), 'desc' => __ ( 'Show big image on hover', 'wp-comment-fields' ), 'col_classes' => array('col-md-3','col-sm-12') ), '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', 'wp-comment-fields' ), 'desc' => __ ( 'Select this if it must be required.', 'wp-comment-fields' ), 'col_classes' => array('col-md-3','col-sm-12') ), 'logic' => array ( 'type' => 'checkbox', 'title' => __ ( 'Enable Conditions', 'wp-comment-fields' ), 'desc' => __ ( 'Tick it to turn conditional logic to work below', 'wp-comment-fields' ) ), 'conditions' => array ( 'type' => 'html-conditions', 'title' => __ ( 'Conditions', 'wp-comment-fields' ), 'desc' => __ ( 'Tick it to turn conditional logic to work below', 'wp-comment-fields' ) ), ); $type = 'image'; return apply_filters("poom_{$type}_input_setting", $input_meta, $this); } }