[WordPress] 外掛分享: hCard ShortCode

首頁外掛目錄 › hCard ShortCode
10+
安裝啟用
尚無評分
3757 天前
最後更新
問題解決
WordPress 3.0+ v1.0.1 上架:2012-04-10

內容簡介

hCard ShortCode 是一個 WordPress 外掛,將 vCard 轉換成 hCard,並使用簡單的 [hcard] 短碼來顯示它們。

它是如何運作的:

安裝外掛
在媒體區上傳 vCards
為vCards選擇一個只有小寫字母和字母的標題
使用 [hcard vcard=’vcard標題’ only=’可選擇性逗號分隔的要顯示的vcard字段’] 短碼
使用 CSS 設計最後產生的 hCard 的樣式

支援哪些欄位?

hCard ShortCode 支援以下 vCard 欄位:

N 名字和姓氏
一個 EMAIL,可選擇性使用 TYPE 來指定連結中要使用的標籤
一個 TITLE
一個 ORG
一個 PHOTO,具有 TYPE=URL
一個或多個 URL,可選擇性使用 TYPE 來指定連結中要使用的標籤
一個 ADR

你能給我一個 vCard 範例嗎?

當然,這是一個範例:

BEGIN:VCARD
N:Paganotti;Sandro;;;
EMAIL;TYPE=Email:[email protected]
TITLE:Software Architect
ORG:Comparto Web
PHOTO;VALUE=URL;TYPE=PNG:/wp-content/uploads/2012/04/official_me-43x43.png
URL;TYPE=Twitter:https://twitter.com/#!/sandropaganotti
URL;TYPE=LinkedIn:http://www.linkedin.com/in/sandropaganotti
ADR;INTL;PARCEL;WORK:;;Via Cipro 66;Brescia;Brescia;25100;Italia
END:VCARD<h3>How can use the 'only' option?</h3>the `only` option can be used to limit the fields printed on the hCard, you

你可以使用逗號分隔列表聲明要顯示的字段,在此範例中:

name 用於名字和姓氏
email 用於 EMAIL
org:title 用於 TITLE
org:name 用於 ORG
url 用於 URLs
photo 用於 PHOTO
location 用於 ADR

一個例子:

這裡有一個短碼的例子:

[hcard vcard="sandropaganotti" only="name,email,org:title,photo,url"]<h3>Kudos and acknowledgements:</h3>This plugin uses the cool Contact_Vcard_Parse class from Paul M. Jones <[email protected]> and a modified version of the phpMicroformats class from Tobias Kluge (enarion.net). Thank you!

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「hCard ShortCode」→ 直接安裝(推薦)

原文外掛簡介

hCard ShortCode translates vCard to hCard and let’s you display them using a simple [hcard] shortcode.
How it works:

install the plugin
upload the vCards in the Media section
choose a no-space only-alphanumeric lowercase Title for the vCards
use the [hcard vcard=’vcard title’ only=’optional comma separated vcard fields to display’] shortcode
style the resulting hCard using CSS

Which fields are supported?
hCard ShortCode supports the following vCard fields:

N given name and family name;
one EMAIL optionally use TYPE to specify a label to use in the link;
one TITLE
one ORG
one PHOTO with TYPE=URL
one or more URL, optionally use TYPE to specify a label to use in the
link;
one ADR

Can you give me a sample vCard?
Sure, here it is:
BEGIN:VCARD
N:Paganotti;Sandro;;;
EMAIL;TYPE=Email:
[email protected]
TITLE:Software Architect
ORG:Comparto Web
PHOTO;VALUE=URL;TYPE=PNG:/wp-content/uploads/2012/04/official_me-43x43.png
URL;TYPE=Twitter:https://twitter.com/#!/sandropaganotti
URL;TYPE=LinkedIn:http://www.linkedin.com/in/sandropaganotti
ADR;INTL;PARCEL;WORK:;;Via Cipro 66;Brescia;Brescia;25100;Italia
END:VCARD

How can use the 'only' option?

the `only` option can be used to limit the fields printed on the hCard, you

can declare a comma-separated list of the fields you want to be displayed, here’s the
keyword:

name for given name and family name
email for the EMAIL
org:title for the TITLE
org:name for the ORG
url for the URLs
photo for the PHOTO
location for thr ADR

An example:
Here’s a shortcode example:
[hcard vcard="sandropaganotti" only="name,email,org:title,photo,url"]

Kudos and acknowledgements:

This plugin uses the cool Contact_Vcard_Parse class from Paul M. Jones and a modified version of the phpMicroformats class from Tobias Kluge (enarion.net). Thank you!

延伸相關外掛

文章
Filter
Apply Filters
Mastodon