{"id":13193,"date":"2011-05-11T04:03:04","date_gmt":"2011-05-11T04:03:04","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/rainyshots\/"},"modified":"2011-05-12T20:00:39","modified_gmt":"2011-05-12T20:00:39","slug":"rainyshots","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/rainyshots\/","author":5633578,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0","stable_tag":"1.0","tested":"3.1.4","requires":"2.9","requires_php":"","requires_plugins":"","header_name":"RainyShots","header_author":"Nishant Kothary","header_description":"","assets_banners_color":"","last_updated":"2011-05-12 20:00:39","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/rainypixels.com\/writings\/journal\/rainyshots-a-dribbble-plugin\/","header_plugin_uri":"http:\/\/rainypixels.com\/writings\/journal\/rainyshots-a-dribbble-plugin\/","header_author_uri":"http:\/\/rainypixels.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":2027,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0"],"block_files":[],"assets_screenshots":{"screenshot-1.gif":{"filename":"screenshot-1.gif","revision":"1539411","resolution":"1","location":"plugin"}},"screenshots":{"1":"screenshot-1.gif"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1383,2275,42708,154,3623],"plugin_category":[],"plugin_contributors":[96216],"plugin_business_model":[],"class_list":["post-13193","plugin","type-plugin","status-publish","hentry","plugin_tags-designer","plugin_tags-developer","plugin_tags-dribble","plugin_tags-social-media","plugin_tags-template-tag","plugin_contributors-rainypixels","plugin_committers-rainypixels"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/rainyshots.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/rainyshots\/trunk\/screenshot-1.gif?rev=1539411","caption":"screenshot-1.gif"}],"raw_content":"<!--section=description-->\n<p>This plugin adds a function <code>rs_shots()<\/code> to Wordpress that returns an array of the 15 latest Dribbble shots by a player. The return type of the function is <a href=\"http:\/\/php.net\/manual\/en\/function.json-decode.php\">JSON in appropriate PHP type<\/a>.<\/p>\n\n<p>The plugin adds an admin screen under Settings &gt; RainyShots that provides a few options such as specifying a player and caching preferences.<\/p>\n\n<p><strong>Features<\/strong><\/p>\n\n<ul>\n<li>Specify the player <\/li>\n<li>Returned shots variable is cached for a day by default; this cache duration may be updated in admin settings<\/li>\n<li>You can manually reset the cache through the admin at any time. This is useful if you post a shot and want it to immediately show up in your template. <\/li>\n<\/ul>\n\n<p>Read more about it on <a href=\"http:\/\/rainypixels.com\/writings\/journal\/rainyshots-a-dribbble-plugin\/\">my blog<\/a>.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the rainyshots folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Set the player under Settings &gt; RainyShots before you use the tag; optionally, update the caching preferences.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Does the ws_shots() function output any html or css?<\/dt>\n<dd><p>Nope. It returns the <a href=\"http:\/\/php.net\/manual\/en\/function.json-decode.php\">json with values encoded as PHP types<\/a>. You can loop through the object as follows:<\/p>\n\n<pre><code>$shots = rs_shots();\n\nforeach ($shots as $shot)\n{\n    echo \"&lt;img src='\" . $shot-&gt;{\"image_teaser_url\"} . \"' alt='\" . $shot-&gt;{\"title\"} . \"' \/&gt;\";\n}\n<\/code><\/pre><\/dd>\n<dt>May I access only \"image_teaser_url\" or are any other shot properties accessible?<\/dt>\n<dd><p>You may access all the properties available in the response to <a href=\"http:\/\/dribbble.com\/api#get_player_shots\">this API call<\/a>. All the plugin does is return the json_decoded result of the API call along with caching benefits.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Iz in ur v1<\/li>\n<\/ul>","raw_excerpt":"Adds a template function \u2014 rs_shots() \u2014 that returns an array of the 15 latest Dribbble shots by a player.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/13193","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=13193"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/rainypixels"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=13193"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=13193"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=13193"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=13193"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=13193"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=13193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}