Title: RainyShots
Author: rainypixels
Published: <strong>11 maijs, 2011</strong>
Last modified: 12 maijs, 2011

---

Meklēt spraudņus

Šī spraudnis **nav atjaunināts vairāk kā divus gadus**. Varbūt, tas vairs netiek
uzturēts, nesaņemt atbalstu un tam var būt saderības problēmas ar jaunākām WordPress
versijām.

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

# RainyShots

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

[Lejupielādēt](https://downloads.wordpress.org/plugin/rainyshots.1.0.zip)

 * [Sīkāka informācija](https://lv.wordpress.org/plugins/rainyshots/#description)
 * [Atsauksmes](https://lv.wordpress.org/plugins/rainyshots/#reviews)
 *  [Uzstādīšana](https://lv.wordpress.org/plugins/rainyshots/#installation)
 * [Attīstība](https://lv.wordpress.org/plugins/rainyshots/#developers)

 [Atbalsts](https://wordpress.org/support/plugin/rainyshots/)

## Apraksts

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/).

## Ekrānuzņēmumi

[⌊screenshot-1.gif⌉⌊screenshot-1.gif⌉[

screenshot-1.gif

## Uzstādīšana

 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.

## BUJ

  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.

## Atsauksmes

Par šo spraudni nav atsauksmju.

## Autori un izstrādātāji

“RainyShots” ir atvērtā pirmkoda programmatūra. Šo spraudni ir veidojuši šādi cilvēki.

Līdzdalībnieki

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

[Tulkot “RainyShots&#8221 savā valodā.](https://translate.wordpress.org/projects/wp-plugins/rainyshots)

### Vai jūs interesē attīstība?

[Pārlūkojiet kodu](https://plugins.trac.wordpress.org/browser/rainyshots/), apmeklējiet
[ SVN krātuvi ](https://plugins.svn.wordpress.org/rainyshots/)vai abonējiet[ attīstības žurnālu](https://plugins.trac.wordpress.org/log/rainyshots/),
ko izveidojis [RSS](https://plugins.trac.wordpress.org/log/rainyshots/?limit=100&mode=stop_on_copy&format=rss).

## Izmaiņu žurnāls

#### 1.0

 * Iz in ur v1

## Meta

 *  Versija **1.0**
 *  Pēdējo reizi atjaunots: **pirms 15 gadiem**
 *  Aktīvās instalācijas: **10+**
 *  WordPress versija ** 2.9 vai jaunāka **
 *  Pārbaudīts līdz: **3.1.4**
 *  Valoda
 * [English (US)](https://wordpress.org/plugins/rainyshots/)
 * Birkas:
 * [designer](https://lv.wordpress.org/plugins/tags/designer/)[developer](https://lv.wordpress.org/plugins/tags/developer/)
   [social media](https://lv.wordpress.org/plugins/tags/social-media/)[template tag](https://lv.wordpress.org/plugins/tags/template-tag/)
 *  [Papildu skats](https://lv.wordpress.org/plugins/rainyshots/advanced/)

## Vērtējumi

Vēl nav iesniegta neviena atsauksme.

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

[Skatīt visasatsauksmes](https://wordpress.org/support/plugin/rainyshots/reviews/)

## Līdzdalībnieki

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

## Atbalsts

Jums ir kaut kas ko teikt? Vajadzīga palīdzība?

 [Skatīt atbalsta forumu](https://wordpress.org/support/plugin/rainyshots/)

## Ziedojiet

Vai vēlaties atbalstīt šī spraudņa pilnveidošanu?

 [ Ziedojiet šim spraudnim ](http://rainypixels.com/writings/journal/rainyshots-a-dribbble-plugin/)