Linux 软件免费装
Banner图

Lana Facebook Share

开发者 lanacodes
更新时间 2018年8月10日 03:06
PHP版本: 4.0 及以上
WordPress版本: 4.8
版权: GPLv2 or later
版权网址: 版权信息

标签

facebook facebook share facebook like facebook button

下载

1.0.8 1.0.7 1.0.9 1.1.0 1.1.1 1.1.2

详情介绍:

Facebook like and share button. Minimal settings page (button settings, post and page type settings) and iframe based button, due to speed optimization. Video [youtube https://www.youtube.com/watch?v=EA9su47_iQw] Position settings with add_filter: `<?php /* content before default: false / add_filter( 'lana_fb_share_content_before', '__return_false' ); /* content after default: true / add_filter( 'lana_fb_share_content_after', '__return_true' );` Post type settings with filter: `/* content before in post default: false / add_filter( 'lana_fb_share_content_before_in_post', '__return_false' ); /* content after in post default: true / add_filter( 'lana_fb_share_content_after_in_post', '__return_true' ); /* hide in post default: false / add_filter( 'lana_fb_share_hide_in_post', '__return_false' ); ?>` Page type settings with filter: `<?php /* content before in page default: false / add_filter( 'lana_fb_share_content_before_in_page', '__return_false' ); /* content after in page default: true / add_filter( 'lana_fb_share_content_after_in_page', '__return_true' ); /* hide in page default: false / add_filter( 'lana_fb_share_hide_in_page', '__return_false' ); ?>` Page type and custom page template settings with filter: get_page_template_slug(), example: page-contact.php `<?php / content before in page template default: none / add_filter( 'lana_fb_share_content_before_in_{template_slug}', '_return_false' ); // or add_filter( 'lana_fb_share_content_before_in*{template_slug}', '__return_true' ); / content after in page template default: none / add_filter( 'lana_fb_share_content_after_in_{template_slug}', '_return_false' ); // or add_filter( 'lana_fb_share_content_after_in*{template_slug}', '__return_true' ); /* hide in page template default: false / add_filter( 'lana_fb_share_hide_in_{template_slug}', '__return_false' ); ?>` Add show faces to shortcode: `<?php /** /* only standard layout / if ( $layout != 'standard' ) { return $atts; } $atts['show_faces'] = 'true'; $atts['height'] = 60; return $atts; } add_filter( 'lana_fb_share_shortcode_atts', 'lana_fb_share_shortcode_add_show_faces', 10, 2 ); ?>` Add locale to shortcode: `<?php /** /* eg. hungarian language / $atts['locale'] = 'hu_HU'; return $atts; } add_filter( 'lana_fb_share_shortcode_atts', 'lana_fb_share_shortcode_add_locale', 10, 1 ); ?>` Available shortcodes: [lana_fb_share] Facebook like and share button [lana_fb_hide] Hide default Facebook like and share button Lana Codes Lana Facebook Share

安装:

Requires Instalation steps
  1. Upload the plugin files to the /wp-content/plugins/lana-facebook-share directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress
How to use it

屏幕截图:

  • screenshot-1.jpg
  • screenshot-2.jpg

升级注意事项:

1.1.2 This version changed code format. 1.1.1 This version changed code format. 1.1.0 This version added text domain to the plugin header. Upgrade recommended. 1.0.9 Nothing has changed in this version. Tested in WordPress 4.8 and compatible. 1.0.8 This version added shortcode locale. Upgrade recommended. 1.0.7 This version fixes escape bug. Upgrade recommended. 1.0.6 This version fixes shortcode height bug. Upgrade recommended. 1.0.5 This version added shortcode filter. Upgrade recommended. 1.0.4 This version fixes Lana Facebook Hide widget bug. Upgrade recommended. 1.0.3 Nothing has changed in this version. Tested in WordPress 4.7 and compatible. 1.0.2 This version added settings page. Upgrade recommended. 1.0.1 This version fixes content after share button in page template (slug) bug. Upgrade recommended.

更新日志:

1.1.2 1.1.1 1.1.0 1.0.9 1.0.8 1.0.7 1.0.6 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0