Skip to content

Instantly share code, notes, and snippets.

@brianjking
Forked from jesseeproductions/ecp-genesis-sharing
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianjking/340c1fe7d5dc1b003464 to your computer and use it in GitHub Desktop.
Save brianjking/340c1fe7d5dc1b003464 to your computer and use it in GitHub Desktop.
/**
* The Events Calendar Include Genesis Simple Sharing Above Event Calendar
*
*/
add_filter( 'tribe_events_single_event_before_the_content', 'tribe_genesis_event_share' );
function tribe_genesis_event_share( $post_info ) {
// Return the existing post info for pages or when plugin is not active
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