Download \1', $content ); return ereg_replace( '\[audio:([^]]+)\]', 'Download \1', $content ); } 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', $_POST['ap_bgcolor']); update_option('audio_player_textcolor', $_POST['ap_textcolor']); update_option('audio_player_iconcolor', $_POST['ap_iconcolor']); update_option('audio_player_pathcolor', $_POST['ap_pathcolor']); update_option('audio_player_barcolor', $_POST['ap_barcolor']); update_option('audio_player_buttoncolor', $_POST['ap_buttoncolor']); update_option('audio_player_buttonhovercolor', $_POST['ap_buttonhovercolor']); echo '

Options updated.

'; } $web_path = get_option('audio_player_web_path'); $ap_bgcolor = get_option('audio_player_bgcolor'); $ap_textcolor = get_option('audio_player_textcolor'); $ap_iconcolor = get_option('audio_player_iconcolor'); $ap_pathcolor = get_option('audio_player_pathcolor'); $ap_barcolor = get_option('audio_player_barcolor'); $ap_buttoncolor = get_option('audio_player_buttoncolor'); $ap_buttonhovercolor = get_option('audio_player_buttonhovercolor'); ?>

Audio player options

Settings for the Audio Player plugin.

Paths

Recommended: /audio
Colours