feat(forum): add complete forum workflows
This commit is contained in:
1 parent
a254cbd3e9
commit
ee65fc7fd2
39 files changed
+3425
-4
No files matched your search
+10
@@ -131,6 +131,16 @@ if (is_active_sidebar('all_top_fluid') || is_active_sidebar('search_top_fluid'))
|
||||
echo jio_get_ajax_next_paginate($search_total, $user_page, 12, $user_next_url, 'text-center theme-pagination ajax-pag', 'next-page ajax-next'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||
}
|
||||
?>
|
||||
<?php elseif ($search_type === 'forum' && $wp_query->have_posts()) : ?>
|
||||
<div id="forum" class="jio-forum"><div class="jio-forum__list">
|
||||
<?php while ($wp_query->have_posts()) : $wp_query->the_post(); \Jio\Forum\View::post_card(get_post()); endwhile; wp_reset_postdata(); ?>
|
||||
</div></div>
|
||||
<?php jio_render_pagination($wp_query); ?>
|
||||
<?php elseif ($search_type === 'plate' && $wp_query->have_posts()) : ?>
|
||||
<div id="forum" class="jio-forum"><div class="jio-forum__plates">
|
||||
<?php while ($wp_query->have_posts()) : $wp_query->the_post(); \Jio\Forum\View::plate_card(get_post()); endwhile; wp_reset_postdata(); ?>
|
||||
</div></div>
|
||||
<?php jio_render_pagination($wp_query); ?>
|
||||
<?php elseif ($search_type === 'post' && $wp_query->have_posts()) : ?>
|
||||
<?php
|
||||
$config = function_exists('jio_archive_get_render_config') ? jio_archive_get_render_config(['context' => 'search', 'highlight_query' => $search_query, 'no_margin' => false]) : ['context' => 'search', 'mode' => 'list'];
|
||||
|
||||
Reference in new issue
Block a user