Default pagination configuration

Standard Dead Simple Gallery script call with pagination:

<?php
  $dsg_pagination_per_page = 12;
?>
<ul class="imageList">
  <?php include 'dsg.php'; ?>
</ul>
<?php echo $dsg_pagination_nav; ?>

Is equal to the one below, written with default configuration parameters. They both produce the same output.

<?php
  // Default value for $dsg_pagination_per_page is NULL, but if set to NULL the pagination will be disabled
  $dsg_pagination_per_page = 12;
  // Number of pagination links on each side of current page in the navigation
  $dsg_pagination_num_links = 3;
  // URL parameter for storing current page number, e.g. index.php?dsg_page=3
  $dsg_pagination_parameter = 'dsg_page';

  // Main pagination pattern variable that allows to control overall pagination structure
  $dsg_pagination_pattern = '<nav><ul class="pagination">{FIRST_ITEM}{PREV_ITEM}{PAGE_ITEMS}{NEXT_ITEM}{LAST_ITEM}</ul></nav>';

  // Pagination pattern for link pointing to first gallery page
  $dsg_first_page_pattern = '<li class="first"><a href="{PAGE_URL}" title="First page">First</a></li>{NEWLINE}';
  // Pagination pattern for disabled nav item pointing to first gallery page
  $dsg_first_page_disabled_pattern = '<li class="first disabled"><span>First</span></li>{NEWLINE}';
  // Pagination pattern for link pointing to previous gallery page
  $dsg_prev_page_pattern = '<li class="prev"><a href="{PAGE_URL}" title="Previous page">Previous</a></li>{NEWLINE}';
  // Pagination pattern for disabled nav item pointing to previous gallery page
  $dsg_prev_page_disabled_pattern = '<li class="prev disabled"><span>Previous</span></li>{NEWLINE}';
  // Pagination pattern for links with page numbers
  $dsg_page_pattern = '<li><a href="{PAGE_URL}" title="Page {PAGE_NUMBER}">{PAGE_NUMBER}</a></li>{NEWLINE}';
  // Pagination pattern for currently selected gallery page
  $dsg_current_page_pattern = '<li class="active"><span>{PAGE_NUMBER}</span></li>{NEWLINE}';
  // Pagination pattern for link pointing to next gallery page
  $dsg_next_page_pattern = '<li class="next"><a href="{PAGE_URL}" title="Next page">Next</a></li>{NEWLINE}';
  // Pagination pattern for disabled nav item pointing to next gallery page
  $dsg_next_page_disabled_pattern = '<li class="next disabled"><span>Next</span></li>{NEWLINE}';
  // Pagination pattern for link pointing to last gallery page
  $dsg_last_page_pattern = '<li class="last"><a href="{PAGE_URL}" title="Last page">Last</a></li>{NEWLINE}';
  // Pagination pattern for disabled nav item pointing to last gallery page
  $dsg_last_page_disabled_pattern = '<li class="last disabled"><span>Last</span></li>{NEWLINE}';
  // Variable for spacer pattern, spacer is displayed when some pages are hidden, e.g.: previous [1] [2] [3] … next
  $dsg_pagination_spacer_pattern = '<li class="spacer disabled"><span>&hellip;</span></li>{NEWLINE}';
?>
<ul class="imageList">
  <?php include 'dsg.php'; ?>
</ul>
<?php echo $dsg_pagination_nav; ?>

See also

Customizing pagination HTML