/** * Get blog's category ordering value in case of root categories, parent Chapter subcat ordering otherwise * * @return string parent subcat ordering */ function get_parent_subcat_ordering() { if (empty($this->parent_ID)) { // Return the default blog setting $this->load_Blog(); return $this->Blog->get_setting('category_ordering'); } $this->get_parent_Chapter(); return $this->parent_Chapter->get_subcat_ordering(); }