pat_article_social v 0.5.0 (formerly pat_article_tweet)

(revision date: June, 12 th 2015).

Purpose #

Create social links for your articles (support for facebook, Twitter, G+, Pinterest, Tumblr, Pocket, Instapaper, Linkedin & Reddit) with an icon (optional and in SVG format) a share counting (optional) plus all needed Open Graph meta tags for your head document.

Plugin Preferences #

After installation, choose "Admin"->"Preferences" tab to access this plugin prefs and to set the "cache" directory. Default: /root/cache.
Important Notice: after plugin deletion, the cache directory and all its content are removed.

Usages #

Notice: Previews of articles don't show the renderings of this plugin, voluntarily. Depending of the number of links in use & value of the "delay" attribute when the counting feature is chosen, pages rendering can be a little bit slower when catching time is over, for the first page access only. In all cases, you can take advantages to use the "asy_jpcache" plugin.

All <txp:pat_article_social /> or <txp:pat_article_social_sum /> tags must be used as single tags only not as container ones.

1.° In your doctype HTML document (before </head>) #

<txp:pat_article_social_meta type="" card="" image="" user="" creator="" label1="" data1="" label2="" data2="" locale="" fb_api="" fb_admins="" fb_type="" fb_author="" fb_publisher="" g_author="" g_publisher="" title="" description="" />

Important Note: Des­pite the or­der you choo­se, face­book reads the first occu­rrence of Open Graph meta tags found into your HTML document. (i.e.: Twitter Open Graph) even if spe­ci­fic ones exist. You are strong­ly en­coura­ged to call face­book first and all other social net­works after it (see: "type" attribute below).

Creates HTML meta tags for the social websites. i.e.:

<!-- Twitter Open Graph -->

<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@lowel">
<meta name="twitter:creator" content="@lowel">
<meta property="twitter:image" content="http://domain.com/images/1.jpg">
<meta property="twitter:title" content="My Website">
<meta property="twitter:url" content="http://domain.com/articles/my-first-article">
<meta name="twitter:description" content="My Slogan">

<!-- Mother F!*ker Mark Zuckerberg's Open Graph -->

<meta property="og:locale" content="en_US">
<meta property="og:site_name" content="My Website">
<meta property="og:title" content="My First Article">
<meta property="og:description" content="My Slogan">
<meta property="og:type" content="website">
<meta property="og:url" content="http://domain.com/articles/my-first-article">
<meta property="og:image" content="http://domain.com/images/1.jpg">
<meta property="article:publisher" content="http://www.facebook.com/marcel">
<meta property="fb:app_id" content="your-facebook-application-key">
<meta property="fb:admins" content="your-facebook-page-user-ID">

<!-- G+ itemprop -->

<meta itemprop="name" content="My Website">
<meta itemprop="title" content="My First Article">
<meta itemprop="description" content="My Slogan">
<meta itemprop="url" content="http://domain.com/articles/my-first-article">
<meta itemprop="image" content="http://domain.com/images/1.jpg">
<meta name="author" content="Marcel">

<link rel="publisher" href="http://google.com/+PatrickLEFEVRE-lowel">

Attributes: #

Notice: you need to set attributes accordingly (depending of social network, some attributes must be blank or ommited because they are no effects. But don't worry: there are no error messages if you don't follow this advice).

2.° In an article form (individual articles) #

<txp:pat_article_social site="" tooltip="" input_tooltip="" title="" content="" via="" icon="" class="" width="" height="" count="" real="" zero="" unit="" delay="" image="" />

The marketing part. Creates an HTML link for the current article. Allow visitors to publish a link to their social accounts.

Attributes: #

Notice: Default color icons are black. See below how to change it. For counting, you need to create a /cache directory into the root of your website.

3.° Whatever place you want (individual or article lists) #

<txp:pat_article_social_sum site="twitter,facebook,google,pinterest" unit="k" showalways="1" text="" lang="" plural="" zero="1" />

