Skip to content

Instantly share code, notes, and snippets.

@jesseeproductions
Last active August 29, 2015 14:11
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jesseeproductions/c7441fe7e08a5c9cd64e to your computer and use it in GitHub Desktop.
Save jesseeproductions/c7441fe7e08a5c9cd64e to your computer and use it in GitHub Desktop.
The Events Calendar Include Genesis Simple Sharing Above Event Calendar
/**
* The Events Calendar - Include Genesis Simple Sharing Above Single Events Content
*
*/
add_filter( 'tribe_events_single_event_before_the_content', 'tribe_genesis_event_share' );
function tribe_genesis_event_share( $post_info ) {
if ( is_singular('tribe_events') && function_exists( 'genesis_share_get_icon_output' ) ) {
global $Genesis_Simple_Share;
$share = genesis_share_get_icon_output( 'entry-meta', $Genesis_Simple_Share->icons );
$event_sharing = '<div class="alignleft info-left">' . $share . '</div><br>';
echo $event_sharing;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment