From 0af82d9e53248c7411fd47c0051ce5c136249e5f Mon Sep 17 00:00:00 2001 From: IMRAN HASSAN Date: Tue, 15 Apr 2014 14:39:20 +0000 Subject: [PATCH] Home page Updated.over view front side updated: --- upload/includes/classes/photos.class.php | 4 +++- upload/photos.php | 8 +++++--- upload/styles/cb_2014/layout/photos.html | 8 +++++--- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/upload/includes/classes/photos.class.php b/upload/includes/classes/photos.class.php index fc770662..be7da3ed 100644 --- a/upload/includes/classes/photos.class.php +++ b/upload/includes/classes/photos.class.php @@ -576,6 +576,7 @@ class CBPhotos $query .= $order; $query .= $limit; + $result = select( $query ); } @@ -664,7 +665,8 @@ class CBPhotos $cond .= " AND "; $cond .= $p['extra_cond']; } - $result = $db->count(tbl("photos"),"photo_id",$cond); + + $result = $db->count(table("photos"),"photo_id",$cond); } #pr( $query, true ); diff --git a/upload/photos.php b/upload/photos.php index 81bd8e19..8f590321 100644 --- a/upload/photos.php +++ b/upload/photos.php @@ -68,12 +68,14 @@ Assign('collections', $collections); //Collecting Data for Pagination $ccount = $cond; $ccount['count_only'] = true; -echo $total_rows = get_photos($ccount); -exit; +$total_rows = get_photos($ccount); $total_pages = count_pages($total_rows,MAINPLIST); //Pagination -$pages->paginate($total_pages,$page); +$link==NULL; +$extra_params=NULL; +$tag='
  • #page#
  • '; +$pages->paginate($total_pages,$page,$link,$extra_params,$tag); subtitle(lang('photos')); //Displaying The Template diff --git a/upload/styles/cb_2014/layout/photos.html b/upload/styles/cb_2014/layout/photos.html index 86446ff5..277fa858 100644 --- a/upload/styles/cb_2014/layout/photos.html +++ b/upload/styles/cb_2014/layout/photos.html @@ -99,15 +99,17 @@
    {lang code='no_results_found'}
    {/section} -
    - {include file="$style_dir/blocks/pagination.html"} -
    +
    {*AD place='ad_160x600'*}
    +
    + {include file="$style_dir/blocks/pagination.html"} +
    +