public $title;
public $slug;
public $date;
+ public $is_page;
public $is_draft;
public $data;
public $html_content;
$this->title = $dict['post_title'];
$this->slug = $dict['post_slug'];
$this->date = $dict['post_date'];
+ $this->is_page = $dict['post_is_page'];
$this->is_draft = $dict['post_is_draft'];
$this->data = $dict['post_data'];
$this->html_content = cx_markdown_generate_html($this->data);
FROM posts
WHERE post_is_page == TRUE
AND post_is_draft == FALSE
- ORDER BY post_creation_time DESC;';
+ ORDER BY post_creation_time ASC;';
foreach (cx_db_query($sql) as $post) {
$p = new Post($post);