CB_player Added:

This commit is contained in:
IMRAN HASSAN 2014-04-15 13:29:18 +00:00
parent b1daa837d7
commit f3f2908527
4 changed files with 21 additions and 15 deletions

View file

@ -619,6 +619,7 @@ class CBvideo extends CBCategory
*/
function get_videos($params)
{
global $db;
$limit = $params['limit'];
$order = $params['order'];
@ -774,6 +775,7 @@ class CBvideo extends CBCategory
//FEATURED
if($params['featured'])
{
//exit($params['featured']);
if($cond!='')
$cond .= ' AND ';
$cond .= " ".("video.featured")." = '".$params['featured']."' ";

View file

@ -1,5 +1,5 @@
{if $display_type == ""}
{$photo|print_r}
<div class="show-image">
<div class="col-md-4 col-sm-4 col-xs-6" style="padding-right: 0px">
<span class="photoname" id="avatar1_file" >{$photo.photo_title|truncate:15}</span>

View file

@ -2565,7 +2565,7 @@ a:hover {
color: #FFFFFF;
display: none;
font-family: cursive;
font-size: 15px;
font-size: 17px;
height: 41px;
left: 19px;
opacity: 0.8;
@ -2573,7 +2573,7 @@ a:hover {
padding-top: 10px;
position: absolute;
top: 129px;
width: 93.7%;
width: 93.9%;
}
.like {
@ -2811,17 +2811,18 @@ a:hover {
.UserPhotos {
background-color: #000000;
color: #ffffff;
color: #FFFFFF;
display: none;
font-family: cursive;
font-size: 13px;
padding-left: 8px;
font-size: 17px;
height: 41px;
left: 18px;
opacity: 0.8;
padding-left: 8px;
padding-top: 7px;
position: absolute;
top: 129px;
left: 21px;
width: 286px;
height: 41px;
display: none;
width: 94%;
}
.VphotoMargin {

View file

@ -33,7 +33,7 @@ if($cbcollection->is_viewable($c))
case "v":
{
$items = $cbvideo->collection->get_collection_items_with_details($c,$order,$get_limit);
//$count = $cbvideo->collection->get_collection_items_with_details($c,NULL,NULL,TRUE);
$count = $cbvideo->collection->get_collection_items_with_details($c,NULL,NULL,TRUE);
}
break;
@ -42,7 +42,7 @@ if($cbcollection->is_viewable($c))
case "p":
{
$items = $cbphoto->collection->get_collection_items_with_details($c,$order,$get_limit);
//$count = $cbphoto->collection->get_collection_items_with_details($c,NULL,NULL,TRUE);
$count = $cbphoto->collection->get_collection_items_with_details($c,NULL,NULL,TRUE);
}
break;
}
@ -50,10 +50,13 @@ if($cbcollection->is_viewable($c))
// Calling nesscary function for view collection
call_view_collection_functions($cdetails[0]);
$total_pages = count_pages($count,COLLIP);
//Pagination
$pages->paginate($total_pages,$page);
//$pages->paginate($total_pages,$page);
$link==NULL;
$extra_params=NULL;
$tag='<li><a #params#>#page#</a><li>';
$pages->paginate($total_pages,$page,$link,$extra_params,$tag);
assign('objects',$items);
assign("c",$cdetails);
assign("type",$type);