Function Reference: geodir_get_post_feature_events

Summary

This function has not been documented yet.

Filters

‘geodir_template_part-feature-event-listing-listview’ [Line: 1183]

‘geodir_widget_feature_event_title’ [Line: 1191]

Source File

geodir_get_post_feature_events() is located in geodir_event_manager/gdevents_template_functions.php [Line: 1147]

Source Code

function geodir_get_post_feature_events($query_args = array(), $layout='gridview_onehalf'){
	
	global $gridview_columns;
	
	$character_count = (isset($query_args['character_count']) && !empty($query_args['character_count'])) ? $query_args['character_count'] : '';
	
	$geodir_event_type = $query_args['geodir_event_type'];
	
	if($geodir_event_type == 'all' || empty($geodir_event_type) || (is_array($geodir_event_type) && (in_array('all',$geodir_event_type) || in_array('feature',$geodir_event_type)))){
		
		$query_args['geodir_event_type'] = 'feature';
		
	}else{
		return false;
	}
	

	$all_events = query_posts( $query_args );
	
	
	$all_events = query_posts( $query_args );
	
	if(!empty($all_events)){
	
		if(strstr($layout,'gridview')){
			
			$listing_view_exp = explode('_',$layout);
			
			$gridview_columns = $layout;
			
			$layout = $listing_view_exp[0];
			
		}
		
		
			
			$template = apply_filters( "geodir_template_part-feature-event-listing-listview", geodir_plugin_path() . '/geodirectory-templates/listing-listview.php' );
		
		
		
		
			?>