function _swftools_wpaudio_settings in SWF Tools 6.3
Returns the audio player default settings, or customised settings from the configuration page.
2 calls to _swftools_wpaudio_settings()
- swftools_wpaudio_profile_form in wpaudio/
swftools_wpaudio.admin.inc - Returns a form definition for use by the profile system.
- _swftools_wpaudio_flashvars in wpaudio/
swftools_wpaudio.module - Retrieves the audio player default settings and unsets any that are empty.
File
- wpaudio/
swftools_wpaudio.module, line 111 - Enables SWF Tools support for the WordPress Audio player.
Code
function _swftools_wpaudio_settings($profile) {
// Set up defaults
// TODO: Put these in an array so we can organise the admin form by categories, like other players
$defaults = array(
'player' => array(
'height' => 24,
'width' => 290,
'autostart' => 'no',
'loop' => 'no',
'animation' => 'yes',
'remaining' => 'no',
'noinfo' => 'no',
'initialvolume' => 60,
'buffer' => 5,
'encode' => 'no',
'checkpolicy' => 'no',
'rtl' => 'no',
'transparentpagebg' => 'no',
),
'colors' => array(
'bg' => 'E5E5E5',
'leftbg' => 'CCCCCC',
'lefticon' => '333333',
'voltrack' => 'F2F2F2',
'volslider' => '666666',
'rightbg' => 'B4B4B4',
'rightbghover' => '999999',
'righticon' => '333333',
'righticonhover' => 'FFFFFF',
'loader' => '009900',
'track' => 'FFFFFF',
'tracker' => 'DDDDDD',
'border' => 'CCCCCC',
'skip' => '666666',
'text' => '333333',
'pagebg' => '',
),
'accessibility' => array(
'accessible' => SWFTOOLS_ACCESSIBLE_DISABLED,
),
);
// Retrieve settings from the database if available
$settings = swftools_variable_get('swftools_wpaudio', $defaults, $profile);
// Return result
return $settings;
}