This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Patch the old version of Easy Social Share Buttons for WordPress https://socialsharingplugin.com to | |
* read updated Facebook API for getting share counters | |
* | |
* The code snippet is made for version 4.x only | |
* @author AppsCreo | |
*/ | |
public static function get_facebook_count($url) { | |
$api3 = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @package EasySocialShareButtons\SocialShareOptimization | |
* @author appscreo | |
* @since 4.2 | |
* @version 4.0 | |
* | |
* Generate and store require from social share optimization tags post details: title, | |
* description and image | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Plugin Name: Easy Social Share Buttons for WordPress Subscribe Connector - JetPack Subscriptions | |
* Description: Activate usage of JetPack Subscriptions in Opt-in Module | |
* Plugin URI: http://codecanyon.net/item/easy-social-share-buttons-for-wordpress/6394476?ref=appscreo | |
* Version: 1.0 | |
* Author: CreoApps | |
* Author URI: http://codecanyon.net/user/appscreo/portfolio?ref=appscreo | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!function_exists('essb_cache_counters_parse')) { | |
function essb_cache_counters_parse($cached_counters = array()) { | |
global $post; | |
if (!isset($post)) return $cached_counters; | |
$post_id = $post->ID; | |
$cumulative_total = 0; | |
foreach ($cached_counters as $network => $shares) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function essb_counter_request_external( $encUrl ) { | |
$counter_curl_fix = essb_option_value('counter_curl_fix'); | |
$options = array( | |
CURLOPT_RETURNTRANSFER => true, // return web page | |
CURLOPT_HEADER => false, // don't return headers | |
//CURLOPT_FOLLOWLOCATION => true, // follow redirects | |
CURLOPT_ENCODING => "", // handle all encodings | |
CURLOPT_USERAGENT => isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : 'essb', // who am i |