[WordPress] 外掛分享: Real Buddha Quotes

首頁外掛目錄 › Real Buddha Quotes
WordPress 外掛 Real Buddha Quotes 的封面圖片
10+
安裝啟用
尚無評分
344 天前
最後更新
問題解決
WordPress 3.0.1+ v1.0 上架:2020-08-31

內容簡介

網路上有很多被歸屬於佛陀的假名言。透過這個外掛程式,您可以幫助您的網站訪客了解佛陀真正的話語。

您可以使用短碼或小工具顯示此引用。 (目前,此外掛程式沒有區塊名稱。如果您想協助建立,請聯繫我們!)

引用提供證明性的選項超連結至 suttafriends.org 網站。讓讀者可以在整個法句經的背景下查看佛陀的引言,並有機會探索更多真正的佛陀名言。

短碼

若要在頁面或文章的內容中包含隨機的法句經,只需插入以下短碼即可:

[random-dhammapada]

若要使引文(例如「法句經第20章」)超連結回 suttafriends.org 的經文,請前往「設定」> 「真正佛陀的名言」

插入到您的佈景主題中

如果您想將引文放置在不支援短碼的網站區域,您可以將此 PHP 添加到其中一個佈景主題檔案:

echo random_dhp_shortcode();

這樣就可以插入引文。該函式不包含參數。如果您熟悉 PHP 程式碼,可以嘗試此方法。在變更佈景主題之前,請務必進行備份。

樣式

引文和引文的樣式是透過 CSS 設定。我們建議以下設置:

div.random-dhammapada{
border:solid 1px;
padding:10px;}

p.rdhp-verse {
font-style:italic;}

div.rdhp-citation {
text-align:right!important;}

p.rdhp-attribution, p.rdhp-verse {
margin-bottom:0px;}

p.rdhp-attribution {
font-size:.9em;}

若您想要引文(例如:法句經第175章)顯示於下一行,請新增以下 CSS:

.rdhp-cite-link {display:block}

插入到段落中的大寫字母

以下代碼可創建一個首字放大的段落。

p.rdhp-verse:first-child:first-letter {
float: left;
font-size: 3.5em;
line-height: 2empx;
padding-top: .15em;
padding-right: .1em;
padding-left: 0px;

您需要調整所有尺寸,並在桌面和移動裝置上測試確保在不同情境下均可呈現正確外觀。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Real Buddha Quotes」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

The internet is full of fake quotations attributed to the Buddha. By using this plugin you can help spread the actual words of the Buddha with your website visitors.
You can display this quote using a shortcode or a widget. (At the moment, there is no block for this plugin. If you would like to help create one, please contact us!)
There is the option for the citation of the verse to link back to the SuttaFriends.org website so your readers can see the quotation in the context of the whole Dhammapada and have the chance to explore more real Buddha quotes.
Shortcode
To include a random Dhammapada in the content of a page or post, simply insert the shortcode
[random-dhammapada]

To make the citation (e.g. “Dhammapada 20”) link back to the verse on SuttaFriends.org, go to Settings>Real Buddha Quotes
Inserting into your theme
If you like to put the quotation somewhere on your website that does not allow shortcodes, you can add this PHP to one of your theme files:
echo random_dhp_shortcode();

This will insert the quotation. There are no parameters. Only try this if you are familiar with codign in PHP. Always make a backup before changing templates.
Styling
Styling of the quotation and the citation is done through css. We recommend the following:
div.random-dhammapada{
border:solid 1px;
padding:10px;}

p.rdhp-verse {
font-style:italic;}

div.rdhp-citation {
text-align:right!important;}

p.rdhp-attribution, p.rdhp-verse {
margin-bottom:0px;}

p.rdhp-attribution {
font-size:.9em;}

If you like the citation (e.g. Dhammapada 175) to appear on the next line, add this CSS:
.rdhp-cite-link {display:block}

Drop cap
The following code could create a drop cap (first letter larger size).
p.rdhp-verse:first-child:first-letter {
float: left;
font-size: 3.5em;
line-height: 2empx;
padding-top: .15em;
padding-right: .1em;
padding-left: 0px;

You will need to adjust all of the sizes and test on desktop as well as mobile to make sure it looks correct in different contexts.

延伸相關外掛

文章
Filter
Mastodon