這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Simple Social Share Block

外掛說明

With this plugin, you can add social sharing buttons as blocks in Gutenberg.
As a first version we created only the ones we needed : print, mail, Facebook and Twitter.
You can choose Dashicons or images, and the original colours for those network, or a grayscale version.

You can use the shortcode [sssb], with the following attributes:

  • text_email : string, will be the body of the email when sharing via email | Default : You might be interested by this article : %s | You can use %s it will be replaced by the title of the current post
  • object_email : string, will be the object of the email when sharing via email | Default : Have a look at this article : %s | You can use %s it will be replaced by the title of the current post
  • text_twitter : string, will be the default text when sharing via twitter | Default : Hey Twitter, Have a look at this! %s | You can use %s it will be replaced by the title of the current post
  • show_email : 0 or 1, will 1=show or 0=hide the email button | Default : 1
  • show_print : 0 or 1, will 1=show or 0=hide the print button | Default : 1
  • show_facebook : 0 or 1, will 1=show or 0=hide the facebook button | Default : 1
  • show_twitter : 0 or 1, will 1=show or 0=hide the twitter button | Default : 1
  • colour : original, grayscale, black or white | Default : original
  • display : icons or images or mail | Default : icons | mail will generate a table
  • side : left or right | Default : right
  • url : url | Default : current page

Contribution

To contribute, in CLI

  • sudo apt install npm
  • npm install && npm run build
  • npm run dev

適用於區塊編輯器

這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。

  • Social Sharing Button Social Sharing Button

安裝方式

This section describes how to install the plugin and get it working.

e.g.

  1. Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Go to a page or post edited with Gutenberg
  4. Start Adding the block Social Sharing button

常見問題集

Can I add other Social network ?

Nope

Can I hide one or more of the four social networks provided ?

Yep

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Simple Social Share Block〉的開發相關工作。

參與者

〈Simple Social Share Block〉外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Simple Social Share Block〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0

  • Hot fix for WP rétro-compatibility : check if wp_set_script_translations function exists

0.9

  • Hot fix for Gutenberg compatibility : Dependencies correction

0.8

  • Set default value for checkbox to true, it fixes the behaviour of showing nothing when the block is added the first time to the page
  • Change Checkboxes to Toggles, because it looks nicer

0.7

  • Removed the possibility of selecting black and white for image display, keeping it for icons only

0.5 & 0.6

  • mail added to the display option, it builds an array instead of a list and show img instead of background images to work without CSS

0.4

  • URL added as a parameter in both shortcode and block

0.3

  • Black and White added as a colour choice

0.2

  • Shortcode Added
  • Alignement Left or Right