Number of pagination links

By default there are 3 links shown before and 3 after the current page. For example when you are on 6th page of your 20 page gallery, pagination will show links to 3rd, 4th, 5th and 7th, 8th and 9th page. To change the number of pagination links set the $dsg_pagination_num_links variable.

  $dsg_pagination_per_page = 12; // number of images per page (it enables pagination)
  $dsg_pagination_num_links = 5; // show 5 pagination links before and after current page
<?php include 'dsg.php'; ?>
<?php echo $dsg_pagination_nav; // output pagination links ?>