Fixed : Pakplayer for admin area and Comments

This commit is contained in:
Arslan Hassan 2010-07-30 08:21:51 +00:00
parent a35c44fe8e
commit 2fec544140
3 changed files with 13 additions and 10 deletions

View file

@ -178,12 +178,9 @@ seconds</td>
</tr>
</table>
<div style="padding:5px">
<div id="videoPlayer" class='video_player'>
This content requires JavaScript and Macromedia Flash Player 7 or higher. <a href=http://www.macromedia.com/go/getflash/>Get Flash</a>
</div>
<script language="javascript">
{FlashPlayer vdetails = $data width='100%' autoplay='true'}
</script>
{FlashPlayer vdetails = $data width='100%' autoplay='false'}
</div>

View file

@ -74,8 +74,13 @@ if(!function_exists("pak_player"))
$in['width'] = $in['width'].'px';
if(!strstr($in['height'],"\%"))
$in['height'] = $in['height'].'px';
assign('data',$in);
if($in['autoplay'] =='yes' || $in['autoplay']===true)
$in['autoplay'] = true;
else
$in['autoplay'] = false;
assign('player_data',$in);
assign('player_logo',website_logo());
assign('normal_vid_file',$vid_file);
assign("hq_vid_file",$hd_file);

View file

@ -1,6 +1,6 @@
<a
href="{$normal_vid_file}"
style="display:block;width:{$data.width};height:{$data.height};"
style="display:block;width:{$player_data.width};height:{$player_data.height};"
id="the_Video_Player">
</a>
@ -79,8 +79,9 @@ flowplayer("the_Video_Player", "{$pak_player_url}/pak_player.swf", {literal}{
}
,
clip:{
{/literal}
autoPlay:{$player_data.autoplay},
{if $youtube}
url : 'api:{$ytcode}',
provider : 'youtube',