<div class="post-header">
	<?php Forumax_Forum()::forum_topics_open_close(); ?>
    <?php
    if ( is_singular('forum') ) : ?>
        <div class="support-category-menus">
            <ul class="category-menu forumax-sort-lists">
                <li>
                    <div class="frmx-dropdown">
                        <button class="frmx-dropdown-toggle UserList" type="button" id="dropdownMenuAuthor" aria-haspopup="true" aria-expanded="false">
                            <?php esc_html_e( 'Author', 'forumax' );?>
                        </button>
                        <div class="frmx-dropdown-menu" aria-labelledby="dropdownMenuAuthor">
                            <h3 class="title"><?php esc_html_e( 'Filter by author', 'forumax' );?></h3>
                            <form action="#" class="cate-search-form">
                                <input type="text" placeholder="<?php esc_attr_e('Search users', 'forumax'); ?>" id="search_field" >
                            </form>
                            <div class="all-users" id="UserList">
                                <?php Forumax_Forum()::forum_topics_authors();?>
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="frmx-dropdown">
                        <button class="frmx-dropdown-toggle tagLista" type="button" id="dropdownMenuLabel" aria-haspopup="true" aria-expanded="false">
                            <?php esc_html_e( 'Label', 'forumax' );?>
                        </button>
                        <div class="frmx-dropdown-menu" aria-labelledby="dropdownMenuLabel">
                            <h3 class="title"><?php esc_html_e( 'Filter by label', 'forumax' );?></h3>
                            <form action="#" class="cate-search-form">
                                <input type="text" placeholder="<?php esc_attr_e('Search label', 'forumax'); ?>" id="search_fields">
                            </form>
                            <div class="all-users" id="tagList">
                                <?php Forumax_Forum()::forum_topics_tags();?>
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="frmx-dropdown">
                        <button class="frmx-dropdown-toggle" type="button" id="dropdownMenuButton" aria-haspopup="true" aria-expanded="false">
                            <?php esc_html_e( 'Sort', 'forumax' );?>
                        </button>
                        <div class="frmx-dropdown-menu" aria-labelledby="dropdownMenuButton">
                            <h3 class="title"><?php esc_html_e( 'Sort by', 'forumax' );?></h3>
                            <div class="short-by">
                                <a class="frmx-dropdown-item sort-by newest_posts" href="#newest_posts" data-sort="newest_posts" data-parent="<?php echo get_queried_object_id(); ?>">
                                    <?php esc_html_e( 'Newest', 'forumax' ); ?>
                                </a>
                                <a class="frmx-dropdown-item sort-by" href="#oldest_posts" data-sort="oldest_posts" data-parent="<?php echo get_queried_object_id(); ?>">
                                    <?php esc_html_e( 'Oldest', 'forumax' ); ?> </a>
                                <a class="frmx-dropdown-item sort-by" href="#comment_count" data-sort="comment_count" data-parent="<?php echo get_queried_object_id(); ?>">
                                    <?php esc_html_e( 'Most commented', 'forumax' ); ?>
                                </a>
                                <a class="frmx-dropdown-item sort-by" href="#comment_date" data-sort="comment_date" data-parent="<?php echo get_queried_object_id(); ?>">
                                    <?php esc_html_e( 'Least commented', 'forumax' ); ?>
                                </a>
                                <a class="frmx-dropdown-item sort-by" href="#recent_updated_post" data-sort="recent_updated_post" data-parent="<?php echo get_queried_object_id(); ?>">
                                    <?php esc_html_e( 'Recently updated', 'forumax' ); ?>
                                </a>
                                <a class="frmx-dropdown-item sort-by" href="#last_recent_updated_post" data-sort="last_recent_updated_post" data-parent="<?php echo get_queried_object_id(); ?>">
                                    <?php esc_html_e( 'Least recently updated', 'forumax' );?>
                                </a>
                            </div>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
        <!-- /.support-category-menus -->
        <?php
    endif;
    ?>
</div>