Ejemplo n.º 1
0
     */
    public static function get_comment_pages_count($comments)
    {
        static $count = null;
        if ($count === null) {
            $count = get_comment_pages_count($comments, theme_cache::get_option('comments_per_page'), theme_cache::get_option('thread_comments'));
        }
        return $count;
    }
    /**
     * Get all cat ID by children cat id
     *
     * @param int $cat_id Current children cat id
     * @param array &$all_cat_id All cats id
     * @return 
     * @version 1.0.0
     */
    public static function get_all_cats_by_child($cat_id, array &$all_cat_id)
    {
        $cat = theme_cache::get_category($cat_id);
        if (!$cat) {
            return false;
        }
        $all_cat_id[] = $cat_id;
        if ($cat->parent != 0) {
            return self::get_all_cats_by_child(get_category($cat->parent)->term_id, $all_cat_id);
        }
    }
}
theme_features::init();