Esempio n. 1
0
         Purpose:
         Template for the current page link
     
         Options:
         - Any valid chunk name
         - Code via @CODE
         - File via @FILE
     
         Placeholders:
         page - number of the page
         
         Related:
         - <tplPaginatePrevious>
         - <paginateSplitterCharacter>
     */
     $ditto->paginate($start, $stop, $total, $display, $tplPaginateNext, $tplPaginatePrevious, $tplPaginateNextOff, $tplPaginatePreviousOff, $tplPaginatePage, $tplPaginateCurrentPage, $paginateAlwaysShowLinks, $paginateSplitterCharacter, $max_paginate, $max_previous);
     // generate the pagination placeholders
 }
 $dbFields = $ditto->fields["display"]["db"];
 // get the database fields
 $TVs = $ditto->fields["display"]["tv"];
 // get the TVs
 switch ($orderBy['parsed'][0][1]) {
     case "DESC":
         $stop = $ditto->prefetch === false ? $stop + $start + $offset : $stop + $offset;
         $start += $offset;
         break;
     case "ASC":
         $start += $offset;
         $stop += $start;
         break;