| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
 | <header class="main-header"><!-- Logo -->
 <a href="<?= admin_url() ?>" class="logo">
 <!-- mini logo for sidebar mini 50x50 pixels -->
 <span class="logo-mini"><b><?= $site_info['name_' . get_wlang()] ?></b></span>
 <!-- logo for regular state and mobile devices -->
 <span class="logo-lg"><b><?= $site_info['name_' . get_wlang()] ?></b></span> </a>
 <!-- Header Navbar: style can be found in header.less -->
 <nav class="navbar navbar-static-top">
 <!-- Sidebar toggle button-->
 <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span>
 <span class="icon-bar"></span> <span class="icon-bar"></span> </a>
 
 <div class="navbar-custom-menu">
 <ul class="nav navbar-nav">
 
 <!-- Notifications: style can be found in dropdown.less -->
 <li class="dropdown notifications-menu">
 <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="fa fa-bell-o"></i> <span class="label label-warning">1</span> </a>
 <ul class="dropdown-menu">
 <li class="header">You have 1 notifications</li>
 <li>
 <!-- inner menu: contains the actual data -->
 <ul class="menu">
 <li>
 <a href="#"> <i class="fa fa-users text-aqua"></i> 5 new members joined today </a>
 </li>
 </ul>
 </li>
 <li class="footer"><a href="#">View all</a></li>
 </ul>
 </li>
 
 <?php if ($this->config->item('backend_multiple_language')) { ?>
 <li class="dropdown notifications-menu language_dropdown">
 <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="fa fa-language"></i> </a>
 <ul class="dropdown-menu" style="width: 100px;">
 <li>
 <!-- inner menu: contains the actual data -->
 <ul class="menu">
 <?php
 foreach (config_item('backend_lang_list') as $language => $name) {
 switch ($language) {
 case 'en':
 echo '<li class="' . ($language == get_wlang() ? 'active' : '') . '"><a href="' . str_replace('/' . get_wlang(), '/' . $language, current_url()) . '">' . __('English') . '</a></li>';
 break;
 
 case 'tc':
 echo '<li class="' . ($language == get_wlang() ? 'active' : '') . '"><a href="' . str_replace('/' . get_wlang(), '/' . $language, current_url()) . '">' . __('Traditional Chinese') . '</a></li>';
 break;
 
 case 'sc':
 echo '<li class="' . ($language == get_wlang() ? 'active' : '') . '"><a href="' . str_replace('/' . get_wlang(), '/' . $language, current_url()) . '">' . __('Simplified Chinese') . '</a></li>';
 break;
 }
 }
 ?>
 </ul>
 </li>
 </ul>
 </li>
 <?php } ?>
 
 <!-- User Account: style can be found in dropdown.less -->
 <li class="dropdown user user-menu">
 <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="fa fa-user" aria-hidden="true" style="font-size: 1em;"></i>
 <span class="hidden-xs"><?= $_SESSION['login_name'] ?></span> </a>
 <ul class="dropdown-menu">
 <!-- Menu Footer-->
 <li class="user-footer">
 <div class="pull-left">
 <a href="<?= admin_url('bk_admin/profile') ?>" class="btn btn-default btn-flat"><?= __('Profile') ?></a>
 </div>
 <div class="pull-right">
 <a href="<?= admin_url('bk_admin/logout') ?>" class="btn btn-default btn-flat"><?= __('Sign Out') ?></a>
 </div>
 </li>
 </ul>
 </li>
 </ul>
 </div>
 </nav>
 </header>
 |