function audioplayerJs()
{
    $self = HQ_URL . "site/media/audio-player/";
    $playerUrl = $self . "player.swf";
    echo requireJs("swfobject.js", true);
    echo requireJs($self . "audio-player.js");
    // Options - Edit these!
    $js = <<<JS
\t\t\t<script type="text/javascript">  
\t\t\t\tAudioPlayer.setup("{$playerUrl}",
\t\t\t\t{  
\t\t\t\t\twidth: 290,
\t\t\t\t\tbg: 'ffffff',
\t\t\t\t\tleftbg: 'eeeeee',
\t\t\t\t\tlefticon: '333333',
\t\t\t\t\tvoltrack: 'f2f2f2',
\t\t\t\t\tvolslider: '666666',
\t\t\t\t\trightbg: 'b4b4b4b',
\t\t\t\t\trightbghover: '999999',
\t\t\t\t\trighticon: '333333',
\t\t\t\t\trighticonhover: 'ffffff',
\t\t\t\t\tloader: '009900',
\t\t\t\t\ttrack: 'ffffff',
\t\t\t\t\ttracker: 'dddddd',
\t\t\t\t\tborder: 'cccccc',
\t\t\t\t\tskip: '666666',
\t\t\t\t\ttext: '333333',
\t\t\t\t}); 
\t\t\t</script>
JS;
    echo $js;
}
function mediaplayerJs()
{
    $playerUrl = HQ_URL . "site/media/media-player/player.swf";
    echo requireJs("jquery.js", true);
    echo requireJs("swfobject.js", true);
    echo requireJs("jquery.media.js", true);
    $js = <<<JS
\t\t\t<script type="text/javascript" charset="utf-8">
\t\t\t\tjQuery( function(\$) {
\t\t\t\t\t\$.fn.media.defaults.flvPlayer = '{$playerUrl}';
\t\t\t\t});
\t\t\t</script>
JS;
    echo $js;
}
Exemple #3
0
<!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" xml:lang="en" lang="en">
	<head>
		<title><?php 
echo siteTitle();
?>
</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
		<?php 
echo requireJs("jquery.js", true);
echo requireJs(THEME_URL . "js/actions.js");
call_anchor("css_frontend");
call_anchor("js_frontend");
?>
	</head>
	<body>
		<div id="site">
			<div id="header">
				<h1 id="title">
					<a href="<?php 
echo linkToSite();
?>
"><?php 
echo siteTitle();
?>
</a>
				</h1>
				<div id="menu">
					<?php 
echo pageList();
?>
function popJs()
{
    $self = SYSTEM_URL . "plugins/displayers/pop/";
    echo requireJs("jquery.js", true);
    echo requireJs($self . "pop.js");
}
Exemple #5
0
<!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" xml:lang="en" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
		<title><?php 
echo siteTitle();
?>
</title>
		<?php 
call_anchor("css_frontend");
// Include jQuery and jQuery Cycle if we are on the homepage
if (is_index()) {
    echo requireJs("jquery.js", true);
    echo requireJs(SYSTEM_URL . "plugins/displayers/slideshow/jquery.cycle.js");
}
echo requireJs(themeUrl() . "js/actions.js");
call_anchor("js_frontend");
?>
	</head>
	<body>
		<div id="wrapper">
			<div id="header">
				<div id="title">
					<a href="<?php 
echo linkToSite();
?>
"><h1><?php 
echo siteTitle();
?>
</h1></a>
				</div>
function slideshowJs()
{
    $self = SYSTEM_URL . "plugins/displayers/slideshow/";
    echo requireJs("jquery.js", true);
    echo requireJs($self . "jquery.cycle.js");
}