
ADDED : Auto Play Option Added : Youtube Referal URL option Added : PHPInfo in admin panel ADDED : New Manage Player page Added : Rows option in ClipBucket Form Object Fixed : Embed Code Empty on Updat..
164 lines
No EOL
7.2 KiB
HTML
164 lines
No EOL
7.2 KiB
HTML
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
|
|
<tr>
|
|
<td align="left" class="settings_inner_title"><div onclick="toggle_search('player_size')" style="cursor:pointer">ClipBucket Website Player Settings -<span style="font-size:11px; color:#06c"> click here to edit setting</span></div></td>
|
|
<td width="20" align="right" > </td>
|
|
</tr>
|
|
</table>
|
|
<div style="width:100%; margin:auto{if $smarty.cookies.show_player_size_search!='show'};display:none{/if}" id="player_size">
|
|
<form name="player_settings" action="manage_players.php" method="post">
|
|
<fieldset class="fieldset" style="border:none">
|
|
<table width="100%" border="0" cellpadding="2" cellspacing="0" class="block">
|
|
<tr>
|
|
<td width="200" valign="top"><label for="autoplay_video">Autoplay</label></td>
|
|
<td valign="top">
|
|
<label>
|
|
<input type="radio" name="autoplay_video" value="yes" id="autoplay_video_0" {if $row.autoplay_video=='yes'} checked="checked"{/if} />
|
|
Yes</label>
|
|
<label><input type="radio" name="autoplay_video" value="no" id="autoplay_video_1" {if $row.autoplay_video=='no'} checked="checked"{/if} />
|
|
No</label></td>
|
|
</tr>
|
|
</table>
|
|
<div align="left"><input type="submit" class="button" value="Update" name="update" /></div>
|
|
</fieldset>
|
|
|
|
</form>{literal}
|
|
<style type="text/css">
|
|
|
|
#resizable-channel,#resizable{{/literal}background-image:url({$imageurl}/play_icon.png); background-repeat:no-repeat; background-position:center{literal}}
|
|
|
|
</style>
|
|
<script type="text/javascript">
|
|
function update_player_size(width,height,normal_player,channel_player)
|
|
{
|
|
var page = baseurl+'/actions/update_configs.php';
|
|
$.post(page,
|
|
{
|
|
width : width,
|
|
height : height,
|
|
update_player_size : normal_player,
|
|
update_channel_player_size:channel_player
|
|
},
|
|
function(data)
|
|
{
|
|
if(!data)
|
|
alert("No data");
|
|
else
|
|
$("#msg_box").html('<div style="width:300px; padding:5px; text-align:center; background-color:#0099cc; border-radius:5px; -moz-border-radius:5px; color:#fff">'+data+'</div>');
|
|
},'text');
|
|
|
|
}
|
|
|
|
$(function() {
|
|
$("#resizable").resizable({
|
|
maxHeight: 800,
|
|
maxWidth: 800,
|
|
minHeight: 100,
|
|
minWidth: 100,
|
|
grid: 10,
|
|
resize:function(event,ui){$("#width").val(ui.size.width);$("#height").val(ui.size.height);},
|
|
stop:function(event,ui){update_player_size(ui.size.width,ui.size.height,'yes','')}
|
|
});
|
|
|
|
$("#width").change(function () {$('#resizable').css("width",this.value+'px') ; update_player_size(this.value,$("#height").val(),'yes','') });
|
|
$("#height").change(function () {$('#resizable').css("height",this.value+'px'); update_player_size($("#width").val(),this.value,'yes','') });
|
|
});
|
|
|
|
|
|
$(function() {
|
|
$("#resizable-channel").resizable({
|
|
maxHeight: 800,
|
|
maxWidth: 800,
|
|
minHeight: 100,
|
|
minWidth: 100,
|
|
grid: 10,
|
|
resize:function(event,ui){$("#channel_width").val(ui.size.width);$("#channel_height").val(ui.size.height);},
|
|
stop:function(event,ui){update_player_size(ui.size.width,ui.size.height,'','yes')}
|
|
});
|
|
|
|
$("#channel_width").change(function () {$('#resizable-channel').css("width",this.value+'px') ; update_player_size(this.value,$("#channel_height").val(),'','yes') });
|
|
$("#channel_height").change(function () {$('#resizable-channel').css("height",this.value+'px'); update_player_size($("#channel_width").val(),this.value,'','yes') });
|
|
});
|
|
</script>
|
|
{/literal}
|
|
|
|
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
|
|
<tr>
|
|
<td align="left" class="settings_inner_title"><div onclick="toggle_search('website_player');" style="cursor:pointer">Main Website Player -<span style="font-size:11px; color:#06c"> click here to main website player</span></div></td>
|
|
<td width="20" align="right" > </td>
|
|
</tr>
|
|
</table>
|
|
|
|
<div class="demo" style="width:100%; margin:auto{if $smarty.cookies.website_player_search!='show'};display:none{/if}" id="website_player">
|
|
<div id="msg_box" style="margin:5px;"></div>
|
|
|
|
<div id="resizable" class="ui-widget-content" style="width:{$Cbucket->configs.player_width}px; height:{$Cbucket->configs.player_height}px">
|
|
<h3 class="ui-widget-header">Original Size of your Main Website Player</h3>
|
|
</div>
|
|
<div class="player_dims"><label for="width">Width</label>
|
|
<input type="text" name="width" id="width" value="{$Cbucket->configs.player_width}" />
|
|
<label for="height">Height</label>
|
|
<input type="text" name="height" id="height" value="{$Cbucket->configs.player_height}" />
|
|
</div></div>
|
|
|
|
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
|
|
<tr>
|
|
<td align="left" class="settings_inner_title"><div onclick="toggle_search('channel_player');" style="cursor:pointer">Channel Player Settings -<span style="font-size:11px; color:#06c"> click here to edit channel player settings</span></div></td>
|
|
<td width="20" align="right" > </td>
|
|
</tr>
|
|
</table>
|
|
<div class="demo" style="width:100%; margin:auto{if $smarty.cookies.channel_player_search!='show'};display:none{/if}" id="channel_player">
|
|
|
|
<div id="resizable-channel" class="ui-widget-content" style="width:{$Cbucket->configs.channel_player_width}px; height:{$Cbucket->configs.channel_player_height}px">
|
|
<h3 class="ui-widget-header">Original Size of your Main Website Player</h3>
|
|
</div>
|
|
<div class="player_dims"><label for="width">Width</label>
|
|
<input type="text" name="width" id="channel_width" value="{$Cbucket->configs.channel_player_width}" />
|
|
<label for="height">Height</label>
|
|
<input type="text" name="height" id="channel_height" value="{$Cbucket->configs.channel_player_height}" />
|
|
</div></div>
|
|
|
|
</div>
|
|
|
|
|
|
<div style="height:35px"></div>
|
|
|
|
<h2>Selected Player</h2>
|
|
<div>
|
|
{assign var="player_dir" value=$Cbucket->configs.player_dir}
|
|
{assign var="player_file" value=$Cbucket->configs.player_file}
|
|
|
|
{assign var="curplayer" value=$cbplayer->getPlayerDetails($player_file,$player_dir)}
|
|
<table width="800" border="0" cellspacing="0" cellpadding="0">
|
|
<tr>
|
|
<td width="190"><img src="{$cbplayer->get_preview_thumb($curplayer.folder)}" class="preview_thumb" ></td>
|
|
<td valign="top"><h2 style="display:inline">{$curplayer.name}</h2> — <em><a href="{$curplayer.author_page}"><strong>{$curplayer.author}</strong></a></em><br />
|
|
{$curplayer.description}<br />
|
|
Version : {$curplayer.version} Released on {$curplayer.released|date_format}<br />
|
|
Website : <a href="{$curplayer.website}">{$curplayer.website}</a></td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
</div>
|
|
|
|
<hr size="1" noshade />
|
|
<h2>Available Players</h2>
|
|
|
|
{* Listing All Avilable Players *}
|
|
|
|
{assign var='players' value=$cbplayer->get_players()}
|
|
|
|
<div class="templates_container">
|
|
{foreach from=$players item=player}
|
|
{if $player_file !=$player.file && $player_dir != $player.folder}
|
|
|
|
<div class="template_box" align="center">
|
|
<img src="{$cbplayer->get_preview_thumb($player.folder)}" class="preview_thumb" >
|
|
<div align="center" style="" class="tpl_title">
|
|
{$player.name} <br /><em>by <strong><a href="{$player.author_page}">{$player.author}</a></strong></em><br />
|
|
<a href="manage_players.php?set=yes&folder={$player.folder}&file={$player.file}">Activate This Player</a><br />
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
{/foreach}
|
|
</div> |