protected function fetchSidebarWidgets()
    {
        $this->data['widget'] = new stdClass();

        if (appSetting('sidebar_latest_posts', 'blog-' . $this->oBlog->id)) {

            $this->data['widget']->latest_posts = $this->blog_widget_model->latestPosts($this->oBlog->id);
        }

        if (appSetting('sidebar_categories', 'blog-' . $this->oBlog->id)) {

            $this->data['widget']->categories = $this->blog_widget_model->categories($this->oBlog->id);
        }

        if (appSetting('sidebar_tags', 'blog-' . $this->oBlog->id)) {

            $this->data['widget']->tags = $this->blog_widget_model->tags($this->oBlog->id);
        }

        if (appSetting('sidebar_popular_posts', 'blog-' . $this->oBlog->id)) {

            $this->data['widget']->popular_posts = $this->blog_widget_model->popularPosts($this->oBlog->id);
        }
    }