Changeset 864696
- Timestamp:
- 02/25/2014 12:59:47 PM (12 years ago)
- Location:
- addthis-smart-layers/trunk
- Files:
-
- 3 edited
-
addthis-smart_layers.php (modified) (3 diffs)
-
readme.txt (modified) (3 diffs)
-
views/includes/addthis_addjs.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
addthis-smart-layers/trunk/addthis-smart_layers.php
r857036 r864696 3 3 * Plugin Name: AddThis Smart Layers 4 4 * Description: AddThis Smart Layers. Make your site smarter. Increase traffic, engagement and revenue by instantly showing the right social tools and content to every visitor. 5 * Version: 1.0. 85 * Version: 1.0.9 6 6 * Author: The AddThis Team 7 7 * Author URI: http://www.addthis.com/blog … … 10 10 */ 11 11 12 define('ADDTHIS_SMART_LAYER_PRODUCT_CODE', 'wpp-1.0. 8');12 define('ADDTHIS_SMART_LAYER_PRODUCT_CODE', 'wpp-1.0.9'); 13 13 define('ADDTHIS_SMART_LAYER_AT_VERSION', 300); 14 14 … … 177 177 if ($profile || $share_profile) { 178 178 $smart_layer_pro = get_option('smart_layer_pro'); 179 $ch = curl_init();180 179 if ($profile) { 181 curl_setopt($ch, CURLOPT_URL, "http://q.addthis.com/feeds/1.0/config.json?pubid=" . $profile);180 $request = wp_remote_get( "http://q.addthis.com/feeds/1.0/config.json?pubid=" . $profile ); 182 181 } else { 183 curl_setopt($ch, CURLOPT_URL, "http://q.addthis.com/feeds/1.0/config.json?pubid=" . $share_profile); 184 } 185 186 // receive server response ... 187 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 188 189 // further processing .... 190 $server_output = curl_exec($ch); 191 curl_close($ch); 182 $request = wp_remote_get( "http://q.addthis.com/feeds/1.0/config.json?pubid=" . $share_profile ); 183 } 184 185 $server_output = wp_remote_retrieve_body( $request ); 192 186 $array = json_decode($server_output); 193 187 // check for pro user -
addthis-smart-layers/trunk/readme.txt
r857037 r864696 4 4 Requires at least: 3.3 5 5 Tested up to: 3.8.1 6 Stable tag: 1.0. 86 Stable tag: 1.0.9 7 7 8 8 Increase traffic, content engagement, and revenue by showing the right social tools and best content. Make your site smarter with Smart Layers. … … 94 94 95 95 == Changelog == 96 = 1.0.9 = 97 * Resolved conflict with WP-Supercache plugin 98 * Fix for servers without CURL support 96 99 97 100 = 1.0.8 = … … 119 122 * Bug fixes. 120 123 124 125 121 126 == Upgrade Notice == 127 = 1.0.9 = 128 Resolved conflict with WP-Supercache plugin and support for servers without CURL 129 122 130 = 1.0.8 = 123 131 Minor bug fix -
addthis-smart-layers/trunk/views/includes/addthis_addjs.php
r814477 r864696 132 132 133 133 function check_for_footer(){ 134 $url = add_query_arg( array( 'attest' => 'true') , get_option('home'));134 $url = home_url(); 135 135 $response = wp_remote_get( $url, array( 'sslverify' => false ) ); 136 136 $code = (int) wp_remote_retrieve_response_code( $response ); … … 143 143 144 144 function maybe_add_footer_comment(){ 145 if ( $_GET['attest'] = 'true' )146 {147 145 add_action( 'wp_footer', array($this, 'test_footer' ), 99999 ); // Some obscene priority, make sure we run last 148 }149 146 } 150 147
Note: See TracChangeset
for help on using the changeset viewer.