Plugin Directory

Changeset 706892


Ignore:
Timestamp:
05/02/2013 11:24:31 AM (13 years ago)
Author:
tkrivickas
Message:

Added image URL property in Stream Info. Shortened the code in Embeddable stream.

Location:
live-stream-badger/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • live-stream-badger/trunk/domain/class-stream-info.php

    r700755 r706892  
    3737    public $watching_now = -1;
    3838
     39    /**
     40     * URL to the channel image
     41     *
     42     * @var string
     43     */
     44    public $image_url = '';
     45
    3946}
    4047
  • live-stream-badger/trunk/shortcode/class-embedded-stream.php

    r704174 r706892  
    66
    77    function do_shortcode( $attrs ) {
    8         $defaults = array(
    9             'url'    => '',
    10             'width'  => '620',
    11             'height' => '378'
    12         );
    13         $attrs    = shortcode_atts( $defaults, $attrs );
     8        $attrs = shortcode_atts( array(
     9                                      'url'    => '',
     10                                      'width'  => '620',
     11                                      'height' => '378'
     12                                 ), $attrs );
    1413
    1514        if ( empty( $attrs['url'] ) )
Note: See TracChangeset for help on using the changeset viewer.