For VIPs. Display the total share counting corresponding to the social websites list.

Attributes #

CSS layout #

The links can easily been designed. Here is all CSS classes available for your purpose:

Insert a Tweet into your article's body #

Just use this line into your article's body (Textile format mode):

<txp:twttr status="" />

Atribute

status boolean (required): the link of the Tweet to embed. Default: none (empty).

CSS layout examples #

Color palettes for social websites are available here: designpieces.com

This beautiful professional CSS example creates a "Flat" style light grey mockup which reveal inclined square shapes with colors change on the mouseover:

/* Advanced flat layout */
.social-link {
	position: relative;
	display: inline-block;
	width: 6em;
	height: 6em;
	margin: 2em 0 2em 3em;
	background: #fff;
	text-decoration: none;
	font:300 .65em 'HelveticaNeue-Light','Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;
	/* SEO friendly indent */
	overflow: hidden;
	text-indent: 100%;
	white-space: nowrap;
	vertical-align: middle;
	/* Hover effect delay */
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
	-ms-transition: all 0.5s;
	-o-transition: all 0.5s;
	transition: all 0.5s;
	/* Rotation */
	-webkit-transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	-ms-transform: rotate(-45deg);
	-o-transform: rotate(-45deg);
	transform: rotate(-45deg);
	/* Transform origin */
	-webkit-transform-origin: 0 100%;
	-moz-transform-origin: 0 100%;
	-ms-transform-origin: 0 100%;
	-o-transform-origin: 0 100%;
	transform-origin: 0 100%
}

.social-link svg {
	position: absolute;
	top: 1em;
	left: 50%;
	/* Not needed: use "width" & "height" attributes instead */
	width: 4em;
	height: 4em;
	/* Center: half of the width */
	margin-left: -2em;
	/* Rotation */
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	transform: rotate(45deg);
	/* IE8 */
	filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=0.5);
	/* IE6/7 */
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.99,M12=-0.08,M21=0.08,M22=0.99,SizingMethod="auto expand")
}

.social-link span,
	.social-link b {
	/* No indent for IE6/7 */
	*text-indent: 0%;
	/* Inverse rotation */
	-webkit-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	transform: rotate(45deg);
	/* IE8+ */
	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.7071067811865474, M12=-0.7071067811865476, M21=0.7071067811865476, M22=0.7071067811865474, SizingMethod='auto expand')";
	/* IE6-7 */
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.7071067811865474,M12=-0.7071067811865476,M21=0.7071067811865476,M22=0.7071067811865474,SizingMethod='auto expand')
}

/* RGBA format blind colors for oldest browsers */
.social-link.twitter:hover {background: rgba(0,160,209,1)}
.social-link.facebook:hover {background: rgba(59,89,152,1)}
.social-link.google:hover {background: rgba(211,72,54,1)}
.social-link.pinterest:hover {background: rgba(204,51,51,1)}
.social-link.tumblr:hover {background: rgba(50,80,109,1)}
.social-link.instapaper:hover {background: rgba(51,51,51,1)}
.social-link.pocket:hover {background: rgba(238,64,85,1)}
.social-link.linkedin:hover {background: rgba(0,123,182,1)}
.social-link.reddit:hover {background: rgba(204,204,204,1)}
.social-link.permalink:hover {background:rgba(0,119,238,1)}

