Function Reference: geodir_event_get_link_business
Summary
This function has not been documented yet.
Filters
‘geodir_template_part-link-business-listview’ [Line: 1729]
‘geodir_event_linked_event_link’ [Line: 1740]
Source File
geodir_event_get_link_business() is located in geodir_event_manager/gdevents_template_functions.php [Line: 1722]
Source Code
function geodir_event_get_link_business( $listings = array() ) { global $post, $gridview_columns, $geodir_is_link_business, $character_count; if( empty ( $listings ) ) { return NULL; } $template = apply_filters( "geodir_template_part-link-business-listview", WP_PLUGIN_DIR . '/geodir_event_manager/link-business-listview.php', 'gd_event' ); $event_type = get_option( 'geodir_event_linked_event_type' ); $view_all_params = array(); if ( $event_type == 'today' || $event_type == 'past' || $event_type == 'upcoming' ) { $view_all_params['etype'] = $event_type; } $venue_name = $post->post_title; $view_all_params['venue'] = $post->ID . '-' . $venue_name; $view_all_url = geodir_getlink( get_post_type_archive_link( 'gd_event' ), $view_all_params ); $view_all_url = apply_filters( 'geodir_event_linked_event_link', $view_all_url, $post->ID ); $gd_listing_view_set = isset( $_SESSION['gd_listing_view'] ) ? true : false; $gd_listing_view = $gd_listing_view_set ? $_SESSION['gd_listing_view'] : ''; if ( $gd_listing_view_set ) { unset( $_SESSION['gd_listing_view'] ); } ob_start(); ?>