summaryrefslogtreecommitdiffstats
path: root/inc/dnxasi_helper.php
blob: b87e773247366196225c365d3d7d95ad9147f61c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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;
}