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:
Fahad Abbas 2014-12-09 07:51:24 +00:00
parent afb074f213
commit d13e64990b
5 changed files with 21 additions and 2 deletions

View file

@ -36,6 +36,7 @@ if(isset($_POST['update'])){
'logo_placement',
'use_playlist',
'youtube_enabled',
'enlarge_button',
'embed_player_height',
'embed_player_width','autoplay_embed','pseudostreaming','pak_license','pakplayer_contextmsg'
);

View file

@ -87,6 +87,18 @@
</select>
</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 class="row">
<div class="col-md-4">

View file

@ -222,6 +222,7 @@ INSERT INTO `{tbl_prefix}config` (`configid`, `name`, `value`) VALUES
(222, 'own_collection_rating', '1'),
(223, 'own_video_rating', '1'),
(224, 'vbrate_hd', '500000'),
(225, 'enlarge_button', 'no'),
(NULL,'feedsSection','yes'),
(NULL,'max_topic_length','1500'),
(NULL,'max_topic_title','300');

View file

@ -25,6 +25,7 @@ function flashPlayer($param)
$width = $param['width'] ? $param['width'] : config('player_width');
$param['height'] = $height;
$param['width'] = $width ;
$param['enlarge_button'] = config('enlarge_button');
//dump($code);
if(!$param['autoplay'])

View file

@ -54,6 +54,8 @@ if(!function_exists('html5_player'))
assign('youtube',true);
assign('ytcode',$ytcode);
}
if(!strstr($in['width'],"%"))
$in['width'] = $in['width'].'px';
@ -88,13 +90,15 @@ if(!function_exists('html5_player'))
$l_convert = base64_encode(file_get_contents($l_details));
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');
else
assign('enlarge_small','false');
assign('about',BASEURL);
assign('about',BASEURL);
$jquery = BASEDIR.'/js/jquery.js';
assign('jquery',$jquery);