Highly customizable functions to get and / or display a pagination menu, without using a plugin.