Plugin Directory

Changeset 422256


Ignore:
Timestamp:
08/11/2011 07:17:24 PM (15 years ago)
Author:
sproject
Message:

1.4.5 release

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

Legend:

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

    r419893 r422256  
    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.4
     6Version: 1.4.5
    77Author: Piotr Sochalewski
    88Author URI: http://www.sproject.name/
     
    209209    ob_start();
    210210    ob_end_clean();
     211   
     212    if (is_home())
     213        return $fb_like_settings['defaultpic'];
    211214
    212215    if (current_theme_supports('post-thumbnails'))
    213216        if (has_post_thumbnail($post->ID)) {
    214217            $img = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'medium' );
    215             return esc_attr($img[0]);
     218            if (!empty($img))
     219                return esc_attr($img[0]);
    216220        }
    217221
     
    230234    if($fb_like_settings['opengraph']=='true') {
    231235        ?>
    232         <meta property="og:title" content="<?php wp_title('&laquo;', true, 'right'); ?><?php bloginfo('name'); ?>"/>
    233236        <?php if (is_home())
    234             echo '<meta property="og:type" content="blog"/> <meta property="og:url" content="' . get_bloginfo("home") . '"/>';
    235             else echo '<meta property="og:type" content="article"/> <meta property="og:url" content="' . get_permalink() . '"/>'; ?>
     237            echo '<meta property="og:title" content="' . get_bloginfo('name') . '"/>
     238        <meta property="og:type" content="blog"/>
     239        <meta property="og:url" content="' . get_bloginfo("home") . '"/>
     240';
     241            else echo '<meta property="og:title" content="' . wp_title('&laquo;', false, 'right') . get_bloginfo('name') .'"/>
     242        <meta property="og:type" content="article"/>
     243        <meta property="og:url" content="' . get_permalink() . '"/>
     244'; ?>
    236245        <meta property="og:image" content="<?php echo fb_like_catch_image() ?>"/>
    237         <meta property="og:site_name" content="<?php bloginfo('name') ?>"/>
    238         <?php if (fb_like_return_appid()!=$defaultappid)
    239             echo '<meta property="fb:app_id" content="' . fb_like_return_appid() . '"/>';
     246        <meta property="og:site_name" content="<?php bloginfo('name') ?>"/>
     247        <?php if (fb_like_return_appid()!=$defaultappid)
     248        echo '<meta property="fb:app_id" content="' . fb_like_return_appid() . '"/>';
    240249    }
    241250}
  • facebook-likes-you/trunk/languages/fb_like_trans_domain-pl_PL.po

    r419000 r422256  
    11msgid ""
    22msgstr ""
    3 "Project-Id-Version: Facebook Likes You! v1.4\n"
     3"Project-Id-Version: Facebook Likes You! v1.4.5\n"
    44"Report-Msgid-Bugs-To: \n"
    55"POT-Creation-Date: 2011-05-03 01:22-0800\n"
    6 "PO-Revision-Date: 2011-08-04 01:14+0100\n"
     6"PO-Revision-Date: 2011-08-11 21:15+0100\n"
    77"Last-Translator: Piotr Sochalewski <[email protected]>\n"
    88"Language-Team: Piotr Sochalewski <[email protected]>\n"
  • facebook-likes-you/trunk/languages/fb_like_trans_domain.pot

    r419000 r422256  
    11msgid ""
    22msgstr ""
    3 "Project-Id-Version: Facebook Likes You! 1.4\n"
     3"Project-Id-Version: Facebook Likes You! 1.4.5\n"
    44"Report-Msgid-Bugs-To: \n"
    55"POT-Creation-Date: 2011-05-03 01:22-0800\n"
  • facebook-likes-you/trunk/readme.txt

    r419893 r422256  
    55Requires at least: 2.9
    66Tested up to: 3.2
    7 Stable tag: 1.4.4
     7Stable tag: 1.4.5
    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= 1.4.5 =
     52* Fixes for Open Graph
    5053
    5154= 1.4.4 =
Note: See TracChangeset for help on using the changeset viewer.