SHARE
TWEET

Genesis SImple Share on SIngle Events Calendar

jesseeproductions Sep 22nd, 2014 404 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top