From e8ea87943791cd08759880c3243316c8bd34983e Mon Sep 17 00:00:00 2001 From: danix Date: Wed, 4 Jul 2018 17:41:51 +0200 Subject: initial commit --- inc/dnxasi_helper.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 inc/dnxasi_helper.php (limited to 'inc/dnxasi_helper.php') diff --git a/inc/dnxasi_helper.php b/inc/dnxasi_helper.php new file mode 100644 index 0000000..b87e773 --- /dev/null +++ b/inc/dnxasi_helper.php @@ -0,0 +1,25 @@ + tag + */ +function dnxasi_is_post_paginated() { + global $multipage; + + if ( 0 !== $multipage) + return true; +} + +/** + * Returns the number of pages in a paginated post + */ +function dnxasi_post_last_page() { + global $pages; + $countpages = count($pages); + + return $countpages; +} \ No newline at end of file -- cgit v1.2.3