{"_id":"543269ecf2f806080098ad52","category":{"_id":"543264f42aca39080046d81e","__v":27,"pages":["543266122aca39080046d820","5432670f2aca39080046d822","543267462aca39080046d824","5432679bf2f806080098ad46","543267d92aca39080046d826","543267fe2aca39080046d829","543268232aca39080046d82b","543268572aca39080046d82d","5432687d2aca39080046d82f","543268a82aca39080046d831","543268d7f2f806080098ad48","54326901f2f806080098ad4a","5432692bf2f806080098ad4c","54326979f2f806080098ad4e","5432699b2aca39080046d833","543269c3f2f806080098ad50","543269ecf2f806080098ad52","54326a502aca39080046d836","54326a71f2f806080098ad54","54326a8ff2f806080098ad56","5444faf50a8dbc1a00ff6886","54326ba8f2f806080098ad58","546babeab47b5d1400109f34","54d89a8a80fc0e1900b3bda9","54d8a04c80fc0e1900b3bdac","552a942be82c550d00a26407"],"project":"5431c59ea55723080068e155","version":"5431c59ea55723080068e158","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-10-06T09:46:28.471Z","from_sync":false,"order":3,"slug":"fields","title":"Fields"},"is_link":false,"user":"542ea80e6b0eb6080066c9d5","version":{"_id":"5431c59ea55723080068e158","project":"5431c59ea55723080068e155","__v":8,"createdAt":"2014-10-05T22:26:38.927Z","releaseDate":"2014-10-05T22:26:38.927Z","categories":["5431c59ea55723080068e159","54325f53f2f806080098ad37","543264b1f2f806080098ad3e","543264c8f2f806080098ad3f","543264d3f2f806080098ad40","543264f42aca39080046d81e","5435bbf15e1b20200043834d","54e9cfb4f152c50d009b49ed"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"__v":28,"project":"5431c59ea55723080068e155","parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2014-10-06T10:07:40.328Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","try":true,"basic_auth":false,"auth":"never","params":[],"url":""},"isReference":false,"order":17,"body":"[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"<?php\\n\\n$tea_content = array(\\n    array(\\n        'type' => 'social',\\n        'title' => 'Big Brother is watching you...',\\n        'id' => 'my_social_field_id',\\n        'description' => '...Or not!',\\n        'expandable' => false, //disable the \\\"Add social networks\\\" button\\n        'default' => array(\\n            'facebook' => array(\\n                'display' => '1',\\n                'label' => 'Become a fan',\\n                'link' => 'http://www.facebook.com/takeatea'\\n            ),\\n            'twitter' => array(\\n                'display' => '1',\\n                'label' => 'Follow us',\\n                'link' => 'https://twitter.com/takeatea'\\n            ),\\n            'instagram' => array(\\n                'display' => '0',\\n                'label' => 'Take a shot',\\n                'link' => 'http://instagram.com/takeatea'\\n            ),\\n            'rss' => array(\\n                'label' => 'Subscribe to our feed'\\n            ),\\n        ),\\n    ),\\n);\",\n      \"language\": \"php\"\n    }\n  ]\n}\n[/block]\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/aBput32RAeGF5SomAsEw_social.png\",\n        \"social.png\",\n        \"1232\",\n        \"122\",\n        \"#d0a06a\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/X6o7GI8TYS32nJde6wDE_social-2.png\",\n        \"social-2.png\",\n        \"1020\",\n        \"520\",\n        \"#946257\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/ydwQtsLnRWKsuC5HHWOa_social-3.png\",\n        \"social-3.png\",\n        \"1232\",\n        \"197\",\n        \"#986962\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Retrieve data\"\n}\n[/block]\nUsing the `_get_option('my_social_field_id')` method, you'll get (with a `json_encode()` display):\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n    \\\"facebook\\\": {\\n        \\\"display\\\": \\\"1\\\",\\n        \\\"label\\\": \\\"Follow me - Abe -\\\",\\n        \\\"link\\\": \\\"https:\\\\/\\\\/www.facebook.com\\\\/LaPreuvePar5\\\"\\n    },\\n    \\\"twitter\\\": {\\n        \\\"display\\\": \\\"1\\\",\\n        \\\"label\\\": \\\"Tweet me - Abe... -\\\",\\n        \\\"link\\\": \\\"https:\\\\/\\\\/twitter.com\\\\/LaPreuvePar5\\\"\\n    }\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"The 29 networks\"\n}\n[/block]\nHere are listed all the 29 available networks that you can add.  \n**Note that since the 1.5.2.16 version, you can add your own social network.**\n\n| Logo | Network | Key to use |\n|:--:|:--------------:|:--------:|\n| | | |\n| :fa-rss: | **RSS** | **`rss` (with `label` only)** |\n| | | |\n| :fa-behance: | Behance | `behance` |\n| :fa-bitbucket: | Bitbucket | `bitbucket` |\n| :fa-codepen: | CodePen | `codepen` |\n| :fa-delicious: | Delicious | `delicious` |\n| :fa-deviantart: | DeviantArt | `deviantart` |\n| :fa-dribbble: | Dribbble | `dribbble` |\n| :fa-facebook: | Facebook | `facebook` |\n| :fa-flickr: | Flickr | `flickr` |\n| :fa-foursquare: | Foursquare | `foursquare` |\n| :fa-github: | Github | `github` |\n| :fa-gittip: | Gittip | `gittip` |\n| :fa-google-plus: | Google+ | `google-plus` |\n| :fa-gratipay: | Gratipay | `gratipay` |\n| :fa-instagram: | Instagram | `instagram` |\n| :fa-lastfm: | LastFM | `lastfm` |\n| :fa-linkedin: | LinkedIn | `linkedin` |\n| :fa-pinterest: | Pinterest | `pinterest` |\n| :fa-reddit: | Reddit | `reddit` |\n| :fa-skype: | Skype | `skype` |\n| :fa-soundcloud: | Soundcloud | `soundcloud` |\n| :fa-stumbleupon: | Stumbleupon | `stumbleupon` |\n| :fa-tumblr: | Tumblr | `tumblr` |\n| :fa-twitter: | Twitter | `twitter` |\n| :fa-vimeo-square: | Vimeo | `vimeo` |\n| :fa-vine: | Vine | `vine` |\n| :fa-vk: | VK | `vk` |\n| :fa-weibo: | Weibo | `weibo` |\n| :fa-youtube: | Youtube | `youtube` |","excerpt":"","slug":"social-field","type":"basic","title":"Social"}
[block:code] { "codes": [ { "code": "<?php\n\n$tea_content = array(\n array(\n 'type' => 'social',\n 'title' => 'Big Brother is watching you...',\n 'id' => 'my_social_field_id',\n 'description' => '...Or not!',\n 'expandable' => false, //disable the \"Add social networks\" button\n 'default' => array(\n 'facebook' => array(\n 'display' => '1',\n 'label' => 'Become a fan',\n 'link' => 'http://www.facebook.com/takeatea'\n ),\n 'twitter' => array(\n 'display' => '1',\n 'label' => 'Follow us',\n 'link' => 'https://twitter.com/takeatea'\n ),\n 'instagram' => array(\n 'display' => '0',\n 'label' => 'Take a shot',\n 'link' => 'http://instagram.com/takeatea'\n ),\n 'rss' => array(\n 'label' => 'Subscribe to our feed'\n ),\n ),\n ),\n);", "language": "php" } ] } [/block] [block:image] { "images": [ { "image": [ "https://files.readme.io/aBput32RAeGF5SomAsEw_social.png", "social.png", "1232", "122", "#d0a06a", "" ] } ] } [/block] [block:image] { "images": [ { "image": [ "https://files.readme.io/X6o7GI8TYS32nJde6wDE_social-2.png", "social-2.png", "1020", "520", "#946257", "" ] } ] } [/block] [block:image] { "images": [ { "image": [ "https://files.readme.io/ydwQtsLnRWKsuC5HHWOa_social-3.png", "social-3.png", "1232", "197", "#986962", "" ] } ] } [/block] [block:api-header] { "type": "basic", "title": "Retrieve data" } [/block] Using the `_get_option('my_social_field_id')` method, you'll get (with a `json_encode()` display): [block:code] { "codes": [ { "code": "{\n \"facebook\": {\n \"display\": \"1\",\n \"label\": \"Follow me - Abe -\",\n \"link\": \"https:\\/\\/www.facebook.com\\/LaPreuvePar5\"\n },\n \"twitter\": {\n \"display\": \"1\",\n \"label\": \"Tweet me - Abe... -\",\n \"link\": \"https:\\/\\/twitter.com\\/LaPreuvePar5\"\n }\n}", "language": "json" } ] } [/block] [block:api-header] { "type": "basic", "title": "The 29 networks" } [/block] 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 | |:--:|:--------------:|:--------:| | | | | | :fa-rss: | **RSS** | **`rss` (with `label` only)** | | | | | | :fa-behance: | Behance | `behance` | | :fa-bitbucket: | Bitbucket | `bitbucket` | | :fa-codepen: | CodePen | `codepen` | | :fa-delicious: | Delicious | `delicious` | | :fa-deviantart: | DeviantArt | `deviantart` | | :fa-dribbble: | Dribbble | `dribbble` | | :fa-facebook: | Facebook | `facebook` | | :fa-flickr: | Flickr | `flickr` | | :fa-foursquare: | Foursquare | `foursquare` | | :fa-github: | Github | `github` | | :fa-gittip: | Gittip | `gittip` | | :fa-google-plus: | Google+ | `google-plus` | | :fa-gratipay: | Gratipay | `gratipay` | | :fa-instagram: | Instagram | `instagram` | | :fa-lastfm: | LastFM | `lastfm` | | :fa-linkedin: | LinkedIn | `linkedin` | | :fa-pinterest: | Pinterest | `pinterest` | | :fa-reddit: | Reddit | `reddit` | | :fa-skype: | Skype | `skype` | | :fa-soundcloud: | Soundcloud | `soundcloud` | | :fa-stumbleupon: | Stumbleupon | `stumbleupon` | | :fa-tumblr: | Tumblr | `tumblr` | | :fa-twitter: | Twitter | `twitter` | | :fa-vimeo-square: | Vimeo | `vimeo` | | :fa-vine: | Vine | `vine` | | :fa-vk: | VK | `vk` | | :fa-weibo: | Weibo | `weibo` | | :fa-youtube: | Youtube | `youtube` |