| 1 |
<?php if (!defined('ABSPATH')) exit; // Exit if accessed directly ?> |
| 2 |
|
| 3 |
<?php |
| 4 |
/** |
| 5 |
* |
| 6 |
* @var string $portal_url |
| 7 |
* @var string $logo |
| 8 |
* @var string $white_logo |
| 9 |
* @var string $logo_permalink |
| 10 |
* @var string $site_title |
| 11 |
* @var string $profile_url |
| 12 |
* @var array | null $auth |
| 13 |
* @var string $auth_url |
| 14 |
* @var array $menuItems |
| 15 |
* @var array $profileLinks |
| 16 |
* @var bool $has_color_scheme |
| 17 |
* @var string $context |
| 18 |
**/ |
| 19 |
?> |
| 20 |
<div class="fcom_top_menu"> |
| 21 |
<div class="top_menu_left"> |
| 22 |
<div class="space_opener"> |
| 23 |
<button aria-label="<?php echo esc_attr__('Open Menu', 'fluent-community'); ?>" class="fcom_space_opener_btn" aria-disabled="false" aria-expanded="false" type="button"> |
| 24 |
<span> |
| 25 |
<i class="el-icon"> |
| 26 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="20" height="20" fill="currentColor"> |
| 27 |
<path d="M1 2.75A.75.75 0 0 1 1.75 2h12.5a.75.75 0 0 1 0 1.5H1.75A.75.75 0 0 1 1 2.75Zm0 5A.75.75 0 0 1 1.75 7h12.5a.75.75 0 0 1 0 1.5H1.75A.75.75 0 0 1 1 7.75ZM1 12.75a.75.75 0 0 1 .75-.75h12.5a.75.75 0 0 1 0 1.5H1.75a.75.75 0 0 1-.75-.75Z"/> |
| 28 |
</svg> |
| 29 |
</i> |
| 30 |
</span> |
| 31 |
</button> |
| 32 |
</div> |
| 33 |
<div id="fcom_before_logo"></div> |
| 34 |
<?php do_action('fluent_community/before_header_logo', $auth); ?> |
| 35 |
<div class="fhr_logo"> |
| 36 |
<a class="fcom_route" href="<?php echo esc_url($logo_permalink); ?>"> |
| 37 |
<?php if ($logo): ?> |
| 38 |
<img class="show_on_light" src="<?php echo esc_url($logo); ?>" alt="<?php echo esc_attr($site_title); ?>"/> |
| 39 |
<img class="show_on_dark" src="<?php echo esc_url($white_logo); ?>" alt="<?php echo esc_attr($site_title); ?>"/> |
| 40 |
<?php else: ?> |
| 41 |
<span><?php echo esc_html($site_title); ?></span> |
| 42 |
<?php endif; ?> |
| 43 |
</a> |
| 44 |
</div> |
| 45 |
<?php do_action('fluent_community/after_header_logo', $auth); ?> |
| 46 |
</div> |
| 47 |
<div class="top_menu_center fcom_desktop_only fcom_general_menu"> |
| 48 |
<?php if ($menuItems): ?> |
| 49 |
<nav> |
| 50 |
<ul aria-label="<?php echo esc_attr__('Main menu', 'fluent-community'); ?>" class="fcom_header_menu top_menu_items"> |
| 51 |
<?php \FluentCommunity\App\Services\Helper::renderMenuItems($menuItems, 'fcom_menu_link'); ?> |
| 52 |
</ul> |
| 53 |
</nav> |
| 54 |
<?php endif; ?> |
| 55 |
<?php do_action('fluent_community/after_header_menu', $context); ?> |
| 56 |
</div> |
| 57 |
<div class="top_menu_right"> |
| 58 |
<?php do_action('fluent_community/top_menu_right_items', $context); ?> |
| 59 |
</div> |
| 60 |
</div> |
| 61 |
|