<script type=text/javascript src="catalog/view/javascript/js/jquery.jplayer.js"></script>
<script>$(document).ready(function(){$("#jquery_jplayer").jPlayer({ready: function () {$("#jquery_jplayer").change('example.mp3');},cssPrefix: "different_prefix_example"});$("#jquery_jplayer").jPlayerId("play", "player_play");$("#jquery_jplayer").jPlayerId("pause", "player_pause");$("#jquery_jplayer").jPlayerId("stop", "player_stop");});</script>
<link rel="stylesheet" type="text/css" href="catalog/view/javascript/js/s.css" />
Нужна помощь. OpenCart вставить плеер. -не работает
Код:
<?php echo '<?xml version="1.0" encoding="UTF-8"?>' . "\n"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="<?php echo $direction; ?>" lang="<?php echo $language; ?>" xml:lang="<?php echo $language; ?>">
<head>
<title><?php echo $title; ?></title>
<?php if ($description) { ?>
<meta name="description" content="<?php echo $description; ?>" />
<?php } ?>
<base href="<?php echo $base; ?>" />
<?php if ($icon) { ?>
<link href="image/<?php echo $icon; ?>" rel="icon" />
<?php } ?>
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/stylesheet.css" />
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/ie6.css" />
<![endif]-->
<script type="text/javascript" src="catalog/view/javascript/jquery/jquery-1.3.2.min.js"></script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="<?php echo $direction; ?>" lang="<?php echo $language; ?>" xml:lang="<?php echo $language; ?>">
<head>
<title><?php echo $title; ?></title>
<?php if ($description) { ?>
<meta name="description" content="<?php echo $description; ?>" />
<?php } ?>
<base href="<?php echo $base; ?>" />
<?php if ($icon) { ?>
<link href="image/<?php echo $icon; ?>" rel="icon" />
<?php } ?>
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/stylesheet.css" />
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/ie6.css" />
<![endif]-->
<script type="text/javascript" src="catalog/view/javascript/jquery/jquery-1.3.2.min.js"></script>
Дальше код плеера:
Код:
Код:
<script type="text/javascript" src="catalog/view/javascript/jquery/thickbox/thickbox-compressed.js"></script>
<link rel="stylesheet" type="text/css" href="catalog/view/javascript/jquery/thickbox/thickbox.css" />
<script type="text/javascript" src="catalog/view/javascript/jquery/tab.js"></script>
</head>
<body>
<div id="container">
<div id="header"><?php echo $header; ?></div>
<div id="breadcrumb">
<?php foreach ($breadcrumbs as $breadcrumb) { ?>
<?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
<?php } ?>
</div>
<div id="column_left">
<link rel="stylesheet" type="text/css" href="catalog/view/javascript/jquery/thickbox/thickbox.css" />
<script type="text/javascript" src="catalog/view/javascript/jquery/tab.js"></script>
</head>
<body>
<div id="container">
<div id="header"><?php echo $header; ?></div>
<div id="breadcrumb">
<?php foreach ($breadcrumbs as $breadcrumb) { ?>
<?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
<?php } ?>
</div>
<div id="column_left">
Дальше панель управления проигрыванием:
Код:
<div id=jquery_jplayer></div>
<div id=player_container>
<ul id=player_controls><li id=player_play><a title=play onclick="$('#jquery_jplayer').play(); return false;" href="#"><span>play</span></a></li><li id=player_pause><a title=pause onclick="$('#jquery_jplayer').pause(); return false;" href="#"><span>pause</span></a></li><li id=player_stop><a title=stop onclick="$('#jquery_jplayer').stop(); return false;" href="#"><span>stop</span></a></li><span></ul></div>
<div id=player_container>
<ul id=player_controls><li id=player_play><a title=play onclick="$('#jquery_jplayer').play(); return false;" href="#"><span>play</span></a></li><li id=player_pause><a title=pause onclick="$('#jquery_jplayer').pause(); return false;" href="#"><span>pause</span></a></li><li id=player_stop><a title=stop onclick="$('#jquery_jplayer').stop(); return false;" href="#"><span>stop</span></a></li><span></ul></div>
Код:
<?php foreach ($modules as $module) { ?>
<?php if ($module['position'] == 'left') { ?>
<?php echo ${$module['code']}; ?>
<?php } ?>
<?php } ?>
</div>
<div id="column_right">
<?php foreach ($modules as $module) { ?>
<?php if ($module['position'] == 'right') { ?>
<?php echo ${$module['code']}; ?>
<?php } ?>
<?php } ?>
</div>
<div id="content"><?php echo $content; ?></div>
<div id="footer"><?php echo $footer; ?></div>
</div>
</body>
</html>
<?php if ($module['position'] == 'left') { ?>
<?php echo ${$module['code']}; ?>
<?php } ?>
<?php } ?>
</div>
<div id="column_right">
<?php foreach ($modules as $module) { ?>
<?php if ($module['position'] == 'right') { ?>
<?php echo ${$module['code']}; ?>
<?php } ?>
<?php } ?>
</div>
<div id="content"><?php echo $content; ?></div>
<div id="footer"><?php echo $footer; ?></div>
</div>
</body>
</html>