內容簡介
透過這個外掛,您可以在 Gutenberg 區塊中加入社群分享按鈕。
在第一個版本中,我們只創建了我們需要的單位:列印、郵件、Facebook 和 Twitter。
您可以選擇 Dashicons 或圖像,以及那些網絡的原始顏色或黑白色調。
您可以使用縮略語 [sssb],並帶以下屬性:
text_email:string,透過電子郵件分享時將成為電子郵件的主體 | 預設值為:您可能會對此文章感興趣:%s | 您可以使用 %s,它會被當前文章的標題替換
object_email:string,透過電子郵件分享時將成為電子郵件的物體 | 預設值為:看看這篇文章:%s | 您可以使用 %s,它會被當前文章的標題替換
text_twitter:string,透過 Twitter 分享時將成為預設文字 | 預設值為:嘿 Twitter,看看這個!%s | 您可以使用 %s,它會被當前文章的標題替換
show_email:0 或 1,1=顯示或 0=隱藏電子郵件按鈕 | 預設值為:1
show_print:0 或 1,1=顯示或 0=隱藏列印按鈕 | 預設值為:1
show_facebook:0 或 1,1=顯示或 0=隱藏 Facebook 按鈕 | 預設值為:1
show_twitter:0 或 1,1=顯示或 0=隱藏 Twitter 按鈕 | 預設值為:1
colour:original、grayscale、black 或 white | 預設值為:original
display:icons、images 或 mail | 預設值為:icons | mail 將會產生一個表格
side:left 或 right | 預設值為:right
url:url | 預設值為:目前頁面
貢獻
要進行貢獻,需在 CLI 中執行以下操作
sudo apt install npm
npm install && npm run build
npm run dev
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
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
