sharedaddy.php
| 1 | <?php |
| 2 | /** |
| 3 | * Module Name: Sharing |
| 4 | * Module Description: Allow visitors to share your content. |
| 5 | * Jumpstart Description: Twitter, Facebook and Google+ buttons at the bottom of each post, making it easy for visitors to share your content. |
| 6 | * Sort Order: 7 |
| 7 | * Recommendation Order: 6 |
| 8 | * First Introduced: 1.1 |
| 9 | * Major Changes In: 1.2 |
| 10 | * Requires Connection: No |
| 11 | * Auto Activate: Yes |
| 12 | * Module Tags: Social, Recommended |
| 13 | * Feature: Engagement, Jumpstart |
| 14 | * Additional Search Queries: share, sharing, sharedaddy, buttons, icons, email, facebook, twitter, google+, linkedin, pinterest, pocket, press this, print, reddit, tumblr |
| 15 | */ |
| 16 | |
| 17 | if ( !function_exists( 'sharing_init' ) ) |
| 18 | include dirname( __FILE__ ).'/sharedaddy/sharedaddy.php'; |
| 19 | |
| 20 | add_action( 'jetpack_modules_loaded', 'sharedaddy_loaded' ); |
| 21 | |
| 22 | function sharedaddy_loaded() { |
| 23 | Jetpack::enable_module_configurable( __FILE__ ); |
| 24 | Jetpack::module_configuration_load( __FILE__, 'sharedaddy_configuration_load' ); |
| 25 | } |
| 26 | |
| 27 | function sharedaddy_configuration_load() { |
| 28 | wp_safe_redirect( menu_page_url( 'sharing', false ) . "#sharing-buttons" ); |
| 29 | exit; |
| 30 | } |
| 31 |