Skip to content

Instantly share code, notes, and snippets.

@c01nd01r
Created April 15, 2014 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save c01nd01r/10742133 to your computer and use it in GitHub Desktop.
Save c01nd01r/10742133 to your computer and use it in GitHub Desktop.
Next and prev page. ImageCMS
if (!function_exists('next_page'))
{
function next_page($page_id)
{
$data = get_page($page_id+1);
if ($data) {
return $data;
} else {
return false;
}
}
}
if (!function_exists('prev_page'))
{
function prev_page($page_id)
{
$data = get_page($page_id-1);
if ($data) {
return $data;
} else {
return false;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment