{"id":51460,"date":"2016-10-11T12:16:51","date_gmt":"2016-10-11T12:16:51","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/lana-facebook-share\/"},"modified":"2018-08-09T19:06:49","modified_gmt":"2018-08-09T19:06:49","slug":"lana-facebook-share","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/lana-facebook-share\/","author":15465834,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1.2","stable_tag":"1.1.2","tested":"4.8.28","requires":"4.0","requires_php":"","requires_plugins":"","header_name":"Lana Facebook Share","header_author":"Lana Codes","header_description":"","assets_banners_color":"343f47","last_updated":"2018-08-09 19:06:49","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/lana.codes\/lana-product\/lana-facebook-share\/","header_author_uri":"http:\/\/lana.codes\/","rating":5,"author_block_rating":0,"active_installs":100,"downloads":6572,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"1.1.2":"<p>This version changed code format.<\/p>","1.1.1":"<p>This version changed code format.<\/p>","1.1.0":"<p>This version added text domain to the plugin header. Upgrade recommended.<\/p>","1.0.9":"<p>Nothing has changed in this version. Tested in WordPress 4.8 and compatible.<\/p>","1.0.8":"<p>This version added shortcode locale. Upgrade recommended.<\/p>","1.0.7":"<p>This version fixes escape bug. Upgrade recommended.<\/p>","1.0.6":"<p>This version fixes shortcode height bug. Upgrade recommended.<\/p>","1.0.5":"<p>This version added shortcode filter. Upgrade recommended.<\/p>","1.0.4":"<p>This version fixes Lana Facebook Hide widget bug. Upgrade recommended.<\/p>","1.0.3":"<p>Nothing has changed in this version. Tested in WordPress 4.7 and compatible.<\/p>","1.0.2":"<p>This version added settings page. Upgrade recommended.<\/p>","1.0.1":"<p>This version fixes content after share button in page template (slug) bug. Upgrade recommended.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"4"},"assets_icons":{"icon-128x128.jpg":{"filename":"icon-128x128.jpg","revision":"1512695","resolution":"128x128","location":"assets"}},"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"1512695","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.7","1.0.8","1.0.9","1.1.0","1.1.1","1.1.2"],"block_files":[],"assets_screenshots":{"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":"1512695","resolution":"1","location":"assets"},"screenshot-2.jpg":{"filename":"screenshot-2.jpg","revision":"1536780","resolution":"2","location":"assets"}},"screenshots":{"1":"screenshot-1.jpg","2":"screenshot-2.jpg"}},"plugin_section":[],"plugin_tags":[157,686,158,672],"plugin_category":[56],"plugin_contributors":[145230],"plugin_business_model":[],"class_list":["post-51460","plugin","type-plugin","status-closed","hentry","plugin_tags-facebook","plugin_tags-facebook-button","plugin_tags-facebook-like","plugin_tags-facebook-share","plugin_category-social-and-sharing","plugin_contributors-lanacodes","plugin_committers-lanacodes"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/lana-facebook-share_343f47.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/lana-facebook-share\/assets\/screenshot-1.jpg?rev=1512695","caption":"screenshot-1.jpg"},{"src":"https:\/\/ps.w.org\/lana-facebook-share\/assets\/screenshot-2.jpg?rev=1536780","caption":"screenshot-2.jpg"}],"raw_content":"<!--section=description-->\n<p>Facebook like and share button.<\/p>\n\n<p>Minimal settings page (button settings, post and page type settings) and iframe based button, due to speed optimization.<\/p>\n\n<h4>Video<\/h4>\n\n<p>[youtube https:\/\/www.youtube.com\/watch?v=EA9su47_iQw]<\/p>\n\n<h4>Position settings with add_filter:<\/h4>\n\n<pre><code>&lt;?php\n\/** content before default: false *\/\nadd_filter( 'lana_fb_share_content_before', '__return_false' );\n\n\/** content after default: true *\/\nadd_filter( 'lana_fb_share_content_after', '__return_true' );\n<\/code><\/pre>\n\n<h4>Post type settings with filter:<\/h4>\n\n<pre><code>\/** content before in post default: false *\/\nadd_filter( 'lana_fb_share_content_before_in_post', '__return_false' );\n\n\/** content after in post default: true *\/\nadd_filter( 'lana_fb_share_content_after_in_post', '__return_true' );\n\n\/** hide in post default: false *\/\nadd_filter( 'lana_fb_share_hide_in_post', '__return_false' );\n?&gt;\n<\/code><\/pre>\n\n<h4>Page type settings with filter:<\/h4>\n\n<pre><code>&lt;?php\n\/** content before in page default: false *\/\nadd_filter( 'lana_fb_share_content_before_in_page', '__return_false' );\n\n\/** content after in page default: true *\/\nadd_filter( 'lana_fb_share_content_after_in_page', '__return_true' );\n\n\/** hide in page default: false *\/\nadd_filter( 'lana_fb_share_hide_in_page', '__return_false' );\n?&gt;\n<\/code><\/pre>\n\n<h4>Page type and custom page template settings with filter:<\/h4>\n\n<p>get_page_template_slug(), example: page-contact.php<\/p>\n\n<pre><code>&lt;?php\n\/** content before in page template default: none *\/\nadd_filter( 'lana_fb_share_content_before_in_{template_slug}', '__return_false' );\n\/\/ or\nadd_filter( 'lana_fb_share_content_before_in_{template_slug}', '__return_true' );\n\n\/** content after in page template default: none *\/\nadd_filter( 'lana_fb_share_content_after_in_{template_slug}', '__return_false' );\n\/\/ or\nadd_filter( 'lana_fb_share_content_after_in_{template_slug}', '__return_true' );\n\n\/** hide in page template default: false *\/\nadd_filter( 'lana_fb_share_hide_in_{template_slug}', '__return_false' );\n?&gt;\n<\/code><\/pre>\n\n<h4>Add show faces to shortcode:<\/h4>\n\n<pre><code>&lt;?php\n\/**\n * Lana Facebook Share\n * add 'show faces' to shortcode\n *\n * @param $atts\n * @param $layout\n *\n * @return mixed\n *\/\nfunction lana_fb_share_shortcode_add_show_faces( $atts, $layout ) {\n\n    \/** only standard layout *\/\n    if ( $layout != 'standard' ) {\n        return $atts;\n    }\n\n    $atts['show_faces'] = 'true';\n    $atts['height']     = 60;\n\n    return $atts;\n}\n\nadd_filter( 'lana_fb_share_shortcode_atts', 'lana_fb_share_shortcode_add_show_faces', 10, 2 );\n?&gt;\n<\/code><\/pre>\n\n<h4>Add locale to shortcode:<\/h4>\n\n<pre><code>&lt;?php\n\/**\n * Lana Facebook Share\n * add 'locale' to shortcode\n *\n * @param $atts\n *\n * @return mixed\n *\/\nfunction lana_fb_share_shortcode_add_locale( $atts ) {\n\n    \/** eg. hungarian language *\/\n    $atts['locale'] = 'hu_HU';\n\n    return $atts;\n}\n\nadd_filter( 'lana_fb_share_shortcode_atts', 'lana_fb_share_shortcode_add_locale', 10, 1 );\n?&gt;\n<\/code><\/pre>\n\n<h4>Available shortcodes:<\/h4>\n\n<pre><code>[lana_fb_share] Facebook like and share button\n[lana_fb_hide] Hide default Facebook like and share button\n<\/code><\/pre>\n\n<h4>Lana Codes<\/h4>\n\n<p><a href=\"http:\/\/lana.codes\/lana-product\/lana-facebook-share\/\">Lana Facebook Share<\/a><\/p>\n\n<!--section=installation-->\n<h4>Requires<\/h4>\n\n<ul>\n<li>WordPress at least 4.0<\/li>\n<li>PHP at least 5.3<\/li>\n<\/ul>\n\n<h4>Instalation steps<\/h4>\n\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/lana-facebook-share<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress<\/li>\n<\/ol>\n\n<h4>How to use it<\/h4>\n\n<ul>\n<li>in <code>Settings &gt; Lana Facebook Share<\/code>, you can set it to automatically add the button to posts or pages.<\/li>\n<li>in <code>Posts &gt; Edit<\/code>, you can manually add the button to the selected post, add the <code>[lana_fb_share]<\/code> shortcode to the post content.<\/li>\n<li>in <code>Pages &gt; Edit<\/code>, you can manually add the button to the selected page, add the <code>[lana_fb_share]<\/code> shortcode to the page content.<\/li>\n<\/ul>\n\n<!--section=faq-->\n<p>Do you have questions or issues with Lana Facebook Share?\nUse these support channels appropriately.<\/p>\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><h4>Requires<\/h4>\n\n<ul>\n<li>WordPress at least 4.0<\/li>\n<li>PHP at least 5.3<\/li>\n<\/ul>\n\n<h4>Instalation steps<\/h4>\n\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/lana-facebook-share<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress<\/li>\n<\/ol>\n\n<h4>How to use it<\/h4>\n\n<ul>\n<li>in <code>Settings &gt; Lana Facebook Share<\/code>, you can set it to automatically add the button to posts or pages.<\/li>\n<li>in <code>Posts &gt; Edit<\/code>, you can manually add the button to the selected post, add the <code>[lana_fb_share]<\/code> shortcode to the post content.<\/li>\n<li>in <code>Pages &gt; Edit<\/code>, you can manually add the button to the selected page, add the <code>[lana_fb_share]<\/code> shortcode to the page content.<\/li>\n<\/ul><\/dd>\n<dt>Lana Codes<\/dt>\n<dd><p><a href=\"http:\/\/lana.codes\/contact\/\">Support<\/a><\/p><\/dd>\n<dt>WordPress Forum<\/dt>\n<dd><p><a href=\"http:\/\/wordpress.org\/support\/plugin\/lana-facebook-share\">Support Forum<\/a><\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.2<\/h4>\n\n<ul>\n<li>reformat code<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>reformat code<\/li>\n<li>update readme.txt<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>add text domain to plugin header<\/li>\n<\/ul>\n\n<h4>1.0.9<\/h4>\n\n<ul>\n<li>Tested in WordPress 4.8 (compatible)<\/li>\n<li>Change website to lana.codes<\/li>\n<\/ul>\n\n<h4>1.0.8<\/h4>\n\n<ul>\n<li>add locale to shortcode atts<\/li>\n<\/ul>\n\n<h4>1.0.7<\/h4>\n\n<ul>\n<li>bugfix escape<\/li>\n<\/ul>\n\n<h4>1.0.6<\/h4>\n\n<ul>\n<li>bugfix shortcode height<\/li>\n<\/ul>\n\n<h4>1.0.5<\/h4>\n\n<ul>\n<li>Add shortcode atts filter<\/li>\n<\/ul>\n\n<h4>1.0.4<\/h4>\n\n<ul>\n<li>bugfix Lana Facebook Hide widget<\/li>\n<li>fix Plugin URI typo<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Tested in WordPress 4.7 (compatible)<\/li>\n<li>No change<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Add minimal settings page (button settings, post and page type settings)<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Bugfix content after share button in page template filter<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Added Lana Facebook Share<\/li>\n<li>Added Lana Facebook Hide widget<\/li>\n<\/ul>","raw_excerpt":"Facebook like and share button with speed optimization","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/51460","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=51460"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/lanacodes"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=51460"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=51460"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=51460"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=51460"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=51460"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=51460"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}