304 lines
11 KiB
HTML
304 lines
11 KiB
HTML
![]() |
{if $mode =='show_settings'}
|
||
|
<h2>ClipBucket Website Player Settings</h2>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label for="pak_license">
|
||
|
Pakplayer license<br>
|
||
|
<small>If you have pakplayer license, please enter it here</small>
|
||
|
</label>
|
||
|
<input class="form-control" type="text" name="pak_license" id="pak_license" value="{$row.pak_license}" />
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label for="">
|
||
|
Autoplay<br>
|
||
|
<small>if yes, all videos will be played automatically</small>
|
||
|
</label>
|
||
|
|
||
|
<label for="" class="radio">
|
||
|
<input type="radio" name="autoplay_video" value="yes" id="autoplay_video_0" {if $row.autoplay_video=='yes'} checked="checked"{/if} />Yes
|
||
|
</label>
|
||
|
<label for="" class="radio">
|
||
|
<input type="radio" name="autoplay_video" value="no" id="autoplay_video_1" {if $row.autoplay_video=='no'} checked="checked"{/if} />No
|
||
|
</label>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label for="use_playlist">
|
||
|
Use Playlist<br>
|
||
|
<small>By turning this on, player will turn on playlists feature in player (if available)</small>
|
||
|
</label>
|
||
|
<label class="radio">
|
||
|
<input type="radio" name="use_playlist" value="yes" id="use_playlist" {if $row.use_playlist=='yes'} checked="checked"{/if} />Yes
|
||
|
</label>
|
||
|
<label class="radio">
|
||
|
<input type="radio" name="use_playlist" value="no" id="use_playlist" {if $row.use_playlist=='no'} checked="checked"{/if} />
|
||
|
No
|
||
|
</label>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label for="logo_file">
|
||
|
Logo File<br>
|
||
|
<small>
|
||
|
Logo file that will display on your flash player
|
||
|
</small>
|
||
|
</label>
|
||
|
<input type="file" name="logo_file" id="logo_file" />
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label for="logo_placement">
|
||
|
Logo Placement<br>
|
||
|
Placement of logo, top, left , right or bottom
|
||
|
</label>
|
||
|
<select class="form-control" name="logo_placement" id="logo_placement">
|
||
|
<option value="tl" {if $row.logo_placement=='tl'} selected="selected"{/if}>Top Left</option>
|
||
|
<option value="tr" {if $row.logo_placement=='tr'} selected="selected"{/if}>Top Right</option>
|
||
|
<option value="br" {if $row.logo_placement=='br'} selected="selected"{/if}>Bottom Right</option>
|
||
|
<option value="bl" {if $row.logo_placement=='bl'} selected="selected"{/if}>Bottom Left</option>
|
||
|
</select>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label for="logo_padding">Logo padding</label>
|
||
|
<input class="form-control" type="text" id="logo_padding" name="logo_padding" value="{$row.logo_padding}" />
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label for="buffer_time">Buffer time</label>
|
||
|
<input class="form-control" type="text" name="buffer_time" id="buffer_time" value="{$row.buffer_time}" />
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label for="youtube_enabled">
|
||
|
Play Youtube Video Inside Player<br>
|
||
|
<small>this will let you play youtube videos in your player</small>
|
||
|
</label>
|
||
|
<label class="radio">
|
||
|
<input type="radio" name="youtube_enabled" value="yes" id="youtube_enabled" {if $row.youtube_enabled=='yes'} checked="checked"{/if} />
|
||
|
Yes
|
||
|
</label>
|
||
|
<label class="radio">
|
||
|
<input type="radio" name="youtube_enabled" value="no" id="youtube_enabled" {if $row.youtube_enabled=='no'} checked="checked"{/if} />
|
||
|
No
|
||
|
</label>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label for="embed_player_width">
|
||
|
Embed Player Width<br>
|
||
|
<small>Enter embedable player width in pixels</small>
|
||
|
</label>
|
||
|
<input class="form-control" name="embed_player_width" type="text" id="embed_player_width" value="{$row.embed_player_width}" />
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label for="textfield">
|
||
|
Embed Player Height<br>
|
||
|
<small>Enter embedable player width in pixels</small>
|
||
|
</label>
|
||
|
<input class="form-control" name="embed_player_height" type="text" id="textfield" value="{$row.embed_player_height}" />
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label for="autoplay_embed0">
|
||
|
Autoplay Embed<br>
|
||
|
<small>Autoplay embeded video by default</small>
|
||
|
</label>
|
||
|
<label class="radio">
|
||
|
<input type="radio" name="autoplay_embed" value="yes" id="autoplay_embed0" {if $row.autoplay_embed=='yes'} checked="checked"{/if} />Yes
|
||
|
</label class="radio">
|
||
|
<label>
|
||
|
<input type="radio" name="autoplay_embed" value="no" id="autoplay_embed1" {if $row.autoplay_embed=='no'} checked="checked"{/if} />No
|
||
|
</label>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label for="pseudostreaming_0">
|
||
|
Use PseudoStreaming<br>
|
||
|
<small>Let users to play video from anywhere, requires h264 streaming module from webserver</small>
|
||
|
</label>
|
||
|
<label class="radio">
|
||
|
<input type="radio" name="pseudostreaming" value="yes" id="pseudostreaming_0"{if $row.pseudostreaming=='yes'} checked="checked"{/if} />Yes
|
||
|
</label class="radio">
|
||
|
<label>
|
||
|
<input type="radio" name="pseudostreaming" value="no" id="pseudostreaming_1" {if $row.pseudostreaming=='no'} checked="checked"{/if} />No
|
||
|
</label>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label for="pakplayer_contextmsg">
|
||
|
Pakplayer Context Menu<br>
|
||
|
<small>Write what you want to display when user right clicks on pakplayer (only if have pak player license)</small>
|
||
|
</label>
|
||
|
<input class="form-control" type="text" name="pakplayer_contextmsg" id="pakplayer_contextmsg" value="{$row.pakplayer_contextmsg}" />
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<input type="submit" class="btn btn-primary" value="Update" name="update" />
|
||
|
</div>
|
||
|
|
||
|
<div>
|
||
|
|
||
|
|
||
|
|
||
|
<p>In order to change player size, resize the box given below..</p>
|
||
|
<div onclick="toggle_search('website_player');" style="cursor:pointer">
|
||
|
Main Website Player Size -
|
||
|
<a href="#"> click here to main website player</a>
|
||
|
</div>
|
||
|
|
||
|
<div class="demo" style="{if $smarty.cookies.website_player_search!='show'}display:none{/if}" id="website_player">
|
||
|
<div id="msg_box"></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>
|
||
|
|
||
|
|
||
|
<div onclick="toggle_search('channel_player');" style="cursor:pointer">
|
||
|
Channel Player Settings Size -
|
||
|
<a href="#">click here to edit channel player settings</a>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div class="demo" style="{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; margin:auto">
|
||
|
<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>
|
||
|
|
||
|
{literal}
|
||
|
|
||
|
<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}
|
||
|
|
||
|
|
||
|
{else}
|
||
|
|
||
|
<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)}
|
||
|
|
||
|
|
||
|
<div class="row well">
|
||
|
<div class="col-md-3">
|
||
|
<img src="{$cbplayer->get_preview_thumb($curplayer.folder)}" class="img-thumbnail" >
|
||
|
</div>
|
||
|
<div class="col-md-9">
|
||
|
<h2>{$curplayer.name}</h2>
|
||
|
<em>
|
||
|
<a href="{$curplayer.author_page}"><strong>{$curplayer.author}</strong></a>
|
||
|
</em>
|
||
|
<p>{$curplayer.description}</p>
|
||
|
<p>Version : {$curplayer.version}, Released on {$curplayer.released|date_format}</p>
|
||
|
<p>Website : <a href="{$curplayer.website}">{$curplayer.website}</a></p>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<h2>Available Players</h2>
|
||
|
<div>
|
||
|
{* 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="row well">
|
||
|
<div class="col-md-3">
|
||
|
<img src="{$cbplayer->get_preview_thumb($player.folder)}" class="img-thumbnail" >
|
||
|
</div>
|
||
|
<div class="col-md-9">
|
||
|
<h2>{$curplayer.name}</h2>
|
||
|
<em>
|
||
|
<a href="{$player.author_page}"><strong>{$player.author}</strong></a>
|
||
|
</em>
|
||
|
<p>{$player.description}</p>
|
||
|
<p>Version : {$player.version}, Released on {$player.released|date_format}</p>
|
||
|
<p>Website : <a href="{$player.website}">{$player.website}</a></p>
|
||
|
<p><a href="manage_players.php?set=yes&folder={$player.folder}&file={$player.file}">Activate This Player</a></p>
|
||
|
</div>
|
||
|
</div>
|
||
|
{/if}
|
||
|
{/foreach}
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
{/if}
|