Linux 软件免费装

Naked Social Share

开发者 NoseGraze
更新时间 2020年10月25日 18:11
捐献地址: 去捐款
PHP版本: 3.0 及以上
WordPress版本: 5.5.2
版权: GPLv2 or later
版权网址: 版权信息

标签

social facebook twitter pinterest social share stumbleupon

下载

1.0.0 1.0.1 1.0.3 1.0.4 1.0.5 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.2.1 1.2.2 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.0.2 1.2.3 1.3.3 1.3.4 1.4.0 1.4.1 1.4.2 1.5 1.5.1 1.5.2

详情介绍:

Naked Social Share allows you to insert plain, unstyled social share buttons for Twitter, Facebook, Pinterest, StumbleUpon, and Google+ after each post. The icons come with no styling, so that you -- the designer -- can style the buttons to match your theme. There are a few simple options in the settings panel: If you want to display the icons manually in your theme, do so by placing this code inside your theme file where you want the icons to appear: <?php naked_social_share_buttons(); ?>

安装:

  1. Upload naked-social-share to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Adjust the settings in Settings -> Naked Social Share
  4. If you want to display the buttons manually in your theme somewhere, insert this into your theme file where you want the buttons to appear: <?php naked_social_share_buttons(); ?>

屏幕截图:

  • The view of the settings panel.
  • A screenshot of the social share icons automatically added to the Twenty Fifteen theme. This also shows the default button styles applied.

升级注意事项:

1.5.1
  • Fix: Buttons not appearing on the page post type.

常见问题:

How can I add the icons to my theme manually?

Open up your theme file (for example, single.php) and place this code exactly where you want the icons to appear: <?php naked_social_share_buttons(); ?>

Why aren't my share counters updating?

The share counters are cached for 3 hours to improve loading times and to avoid making API calls on every single page load.

Will this plugin slow down my site?

If you opt to display share counts, then the plugin uses third party APIs to get that information. However, these calls are made via ajax after the page is loaded, so you won't notice any impact on loading time. Here's how the process works:

  • Page loads immediately with saved share numbers.
  • If the cache has expired, then JavaScript picks that up and makes an ajax call to fetch new numbers.
  • The new numbers are saved in the background and the cache expiry is updated.
  • The page is updated via JavaScript with the new numbers.
  • On the next page load, the new saved numbers are displayed and since the cache is now valid, no ajax call is made.

How can I extend the plugin to add a new site?

You can add a new site using filters and actions from the plugin. Here's an example showing how to create an add-on plugin to add 'Email' as a social site option: https://gist.github.com/nosegraze/73e950885fdbbecb20fe

How can I change the font awesome icons?

You can do this by creating a new add-on plugin and using the Naked Social Share filters. Here's an example for changing the Twitter icon: function nss_addon_twitter_icon( $icon_html ) { return '<i class="fa fa-twitter-square"></i>'; } add_filter( 'naked_social_share_twitter_icon', 'nss_addon_twitter_icon' ); For more details, see this page: https://gist.github.com/nosegraze/f00b5101466752213e2d

更新日志:

1.5.2 - 25 October 2020 1.5.1 - 1 October 2019 1.5 1.4.2 1.4.1 1.4.0 1.3.4 1.3.3 1.3.2 1.3.1 1.3.0 1.2.9 1.2.8 1.2.7 1.2.6 1.2.5 1.2.4 1.2.3 1.2.2 1.2.1 1.2.0 1.1.3 1.1.2 1.1.1 1.1.0 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0