[WordPress] 外掛分享: Automatic NBSP

首頁外掛目錄 › Automatic NBSP
WordPress 外掛 Automatic NBSP 的封面圖片
3,000+
安裝啟用
★★★★
4.2/5 分(13 則評價)
2534 天前
最後更新
問題解決
WordPress 3.0+ v1.5.4 上架:2013-08-06

內容簡介

支援波蘭和捷克的排版規則
將連接詞、介詞等移到新行中(孤煙)

支援法文標點符號
在符號 ! ? ; % « » 前加入不斷行空格  

運作方式?
本外掛會自動在指定單字或片語之後加入 HTML entity 不斷行空格 。例如,Mr. Someone 就會變成Mr. Someone。適用於:

文章內容
標題
頁面
自訂文章類型
評論
小工具
自訂內容

使用者可自行建立單字/片語清單,或匯入我們提供的建議。

自訂內容
使用 <?php auto_nbsp($content, $echo); ?> 函數,可以在自訂內容中加入 &nbsp;。在您的程式碼中使用此函數。
1. 參數 $content – (string) (必填) 自由文字
2. 參數 $echo – (bool) (選填) true (輸出), false (傳回),預設:true

其他功能:
* 兼容 Advanced Custom Fields 外掛

如果您有任何改善 Automatic NBSP 的建議,歡迎與我們聯絡。

外掛標籤

開發者團隊

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

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

原文外掛簡介

Support typographic rules in Polish and Czech
Moves conjunctions, prepositions, etc. to the new line. ( sierotki )
Support punctuation marks in French
Adds a non-breaking space   before punctuation marks as ! ? ; % « »
How it works?
The plugin automatically adds HTML entity   ( non-breaking space ) after selected words or phrases. E.g. ‘Mr. Someone’ should be ‘Mr. Someone’. Works with:

posts
titles
pages
custom post types
comments
widgets
custom contents

You can create your own list of words/phrases or import our proposals.
Custom contents
You can use the function to add   to the custom content. Use this in your code.
1. Param $content – (string) (required) Free text
2. Param $echo – (bool) (optional) true (echo), false (return), Default: true
Other features:
* Advanced Custom Fields compatibility
If you have any ideas for how Automatic NBSP could be improved, you write to us.

延伸相關外掛

文章
Filter
Mastodon