Plugin Directory

Changeset 1788055


Ignore:
Timestamp:
12/16/2017 04:14:25 PM (8 years ago)
Author:
livingos
Message:

updates fro 1.8.5

Location:
themeloom-widgets/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • themeloom-widgets/trunk/facebook-widget.php

    r1778819 r1788055  
    8282        <p>
    8383        <input class="checkbox" type="checkbox" <?php checked( $instance['show_likes'], 'on' ); ?> id="<?php echo $this->get_field_id( 'show_likes' ); ?>" name="<?php echo $this->get_field_name( 'show_likes' ); ?>" />
    84         <label for="<?php echo $this->get_field_id('show_likes'); ?>"><?php _e('Show Likes count','livingos'); ?></label> </p>
     84        <label for="<?php echo $this->get_field_id('show_likes'); ?>"><?php _e('Show Fan Count','livingos'); ?></label> </p>
    8585        <p>
    8686            <label for="<?php echo $this->get_field_id('edge'); ?>"><?php _e('Feed : ','livingos');?></label><br />
     
    155155
    156156        //get page details
    157         $json_object = livingos_fetchUrl( "https://graph.facebook.com/v2.11/{$page_id}?fields=name,link&access_token={$auth_token}" );
     157        $json_object = livingos_fetchUrl( "https://graph.facebook.com/v2.11/{$page_id}?fields=name,link,fan_count&access_token={$auth_token}" );
    158158
    159159        $pageinfo = json_decode($json_object);
     
    218218    $pageinfo = livingos_get_fb_page_info( $args['page_id'], $args['auth_token'], $args['cache_expire']);
    219219
    220    
    221220    // show page info
    222221    if ( $args['page_title'] ) {
     
    224223        $output .= "<a href=\"{$pageinfo->link}\" >{$pageinfo->name}</a>";
    225224        if ( $args['show_likes'] )
    226             $output .= "<a href=\"{$pageinfo->link}\" class=\"fb-like-btn\" ><span class=\"fb-likes\">$pageinfo->likes</span></a>";
     225            $output .= "<a href=\"{$pageinfo->link}\" class=\"fb-like-btn\" ><span class=\"fb-likes\">$pageinfo->fan_count</span></a>";
    227226        $output .= "</div>";
    228227    }
  • themeloom-widgets/trunk/readme.txt

    r1778819 r1788055  
    7676== Changelog ==
    7777
     78= 1.8.5 =
     79* fixed facebook like count not showing
     80
    7881= 1.8.4 =
    7982* fixed for new facebook api version
  • themeloom-widgets/trunk/themeloom-widgets.php

    r1778819 r1788055  
    33Plugin Name: ThemeLoom Widgets
    44Description: A set of really useful widgets for showing posts, pages, tweets and your flickr images. Designed for use with responsive themes.
    5 Version: 1.8.4
     5Version: 1.8.5
    66License: GPLv2
    77Author: Tim Hyde
Note: See TracChangeset for help on using the changeset viewer.