$value) $url .= '&' . $key . '=' . rawurlencode($value); if(is_feed()) return 'Download ' . $fileName . ''; else return 'Download ' . $fileName . ''; } add_filter('the_content', 'ap_insert_player_widgets'); function ap_post_add_options() { add_options_page('Audio player options', 'Audio player', 8, basename(__FILE__), 'ap_options_subpanel'); } function ap_options_subpanel() { global $wpdb; if( $_POST['ap_audiowebpath'] ) { // set audio web path if( substr( $_POST['ap_audiowebpath'], -1 ) == "/" ) $_POST['ap_audiowebpath'] = substr( $_POST['ap_audiowebpath'], 0, strlen( $_POST['ap_audiowebpath'] ) - 1 ); update_option('audio_player_web_path', $_POST['ap_audiowebpath']); update_option('audio_player_bgcolor', str_replace("#", "0x", $_POST['ap_bgcolor'])); update_option('audio_player_leftbgcolor', str_replace("#", "0x", $_POST['ap_leftbgcolor'])); update_option('audio_player_rightbgcolor', str_replace("#", "0x", $_POST['ap_rightbgcolor'])); update_option('audio_player_rightbghovercolor', str_replace("#", "0x", $_POST['ap_rightbghovercolor'])); update_option('audio_player_lefticoncolor', str_replace("#", "0x", $_POST['ap_lefticoncolor'])); update_option('audio_player_righticoncolor', str_replace("#", "0x", $_POST['ap_righticoncolor'])); update_option('audio_player_righticonhovercolor', str_replace("#", "0x", $_POST['ap_righticonhovercolor'])); update_option('audio_player_textcolor', str_replace("#", "0x", $_POST['ap_textcolor'])); update_option('audio_player_slidercolor', str_replace("#", "0x", $_POST['ap_slidercolor'])); update_option('audio_player_trackcolor', str_replace("#", "0x", $_POST['ap_trackcolor'])); update_option('audio_player_loadercolor', str_replace("#", "0x", $_POST['ap_loadercolor'])); update_option('audio_player_bordercolor', str_replace("#", "0x", $_POST['ap_bordercolor'])); echo '

Options updated.

'; } $web_path = str_replace( "0x", "#", get_option('audio_player_web_path')); $ap_bgcolor = str_replace( "0x", "#", get_option('audio_player_bgcolor')); $ap_leftbgcolor = str_replace( "0x", "#", get_option('audio_player_leftbgcolor')); $ap_rightbgcolor = str_replace( "0x", "#", get_option('audio_player_rightbgcolor')); $ap_rightbghovercolor = str_replace( "0x", "#", get_option('audio_player_rightbghovercolor')); $ap_lefticoncolor = str_replace( "0x", "#", get_option('audio_player_lefticoncolor')); $ap_righticoncolor = str_replace( "0x", "#", get_option('audio_player_righticoncolor')); $ap_righticonhovercolor = str_replace( "0x", "#", get_option('audio_player_righticonhovercolor')); $ap_textcolor = str_replace( "0x", "#", get_option('audio_player_textcolor')); $ap_slidercolor = str_replace( "0x", "#", get_option('audio_player_slidercolor')); $ap_trackcolor = str_replace( "0x", "#", get_option('audio_player_trackcolor')); $ap_loadercolor = str_replace( "0x", "#", get_option('audio_player_loadercolor')); $ap_bordercolor = str_replace( "0x", "#", get_option('audio_player_bordercolor')); ?>

Audio player options

Settings for the Audio Player plugin.

Paths

Recommended: /audio
Colours
Colour map: /wp-content/plugins/audio-player/map.gif" width="390" height="124" />