Plugin Directory

Changeset 730873


Ignore:
Timestamp:
06/24/2013 01:17:29 PM (13 years ago)
Author:
fristopher
Message:

added autoplay

File:
1 edited

Legend:

Unmodified
Added
Removed
  • youtube-with-style/trunk/plugin.php

    r652997 r730873  
    44Plugin URI: http://wordpress.org/extend/plugins/youtube-with-style/
    55Description: Show You Tube videos with a custom stylish player, also create a playlist, and search in real time via the youtube api.
    6 Date: January, 15th, 2013
    7 Version: 9.1
     6Date: June, 24th, 2013
     7Version: 10.0
    88Author: Chris McCoy
    99Author URI: http://github.com/chrismccoy
     
    6363function youtube_shortcode($atts,$content){ 
    6464    global $post;
    65     extract(shortcode_atts(array('width' => 400,'height' => 300,), $atts));
     65    extract(shortcode_atts(array('autoplay' => 'false', 'width' => 400,'height' => 300,), $atts));
    6666
    6767    return '
     
    6969        var flashvars = {};
    7070        flashvars.v = "'.$content.'";
    71         flashvars.autoplay = "false";
     71        flashvars.autoplay = "'.$autoplay.'";
    7272        flashvars.blur = "10";
    7373        flashvars.c_side_padding = "175";
Note: See TracChangeset for help on using the changeset viewer.