slug ); echo '

' . esc_html( $location->name ) . '

'; } echo '
'; if ( apply_filters( 'ninety_show_secretary', $secretary ) ) { echo '

'; echo esc_html( __( 'Secretary', 'ninety-ninety' ) . ': ' . $secretary ); echo '

'; } if ( apply_filters( 'ninety_show_speaker', $speaker ) ) { echo '

'; echo esc_html( __( 'Speaker', 'ninety-ninety' ) . ': ' . $speaker ); echo '

'; } if ( apply_filters( 'ninety_show_topic', $topic ) ) { echo '

'; echo esc_html( __( 'Topic', 'ninety-ninety' ) . ': ' . $topic ); echo '

'; } // If we have notes, put 'em on the page. if ( apply_filters( 'ninety_show_notes', $notes ) ) { echo '
'; echo apply_filters( 'the_content', $notes ); echo '
'; } echo 'back to meetings'; echo '
'; } } if ( ! function_exists( 'ninety_single_post_nav' ) ) { /** * Output prev/next links conditionally using same tax arg * * @return void * @since 0.1.0 */ function ninety_single_post_nav() { echo ''; } } if ( ! function_exists( 'ninety_map' ) ) { /** * Display meeting map * * @param int|string $title Whether or not to show title, string for title. * @param int $show_count Whether or not to show meeting count. * @param bool $return Whether to return or echo. * * @return mixed * @since 0.1.0 */ function ninety_map( $title = 0, $show_count = 0, $return = false ) { if ( $return ) { return "[ninety_map show_chart=0 title={$title} show_count={$show_count}]"; } else { echo esc_html( "[ninety_map show_chart=0 title={$title} show_count={$show_count}]" ); } } } if ( ! function_exists( 'ninety_chart' ) ) { /** * Display meeting chart * * @param string $type Chart type ( pie | doughnut | bar ). * @param bool $return Whether to return or echo. * * @return mixed * @since 0.1.0 */ function ninety_chart( $type = 'pie', $return = false ) { if ( $return ) { return "[ninety_map show_map=0 show_chart=1 chart_type={$type}]"; } else { echo esc_html( "[ninety_map show_map=0 show_chart=1 chart_type={$type}]" ); } } } if ( ! function_exists( 'ninety_map_and_chart' ) ) { /** * Display meeting map and chart * * @param int|string $title String for title, 0 for nothing. * @param int $show_count Whether or not to show meeting count. * @param bool $return Whether to return or echo. * * @return string|void * @since 1.0.0 */ function ninety_map_and_chart( $title = 0, $show_count = 0, $return = false ) { if ( $return ) { return "[ninety_map show_chart=1 title={$title} show_count={$show_count}]"; } else { echo esc_html( "[ninety_map show_chart=1 title={$title} show_count={$show_count}]" ); } } /** * Returns `in_same_term` argument for next/previous post link functions * Needed when viewing meetings from single location * * @return bool * @since 0.1.0 */ function ninety_in_same_term() { $location = get_query_var( 'ninety_meeting_location' ); $in_same_term = ! empty( $location ) ? true : false; return $in_same_term; } }