diff options
| author | danix <danix@danix.xyz> | 2018-07-04 17:41:51 +0200 |
|---|---|---|
| committer | danix <danix@danix.xyz> | 2018-07-04 17:41:51 +0200 |
| commit | e8ea87943791cd08759880c3243316c8bd34983e (patch) | |
| tree | 8b7eb0b5686ac02147f864eedf31ad6b9678d09f /inc/dnxasi_helper.php | |
| download | danixland-author-signature-e8ea87943791cd08759880c3243316c8bd34983e.tar.gz danixland-author-signature-e8ea87943791cd08759880c3243316c8bd34983e.zip | |
initial commit
Diffstat (limited to 'inc/dnxasi_helper.php')
| -rw-r--r-- | inc/dnxasi_helper.php | 25 |
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 |
