Forked from jesseeproductions/ecp-genesis-sharing
Last active
August 29, 2015 14:23
-
-
Save brianjking/340c1fe7d5dc1b003464 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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