Linux 软件免费装
Banner图

Social Sharing (by Danny)

开发者 DvanKooten
ibericode
更新时间 2024年10月16日 19:05
捐献地址: 去捐款
PHP版本: 7.2 及以上
WordPress版本: 6.6
版权: GPL-3.0-or-later
版权网址: 版权信息

标签

social facebook twitter linkedin social sharing

下载

1.0.6 1.3.5 1.3.1 1.3.2 1.3.3 1.3.4 1.0.9 1.1 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.3 1.3.6 1.3.7 1.3.8 1.3.9

详情介绍:

Social Sharing By Danny The simplest sharing links possible for Twitter, Facebook and LinkedIn. Most WordPress plugins that add social sharing functionality are too ugly, heavy, complicated or poorly coded for my liking. This plugin aims to be better: simple, efficient and flexible. No script dependencies From itself, the buttons are actually plain text links which require no external scripts. It makes no sense to load over 50 kilobytes of scripts and styles for a functionality 95% of your users will not use. Simple, yet pretty and user-friendly You can have the plugin load two very small files to add icons and a pop-up functionality to the sharing links. This way, users do not have to leave your website after clicking a sharing option. Both files are optional and you are free to craft your own styles. Features Translations Is the plugin not translated into your language? You can contribute your translations using the translation editor here on WordPress.org. About the author Danny van Kooten has been developing plugins for WordPress since version 3.0, all the way back in 2010. You can read more about him on his personal website or check out his other WordPress plugins.

安装:

Installing the plugin
  1. In your WordPress admin panel, go to Plugins > New Plugin, search for Social Sharing by Danny and click "Install now"
  2. Alternatively, download the plugin and upload the contents of dvk-social-sharing.zip to your plugins directory, which usually is /wp-content/plugins/.
  3. Activate the plugin.
Additional Customization Have a look at the frequently asked questions section for some examples of additional customization.

屏幕截图:

  • Disable the default plugin CSS to create your own styles.
  • The settings page of the plugin.

常见问题:

Can I display the sharing buttons using a shortcode?

Yes, you can use the following shortcode (eg. inside posts or pages). [dvk_social_sharing]

Can I display the sharing buttons using a template function?

Yes, you can use the following PHP function from your template files. ` `

I want more control over when to show the sharing options

Use the dvkss_display filter to show the links in more places. Example 1: will add the sharing links to everything possible add_filter('dvkss_display', '__return_true'); Example 2: will add the sharing links to all single posts, pages and other post types. ` function my_display_condition() { return is_singular(); } add_filter('dvkss_display', 'my_display_condition'); `

Shortcode and function arguments

element (string) The element to use as the wrapping element. Defaults to p, a paragraph element. twitter_username (string) The Twitter username to add to tweets. This will override the value from the settings page. social_options (comma separated string) The social media buttons to show. You can also use this to change the order of the buttons. Defaults to twitter, facebook, googleplus, which are the only 3 possible values. before_text (string) The text to show before the links. This will override the value in the settings page. twitter_text (string) facebook_text (string) googleplus_text (string) linkedin_text (string) The texts for the different links. Defaults to the string set in the translation file.

更新日志:

1.3.9 - Oct 16, 2024 1.3.8 - Oct 11, 2024 1.3.7 - Oct 1, 2024 1.3.4 - Dec 23, 2022 1.3.3 - Dec 31, 2019 1.3.2 - March 23, 2018 1.3.1 - October 26, 2017 Misc. textual improvements. 1.3 - October 4, 2017 Additions 1.2.7 - January 6, 2017 Improvements Additions 1.2.6 - March 29, 2016 Fixes 1.2.5 - January 26, 2015 Improvements Additions 1.2.4 - November 17, 2014 Improvements 1.2.3 - September 4, 2014 Improvements 1.2.2 - April 30, 2014 Fixes 1.2.1 - April 29, 2014 Additions - Added German translations, thanks Andreas Kuhl! Improvements 1.2 - March 19, 2014 Additions - Added option to automatically add sharing options to all registered post types - Added Spanish translations, props to Luciano A. Ferrer. Improvements 1.1 - February 19, 2014 1.0.9 - December 30, 2013 1.0.6 - December 20, 2013 1.0.5 - December 9, 2013 1.0.4 - December 2, 2013 1.0.3 - November 25, 2013 1.0.2 - November 20, 2013 1.0.1 - November 20, 2013 1.0 - November 17, 2013