Plugin Directory

Changeset 201754


Ignore:
Timestamp:
02/04/2010 10:54:24 AM (16 years ago)
Author:
toddiceton
Message:

Updating 2.2.0 tag

Location:
wpaudio-mp3-player/tags/2.2.0
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wpaudio-mp3-player/tags/2.2.0/readme.txt

    r194684 r201754  
    55Requires at least: 2.5
    66Tested up to: 2.9.1
    7 Stable tag: 2.1.1
     7Stable tag: 2.2.0
    88
    99Play mp3s and podcasts in your posts with the simplest, cleanest, easiest-to-use mp3 player.  Supports links, tags, and separate download URLs.
     
    4444
    4545        [wpaudio url="http://url.to/your.mp3" text="Artist - Song" dl="0"]
     46       
     47* For autoplay, just add autoplay="1" to your tags.
     48
     49        [wpaudio url="http://url.to/your.mp3" text="Artist - Song" autoplay="1"]
    4650 
    4751Powered by the SoundManager 2 API 
     
    109113
    110114== Changelog ==
     115
     116= 2.2.0 =
     117* Added autoplay
     118* Open players collapse when another is clicked.
    111119
    112120= 2.1.1 =
  • wpaudio-mp3-player/tags/2.2.0/wpaudio.js

    r172184 r201754  
    102102                    jQuery('#wpa' + id + '_sub').fadeIn('slow');
    103103                });
     104                jQuery('.wpa_container').not('#wpa' + id + '_container').children('.wpa_bar:visible, .wpa_sub:visible').slideUp('slow');
    104105                return false;
    105106            });
     
    133134        });
    134135        */
     136        // Autoplay
     137        jQuery('.wpaudio_autoplay:first').click();
    135138    }
    136139});
  • wpaudio-mp3-player/tags/2.2.0/wpaudio.php

    r194681 r201754  
    55Plugin URI: http://wpaudio.com
    66Description: Play mp3s and podcasts in your posts by converting links and tags into a simple, customizable audio player.
    7 Version: 2.1.1
     7Version: 2.2.0
    88Author: Todd Iceton
    99Author URI: http://ticeton.com
     
    2727
    2828## WPaudio version
    29 $wpa_version = '2.1.1';
     29$wpa_version = '2.2.0';
    3030
    3131## Pre-2.6 compatibility (from WP codex)
     
    184184        'url' => false,
    185185        'text' => false,
    186         'dl' => true
     186        'dl' => true,
     187        'autoplay' => false
    187188    ), $atts));
    188189    # If no url, return with nothing
     
    190191        return;
    191192    # Get player HTML and JS
    192     return wpaLink($url, $text, $dl);
     193    return wpaLink($url, $text, $dl, $autoplay);
    193194}
    194195
     
    197198
    198199# Make WPA link
    199 function wpaLink($url, $text = false, $dl = true) {
     200function wpaLink($url, $text = false, $dl = true, $autoplay = false) {
    200201    global $wpa_urls;
    201202    $class = 'wpaudio';
     
    222223        $class .= ' wpaudio_readid3';
    223224    }
     225    # Autoplay
     226    if ($autoplay == '1') $class .= ' wpaudio_autoplay';
    224227    $html .= "<a class='$class' href='$href'>$text</a>";
    225228    return $html;
Note: See TracChangeset for help on using the changeset viewer.