Skip to content

Instantly share code, notes, and snippets.

@cpaul007
Last active August 29, 2015 14:23
Show Gist options
  • Save cpaul007/c4d954989618c1188234 to your computer and use it in GitHub Desktop.
Save cpaul007/c4d954989618c1188234 to your computer and use it in GitHub Desktop.
Displaying Genesis Simple Share icons in Genesis Featured Posts Combo Plugin
<?php
// Do not include PHP open tag
/**
* Displaying Genesis Simple Share icons in Genesis Featured Posts Combo Plugin
*
* @author Genesis Developer
* @link http://genesisdeveloper.me
*
* @since 1.0
* @version 1.0.4
*/
//* Enable the Waypoints JS if 'Show on Archive Pages' checkbox is disable
if( ! genesis_get_option( 'general_show_archive' ) )
add_filter( 'genesis_pre_get_option_general_show_archive', '__return_true' );
//* Adding Simple Share Icons after Post Info
add_action( 'gfpc_entry_header', 'gfpc_simple_share', 16, 2 );
function gfpc_simple_share( $instance, $widget_id ) {
global $Genesis_Simple_Share;
if( ! is_object( $Genesis_Simple_Share ) ) {
include_once( WP_PLUGIN_DIR . '/genesis-simple-share/lib/front-end.php');
global $Genesis_Simple_Share;
}
genesis_share_icon_output( 'before' , $Genesis_Simple_Share->icons );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment