Social
<?php
$tea_content = array(
array(
'type' => 'social',
'title' => 'Big Brother is watching you...',
'id' => 'my_social_field_id',
'description' => '...Or not!',
'expandable' => false, //disable the "Add social networks" button
'default' => array(
'facebook' => array(
'display' => '1',
'label' => 'Become a fan',
'link' => 'http://www.facebook.com/takeatea'
),
'twitter' => array(
'display' => '1',
'label' => 'Follow us',
'link' => 'https://twitter.com/takeatea'
),
'instagram' => array(
'display' => '0',
'label' => 'Take a shot',
'link' => 'http://instagram.com/takeatea'
),
'rss' => array(
'label' => 'Subscribe to our feed'
),
),
),
);
Retrieve data
Using the _get_option('my_social_field_id')
method, you'll get (with a json_encode()
display):
{
"facebook": {
"display": "1",
"label": "Follow me - Abe -",
"link": "https:\/\/www.facebook.com\/LaPreuvePar5"
},
"twitter": {
"display": "1",
"label": "Tweet me - Abe... -",
"link": "https:\/\/twitter.com\/LaPreuvePar5"
}
}
The 29 networks
Here are listed all the 29 available networks that you can add.
Note that since the 1.5.2.16 version, you can add your own social network.
Logo | Network | Key to use |
---|---|---|
RSS | rss (with label only) | |
Behance | behance | |
Bitbucket | bitbucket | |
CodePen | codepen | |
Delicious | delicious | |
DeviantArt | deviantart | |
Dribbble | dribbble | |
facebook | ||
Flickr | flickr | |
Foursquare | foursquare | |
Github | github | |
Gittip | gittip | |
Google+ | google-plus | |
Gratipay | gratipay | |
instagram | ||
LastFM | lastfm | |
linkedin | ||
pinterest | ||
reddit | ||
Skype | skype | |
Soundcloud | soundcloud | |
Stumbleupon | stumbleupon | |
Tumblr | tumblr | |
twitter | ||
Vimeo | vimeo | |
Vine | vine | |
VK | vk | |
weibo | ||
Youtube | youtube |
Updated less than a minute ago