Title: RainyShots
Author: rainypixels
Published: <strong>11.05.2011</strong>
Last modified: 12.05.2011

---

Шукати плагіни

Цей плагін **не перевірявся з останніми 3-ма основними випусками WordPress**. Можливо,
він більше не може розроблятися або підтримуватися, і він може мати проблеми сумісності
при використанні з більш новими версіями WordPress.

![](https://s.w.org/plugins/geopattern-icon/rainyshots.svg)

# RainyShots

 Від автора [rainypixels](https://profiles.wordpress.org/rainypixels/)

[Завантажити](https://downloads.wordpress.org/plugin/rainyshots.1.0.zip)

 * [Деталі](https://uk.wordpress.org/plugins/rainyshots/#description)
 * [Відгуки](https://uk.wordpress.org/plugins/rainyshots/#reviews)
 *  [Встановлення](https://uk.wordpress.org/plugins/rainyshots/#installation)
 * [Розробка](https://uk.wordpress.org/plugins/rainyshots/#developers)

 [Підтримка](https://wordpress.org/support/plugin/rainyshots/)

## Опис

This plugin adds a function `rs_shots()` to WordPress that returns an array of the
15 latest Dribbble shots by a player. The return type of the function is [JSON in appropriate PHP type](http://php.net/manual/en/function.json-decode.php).

The plugin adds an admin screen under Settings > RainyShots that provides a few 
options such as specifying a player and caching preferences.

**Features**

 * Specify the player
 * Returned shots variable is cached for a day by default; this cache duration may
   be updated in admin settings
 * 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.

Read more about it on [my blog](http://rainypixels.com/writings/journal/rainyshots-a-dribbble-plugin/).

## Скріншоти

 * [[
 * screenshot-1.gif

## Встановлення

 1. Upload the rainyshots folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Set the player under Settings > RainyShots before you use the tag; optionally, 
    update the caching preferences.

## Часті питання

  Does the ws_shots() function output any html or css?

Nope. It returns the [json with values encoded as PHP types](http://php.net/manual/en/function.json-decode.php).
You can loop through the object as follows:

    ```
    $shots = rs_shots();

    foreach ($shots as $shot)
    {
        echo "<img src='" . $shot->{"image_teaser_url"} . "' alt='" . $shot->{"title"} . "' />";
    }
    ```

  May I access only “image_teaser_url” or are any other shot properties accessible?

You may access all the properties available in the response to [this API call](http://dribbble.com/api#get_player_shots).
All the plugin does is return the json_decoded result of the API call along with
caching benefits.

## Відгуки

Для цього плагіна немає відгуків.

## Учасники та розробники

“RainyShots” — проект з відкритим вихідним кодом. В розвиток плагіну внесли свій
вклад наступні учасники:

Учасники

 *   [ rainypixels ](https://profiles.wordpress.org/rainypixels/)

[Перекладіть “RainyShots” на вашу мову.](https://translate.wordpress.org/projects/wp-plugins/rainyshots)

### Цікавитесь розробкою?

[Перегляньте код](https://plugins.trac.wordpress.org/browser/rainyshots/), перегляньте
[сховище SVN](https://plugins.svn.wordpress.org/rainyshots/) або підпишіться на 
[журнал розробки](https://plugins.trac.wordpress.org/log/rainyshots/) за допомогою
[RSS](https://plugins.trac.wordpress.org/log/rainyshots/?limit=100&mode=stop_on_copy&format=rss).

## Журнал змін

#### 1.0

 * Iz in ur v1

## Мета

 *  Версія **1.0**
 *  Останнє оновлення **15 років тому**
 *  Активних встановлень **10+**
 *  Версія WordPress ** 2.9 або вище **
 *  Tested up to **3.1.4**
 *  Мова
 * [English (US)](https://wordpress.org/plugins/rainyshots/)
 * Позначки
 * [designer](https://uk.wordpress.org/plugins/tags/designer/)[developer](https://uk.wordpress.org/plugins/tags/developer/)
   [social media](https://uk.wordpress.org/plugins/tags/social-media/)[template tag](https://uk.wordpress.org/plugins/tags/template-tag/)
 *  [Розширений перегляд](https://uk.wordpress.org/plugins/rainyshots/advanced/)

## Оцінки

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/rainyshots/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/rainyshots/reviews/)

## Учасники

 *   [ rainypixels ](https://profiles.wordpress.org/rainypixels/)

## Підтримка

Є що сказати? Потрібна допомога?

 [Перейти в форум підтримки](https://wordpress.org/support/plugin/rainyshots/)

## Пожертвування

Ви хотіли б підтримати розвиток цього плагіна?

 [ Пожертвувати на розвиток плагіна ](http://rainypixels.com/writings/journal/rainyshots-a-dribbble-plugin/)