- ',
- 'after_terms_list' => '
', - 'thumbnails_size' => 'tainacan-medium', - 'hide_term_thumbnail_placeholder' => false, - 'hide_term_description' => false, - 'trim_description_words' => 20 - )); - echo $taxonomy_terms_list['content']; - - $current_args = \Tainacan\Theme_Helper::get_instance()->get_taxonomies_query_args(); - $current_total_terms = $taxonomy_terms_list['total_terms']; - $current_first_term_index = max(($current_args['termspaged'] - 1) * $current_args['perpage'] + 1, 1); - $current_last_term_index = min($current_args['termspaged'] * $current_args['perpage'], $current_total_terms); - - ?> -
- ',
+ 'after_terms_list' => '
', + 'after_term_name' => '
', + 'thumbnails_size' => 'tainacan-medium', + 'hide_term_thumbnail_placeholder' => false, + 'hide_term_empty_name' => false, + 'trim_description_words' => 20 + )); + echo $taxonomy_terms_list['content']; + + $current_args = \Tainacan\Theme_Helper::get_instance()->get_taxonomies_query_args(); + $current_total_terms = $taxonomy_terms_list['total_terms']; + $current_first_term_index = max(($current_args['termspaged'] - 1) * $current_args['perpage'] + 1, 1); + $current_last_term_index = min($current_args['termspaged'] * $current_args['perpage'], $current_total_terms); + + // Terms pagination + tainacan_pagination_terms($current_total_terms); + } ?> + + + + \ No newline at end of file diff --git a/src/template-parts/loop-tainacan-terms-table.php b/src/template-parts/loop-tainacan-terms-table.php new file mode 100644 index 0000000..d351882 --- /dev/null +++ b/src/template-parts/loop-tainacan-terms-table.php @@ -0,0 +1,55 @@ + + + '+ | ' . __( 'Name', 'tainacan-interface' ) . ' | +' . __( 'Description', 'tainacan-interface' ) . ' | +' . __( 'Children', 'tainacan-interface' ) . ' | +' . __( 'Items', 'tainacan-interface' ) . ' | +
---|
- ',
+ 'after_terms_list' => '
', + 'thumbnails_size' => 'tainacan-medium', + 'hide_term_thumbnail_placeholder' => false, + 'hide_term_description' => false, + 'hide_term_empty_name' => false, + 'trim_description_words' => 20 + )); + echo $taxonomy_terms_list['content']; + + $current_args = \Tainacan\Theme_Helper::get_instance()->get_taxonomies_query_args(); + $current_total_terms = $taxonomy_terms_list['total_terms']; + $current_first_term_index = max(($current_args['termspaged'] - 1) * $current_args['perpage'] + 1, 1); + $current_last_term_index = min($current_args['termspaged'] * $current_args['perpage'], $current_total_terms); + + // Terms pagination + tainacan_pagination_terms($current_total_terms); + } ?> + + + + \ No newline at end of file