refactor: remove forum and topic feature chains
This commit is contained in:
1 parent
698e3750f9
commit
6c6c462df8
69 files changed
+339
-2057
No files matched your search
@@ -592,13 +592,6 @@ if (!function_exists('aksrt_renderer_badges')) {
|
||||
}
|
||||
}
|
||||
|
||||
$topics = taxonomy_exists('topics') ? wp_get_post_terms((int) $data['post_id'], 'topics') : [];
|
||||
if (!is_wp_error($topics) && !empty($topics)) {
|
||||
foreach (array_slice($topics, 0, 2) as $topic) {
|
||||
$items[] = '<a href="' . esc_url(get_term_link($topic)) . '" class="but"><i class="fas fa-cube" aria-hidden="true"></i> ' . esc_html($topic->name) . '</a>';
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($data['is_resource'])) {
|
||||
$items[] = '<span class="but jb-vip">VIP</span>';
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user