Changeset 933293
- Timestamp:
- 06/16/2014 09:05:21 PM (12 years ago)
- Location:
- chartbeat/trunk
- Files:
-
- 2 edited
-
chartbeat.php (modified) (5 diffs)
-
readme.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
chartbeat/trunk/chartbeat.php
r723225 r933293 266 266 var _sf_async_config={}; 267 267 _sf_async_config.uid = <?php echo intval( $user_id ); ?>; 268 _sf_async_config.useCanonical = <?php echo $use_canonical; ?>;268 _sf_async_config.useCanonical = <?php echo esc_js( $use_canonical ); ?>; 269 269 <?php 270 270 $enable_newsbeat = get_option('chartbeat_enable_newsbeat'); … … 337 337 } 338 338 339 function widget( $args ) {339 function widget( $args, $instance ) { 340 340 extract( $args ); 341 341 echo $before_widget; … … 348 348 <script type="text/javascript"> 349 349 var options = { }; 350 new CBTopPagesWidget( <?php echo get_option('chartbeat_widgetconfig'); ?> );350 new CBTopPagesWidget( <?php echo json_encode( json_decode( get_option('chartbeat_widgetconfig') ) ); ?> ); 351 351 </script> 352 352 <?php … … 381 381 } 382 382 383 echo $response;383 echo json_encode( json_decode( $response ) ); 384 384 exit; 385 385 } … … 542 542 function(data) { 543 543 if ( !data.visits ) data.visits = 0; 544 jQuery('#post-<?php echo $id; ?> .cb_visits').append(data.visits);544 jQuery('#post-<?php echo absint( $id ); ?> .cb_visits').append(data.visits); 545 545 } 546 546 ); -
chartbeat/trunk/readme.txt
r723225 r933293 4 4 Requires at least: 2.8 5 5 Tested up to: 3.5.1 6 Stable tag: 2.0. 36 Stable tag: 2.0.4 7 7 8 8 The Chartbeat plugin automatically adds real-time data and a top pages widget to your blog. See who’s on your site, what they’re doing - right now … … 17 17 2. Activate the plugin through the 'Plugins' menu in WordPress 18 18 3. Under Settings > Chartbeat, add your User ID 19 4. You may also add your API key and configure the widget (API key must have "all" per smissions).20 5. Select Newsbeatif you're using it19 4. You may also add your API key and configure the widget (API key must have "all" permissions). 20 5. Select Chartbeat Publishing if you're using it 21 21 6. If you want to use the widget, drag it into your sidebar under Appearance > Widgets 22 22 … … 28 28 = What is Chartbeat? = 29 29 30 We’re a real-time data service used by everyone from Foursquare to F oxNews to your mom’s blog (well, someone’s mom’s blog, if not yours.)30 We’re a real-time data service used by everyone from Foursquare to Financial Times to your mom’s blog (well, someone’s mom’s blog, if not yours.) 31 31 32 32 Use Chartbeat (and this plugin) to see how many people are on your site and what they’re up to while they’re there, so you can take smarter real-time actions. Check it out for yourself by playing with our [demo](http://chartbeat.com/demo/) and sign up for [a free trial](https://chartbeat.com/signup/)! … … 51 51 52 52 = 1.0 = 53 * First ver ison. Please provide feedback.53 * First version. Please provide feedback. 54 54 55 55 = 1.2 = … … 72 72 73 73 = 2.0.3 = 74 * Fixed issure where the Chartbeat console's iframe was too short to be usable 74 * Fixed issue where the Chartbeat console's iframe was too short to be usable 75 76 = 2.0.4 = 77 * Remove Newsbeat reference, update json encoding
Note: See TracChangeset
for help on using the changeset viewer.