Changeset 744012
- Timestamp:
- 07/21/2013 05:47:53 PM (13 years ago)
- Location:
- gplus-comments/trunk
- Files:
-
- 4 edited
-
includes/lib/frontend.php (modified) (2 diffs)
-
includes/templates/container.php (modified) (3 diffs)
-
includes/templates/partials/trackback.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
gplus-comments/trunk/includes/lib/frontend.php
r743641 r744012 18 18 function comments_evolved_get_total_count() { 19 19 $total_count = 0; 20 //$wpc_1 = get_comments_number();21 20 $wpc = comments_evolved_get_wordpress_count(); 22 21 $fbc = comments_evolved_get_facebook_count(); 23 22 $gpc = comments_evolved_get_gplus_count(); 24 23 25 $total_count = $ fbc + $gpc + $wpc;24 $total_count = $total_count + $fbc + $gpc + $wpc; 26 25 return $total_count; 27 26 } 28 //add_filter('get_comments_number', 'comments_evolved_get_total_count');27 add_filter('get_comments_number', 'comments_evolved_get_total_count'); 29 28 30 29 function comments_evolved_get_wordpress_count() { 31 global $ comments_by_type;32 return count($ comments_by_type['comment']);30 global $post, $comments, $wp_query, $comments_by_type; 31 return count($wp_query->comments_by_type['comment']); 33 32 } 34 33 35 34 function comments_evolved_get_trackback_count() { 36 global $ comments_by_type;37 return count($ comments_by_type['pings']);35 global $post, $comments, $wp_query, $comments_by_type; 36 return count($wp_query->comments_by_type['pings']); 38 37 } 39 38 40 function comments_evolved_get_facebook_count($url ) {39 function comments_evolved_get_facebook_count($url = "") { 41 40 if(empty($url)){ $url = get_permalink(); } 42 41 $link = 'https://graph.facebook.com/?ids=' . urlencode($url); … … 46 45 } 47 46 48 function comments_evolved_get_gplus_count($url ) {47 function comments_evolved_get_gplus_count($url = "") { 49 48 include_once COMMENTS_EVOLVED_LIB . '/simple_html_dom.php'; 50 49 if(empty($url)){ $url = get_permalink(); } -
gplus-comments/trunk/includes/templates/container.php
r743641 r744012 23 23 } 24 24 ?> 25 25 <!-- comment-tabs --> 26 26 <script type="text/javascript"> 27 27 jQuery(document).ready(function($) { … … 29 29 }); 30 30 </script> 31 32 <!-- comment-tabs -->33 31 <div class="embed-container" id="comment-tabs"> 34 32 <?php … … 46 44 $active = ' class="active"'; 47 45 46 $wordpress_count = comments_evolved_get_wordpress_count(); 48 47 $gplus_count = comments_evolved_get_gplus_count(); 48 $trackback_count = comments_evolved_get_trackback_count(); 49 49 $facebook_count = comments_evolved_get_facebook_count(); 50 $wordpress_count = get_comments_number();51 50 52 51 foreach ($tab_order as &$tab) { -
gplus-comments/trunk/includes/templates/partials/trackback.php
r743641 r744012 11 11 <div id="trackback-tab" class="content-tab clearfix"> 12 12 <?php if (!empty($comments_by_type['pings'])) : ?> 13 < h6 id='pings'><?php printf( __( '%1$d %2$s for "%3$s"'), count($comments_by_type['pings']), __('Trackbacks'), get_the_title() )?></h6>13 <!-- <h6 id='pings'><?php printf( __( '%1$d %2$s for "%3$s"'), count($comments_by_type['pings']), __('Trackbacks'), get_the_title() )?></h6> --> 14 14 <ol class="commentlist"> 15 15 <?php wp_list_comments('type=pings&max_depth=1'); ?> -
gplus-comments/trunk/readme.txt
r743641 r744012 103 103 104 104 == Change Log == 105 = 1.5.1 = 106 * reworked css so that the embeded iFrames are now **responsive** and more mobile friendly. 107 * fixed JS for loading Livefyre so that comments made with the official plugin and this plugin are loaded in the same way. 108 * added option to show comment count on each tab label 109 * added shortcode `[comments_evolved]` and template tag `display_comments_evolved()` to display comment section in anywhere. 110 * added shortcodes and template tags to show individual and combined comment counts ( @see the [install page](http://wordpress.org/plugins/gplus-comments/installation/) for listing ) 111 112 113 = 1.5.0 = 114 * WARNING: if you are upgrading from Google+ Comments for WordPress to Comments Evolved then the plugin will need to be manually reactivated and settings will be reset back to defaults. 115 * rebranding from "Google+ Comments" to "Comments Evolved" ... completed 116 * major code cleanups ( seperated plugin init, frontend, and backend code ) 117 105 118 = 1.4.17 = 106 119 * tab font adjustment
Note: See TracChangeset
for help on using the changeset viewer.