Commit | Line | Data |
---|---|---|
e8ea8794 | 1 | <?php |
2 | /** | |
3 | * Helper functions for danixland-author-signature | |
4 | */ | |
5 | ||
6 | ||
7 | /** | |
8 | * Returns true if current post is paginated aka is split into pages using the <!--nextpage--> tag | |
9 | */ | |
10 | function dnxasi_is_post_paginated() { | |
11 | global $multipage; | |
12 | ||
13 | if ( 0 !== $multipage) | |
14 | return true; | |
15 | } | |
16 | ||
17 | /** | |
18 | * Returns the number of pages in a paginated post | |
19 | */ | |
20 | function dnxasi_post_last_page() { | |
21 | global $pages; | |
22 | $countpages = count($pages); | |
23 | ||
24 | return $countpages; | |
25 | } |