summaryrefslogtreecommitdiffstats
path: root/inc/dnxasi_helper.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/dnxasi_helper.php')
-rw-r--r--inc/dnxasi_helper.php25
1 files changed, 25 insertions, 0 deletions
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 @@
+<?php
+/**
+ * Helper functions for danixland-author-signature
+ */
+
+
+/**
+ * Returns true if current post is paginated aka is split into pages using the <!--nextpage--> 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