Airship\Cabin\Bridge\Landing\Blog::listPosts PHP Method

listPosts() public method

List the blog posts
public listPosts ( string $page = null )
$page string
    public function listPosts($page = null)
    {
        list($offset, $limit) = $this->getOffsetAndLimit($page);
        $this->lens('blog/posts', ['active_link' => 'bridge-link-blog-posts', 'blog_posts' => $this->blog->listPosts($this->isSuperUser(), $offset, $limit), 'pagination' => ['base' => $this->airship_cabin_prefix . '/blog/post', 'suffix' => '/', 'count' => $this->blog->numPosts(), 'page' => (int) \ceil($offset / ($limit ?? 1)) + 1, 'per_page' => $limit]]);
    }