<?php
// Exit if accessed directly
if( ! defined( 'ABSPATH' ) ) exit;
?>

	<?php do_action( 'wpforo_top_hook' ); ?>

	<?php if( wpforo_setting( 'components', 'top_bar' ) ): ?>
        <div id="wpforo-menu">
			<?php do_action( 'wpforo_menu_bar_start' ); ?>
            <div class="wpf-left" style="display:table-cell">
				<?php if( WPF()->tpl->has_menu() ): ?>
                    <span class="wpf-res-menu"><i class="fas fa-bars"></i></span>
					<?php WPF()->tpl->nav_menu() ?>
				<?php endif; ?>
				<?php do_action( 'wpforo_after_menu_items' ); ?>
            </div>
            <div class="wpf-bar-right wpf-search">
				<?php do_action( 'wpforo_before_search_toggle' ); ?>
				<?php if( wpforo_setting( 'components', 'top_bar_search' ) ): ?>
                    <div class="wpf-search-form">
                        <form action="<?php echo wpforo_home_url() ?>" method="get">
							<?php wpforo_make_hidden_fields_from_url( wpforo_home_url() ) ?>
                            <i class="fas fa-search"></i><input class="wpf-search-field" name="wpfs" type="text" value="" style="margin-right:10px;"/>
                        </form>
                    </div>
				<?php endif; ?>
            </div>
			<?php do_action( 'wpforo_menu_bar_end' ); ?>
        </div>
	<?php endif; ?>
    <div class="wpforo-subtop">
		<?php if( wpforo_setting( 'components', 'breadcrumb' ) ): ?>
			<?php WPF()->tpl->breadcrumb( WPF()->current_object ) ?>
		<?php endif; ?>
		<?php wpforo_share_buttons( 'top' ); ?>
        <div class="wpf-clear"></div>
		<?php if( wpforo_setting( 'notifications', 'notifications' ) ): ?>
			<?php wpforo_notifications() ?>
		<?php endif; ?>
    </div>
	<?php do_action( 'wpforo_header_hook' ); ?>
