Esempio n. 1
0
    if (ff.getAttribute('className') == 'frame_footer_visible') {
        ff.setAttribute('className', 'frame_footer_hide');
        ff.setAttribute('class', 'frame_footer_hide');

        maindiv.style.height = parent.parent.innerHeight + "px";
<?php 
if (AmpConfig::get('song_page_title')) {
    echo "window.parent.document.title = '" . addslashes(AmpConfig::get('site_title')) . "';";
}
?>
    }
    window.parent.onbeforeunload = null;
    ff.setAttribute('src', '');
    return false;
}
</script>
<?php 
$isRadio = false;
$isVideo = false;
$radio = null;
if (isset($playlist)) {
    if (WebPlayer::is_playlist_radio($playlist)) {
        // Special stuff for web radio (to better handle Icecast/Shoutcast metadata ...)
        // No special stuff for now
        $isRadio = true;
        $radio = $playlist->urls[0];
    } else {
        $isVideo = WebPlayer::is_playlist_video($playlist);
    }
}
require_once AmpConfig::get('prefix') . '/templates/show_html5_player.inc.php';
Esempio n. 2
0
 *
 */
?>
<html>
<head>
<title><?php 
echo AmpConfig::get('site_title');
?>
</title>
<script language="javascript" type="text/javascript">
<!-- begin
function PlayerPopUp(URL)
{
<?php 
$width = 730;
if (WebPlayer::is_playlist_video($this)) {
    $width = 880;
}
?>
    window.open(URL, 'Web_player', 'width=<?php 
echo $width;
?>
,height=285,scrollbars=0,toolbar=0,location=0,directories=0,status=0,resizable=0');
    window.location = '<?php 
echo return_referer();
?>
';
    return false;
}
// end -->
</script>