Content last modified Tuesday 24 August 2021
hop to #bottom
Categories:
Author:
Current version:
0.6.1.
About It:
Get it:
Rate it:
  • Helpful?
  • 2 Yes
  • 1 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!

pat_article_social

Purpose

Create social links for your articles (support for major social networks: facebook®, Twitter®, G+®, Pinterest® Tumblr®, Pocket®, Instapaper®, Linkedin®, Reddit®, Dribbble®) with an icon (optional and in SVG format) a share counting (optional), total share count (optional) plus all needed Open Graph meta tags for your head document (if applicable). No coo­kies, EU legis­lation respec­table. With­out any band­width con­suming java­script! Support for embed tweets or status in article’s bodies (Twitter, facebook, G+, Instagram or Gist), blocks of text (quotes) followed by share links below it. Google AMP capable.

Usages

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="" />

Creates Open Graph meta tags for social websites (Twitter, G+ & facebook):

<!-- Open Graph -->
<meta property="og:locale" content="en_US">
<meta property="og:site_name" content="Example Website">
<meta property="og:title" content="Example title">
<meta property="og:description" content="Some description">
<meta property="og:url" content="http://example.com/">
<meta property="og:type" content="website">
<meta property="og:image" content="http://example.com/images/87.jpg">
<meta property="og:type" content="article">
<meta property="fb:app_id" content="123">
<meta property="fb:admins" content="321">
<meta property="article:author" content="https://www.facebook.com/Textpattern">
<meta property="article:publisher" content="https://www.facebook.com/Textpattern">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@textpattern">
<meta name="twitter:creator" content="@textpattern">
<meta property="twitter:image:src" content="http://example.com/images/87.jpg">
<meta property="twitter:url" content="http://example.com/my-article">
<meta property="twitter:title" content="Example Title">
<meta name="twitter:description" content="Some description">
<meta name="twitter:label1" content="Label 1 for Product">
<meta name="twitter:data1" content="Data 1 for Product">
<meta name="twitter:label2" content="Label 2 for Product">
<meta name="twitter:data2" content="Data 2 for Product">
<meta itemprop="name" content="Example Website">
<meta itemprop="description" content="Some description">
<meta itemprop="url" content="http://example.com/my-article">
<meta itemprop="image" content="http://example.com/images/87.jpg">
<link rel="author" href="https://plus.google.com/+textpattern">
<link rel="publisher" href="https://plus.google.com/+textpattern">@

.

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="" />

Creates HTML links for the current article. Allow visitors to publish a link to their social accounts:

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

<txp:pat_article_social_sum site="twitter,facebook,google,pinterest,linkedin,buffer,reddit,dribbble" unit="k" delay="3" showalways="0" text="Total of share" alternative="Share" plural="s" lang="en_US" zero="1" />

Creates a total shares count as shown on the Mashable.com website.

4° Embbeded posts into your aticle’s body

Tweets: <txp:twttr status="" />
facebook posts (public status only): <txp:fb url="" />
G+ posts: <txp:gplus url="" />
Instagram photos: <txp:instagram url="" />
GitHub Gist: <txp:gist url="" />

Full plugin help page available here: https://github.com/cara-tm/pat_article_social/blob/master/help.md

Plugin available here: http://pat-article-social.cara-tm.com

Article Request Count:
Keywords/tags:
Initially released:
7th December 2013
Posted here:
07 Mar 2014

You know you want to visit the Archives.
Published with Textpattern