Function Reference: geodir_claim_default_options

Summary

This function has not been documented yet.

Filters

‘geodir_claim_default_options’ [Line: 347]

Source Code

function geodir_claim_default_options($arr=array()){

	$arr[] = array( 'name' => __( 'Options', 'geodirclaim' ), 'type' => 'no_tabs', 'desc' => '', 'id' => 'claim_options' );
	
	$arr[] = array( 'name' => __('Geo Directory Claim Listing Options', 'geodirclaim'), 'type' => 'sectionstart', 'id' => 'claim_default_options');
	
	$arr[] = array(  
		'name' => __('Enable claim listing?', 'geodirclaim'),
		'desc' 		=> __( 'Select \'yes\' to enable claim listing.', 'geodirclaim' ),
		'tip' 		=> '',
		'id' 			=> 'geodir_claim_enable',
		'css' 		=> 'min-width:300px;',
		'std' 		=> '',
		'type' 		=> 'select',
		'class'		=> 'chosen_select',
		'options' => array_unique( array( 
			'' => __( 'Select', 'geodirclaim' ),
			'yes' => __( 'Yes', 'geodirclaim' ),
			'no' => __( 'No', 'geodirclaim' ),
			))
	);
	
	$arr[] = array(  
		'name' => __('Auto approve claim listing? (email verification)', 'geodirclaim'),
		'desc' 		=> __( 'Select \'yes\' to auto approve claim listing.', 'geodirclaim' ),
		'tip' 		=> '',
		'id' 			=> 'geodir_claim_auto_approve',
		'css' 		=> 'min-width:300px;',
		'std' 		=> '',
		'type' 		=> 'select',
		'class'		=> 'chosen_select',
		'options' => array_unique( array( 
			'' => __( 'Select', 'geodirclaim' ),
			'yes' => __( 'Yes', 'geodirclaim' ),
			'no' => __( 'No', 'geodirclaim' ),
			))
	);
	
	$arr[] = array(  
		'name' => __('Show owner verified text on listings?', 'geodirclaim'),
		'desc' 		=> __( 'Select \'yes\' to show owner verified text on listings.', 'geodirclaim' ),
		'tip' 		=> '',
		'id' 			=> 'geodir_claim_show_owner_varified',
		'css' 		=> 'min-width:300px;',
		'std' 		=> '',
		'type' 		=> 'select',
		'class'		=> 'chosen_select',
		'options' => array_unique( array( 
			'' => __( 'Select', 'geodirclaim' ),
			'yes' => __( 'Yes', 'geodirclaim' ),
			'no' => __( 'No', 'geodirclaim' ),
			))
	);
	
	$arr[] = array(  
		'name' => __('Show link to author page on listings?', 'geodirclaim'),
		'desc' 		=> __( 'Select \'yes\' to show link to author page on listings.', 'geodirclaim' ),
		'tip' 		=> '',
		'id' 			=> 'geodir_claim_show_author_link',
		'css' 		=> 'min-width:300px;',
		'std' 		=> '',
		'type' 		=> 'select',
		'class'		=> 'chosen_select',
		'options' => array_unique( array( 
			'' => __( 'Select', 'geodirclaim' ),
			'yes' => __( 'Yes', 'geodirclaim' ),
			'no' => __( 'No', 'geodirclaim' ),
			))
	);
	
	$arr[] = array(  
		'name' => __('Choose post types for show claim listing link', 'geodirclaim'),
		'desc' 		=> '',
		'tip' 		=> '',
		'id' 		=> 'geodir_post_types_claim_listing',
		'css' 		=> 'min-width:300px;',
		'std' 		=> array(),
		'type' 		=> 'multiselect',
		'placeholder_text' => __( 'Select post types', 'geodirclaim' ) ,
		'class'		=> 'chosen_select',
		'options' => array_unique( geodir_claim_post_type_setting())
	);
	
	if ( is_plugin_active( 'geodir_payment_manager/geodir_payment_manager.php' ) ) {
		// Force to payment settings
		$arr[] = array(  
			'name' => __( 'Force an upgrade to complete the claim listing procedure', 'geodirclaim' ),
			'desc' 		=> __( 'Select \'yes\' to force an upgrade to complete the claim listing procedure.', 'geodirclaim' ),
			'tip' 		=> '',
			'id' 			=> 'geodir_claim_force_upgrade',
			'css' 		=> 'min-width:300px;',
			'std' 		=> '',
			'type' 		=> 'select',
			'class'		=> 'chosen_select',
			'options' => array_unique( array( 
				'' => __( 'Select', 'geodirclaim' ),
				'yes' => __( 'Yes', 'geodirclaim' ),
				'no' => __( 'No', 'geodirclaim' ),
				))
		);
	}
	
	$arr[] = array( 'type' => 'sectionend', 'id' => 'claim_default_options');
	
	$arr = apply_filters('geodir_claim_default_options' ,$arr );
	
	return $arr;
}