Plugin Directory

Changeset 2116033


Ignore:
Timestamp:
07/02/2019 09:52:28 AM (7 years ago)
Author:
Spreaker
Message:

Added custom color parameter

Location:
spreaker-shortcode/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • spreaker-shortcode/trunk/package.json

    r2045976 r2116033  
    11{
    22  "name": "spreaker-shortcode",
    3   "version": "1.7.7",
     3  "version": "1.7.8",
    44  "description": "A simple and easy way to embed Spreaker widgets into your WordPress blog.",
    55  "main": "spreaker_shortcode.php",
  • spreaker-shortcode/trunk/readme.txt

    r2045976 r2116033  
    44Requires at least: 2.5.0
    55Tested up to: 5.1
    6 Stable tag: 1.7.7
     6Stable tag: 1.7.8
    77
    88
     
    3333* `height`: player's height - can be in % or px (ie. `100%` or `400px`).
    3434* `theme`: player's UI theme. Supported themes are: `light` (default) and `dark`.
     35* `color`: player's main color. Supported fromats are short and long hex values (ie. `F00` or `FF0000`). This feature requires the podcast author to subscribe to [Station plan or above](https://www.spreaker.com/plans)
    3536* `cover`: HTTPS url of an image to display as player's background.
    36 * `playlist`:  configures how the playlist should be built. It can be `playlist="false"` to disable the playlist, `playlist="user"` to display all user's episodes in the playlist or `playlist="show"` to display all show's episodes in the playlist. The default behavious depends on resource. The playlist is visible only if the player height is greater than 200px.
     37* `playlist`: configures how the playlist should be built. It can be `playlist="false"` to disable the playlist, `playlist="user"` to display all user's episodes in the playlist or `playlist="show"` to display all show's episodes in the playlist. The default behavious depends on resource. The playlist is visible only if the player height is greater than 200px.
    3738* `playlist-continuous`: enables or disables the playlist continuous playback. When `true` it continuously plays all episodes in the playlist until the end.
    3839* `playlist-loop`: enables or disables loop playlist playback when continuous playback is enabled. When `true` and playlist continuous playback is enabled as well, it will loop the playlist continuously (defaults to `false`).
     
    6465
    6566== Changelog ==
     67
     68= 1.7.8 =
     69* Added `color` attribute support
    6670
    6771= 1.7.7 =
  • spreaker-shortcode/trunk/spreaker_shortcode.php

    r2045976 r2116033  
    5858        'height'                     => '200px',
    5959        'theme'                      => null,
     60        'color'                      => null,
    6061        'cover'                      => null,
    6162        'playlist'                   => null,
     
    103104        "$resource_type"             => $resource_id,
    104105        'theme'                      => $params['theme'],
     106        'color'                      => $params['color'],
    105107        'cover_image_url'            => $params['cover'],
    106108        'playlist'                   => $params['playlist'],
Note: See TracChangeset for help on using the changeset viewer.