PluginProbe
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses / 1.1.0
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses v1.1.0
2.11.0 2.10.0 2.10.01 2.9.1 2.9.0 2.8.1 2.8.0 2.7.7 2.7.5 2.7.0 2.6.01 2.6.0 2.5.0 2.4.01 trunk 1.0.90 1.0.91 1.0.92 1.0.93 1.0.94 1.0.95 1.0.96 1.0.97 1.0.98 1.0.99 All 78 releases
fluent-community / app / Views / portal / header.php

header.php in FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses 1.1.0, at app/Views/portal/header.php

80 lines 4.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if (!defined('ABSPATH')) exit; // Exit if accessed directly ?>
2
3 <?php
4
5 use FluentCommunity\Framework\Support\Arr;
6
7 $renderIcon = \FluentCommunity\App\Functions\Utility::isCustomizationEnabled('icon_on_header_menu');
8
9 /**
10 *
11 * @var string $portal_url
12 * @var string $logo
13 * @var string $white_logo
14 * @var string $site_title
15 * @var string $profile_url
16 * @var array | null $auth
17 * @var string $auth_url
18 * @var array $menuItems
19 * @var array $profileLinks
20 * @var bool $has_color_scheme
21 **/
22 ?>
23 <div class="fcom_top_menu">
24 <div class="top_menu_left">
25 <div class="space_opener">
26 <button aria-label="Open Menu" class="fcom_space_opener_btn" style="background-color: transparent; cursor: pointer; border: 0 solid transparent;color: #5d5e61;" aria-disabled="false" type="button">
27 <span>
28 <i class="el-icon">
29 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="48" height="48"
30 color="currentColor" fill="none">
31 <path fill-rule="evenodd" clip-rule="evenodd"
32 d="M3 4.5C3 3.94772 3.44772 3.5 4 3.5L20 3.5C20.5523 3.5 21 3.94772 21 4.5C21 5.05229 20.5523 5.5 20 5.5L4 5.5C3.44772 5.5 3 5.05228 3 4.5Z"
33 fill="currentColor"/>
34 <path fill-rule="evenodd" clip-rule="evenodd"
35 d="M3 14.5C3 13.9477 3.44772 13.5 4 13.5L20 13.5C20.5523 13.5 21 13.9477 21 14.5C21 15.0523 20.5523 15.5 20 15.5L4 15.5C3.44772 15.5 3 15.0523 3 14.5Z"
36 fill="currentColor"/>
37 <path fill-rule="evenodd" clip-rule="evenodd"
38 d="M3 9.5C3 8.94772 3.44772 8.5 4 8.5L20 8.5C20.5523 8.5 21 8.94772 21 9.5C21 10.0523 20.5523 10.5 20 10.5L4 10.5C3.44772 10.5 3 10.0523 3 9.5Z"
39 fill="currentColor"/>
40 <path fill-rule="evenodd" clip-rule="evenodd"
41 d="M3 19.5C3 18.9477 3.44772 18.5 4 18.5L20 18.5C20.5523 18.5 21 18.9477 21 19.5C21 20.0523 20.5523 20.5 20 20.5L4 20.5C3.44772 20.5 3 20.0523 3 19.5Z"
42 fill="currentColor"/>
43 </svg>
44 </i>
45 </span>
46 </button>
47 </div>
48 <div id="fcom_before_logo"></div>
49 <?php do_action('fluent_community/before_header_logo', $auth); ?>
50 <div class="fhr_logo">
51 <a class="fcom_route" href="<?php echo esc_url(\FluentCommunity\App\Services\Helper::baseUrl('/')); ?>">
52 <?php if ($logo): ?>
53 <img class="show_on_light" src="<?php echo esc_url($logo); ?>" alt="<?php echo esc_attr($site_title); ?>"/>
54 <img class="show_on_dark" src="<?php echo esc_url($white_logo); ?>" alt="<?php echo esc_attr($site_title); ?>"/>
55 <?php else: ?>
56 <span><?php echo esc_html($site_title); ?></span>
57 <?php endif; ?>
58 </a>
59 </div>
60 <?php do_action('fluent_community/after_header_logo', $auth); ?>
61 </div>
62 <div class="top_menu_center fcom_desktop_only fcom_general_menu">
63 <?php if ($menuItems): ?>
64 <nav>
65 <ul aria-label="Main menu" class="fcom_header_menu top_menu_items">
66 <?php foreach ($menuItems as $itemKey => $item): ?>
67 <li class="<?php echo esc_attr('fcom_menu_item_' . $itemKey); ?>">
68 <?php \FluentCommunity\App\Services\Helper::renderLink($item, 'fcom_menu_link', null, $renderIcon); ?>
69 </li>
70 <?php endforeach; ?>
71 </ul>
72 </nav>
73 <?php endif; ?>
74 <?php do_action('fluent_community/after_header_menu'); ?>
75 </div>
76 <div class="top_menu_right">
77 <?php do_action('fluent_community/top_menu_right_items'); ?>
78 </div>
79 </div>
80