Plugin Directory

Changeset 419165


Ignore:
Timestamp:
08/04/2011 11:22:37 AM (14 years ago)
Author:
sproject
Message:

1.4.3 release

Location:
facebook-likes-you/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • facebook-likes-you/trunk/facebook-likes-you.php

    r419134 r419165  
    44Plugin URI: http://www.sproject.name/download/wp-facebook-likes-you/
    55Description: Facebook Likes You! is simple plugin which makes it easy to add Facebook Like button and widgetable Like box. It's fully configurable, so you can decide where to append the button.
    6 Version: 1.4.2
     6Version: 1.4.3
    77Author: Piotr Sochalewski
    88Author URI: http://www.sproject.name/
     
    4545    register_setting('fb_like', 'fb_like_xfbml');
    4646    register_setting('fb_like', 'fb_like_google1');
     47    register_setting('fb_like', 'fb_like_opengraph');
     48    register_setting('fb_like', 'fb_like_defaultpic');
    4749    register_setting('fb_like', 'fb_like_appid');
    4850    register_setting('fb_like', 'fb_like_send');
     
    205207    ob_start();
    206208    ob_end_clean();
    207    
     209
    208210    if (current_theme_supports('post-thumbnails'))
    209         if (has_post_thumbnail($post->ID))
    210             return wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'medium' );
    211    
     211        if (has_post_thumbnail($post->ID)) {
     212            $img = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'medium' );
     213            return esc_attr($img[0]);
     214        }
     215
    212216    $output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches);
    213217    $img = $matches[1][0];
    214218   
    215     if (empty($first_img))
     219    if (empty($img))
    216220        $img = $fb_like_settings['defaultpic'];
    217221       
     
    227231        <?php if (is_home())
    228232        echo '<meta property="og:type" content="blog"/> <meta property="og:url" content="' . get_bloginfo("home") . '"/>';
    229         else echo '<meta property="og:type" content="article"/> <meta property="og:url" content="' . get_permalink() . '"/>' ?>
     233        else echo '<meta property="og:type" content="article"/> <meta property="og:url" content="' . get_permalink() . '"/>'; ?>
    230234        <meta property="og:image" content="<?php echo fb_like_catch_image() ?>"/>
    231235        <meta property="og:site_name" content="<?php bloginfo('name') ?>"/>
  • facebook-likes-you/trunk/readme.txt

    r419134 r419165  
    55Requires at least: 2.9
    66Tested up to: 3.2
    7 Stable tag: 1.4.2
     7Stable tag: 1.4.3
    88
    99Facebook Likes You! is simple plugin which makes it easy to add Like Button and widgetable Like Box. Google +1 Button isn't a problem too!
     
    4848
    4949== Changelog ==
     50
     51* One more fix for Open Graph
     52* Fixed settings
    5053
    5154= 1.4.2 =
Note: See TracChangeset for help on using the changeset viewer.