Advertisement
jesseeproductions

Genesis SImple Share on SIngle Events Calendar

Sep 22nd, 2014
728
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. /**
  2. * Adds the Genesis Share icons after the entry but within the entry content container.
  3. *
  4. * @since 1.0.0
  5. *
  6. * @return null Return early for non-single events
  7. */
  8. add_action( 'tribe_events_single_event_before_the_content', 'events_prefix_entry' );
  9.  
  10. function events_prefix_entry() {
  11. if ( !tribe_is_event() && !is_single() || ! function_exists( 'genesis_share_icon_output' ) ) {
  12. return;
  13. }
  14.  
  15. global $Genesis_Simple_Share;
  16.  
  17. echo '<div class="share-box"><h3 class="share-headline">' . __( 'If you liked this article, tell someone about it', 'yourtextdomain' ) . '</h3>';
  18. genesis_share_icon_output( 'after-entry', $Genesis_Simple_Share->icons );
  19. echo '</div>';
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement