$value) $url .= '&' . $key . '=' . rawurlencode($value); if(is_feed()) return 'Download ' . $fileName . ''; else return ''; } 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.
Settings for the Audio Player plugin.