Changeset 1788055
- Timestamp:
- 12/16/2017 04:14:25 PM (8 years ago)
- Location:
- themeloom-widgets/trunk
- Files:
-
- 3 edited
-
facebook-widget.php (modified) (4 diffs)
-
readme.txt (modified) (1 diff)
-
themeloom-widgets.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
themeloom-widgets/trunk/facebook-widget.php
r1778819 r1788055 82 82 <p> 83 83 <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> 85 85 <p> 86 86 <label for="<?php echo $this->get_field_id('edge'); ?>"><?php _e('Feed : ','livingos');?></label><br /> … … 155 155 156 156 //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}" ); 158 158 159 159 $pageinfo = json_decode($json_object); … … 218 218 $pageinfo = livingos_get_fb_page_info( $args['page_id'], $args['auth_token'], $args['cache_expire']); 219 219 220 221 220 // show page info 222 221 if ( $args['page_title'] ) { … … 224 223 $output .= "<a href=\"{$pageinfo->link}\" >{$pageinfo->name}</a>"; 225 224 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>"; 227 226 $output .= "</div>"; 228 227 } -
themeloom-widgets/trunk/readme.txt
r1778819 r1788055 76 76 == Changelog == 77 77 78 = 1.8.5 = 79 * fixed facebook like count not showing 80 78 81 = 1.8.4 = 79 82 * fixed for new facebook api version -
themeloom-widgets/trunk/themeloom-widgets.php
r1778819 r1788055 3 3 Plugin Name: ThemeLoom Widgets 4 4 Description: 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. 45 Version: 1.8.5 6 6 License: GPLv2 7 7 Author: Tim Hyde
Note: See TracChangeset
for help on using the changeset viewer.