Plugin Directory

Changeset 744243


Ignore:
Timestamp:
07/22/2013 07:15:32 AM (13 years ago)
Author:
bholtsclaw
Message:

1.5.5 release

Location:
gplus-comments
Files:
7 edited
13 copied

Legend:

Unmodified
Added
Removed
  • gplus-comments/tags/1.5.5/assets/styles/plugin.css

    r744196 r744243  
    165165.embed-container {
    166166  position: relative;
    167   /* overflow: hidden; */
    168167}
    169168
    170169.embed-container iframe {
    171170  width: 100%;
    172   height: 100%;
    173171}
  • gplus-comments/tags/1.5.5/comments-evolved.php

    r744196 r744243  
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
    1010Donate link: http://www.wepay.com/donations/brandonholtsclaw
    11 Version: 1.5.4
     11Version: 1.5.5
    1212*/
    1313
  • gplus-comments/tags/1.5.5/includes/lib/frontend.php

    r744012 r744243  
    1818function comments_evolved_get_total_count() {
    1919  $total_count = 0;
    20   $wpc = comments_evolved_get_wordpress_count();
    21   $fbc = comments_evolved_get_facebook_count();
    22   $gpc = comments_evolved_get_gplus_count();
    2320
    24   $total_count = $total_count + $fbc + $gpc + $wpc;
     21  $wordpress_count = comments_evolved_get_wordpress_count();
     22  //$wordpress_count = get_comments_number();
     23
     24  $gplus_count = comments_evolved_get_gplus_count();
     25  $trackback_count = comments_evolved_get_trackback_count();
     26  $facebook_count = comments_evolved_get_facebook_count();
     27  $disqus_count = comments_evolved_get_disqus_count();
     28
     29  $total_count = $total_count + $wordpress_count + $gplus_count + $trackback_count + $facebook_count + $disqus_count;
    2530  return $total_count;
    2631}
    27 add_filter('get_comments_number', 'comments_evolved_get_total_count');
     32add_filter('get_comments_number', 'comments_evolved_get_total_count', 4269);
    2833
    2934function comments_evolved_get_wordpress_count() {
    30   global $post, $comments, $wp_query, $comments_by_type;
    31   return count($wp_query->comments_by_type['comment']);
     35  global $post, $comments, $wp_query, $comments_by_type, $id;
     36  $get_comments= get_comments('post_id=' . $id);
     37  $comments_by_type = &separate_comments($get_comments);
     38  return count($comments_by_type['comment']);
    3239}
    3340
     
    4350  $json = json_decode($link_body);
    4451  return $json->$url->comments;
     52}
     53
     54function comments_evolved_get_disqus_count($url = "") {
     55  if(empty($url)){ $url = get_permalink(); }
     56  $options = get_option("comments-evolved");
     57  if(!empty($options["disqus_shortname"])){
     58    $link = 'http://disqus.com/api/3.0/threads/details.json?api_key=qaoZg7DHagkn8xUf9ZqYRacHZI3CuBmGpu5InMmtXgtRzCnq6iGwtn7Fbwq1uysH&forum=' . $options["disqus_shortname"] . '&thread:link=' . urlencode($url);
     59    $link_body = wp_remote_retrieve_body(wp_remote_get($link));
     60    $json = json_decode($link_body);
     61    if(!empty($json)){
     62      return $json->response->posts;
     63    }
     64  }
     65  return 0;
    4566}
    4667
  • gplus-comments/tags/1.5.5/includes/lib/plugin.php

    r743641 r744243  
    4242
    4343function comments_evolved_shortcode($atts) {
    44   extract( shortcode_atts( array( 'width' => '600',  ), $atts ) );
    45 
     44  //extract( shortcode_atts( array( 'width' => '600',  ), $atts ) );
    4645  ob_start();
    4746  include(COMMENTS_EVOLVED_TEMPLATES . '/container.php');
  • gplus-comments/tags/1.5.5/includes/templates/container.php

    r744120 r744243  
    3030</script>
    3131<div id="comment-tabs">
     32<a name="comments"></a>
    3233  <?php
    3334    if(!empty($options['comment_area_label'])) {
     
    4849      $trackback_count = comments_evolved_get_trackback_count();
    4950      $facebook_count = comments_evolved_get_facebook_count();
     51      $disqus_count = comments_evolved_get_disqus_count();
    5052
    5153      foreach ($tab_order as &$tab) {
  • gplus-comments/tags/1.5.5/readme.txt

    r744196 r744243  
    77Requires at least: 3.5
    88Tested up to: 3.6
    9 Stable Tag: 1.5.4
     9Stable Tag: 1.5.5
    1010
    1111Comments Evolved ( formerly Google+ Comments for WordPress ) makes the comment section tabbed seamlessly adding tabs for Comments & More
     
    103103
    104104== Change Log ==
     105= 1.5.5 =
     106* udates to the disqus comment count
     107* fixes for the comment count total
     108
    105109= 1.5.4 =
    106110* even more css fixes
  • gplus-comments/trunk/assets/styles/plugin.css

    r744196 r744243  
    165165.embed-container {
    166166  position: relative;
    167   /* overflow: hidden; */
    168167}
    169168
    170169.embed-container iframe {
    171170  width: 100%;
    172   height: 100%;
    173171}
  • gplus-comments/trunk/comments-evolved.php

    r744196 r744243  
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
    1010Donate link: http://www.wepay.com/donations/brandonholtsclaw
    11 Version: 1.5.4
     11Version: 1.5.5
    1212*/
    1313
  • gplus-comments/trunk/includes/lib/frontend.php

    r744012 r744243  
    1818function comments_evolved_get_total_count() {
    1919  $total_count = 0;
    20   $wpc = comments_evolved_get_wordpress_count();
    21   $fbc = comments_evolved_get_facebook_count();
    22   $gpc = comments_evolved_get_gplus_count();
    2320
    24   $total_count = $total_count + $fbc + $gpc + $wpc;
     21  $wordpress_count = comments_evolved_get_wordpress_count();
     22  //$wordpress_count = get_comments_number();
     23
     24  $gplus_count = comments_evolved_get_gplus_count();
     25  $trackback_count = comments_evolved_get_trackback_count();
     26  $facebook_count = comments_evolved_get_facebook_count();
     27  $disqus_count = comments_evolved_get_disqus_count();
     28
     29  $total_count = $total_count + $wordpress_count + $gplus_count + $trackback_count + $facebook_count + $disqus_count;
    2530  return $total_count;
    2631}
    27 add_filter('get_comments_number', 'comments_evolved_get_total_count');
     32add_filter('get_comments_number', 'comments_evolved_get_total_count', 4269);
    2833
    2934function comments_evolved_get_wordpress_count() {
    30   global $post, $comments, $wp_query, $comments_by_type;
    31   return count($wp_query->comments_by_type['comment']);
     35  global $post, $comments, $wp_query, $comments_by_type, $id;
     36  $get_comments= get_comments('post_id=' . $id);
     37  $comments_by_type = &separate_comments($get_comments);
     38  return count($comments_by_type['comment']);
    3239}
    3340
     
    4350  $json = json_decode($link_body);
    4451  return $json->$url->comments;
     52}
     53
     54function comments_evolved_get_disqus_count($url = "") {
     55  if(empty($url)){ $url = get_permalink(); }
     56  $options = get_option("comments-evolved");
     57  if(!empty($options["disqus_shortname"])){
     58    $link = 'http://disqus.com/api/3.0/threads/details.json?api_key=qaoZg7DHagkn8xUf9ZqYRacHZI3CuBmGpu5InMmtXgtRzCnq6iGwtn7Fbwq1uysH&forum=' . $options["disqus_shortname"] . '&thread:link=' . urlencode($url);
     59    $link_body = wp_remote_retrieve_body(wp_remote_get($link));
     60    $json = json_decode($link_body);
     61    if(!empty($json)){
     62      return $json->response->posts;
     63    }
     64  }
     65  return 0;
    4566}
    4667
  • gplus-comments/trunk/includes/lib/plugin.php

    r743641 r744243  
    4242
    4343function comments_evolved_shortcode($atts) {
    44   extract( shortcode_atts( array( 'width' => '600',  ), $atts ) );
    45 
     44  //extract( shortcode_atts( array( 'width' => '600',  ), $atts ) );
    4645  ob_start();
    4746  include(COMMENTS_EVOLVED_TEMPLATES . '/container.php');
  • gplus-comments/trunk/includes/templates/container.php

    r744120 r744243  
    3030</script>
    3131<div id="comment-tabs">
     32<a name="comments"></a>
    3233  <?php
    3334    if(!empty($options['comment_area_label'])) {
     
    4849      $trackback_count = comments_evolved_get_trackback_count();
    4950      $facebook_count = comments_evolved_get_facebook_count();
     51      $disqus_count = comments_evolved_get_disqus_count();
    5052
    5153      foreach ($tab_order as &$tab) {
  • gplus-comments/trunk/readme.txt

    r744196 r744243  
    77Requires at least: 3.5
    88Tested up to: 3.6
    9 Stable Tag: 1.5.4
     9Stable Tag: 1.5.5
    1010
    1111Comments Evolved ( formerly Google+ Comments for WordPress ) makes the comment section tabbed seamlessly adding tabs for Comments & More
     
    103103
    104104== Change Log ==
     105= 1.5.5 =
     106* udates to the disqus comment count
     107* fixes for the comment count total
     108
    105109= 1.5.4 =
    106110* even more css fixes
Note: See TracChangeset for help on using the changeset viewer.