jesseeproductions

Genesis SImple Share on SIngle Events Calendar

Sep 22nd, 2014
470
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×