Beschrijving
Deze plugin is niet getest met de laatste 3 grotere versies van WordPress. Mogelijk wordt het niet meer onderhouden of ondersteund. Ook kunnen er compatibiliteitsproblemen ontstaan wanneer het wordt gebruikt met recentere versies van WordPress.
hCard ShortCode
Beschrijving
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:
Ngiven name and family name;- one
EMAILoptionally useTYPEto specify a label to use in the <a> link; - one
TITLE - one
ORG - one
PHOTOwithTYPE=URL - one or more
URL, optionally useTYPEto specify a label to use in the <a> link; - one
ADR
Can you give me a sample vCard?
Sure, here it is:
BEGIN:VCARD N:Paganotti;Sandro;;; EMAIL;TYPE=Email:sandro.paganotti@compartoweb.com 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 can declare a comma-separated list of the fields you want to be displayed, here’s the
keyword:
namefor given name and family nameemailfor theEMAILorg:titlefor theTITLEorg:namefor theORGurlfor theURLsphotofor thePHOTOlocationfor thrADR
An example:
Here’s a shortcode example:
[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 <pjones@ciaweb.net> and a modified version of the phpMicroformats class from Tobias Kluge (enarion.net). Thank you! Installatie
- install the plugin (copy in wp-content/plugins and activate)
- 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
FAQ
- Can I use it in text widgets?
Sure! just add
add_filter('widget_text', 'do_shortcode');to yourfunctions.php.
Beoordelingen
Er zijn geen beoordelingen voor deze plugin.
Bijdragers & ontwikkelaars
“hCard ShortCode” is open source software. De volgende personen hebben bijgedragen aan deze plugin.
BijdragersVertaal “hCard ShortCode” in je eigen taal.
Interesse in ontwikkeling?
Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.
Changelog
Trunk
- tested with WordPress 4.4
- inititial release



