| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Summary view] [Print] [Text view]
1 <?php 2 // $Id: 1pixelout.inc,v 1.4 2007/07/31 03:17:23 drewish Exp $ 3 4 function audio_1pixelout_audio_player() { 5 $items['1pixelout'] = array( 6 'module' => 'audio', 7 'title' => t('1pixelout Flash player'), 8 'description' => t('Written by Martin Laine as part of the Wordpress Audio Player plugin.'), 9 'url' => t('http://www.1pixelout.net/code/audio-player-wordpress-plugin/'), 10 'preview' => 'players/1pixelout.png', 11 'formats' => array('wav', 'mp3'), 12 'theme_node' => 'audio_1pixelout_node_player', 13 ); 14 return $items; 15 } 16 17 function theme_audio_1pixelout_node_player($node, $options = array()) { 18 // make sure it's compatible with the flash player 19 if (!audio_is_flash_playable($node)) { 20 return NULL; 21 } 22 23 $options['soundFile'] = check_url($node->url_play); 24 $url = base_path() . drupal_get_path('module', 'audio') .'/players/1pixelout.swf'; 25 $flashvars = audio_query_string_encode($options); 26 27 $output = <<<EOT 28 <object type="application/x-shockwave-flash" data="$url" width="290" height="24" > 29 <param name="movie" value="$url" /> 30 <param name="wmode" value="transparent" /> 31 <param name="menu" value="false" /> 32 <param name="quality" value="high" /> 33 <param name="FlashVars" value="$flashvars" /> 34 <embed src="$url" flashvars="$flashvars" width="290" height="24" /> 35 </object> 36 EOT; 37 38 return $output; 39 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Mar 24 11:18:33 2011 | Cross-referenced by PHPXref 0.7 |