GBPage::isCurrent PHP Method

isCurrent() public method

public isCurrent ( )
    function isCurrent()
    {
        if (!gb::$is_page) {
            return false;
        }
        $url = gb::url();
        return strcasecmp(rtrim(substr($url->path, strlen(gb::$site_path . gb::$index_prefix . gb::$pages_prefix)), '/'), $this->slug) === 0;
    }