WP_Embed_FB::$width = $width_r; echo $link_info; } else { $use_ratio = get_option('wpemfb_video_ratio') == 'true'; echo '<div class="post-link">'; echo $use_ratio ? '<div class="video">' : ''; echo $wp_embed->shortcode(array('src' => $fb_post['link'], 'width' => $width - 20)); echo $use_ratio ? '</div>' : ''; echo $link_info; echo '</div>'; } break; case 'event': WP_Embed_FB::$width = $width - 40; echo $wp_embed->shortcode(array('src' => $fb_post['link'])); WP_Embed_FB::$width = $width; break; case 'photo': ?> <a href="<?php echo "https://www.facebook.com/" . $link[0] . "/posts/" . $link[1]; ?> " rel="nofollow" target="_blank"> <img src="<?php echo $fb_post['full_picture']; ?> " width="100%" height="auto" /><br> </a> <?php echo $link_info; ?>
<div> <?php $opt = get_option('wpemfb_show_like'); if ($opt === 'true') { echo WEF_Social_Plugins::like_btn('https://www.facebook.com/' . $fb_data['id'], array('share' => 'true', 'layout' => 'button_count')); } else { printf(__('%d people like this.', 'wp-embed-facebook'), $fb_data['likes']); } ?> </div> <?php if (isset($fb_data["website"])) { ?> <br> <a href="<?php echo WP_Embed_FB::getwebsite($fb_data["website"]); ?> " title="<?php _e('Web Site', 'wp-embed-facebook'); ?> " target="_blank"> <?php _e('Web Site', 'wp-embed-facebook'); ?> </a> <?php } ?> </div> </div> </div>
static function init() { trigger_error("Deprecated use WP_Embed_FB::get_fbsdk() instead.", E_USER_NOTICE); return WP_Embed_FB::get_fbsdk(); }