aboutsummaryrefslogtreecommitdiff
path: root/mod/ecml/views/default/ecml/keywords/redlasso.php
blob: e36a4a92a7e842507b293bf284c6f7fe444fe9e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
/**
 * ECML Red Lasso support
 *
 * @package ECML
 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
 * @author Curverider Ltd
 * @copyright Curverider Ltd 2008-2010
 * @link http://elgg.org/
 */

$vid = (isset($vars['id'])) ? $vars['id'] : FALSE;
$width = (isset($vars['width'])) ? $vars['width'] : 390;
$height = (isset($vars['height'])) ? $vars['height'] : 320;

if ($vid) {
	echo "
<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\"$width\" height=\"$height\" id=\"Redlasso\">
	<param name=\"movie\" value=\"http://player.redlasso.com/redlasso_player_b1b_deploy.swf\" />
	<param name=\"flashvars\" value=\"embedId=$vid&pid=\" />
	<param name=\"allowScriptAccess\" value=\"always\" />
	<param name=\"allowFullScreen\" value=\"true\" />
	<embed src=\"http://player.redlasso.com/redlasso_player_b1b_deploy.swf\" flashvars=\"embedId=$vid&pid=\" width=\"$width\" height=\"$height\" type=\"application/x-shockwave-flash\" allowScriptAccess=\"always\" allowFullScreen=\"true\" name=\"Redlasso\">
	</embed>
</object>
";
}