Changeset 419165
- Timestamp:
- 08/04/2011 11:22:37 AM (14 years ago)
- Location:
- facebook-likes-you/trunk
- Files:
-
- 2 edited
-
facebook-likes-you.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
facebook-likes-you/trunk/facebook-likes-you.php
r419134 r419165 4 4 Plugin URI: http://www.sproject.name/download/wp-facebook-likes-you/ 5 5 Description: 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. 26 Version: 1.4.3 7 7 Author: Piotr Sochalewski 8 8 Author URI: http://www.sproject.name/ … … 45 45 register_setting('fb_like', 'fb_like_xfbml'); 46 46 register_setting('fb_like', 'fb_like_google1'); 47 register_setting('fb_like', 'fb_like_opengraph'); 48 register_setting('fb_like', 'fb_like_defaultpic'); 47 49 register_setting('fb_like', 'fb_like_appid'); 48 50 register_setting('fb_like', 'fb_like_send'); … … 205 207 ob_start(); 206 208 ob_end_clean(); 207 209 208 210 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 212 216 $output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches); 213 217 $img = $matches[1][0]; 214 218 215 if (empty($ first_img))219 if (empty($img)) 216 220 $img = $fb_like_settings['defaultpic']; 217 221 … … 227 231 <?php if (is_home()) 228 232 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() . '"/>'; ?> 230 234 <meta property="og:image" content="<?php echo fb_like_catch_image() ?>"/> 231 235 <meta property="og:site_name" content="<?php bloginfo('name') ?>"/> -
facebook-likes-you/trunk/readme.txt
r419134 r419165 5 5 Requires at least: 2.9 6 6 Tested up to: 3.2 7 Stable tag: 1.4. 27 Stable tag: 1.4.3 8 8 9 9 Facebook 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! … … 48 48 49 49 == Changelog == 50 51 * One more fix for Open Graph 52 * Fixed settings 50 53 51 54 = 1.4.2 =
Note: See TracChangeset
for help on using the changeset viewer.