function jnm_audio($atts, $thing='') { $plugindir='files'; // Directory where plugin files reside $audiodir='audio'; // Directory where audio files reside extract(lAtts(array( 'bgcolor' => '0xf8f8f8', // Background color 'textcolor' => '0x666666', // Text color 'leftbgcolor' => '0xeeeeee', // Left background color 'lefticoncolor' => '0x666666', // Left icon color 'rightbgcolor'=> '0xcccccc', // Right background color 'rightbghovercolor' => '0x999999', // Right background hover color 'righticoncolor' => '0x666666', // Right icon color 'righticonhovercolor' => '0xffffff',// Right icon hover color 'slidercolor' => '0x666666', // Progress slider color 'trackcolor' => '0xFFFFFF', // Progress track color 'loadercolor' => '0x9FFFB8', // Loader bar color 'bordercolor' => '0x666666', // Border color 'loop' => 'no', 'autostart' => 'no', 'audio' => '', 'fileid' => 0, 'filename' => '', 'url' => '', ),$atts)); // Nothing to touch below this line global $permlink_mode; static $playerid=1; $plugindir=hu.$plugindir; if (!empty($fileid) || !empty($filename)) { if ($fileid=='.') $fileid=parse($thing); if ($filename=='.') $filename=parse($thing); $where = (!empty($fileid) && $fileid != 0)? "id='$fileid'" : ((!empty($filename))? "filename='$filename'" : ''); $thisfile = fileDownloadFetchInfo($where); $url= ($permlink_mode == 'messy') ? hu.'index.php?s=file_download&id='.$thisfile['id']: hu.gTxt('file_download').'/'.$thisfile['id']; } else if (!empty($audio) && $audio!='') { if ($audio=='.') $audio=parse($thing); $url=hu.$audiodir.'/'.$audio; } else if ($url=='.') { $url=parse($thing); } $output=''; if ($playerid==1) { $output="\n"; } $object= <<< END END; $output = $output.$object; $playerid++; return $output; }