/* Default color of SVG icons */
.twitter-icon path,
	.facebook-icon path,
	.gplus-icon path,
	.pinterest-icon path,
	.tumblr-icon path,
	.instapaper-icon path,
	.pocket-icon path
	.linkedin-icon path,
	.reddit-icon path,
	.permalink-icon path {fill: #ccc}
	
/* Color of inner part of this logo */
.pocket-icon path.inner{fill:#fff}

/* Hover color of SVG icons */
.social-link:hover .twitter-icon path,
.social-link:hover .facebook-icon path,
.social-link:hover .gplus-icon path,
.social-link:hover .pinterest-icon path,
.social-link:hover .tumblr-icon path,
.social-link:hover .instapaper-icon path,
.social-link:hover .pocket-icon path,
.social-link:hover .linkedin-icon path,
.social-link:hover .reddit-icon path,
.social-link:hover .permalink-icon path {fill: rgba(255,255,255,1)}

/* Hover inner color for this logo */
.social-link:hover .pocket-icon path.inner,.social-link:hover .reddit-icon path.inner{fill:#ee4055}

/* Counters if in use */
.social-link span {
	display: inline-block;
	position: absolute;
	top: 0;
	bottom: none;
	left: 1em;
	width: 8.5em;
	text-align: center;
	color: #aaa;
	/* Effects */
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
	-ms-transition: all 0.5s;
	-o-transition: all 0.5s;
	transition: all 0.5s
}

/* Counters position on hover */
.social-link:hover span {
	top:6em;
	left:-5em
}

/* Social Network captions */
.social-link b {
	display: block;
	position: absolute;
	bottom: -1em;
	left: -2.1em;
	width: 3.5em;
	text-align: center;
	color: #aaa
}

.social-link:hover b {visibility:hidden}

/* Permalink */
.link-container {
	display: block;
	position: relative
}

#show-link {
	display: none;
	position: absolute;
	top: 6em;
	left: 0;
	width: 8.5em
}

/* Share counts if in use */
.shares {
	display: inline-block;
	margin-top: -1.75em;
	padding-right: .25em;
	vertical-align: middle;
	color: #7fc04c;
	font:normal normal bold 64px/1 Arial,sans-serif;
	font:normal normal bold 4rem/1 Arial,sans-serif
}

/* Number */
.shares b {
	display:inline-block;
	margin-top:-1.5em;
	vertical-align: middle;
	color: #aaa;
	font-size: .15em
}

/* Styling */
.shares:after {
	content:"";
	position: relative;
	top: 12px;
	display: inline-block;
	width: 30px;
	height: 64px;
	/* Right bar after the count as Mashable.com */
	background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAABJCAYAAAAqu5btAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDg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V5cit6B1KF16gQYAW/B0ulGk6LhcrXlL094FZpwLRpuSylyNBou40Yezfdc1wpr05QQCpfwBN+j4Z6FJI35wk2pmo1EwyfSvDueB1xtPa5L+4zWPEfKaqIdT/E+Gi7hbN5D9GxRj20YjIa78HAuPXNecMdC6u584c1YjfvRcHfKy5VIeFH6t5cL2JPMCLfgG15Fw0dSsy4SXpkWKUPRcAmP8TUaHpjrvJsH3JhWC8PR8ICJzdx4JLwE+3FawTEV3m5iJfgsGu4uoiDMBq9Jw9hgNLwHb/ExGj6gys1rnvCGdNV3o+GDaTQZi4In++oMXwTGnwEAkxtpdQpgZx8AAAAASUVORK5CYII=) center center no-repeat
}

This another "Flat" example creates simple inline big colored but effective buttons: #

/* Simple flat layout */
.social-link {
	display: inline-block;
	position: relative;
	top:. 3em;
	width: 9em;
	height: 2.3em;
	margin: 0 1em 1em 0;
	padding: 0.8em 0.2em 0 2em;
	text-decoration: none;
	text-align: center;
	vertical-align: middle;
	color: #fff;
	font: 300 1em 'HelveticaNeue-Light','Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;
	-webkit-box-shadow: 0 1px 2px 0 rgba(0,0,0,.15);
	-moz-box-shadow: 0 1px 2px 0 rgba(0,0,0,.15);
	box-shadow: 0 1px 2px 0 rgba(0,0,0,.15)
}

.social-link{text-decoration: none}
.social-link,.social-link:hover,.social-link:active,.social-link:focus,.social-link::-moz-focus-inner{border: 0;outline: none;_noFocusLine: expression(this.hideFocus=true)}

.link-container {display: block; position: relative}

#show-link{display: none; position: absolute; top: 3em; left: 0; width: 3em}

.twitter {background: #00aced; border: 1px solid #00aced}

.facebook {background: #3b5998; border: 1px solid #3b5998}

.google {background: #dd4b39; border: 1px solid #dd4b39}

.pinterest {background: #cc333; border: 1px solid #cc333}

.tumblr {background: #32506d; border: 1px solid #32506d}

.instapaper {background: #333; border: 1px solid #333}

.pocket {background: #ee4055; border: 1px solid #ee4055}

.pocket path.inner,.reddit path.inner {fill: #ee4055}

.linkedin {background: #0e76a8; border: 1px solid #0e76a8}

.reddit {background: #ccc; border:1px solid #ccc}

.permalink {background:#07e; border: 1px solid #07e}

.social-link svg {
	position:absolute;
	top: 0.5em;
	left: 0.6em;
	width: 2em;
	height: 2em
}

.twitter path,
	.facebook path,
	.google path,
	.pinterest path,
	.tumblr path,
	.instapaper path,
	.pocket path,
	.linkedin path,
	.reddit path,
	.permalink path {
		fill: #fff
}

.social-link:hover {
	border: 0;
	outline: none;
	-webkit-box-shadow: inset 0 0 6px 0 rgba(0,0,0,.15);
	-moz-box-shadow: inset 0 0 6px 0 rgba(0,0,0,.15);
	box-shadow: inset 0 0 6px 0 rgba(0,0,0,.15)
}

.twitter:hover,
	.facebook:hover,
	.google:hover,
	.pinterest:hover,
	.tumblr:hover,
	.poket:hover,
	.linkedin:hover,
	.reddit:hover,
	.permalink:hover {
		background: transparent;
		text-decoration: none !important;
		outline: none !important;
		color: #333 !important
}

.twitter:hover path,
	.facebook:hover path,
	.google:hover path,
	.pinterest:hover path,
	.tumblr:hover path
	.pocket:hover path,
	.linkedin:hover path,
	.reddit:hover path,
	.permalink:hover {
		fill: #333 !important
}

Another beautiful and simple "Flat" style into a vertical light grey barr: #

/* Outer container */
.share-links {
	position: fixed;
	left: 0;
	z-index: 2;
	width: 4.5em;
	padding: 0 0 .5em;
	background: #f4f4f4;
}
/* The list of the shares */
.shares {
	position: relative;
	display: block;
	padding: 20px 0;
	background: #323a45;
	color: #fff;
	text-align: center;
	text-transform: uppercase;
	font: .65em/1 Arial;
}
/* Drawing an arrow here */
.shares:after {
	content: "";
	display: block;
	position:absolute;
	z-index:2;
	bottom: -6px;
	left: 50%;
	width: 0;
	height: 0;
	margin-left: -6px;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 6px solid #323a45
}
/* Styling all links */
.social-link {
	position: relative;
	display: block;
	padding: 1.5em 0;
	color: #7e8890;
	line-height: 0
}
/* Correct first element 
   You can apply a class name instead
*/
.social-link:nth-child(-n+2) {
	top:.5em
}
/* Positionate all SVG icons */
.social-link svg {
	position: absolute;
	top: 1.3em;
	left: 50%;
	width: 1em;
	height: 1em;
	margin-left: -.5em
}
/* Color for SVG icons */
.social-link path {
	fill: #7e8890
}
/* Over state for SVG icons */
.social-link:hover path{
	fill: inherit
}
/* Pocket icon style */
.pocket-icon path.inner,.social-link:hover .pocket-icon path.inner,
.reddit-icon path.inner,.social-link:hover .reddit-icon path.inner{fill:#f4f4f4}
/* The share counts */
.social-link span {
	display: block;
	position: relative;
	z-index: 3;
	top: 2em;
	width: 100%;
	text-align: center;
	font: .6em/1 Arial
}
/* Or do not display it 
.social-link b {
	display: block;
	text-indent: -999em
}
*/

This another "Flat" example creates a gray vertical barr with monochrome social icons in it: #

/* Div container */
.share-links {
position: fixed;
z-index: 2;
width: 4em;
margin-top: .3em;
padding: 0 0 1.5em;
background: #f4f4f4;
border-bottom:.3em solid #323a45;
cursor: default
}
/* The list of the shares */
.shares {
position: relative;
display: block;
padding: 20px 0;
background: #323a45;
color: #fff;
text-align: center;
text-transform: uppercase;
font: .6em/1 Arial
}
/* Drawing an arrow here */
.shares:after{
content: "";
display: block;
position:absolute;
z-index:2;
bottom: -6px;
left: 50%;
width: 0;
height: 0;
margin-left: -6px;
border-left: 6px solid transparent;
border-right: 6px solid transparent;
border-top: 6px solid #323a45
}
/* Styling all links */
.social-link {
position: relative;
display: block;
padding: 1.5em 0;
border:0;
outline: none;
color: #7e8890;
line-height: 0;
}
.social-link:hover,.social-link:active,.social-link:focus,.social-link::-moz-focus-inner{border: 0;outline: none;_noFocusLine: expression(this.hideFocus=true)}
/* Correct first element 
You can apply a class name instead
*/
.social-link.first-item {
top:.5em
}
/* Positionate all SVG icons */
.social-link svg {
position: absolute;
top: 1.3em;
left: 50%;
width: 1em;
height: 1em;
margin-left: -.5em
}
/* Color for SVG icons */
.social-link path {fill: #7e8890}
.pocket-icon path.inner,.social-link:hover .pocket-icon path.inner,
.reddit-icon path.inner,.social-link:hover .reddit-icon path.inner{fill:#f4f4f4}
/* Over state for SVG icons */
.social-link:hover path {fill: inherit}
/* The share counts */
.social-link span {
display: none;
text-align: center;
font: 1em/1 Arial
}
/* But do not display it 
.social-link b {
display: block;
text-indent: -999em
}
*/
.social-link span {
display: block;
position: absolute;
z-index: 3;
top: 4.5em;
width: 100%;
text-align: center;
font: .6em/1 Arial
}

Another simple "Flat" layout example with each counting on the right of little rounded, colored social icons #

.social-link {
	display: inline-block;
	position: relative;
	top:. 3em;
	width: 2em;
	height: 2em;
	margin: 0 1em 1em 0;
	padding: 0;
	text-decoration: none;
	text-align: center;
	vertical-align: middle;
	color: #fff;
	font: 300 1em 'HelveticaNeue-Light','Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;
	cursor: pointer;
	border-radius: 50%;
	-webkit-box-shadow: 0 1px 2px 0 rgba(0,0,0,.15);
	-moz-box-shadow: 0 1px 2px 0 rgba(0,0,0,.15);
	box-shadow: 0 1px 2px 0 rgba(0,0,0,.15)
}

.social-link:hover {
	-webkit-box-shadow: inset 0 0 6px 0 rgba(0,0,0,.15);
	-moz-box-shadow: inset 0 0 6px 0 rgba(0,0,0,.15);
	box-shadow: inset 0 0 6px 0 rgba(0,0,0,.15)
}

.twitter {background: #00aced; border: 1px solid #00aced}

.facebook {background: #3b5998; border: 1px solid #3b5998}

.google {background: #dd4b39; border: 1px solid #dd4b39}

.pinterest {background: #cb2027; border: 1px solid #cb2027}

.tumblr {background: #32506d; border: 1px solid #32506d}

.instapaper {background: #333; border: 1px solid #333}

.pocket {background: #ee4055; border: 1px solid #ee4055}

.pocket path.inner {fill: #ee4055}

.linkedin {background: #0e76a8; border: 1px solid #0e76a8}

.reddit {background: #a2a2a2; border:1px solid #ccc}

.permalink {background:#07e; border: 1px solid #07e}

.twitter:hover,
	.facebook:hover,
	.google:hover,
	.pinterest:hover,
	.tumblr:hover,
	.pocket:hover,
	.linkedin:hover,
	.reddit:hover,
	.permalink:hover {
		background: transparent;
		text-decoration: none !important;
		
}

.social-link svg {
	position: absolute;
	top: 0.5em;
	left: 0.5em;
	width: 1em;
	height: 1em
}

.twitter path,
	.facebook path,
	.google path,
	.pinterest path,
	.tumblr path,
	.instapaper path,
	.pocket path,
	.linkedin path,
	.reddit path,
	.permalink path {
		fill: #fff
}

.twitter:hover path,
	.facebook:hover path,
	.google:hover path,
	.pinterest:hover path,
	.tumblr:hover path
	.pocket:hover path,
	.linkedin:hover path,
	.reddit:hover path,
	.permalink:hover {
		fill: #333 !important
}

.social-link b {display: none}

.social-link span {
	display: block;
	position: absolute;
	right: -.3em;
	bottom: -.1em;
	min-width: 1.3em;
	height: 1.3em;
	padding: 0 .3em;
	background: #555;
	text-align: center;
	font-size: 50%;
	border-top-left-radius:50%
}

.social-link strong{position:absolute;top:20%;left:30%;color:#fff;font-size:0}

Extra (no plugin need: just copy/paste) #

If you want to add a Pinterest "Pin it" button above all your article images ;), add these TXP markup into your form:

<span itemprop="image">
	<span class="pin-pinterest">
		<txp:image width="0" height="0" />
			<span class="pin" onclick="window.open('http://pinterest.com/pin/create/button/?url=<txp:permlink />&amp;media=<txp:image_url />&amp;description=<txp:image_info />','name','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,modal=yes,width=160,height=250,top='+(screen.height/2)-125+',left='+(screen.width/2)-80+'')"></span>
	</span>
</span>

Here is the appropriate CSS styling: #

/* Pinterest pin image container */
.pin-pinterest{
	position:relative;
	display:block
}

/* img effect */
.pin-pinterest img{
	-webkit-transition:opacity .7s ease-in-out;
	-moz-transition: opacity .7s ease-in-out;
	transition: opacity .7s ease-in-out
}

/* Fade out img on hover */
.pin-pinterest:hover img{opacity:0.5}

/* Pinterest pin */
.pin-pinterest .pin{
display: none;
position: absolute;
top: 10px;
left: 10px;
/* Base64 pin button size */
width: 40px;
height: 20px;
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAUCAYAAAD/Rn+7AAADVElEQVR42tWW+UtUURTH+6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iTElrlslXV3t8Pv94DguHUQsjEkCvPLzlT+Yjlf+72LTPFmlB6OmAAAAAElFTkSuQmCC) center center no-repeat;
/* Or if you prefer an plain real image uncomment this
background: url(http://assets.pinterest.com/images/pidgets/pin_it_button.png) center center no-repeat;
*/
opacity: 0.7;
cursor: pointer
}

/* Diplay pin on img hover */
.pin-pinterest:hover .pin{display:block}

/* Fade in pin on hover */
.pin-pinterest .pin:hover{opacity:1}

Have fun, folks ;)

Change log #

Credits #

All embed plugin icons come from courtesy © flaticon.com.

Notes

1 There are no Open Graph metatags for Pinterst & Tumblr. For G+ don't forget to use a proper declaration into your html document tag (i.e. <html itemscope itemtype="http://schema.org/Article" lang="fr-fr" dir="ltr">). See more here: schema.org.
2 The text you choose here is shrinked and followed by the article URL and all respects the 140 characters limit by Twitter.
3 Count is rounding up above 999. (e.g. 1 250 will be displayed 1.3 k)