Closed (fixed)
Project:
AudioField
Version:
7.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 Aug 2011 at 19:47 UTC
Updated:
8 Jul 2013 at 20:18 UTC
Unfortunately the documentation here is only for D5.x: http://drupal.org/node/34043
How must I modify this code to get it work with D7?
function phptemplate_audio_1pixelout_node_player($node, $options = array()) {
$options = array_merge(array(
'leftbg' => '0xFF0000',
'rightbg' => '0x000000',
'lefticon' => '0xFFFFFF',
'righticon' => '0xFFFFFF',
));
return theme_audio_1pixelout_node_player($node, $options);
}
Or where can I change the Button-Colors?
Comments
Comment #1
drupa11y commentedGuess I found it in the .module in line 286:
function audiofield_wpaudioplayer($player_path, $audio_file) {
return '
';
}
But I would love to know what I had to do to change the colors in a "adaptivetheme_subtheme"?
What must I add and where?
There´s a "theme-settings.php" and a "template.php".
SORRY for this dull questions? I am not right into this stuff.
Comment #2
tepad.no commentedThere is also a mistake in the audiofield.module file which causes the player to be opaque rather than transparent.
The line 292 is
and shoud be:
Good luck:).
Comment #3
Hari commentedThis is for drupal 6 but my guess is that it is similar in D7 as well. There is a theme function called
theme_audiofield_players_wpaudioplayerthat can be copied to your template.php file.This is the override that I used to set the colors back to the default colors.
Replace THEMENAME with the name of your theme that you will be placing the override in.
P.S. Apologies for the ugly formatting, the function is copied directly out of the module.
Comment #4
tamerzg commentedFixed in dev.
Comment #6
cooldeeponline commentedyeah that works for me... thanks!!!