manage_players.php : added 'enlarge_button' in update configs array
manage_players.html : added 'enlarge_button' form configs.sql : added 'enlarge_button' in configs list 'no' by default functions_player.php : added enlarge button parameter in flashplayer function html5_player.php : added enlarge button option
This commit is contained in:
parent
afb074f213
commit
d13e64990b
5 changed files with 21 additions and 2 deletions
|
@ -36,6 +36,7 @@ if(isset($_POST['update'])){
|
||||||
'logo_placement',
|
'logo_placement',
|
||||||
'use_playlist',
|
'use_playlist',
|
||||||
'youtube_enabled',
|
'youtube_enabled',
|
||||||
|
'enlarge_button',
|
||||||
'embed_player_height',
|
'embed_player_height',
|
||||||
'embed_player_width','autoplay_embed','pseudostreaming','pak_license','pakplayer_contextmsg'
|
'embed_player_width','autoplay_embed','pseudostreaming','pak_license','pakplayer_contextmsg'
|
||||||
);
|
);
|
||||||
|
|
|
@ -87,6 +87,18 @@
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-4">
|
||||||
|
<label for="enlarge_button">
|
||||||
|
Enlarge/small Button<br>
|
||||||
|
<small>this will let you enable enlarge/small button in your player</small>
|
||||||
|
</label>
|
||||||
|
<select class="form-control" name="enlarge_button" id="enlarge_button">
|
||||||
|
<option value="yes" {if $row.enlarge_button=='yes'} selected="selected" {/if}>Yes</option>
|
||||||
|
<option value="no" {if $row.enlarge_button=='no'} selected="selected" {/if}>No</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
|
|
|
@ -222,6 +222,7 @@ INSERT INTO `{tbl_prefix}config` (`configid`, `name`, `value`) VALUES
|
||||||
(222, 'own_collection_rating', '1'),
|
(222, 'own_collection_rating', '1'),
|
||||||
(223, 'own_video_rating', '1'),
|
(223, 'own_video_rating', '1'),
|
||||||
(224, 'vbrate_hd', '500000'),
|
(224, 'vbrate_hd', '500000'),
|
||||||
|
(225, 'enlarge_button', 'no'),
|
||||||
(NULL,'feedsSection','yes'),
|
(NULL,'feedsSection','yes'),
|
||||||
(NULL,'max_topic_length','1500'),
|
(NULL,'max_topic_length','1500'),
|
||||||
(NULL,'max_topic_title','300');
|
(NULL,'max_topic_title','300');
|
||||||
|
|
|
@ -25,6 +25,7 @@ function flashPlayer($param)
|
||||||
$width = $param['width'] ? $param['width'] : config('player_width');
|
$width = $param['width'] ? $param['width'] : config('player_width');
|
||||||
$param['height'] = $height;
|
$param['height'] = $height;
|
||||||
$param['width'] = $width ;
|
$param['width'] = $width ;
|
||||||
|
$param['enlarge_button'] = config('enlarge_button');
|
||||||
//dump($code);
|
//dump($code);
|
||||||
|
|
||||||
if(!$param['autoplay'])
|
if(!$param['autoplay'])
|
||||||
|
|
|
@ -54,6 +54,8 @@ if(!function_exists('html5_player'))
|
||||||
assign('youtube',true);
|
assign('youtube',true);
|
||||||
assign('ytcode',$ytcode);
|
assign('ytcode',$ytcode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(!strstr($in['width'],"%"))
|
if(!strstr($in['width'],"%"))
|
||||||
$in['width'] = $in['width'].'px';
|
$in['width'] = $in['width'].'px';
|
||||||
|
@ -88,13 +90,15 @@ if(!function_exists('html5_player'))
|
||||||
$l_convert = base64_encode(file_get_contents($l_details));
|
$l_convert = base64_encode(file_get_contents($l_details));
|
||||||
assign('display',$l_convert);
|
assign('display',$l_convert);
|
||||||
|
|
||||||
if (THIS_PAGE == 'watch_video')
|
//Enable disable enlarge/smaal button
|
||||||
|
$enlarge_button = $in['enlarge_button'];
|
||||||
|
if (THIS_PAGE == 'watch_video' && $enlarge_button == 'yes')
|
||||||
assign('enlarge_small','true');
|
assign('enlarge_small','true');
|
||||||
else
|
else
|
||||||
assign('enlarge_small','false');
|
assign('enlarge_small','false');
|
||||||
|
|
||||||
assign('about',BASEURL);
|
|
||||||
|
|
||||||
|
assign('about',BASEURL);
|
||||||
$jquery = BASEDIR.'/js/jquery.js';
|
$jquery = BASEDIR.'/js/jquery.js';
|
||||||
assign('jquery',$jquery);
|
assign('jquery',$jquery);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue