-
Notifications
You must be signed in to change notification settings - Fork 223
/
layouts-main-menu.html
814 lines (741 loc) · 30.9 KB
/
layouts-main-menu.html
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
<!DOCTYPE html>
<!--[if IE 8]> <html class="ie8"> <![endif]-->
<!--[if IE 9]> <html class="ie9 gt-ie8"> <![endif]-->
<!--[if gt IE 9]><!--> <html class="gt-ie8 gt-ie9 not-ie"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Main Menu - Layouts - PixelAdmin</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<!-- Open Sans font from Google CDN -->
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,400,600,700,300&subset=latin" rel="stylesheet" type="text/css">
<!-- Pixel Admin's stylesheets -->
<link href="assets/stylesheets/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="assets/stylesheets/pixel-admin.min.css" rel="stylesheet" type="text/css">
<link href="assets/stylesheets/widgets.min.css" rel="stylesheet" type="text/css">
<link href="assets/stylesheets/rtl.min.css" rel="stylesheet" type="text/css">
<link href="assets/stylesheets/themes.min.css" rel="stylesheet" type="text/css">
<!--[if lt IE 9]>
<script src="assets/javascripts/ie.min.js"></script>
<![endif]-->
<style>
#mm-howdy {
color: #fff;
}
.theme-clean #mm-howdy,
.theme-white #mm-howdy {
color: #444;
}
</style>
</head>
<!-- 1. $BODY ======================================================================================
Body
Classes:
* 'theme-{THEME NAME}'
* 'right-to-left' - Sets text direction to right-to-left
* 'main-menu-right' - Places the main menu on the right side
* 'no-main-menu' - Hides the main menu
* 'main-navbar-fixed' - Fixes the main navigation
* 'main-menu-fixed' - Fixes the main menu
* 'main-menu-animated' - Animate main menu
-->
<body class="theme-default main-menu-animated">
<script>var init = [];</script>
<!-- Demo script --> <script src="assets/demo/demo.js"></script> <!-- / Demo script -->
<div id="main-wrapper">
<!-- 2. $MAIN_NAVIGATION ===========================================================================
Main navigation
-->
<div id="main-navbar" class="navbar navbar-inverse" role="navigation">
<!-- Main menu toggle -->
<button type="button" id="main-menu-toggle"><i class="navbar-icon fa fa-bars icon"></i><span class="hide-menu-text">HIDE MENU</span></button>
<div class="navbar-inner">
<!-- Main navbar header -->
<div class="navbar-header">
<!-- Logo -->
<a href="index.html" class="navbar-brand">
<div><img alt="Pixel Admin" src="assets/images/pixel-admin/main-navbar-logo.png"></div>
PixelAdmin
</a>
<!-- Main navbar toggle -->
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#main-navbar-collapse"><i class="navbar-icon fa fa-bars"></i></button>
</div> <!-- / .navbar-header -->
<div id="main-navbar-collapse" class="collapse navbar-collapse main-navbar-collapse">
<div>
<ul class="nav navbar-nav">
<li>
<a href="#">Home</a>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown</a>
<ul class="dropdown-menu">
<li><a href="#">First item</a></li>
<li><a href="#">Second item</a></li>
<li class="divider"></li>
<li><a href="#">Third item</a></li>
</ul>
</li>
</ul> <!-- / .navbar-nav -->
<div class="right clearfix">
<ul class="nav navbar-nav pull-right right-navbar-nav">
<!-- 3. $NAVBAR_ICON_BUTTONS =======================================================================
Navbar Icon Buttons
NOTE: .nav-icon-btn triggers a dropdown menu on desktop screens only. On small screens .nav-icon-btn acts like a hyperlink.
Classes:
* 'nav-icon-btn-info'
* 'nav-icon-btn-success'
* 'nav-icon-btn-warning'
* 'nav-icon-btn-danger'
-->
<li class="nav-icon-btn nav-icon-btn-danger dropdown">
<a href="#notifications" class="dropdown-toggle" data-toggle="dropdown">
<span class="label">5</span>
<i class="nav-icon fa fa-bullhorn"></i>
<span class="small-screen-text">Notifications</span>
</a>
<!-- NOTIFICATIONS -->
<!-- Javascript -->
<script>
init.push(function () {
$('#main-navbar-notifications').slimScroll({ height: 250 });
});
</script>
<!-- / Javascript -->
<div class="dropdown-menu widget-notifications no-padding" style="width: 300px">
<div class="notifications-list" id="main-navbar-notifications">
<div class="notification">
<div class="notification-title text-danger">SYSTEM</div>
<div class="notification-description"><strong>Error 500</strong>: Syntax error in index.php at line <strong>461</strong>.</div>
<div class="notification-ago">12h ago</div>
<div class="notification-icon fa fa-hdd-o bg-danger"></div>
</div> <!-- / .notification -->
<div class="notification">
<div class="notification-title text-info">STORE</div>
<div class="notification-description">You have <strong>9</strong> new orders.</div>
<div class="notification-ago">12h ago</div>
<div class="notification-icon fa fa-truck bg-info"></div>
</div> <!-- / .notification -->
<div class="notification">
<div class="notification-title text-default">CRON DAEMON</div>
<div class="notification-description">Job <strong>"Clean DB"</strong> has been completed.</div>
<div class="notification-ago">12h ago</div>
<div class="notification-icon fa fa-clock-o bg-default"></div>
</div> <!-- / .notification -->
<div class="notification">
<div class="notification-title text-success">SYSTEM</div>
<div class="notification-description">Server <strong>up</strong>.</div>
<div class="notification-ago">12h ago</div>
<div class="notification-icon fa fa-hdd-o bg-success"></div>
</div> <!-- / .notification -->
<div class="notification">
<div class="notification-title text-warning">SYSTEM</div>
<div class="notification-description"><strong>Warning</strong>: Processor load <strong>92%</strong>.</div>
<div class="notification-ago">12h ago</div>
<div class="notification-icon fa fa-hdd-o bg-warning"></div>
</div> <!-- / .notification -->
</div> <!-- / .notifications-list -->
<a href="#" class="notifications-link">MORE NOTIFICATIONS</a>
</div> <!-- / .dropdown-menu -->
</li>
<li class="nav-icon-btn nav-icon-btn-success dropdown">
<a href="#messages" class="dropdown-toggle" data-toggle="dropdown">
<span class="label">10</span>
<i class="nav-icon fa fa-envelope"></i>
<span class="small-screen-text">Income messages</span>
</a>
<!-- MESSAGES -->
<!-- Javascript -->
<script>
init.push(function () {
$('#main-navbar-messages').slimScroll({ height: 250 });
});
</script>
<!-- / Javascript -->
<div class="dropdown-menu widget-messages-alt no-padding" style="width: 300px;">
<div class="messages-list" id="main-navbar-messages">
<div class="message">
<img src="assets/demo/avatars/2.jpg" alt="" class="message-avatar">
<a href="#" class="message-subject">Lorem ipsum dolor sit amet, consectetur adipisicing elit.</a>
<div class="message-description">
from <a href="#">Robert Jang</a>
·
2h ago
</div>
</div> <!-- / .message -->
<div class="message">
<img src="assets/demo/avatars/3.jpg" alt="" class="message-avatar">
<a href="#" class="message-subject">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</a>
<div class="message-description">
from <a href="#">Michelle Bortz</a>
·
2h ago
</div>
</div> <!-- / .message -->
<div class="message">
<img src="assets/demo/avatars/4.jpg" alt="" class="message-avatar">
<a href="#" class="message-subject">Lorem ipsum dolor sit amet.</a>
<div class="message-description">
from <a href="#">Timothy Owens</a>
·
2h ago
</div>
</div> <!-- / .message -->
<div class="message">
<img src="assets/demo/avatars/5.jpg" alt="" class="message-avatar">
<a href="#" class="message-subject">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</a>
<div class="message-description">
from <a href="#">Denise Steiner</a>
·
2h ago
</div>
</div> <!-- / .message -->
<div class="message">
<img src="assets/demo/avatars/2.jpg" alt="" class="message-avatar">
<a href="#" class="message-subject">Lorem ipsum dolor sit amet.</a>
<div class="message-description">
from <a href="#">Robert Jang</a>
·
2h ago
</div>
</div> <!-- / .message -->
<div class="message">
<img src="assets/demo/avatars/2.jpg" alt="" class="message-avatar">
<a href="#" class="message-subject">Lorem ipsum dolor sit amet, consectetur adipisicing elit.</a>
<div class="message-description">
from <a href="#">Robert Jang</a>
·
2h ago
</div>
</div> <!-- / .message -->
<div class="message">
<img src="assets/demo/avatars/3.jpg" alt="" class="message-avatar">
<a href="#" class="message-subject">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</a>
<div class="message-description">
from <a href="#">Michelle Bortz</a>
·
2h ago
</div>
</div> <!-- / .message -->
<div class="message">
<img src="assets/demo/avatars/4.jpg" alt="" class="message-avatar">
<a href="#" class="message-subject">Lorem ipsum dolor sit amet.</a>
<div class="message-description">
from <a href="#">Timothy Owens</a>
·
2h ago
</div>
</div> <!-- / .message -->
<div class="message">
<img src="assets/demo/avatars/5.jpg" alt="" class="message-avatar">
<a href="#" class="message-subject">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</a>
<div class="message-description">
from <a href="#">Denise Steiner</a>
·
2h ago
</div>
</div> <!-- / .message -->
<div class="message">
<img src="assets/demo/avatars/2.jpg" alt="" class="message-avatar">
<a href="#" class="message-subject">Lorem ipsum dolor sit amet.</a>
<div class="message-description">
from <a href="#">Robert Jang</a>
·
2h ago
</div>
</div> <!-- / .message -->
</div> <!-- / .messages-list -->
<a href="#" class="messages-link">MORE MESSAGES</a>
</div> <!-- / .dropdown-menu -->
</li>
<!-- /3. $END_NAVBAR_ICON_BUTTONS -->
<li>
<form class="navbar-form pull-left">
<input type="text" class="form-control" placeholder="Search">
</form>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle user-menu" data-toggle="dropdown">
<img src="assets/demo/avatars/1.jpg">
<span>John Doe</span>
</a>
<ul class="dropdown-menu">
<li><a href="#"><span class="label label-warning pull-right">New</span>Profile</a></li>
<li><a href="#"><span class="badge badge-primary pull-right">New</span>Account</a></li>
<li><a href="#"><i class="dropdown-icon fa fa-cog"></i> Settings</a></li>
<li class="divider"></li>
<li><a href="pages-signin.html"><i class="dropdown-icon fa fa-power-off"></i> Log Out</a></li>
</ul>
</li>
</ul> <!-- / .navbar-nav -->
</div> <!-- / .right -->
</div>
</div> <!-- / #main-navbar-collapse -->
</div> <!-- / .navbar-inner -->
</div> <!-- / #main-navbar -->
<!-- /2. $END_MAIN_NAVIGATION -->
<!-- 4. $MAIN_MENU =================================================================================
Main menu
Notes:
* to make the menu item active, add a class 'active' to the <li>
example: <li class="active">...</li>
* multilevel submenu example:
<li class="mm-dropdown">
<a href="#"><span class="mm-text">Submenu item text 1</span></a>
<ul>
<li>...</li>
<li class="mm-dropdown">
<a href="#"><span class="mm-text">Submenu item text 2</span></a>
<ul>
<li>...</li>
...
</ul>
</li>
...
</ul>
</li>
-->
<div id="main-menu" role="navigation">
<div id="main-menu-inner">
<div class="menu-content top" id="menu-content-demo">
<!-- Menu custom content demo
CSS: styles/pixel-admin-less/demo.less or styles/pixel-admin-scss/_demo.scss
Javascript: html/assets/demo/demo.js
-->
<div>
<div class="text-bg"><span class="text-slim">Welcome,</span> <span class="text-semibold">John</span></div>
<img src="assets/demo/avatars/1.jpg" alt="" class="">
<div class="btn-group">
<a href="#" class="btn btn-xs btn-primary btn-outline dark"><i class="fa fa-envelope"></i></a>
<a href="#" class="btn btn-xs btn-primary btn-outline dark"><i class="fa fa-user"></i></a>
<a href="#" class="btn btn-xs btn-primary btn-outline dark"><i class="fa fa-cog"></i></a>
<a href="#" class="btn btn-xs btn-danger btn-outline dark"><i class="fa fa-power-off"></i></a>
</div>
<a href="#" class="close">×</a>
</div>
</div>
<ul class="navigation">
<li>
<a href="index.html"><i class="menu-icon fa fa-dashboard"></i><span class="mm-text">Dashboard</span></a>
</li>
<li class="mm-dropdown">
<a href="#"><i class="menu-icon fa fa-th"></i><span class="mm-text">Layouts</span><span class="label label-warning">Updated</span></a>
<ul>
<li>
<a tabindex="-1" href="layouts-grid.html"><span class="mm-text">Grid</span></a>
</li>
<li>
<a tabindex="-1" href="layouts-main-menu.html"><i class="menu-icon fa fa-th-list"></i><span class="mm-text">Main menu</span><span class="label label-warning">Updated</span></a>
</li>
</ul>
</li>
<li>
<a href="stat-panels.html"><i class="menu-icon fa fa-tasks"></i><span class="mm-text">Stat panels</span></a>
</li>
<li>
<a href="widgets.html"><i class="menu-icon fa fa-flask"></i><span class="mm-text">Widgets</span></a>
</li>
<li class="mm-dropdown">
<a href="#"><i class="menu-icon fa fa-desktop"></i><span class="mm-text">UI elements</span></a>
<ul>
<li>
<a tabindex="-1" href="ui-buttons.html"><span class="mm-text">Buttons</span></a>
</li>
<li>
<a tabindex="-1" href="ui-typography.html"><span class="mm-text">Typography</span></a>
</li>
<li>
<a tabindex="-1" href="ui-tabs.html"><span class="mm-text">Tabs & Accordions</span></a>
</li>
<li>
<a tabindex="-1" href="ui-modals.html"><span class="mm-text">Modals</span></a>
</li>
<li>
<a tabindex="-1" href="ui-alerts.html"><span class="mm-text">Alerts & Tooltips</span></a>
</li>
<li>
<a tabindex="-1" href="ui-components.html"><span class="mm-text">Components</span></a>
</li>
<li>
<a tabindex="-1" href="ui-panels.html"><span class="mm-text">Panels</span></a>
</li>
<li>
<a tabindex="-1" href="ui-jqueryui.html"><span class="mm-text">jQuery UI</span></a>
</li>
<li>
<a tabindex="-1" href="ui-icons.html"><span class="mm-text">Icons</span></a>
</li>
<li>
<a tabindex="-1" href="ui-utility-classes.html"><span class="mm-text">Utility classes</span></a>
</li>
</ul>
</li>
<li class="mm-dropdown">
<a href="#"><i class="menu-icon fa fa-check-square"></i><span class="mm-text">Form components</span></a>
<ul>
<li>
<a tabindex="-1" href="forms-layouts.html"><span class="mm-text">Layouts</span></a>
</li>
<li>
<a tabindex="-1" href="forms-general.html"><span class="mm-text">General</span></a>
</li>
<li>
<a tabindex="-1" href="forms-advanced.html"><span class="mm-text">Advanced</span></a>
</li>
<li>
<a tabindex="-1" href="forms-pickers.html"><span class="mm-text">Pickers</span></a>
</li>
<li>
<a tabindex="-1" href="forms-validation.html"><span class="mm-text">Validation</span></a>
</li>
<li>
<a tabindex="-1" href="forms-editors.html"><span class="mm-text">Editors</span></a>
</li>
</ul>
</li>
<li>
<a href="tables.html"><i class="menu-icon fa fa-table"></i><span class="mm-text">Tables</span></a>
</li>
<li>
<a href="charts.html"><i class="menu-icon fa fa-bar-chart-o"></i><span class="mm-text">Charts</span></a>
</li>
<li class="mm-dropdown">
<a href="#"><i class="menu-icon fa fa-files-o"></i><span class="mm-text">Pages</span><span class="label label-success">16</span></a>
<ul>
<li>
<a tabindex="-1" href="pages-search.html"><span class="mm-text">Search results</span></a>
</li>
<li>
<a tabindex="-1" href="pages-pricing.html"><span class="mm-text">Plans & pricing</span></a>
</li>
<li>
<a tabindex="-1" href="pages-faq.html"><span class="mm-text">FAQ</span></a>
</li>
<li>
<a tabindex="-1" href="pages-profile.html"><span class="mm-text">Profile</span></a>
</li>
<li>
<a tabindex="-1" href="pages-timeline.html"><span class="mm-text">Timeline</span></a>
</li>
<li>
<a tabindex="-1" href="pages-signin.html"><span class="mm-text">Sign In</span></a>
</li>
<li>
<a tabindex="-1" href="pages-signup.html"><span class="mm-text">Sign Up</span></a>
</li>
<li>
<a tabindex="-1" href="pages-signin-alt.html"><span class="mm-text">Sign In Alt</span></a>
</li>
<li>
<a tabindex="-1" href="pages-signup-alt.html"><span class="mm-text">Sign Up Alt</span></a>
</li>
<li>
<a tabindex="-1" href="pages-invoice.html"><span class="mm-text">Invoice</span></a>
</li>
<li>
<a tabindex="-1" href="pages-404.html"><span class="mm-text">Error 404</span></a>
</li>
<li>
<a tabindex="-1" href="pages-500.html"><span class="mm-text">Error 500</span></a>
</li>
<li class="mm-dropdown">
<a href="#"><i class="menu-icon fa fa-envelope"></i><span class="mm-text">Messages</span></a>
<ul>
<li>
<a tabindex="-1" href="pages-inbox.html"><span class="mm-text">Inbox</span></a>
</li>
<li>
<a tabindex="-1" href="pages-show-email.html"><span class="mm-text">Show message</span></a>
</li>
<li>
<a tabindex="-1" href="pages-new-email.html"><span class="mm-text">New message</span></a>
</li>
</ul>
</li>
<li>
<a tabindex="-1" href="pages-blank.html"><span class="mm-text">Blank page</span></a>
</li>
</ul>
</li>
<li>
<a href="complete-ui.html"><i class="menu-icon fa fa-briefcase"></i><span class="mm-text">Complete UI</span></a>
</li>
<li>
<a href="color-builder.html"><i class="menu-icon fa fa-tint"></i><span class="mm-text">Color Builder</span></a>
</li>
<li class="mm-dropdown">
<a href="#"><i class="menu-icon fa fa-sitemap"></i><span class="mm-text">Menu levels</span><span class="badge badge-primary">6</span></a>
<ul>
<li>
<a tabindex="-1" href="#"><span class="mm-text">Menu level 1.1</span><span class="badge badge-danger">12</span><span class="label label-info">21</span></a>
</li>
<li>
<a tabindex="-1" href="#"><span class="mm-text">Menu level 1.2</span></a>
</li>
<li class="mm-dropdown">
<a tabindex="-1" href="#"><span class="mm-text">Menu level 1.3</span><span class="label label-warning">5</span></a>
<ul>
<li>
<a tabindex="-1" href="#"><span class="mm-text">Menu level 2.1</span></a>
</li>
<li class="mm-dropdown">
<a tabindex="-1" href="#"><span class="mm-text">Menu level 2.2</span></a>
<ul>
<li class="mm-dropdown">
<a tabindex="-1" href="#"><span class="mm-text">Menu level 3.1</span></a>
<ul>
<li>
<a tabindex="-1" href="#"><span class="mm-text">Menu level 4.1</span></a>
</li>
</ul>
</li>
<li>
<a tabindex="-1" href="#"><span class="mm-text">Menu level 3.2</span></a>
</li>
</ul>
</li>
<li>
<a tabindex="-1" href="#"><span class="mm-text">Menu level 2.2</span></a>
</li>
</ul>
</li>
</ul>
</li>
</ul> <!-- / .navigation -->
<div class="menu-content">
<a href="pages-invoice.html" class="btn btn-primary btn-block btn-outline dark">Create Invoice</a>
</div>
</div> <!-- / #main-menu-inner -->
</div> <!-- / #main-menu -->
<!-- /4. $MAIN_MENU -->
<div id="content-wrapper">
<div class="page-header">
<h1><span class="text-light-gray">Layouts / </span>Main Menu</h1>
</div> <!-- / .page-header -->
<script>
init.push(function () {
$('#toggle-mme').click(function () {
$('body').toggleClass('mme');
});
$('#toggle-mmc').click(function () {
$('body').toggleClass('mmc');
});
});
</script>
<div class="row">
<div class="col-sm-7">
<div class="panel">
<div class="panel-heading">
<span class="panel-title">Collapsing/Expanding</span>
</div>
<div class="panel-body">
To expand the main menu on small screens, add class <code>.mme</code> to the <code><body></code>. To collapse the main menu on desktops, add class <code>.mmc</code> to the <code><body></code>.
<br><br>
<button class="btn" id="toggle-mme">Toggle .mme class</button>
<button class="btn" id="toggle-mmc">Toggle .mmc class</button>
</div>
</div>
<div class="panel">
<div class="panel-heading">
<span class="panel-title">Menu settings</span>
<div class="panel-heading-controls">
<span class="label label-primary">Updated</span>
</div>
</div>
<div class="panel-body">
You can find the main menu settings in the <code>javascripts/sources/app.coffee</code> file. Customize them by passing options in the <code>PixelAdmin.start</code> method. I would not recommend editing the source files, because you may have trouble with code update in the future.
</div>
<table class="table">
<thead>
<tr>
<th>Option</th>
<th>Default</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>accordion</td>
<td><code>true</code></td>
<td>The main menu acts like an accordion, i.e. when you open a submenu, all other opened submenus will close.</td>
</tr>
<tr>
<td>animation_speed</td>
<td><code>250</code></td>
<td>Animation duration.</td>
</tr>
<tr>
<td>store_state</td>
<td><code>true</code></td>
<td>Store the main menu 'expanded/collapsed' state in the localStorage/cookies.</td>
</tr>
<tr>
<td>store_state_key</td>
<td><code>'mmstate'</code></td>
<td>Key in the localStorage/cookies.</td>
</tr>
<tr>
<td>disable_animation_on</td>
<td><code>['small']</code></td>
<td>Disable animation on specified screen sizes for the perfomance reason. Possible values: 'small', 'tablet', 'desktop'.</td>
</tr>
<tr>
<td>dropdown_close_delay</td>
<td><code>300</code></td>
<td>Dropdown close delay in milliseconds. <strong>Note:</strong> Don't use values smaller than 100.</td>
</tr>
<tr>
<td>detect_active</td>
<td><code>true</code></td>
<td>Detect active item.</td>
</tr>
<tr>
<td>detect_active_predicate</td>
<td><code>function(href, url) {<br> return href === url;<br>}</code></td>
<td>Function that used to find active item by comparing item link and page location. Called for each menu item.<br><strong>href</strong> - item link;<br><strong>url</strong> - page location.</td>
</tr>
</tbody>
</table>
</div>
<div class="panel">
<div class="panel-heading">
<span class="panel-title">Menu API</span>
<div class="panel-heading-controls">
<span class="label label-primary">Updated</span>
</div>
</div>
<div class="panel-body">
Access to the main menu instance: <code>PixelAdmin.plugins.main_menu.METHOD</code>.
</div>
<table class="table">
<thead>
<tr>
<th>Method</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>toggle()</code></td>
<td>
Toggle main menu collapsed/expanded state.
</td>
</tr>
<tr>
<td><code>toggleSubmenu(li)</code></td>
<td>
<div class="label label-warning">MM EXPANDED</div>
Expand/collapse menu item.
</td>
</tr>
<tr>
<td><code>collapseSubmenu(li)</code></td>
<td>
<div class="label label-warning">MM EXPANDED</div>
Collapse main menu item <code>.mm-dropdown</code>.
</td>
</tr>
<tr>
<td><code>expandSubmenu(li)</code></td>
<td>
<div class="label label-warning">MM EXPANDED</div>
Expand main menu item <code>.mm-dropdown</code>.
</td>
</tr>
<tr>
<td><code>collapseAllSubmenus(li)</code></td>
<td>
<div class="label label-warning">MM EXPANDED</div>
Collapse all opened main menu subitems <code>.mm-dropdown</code>.
</td>
</tr>
<tr>
<td><code>openDropdown(li, freeze=false)</code></td>
<td>
<div class="label label-warning">MM COLLAPSED</div>
Open main menu dropdown <code>.mm-dropdown</code>.
</td>
</tr>
<tr>
<td><code>closeCurrentDropdown(force=false)</code></td>
<td>
<div class="label label-warning">MM COLLAPSED</div>
Close opened dropdown <code>.mm-dropdown</code>.
</td>
</tr>
<tr>
<td><code>freezeDropdown(li)</code></td>
<td>
<div class="label label-warning">MM COLLAPSED</div>
Freeze dropdown.
</td>
</tr>
<tr>
<td><code>detectActiveItem()</code></td>
<td>
Detect active item.
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="col-sm-5">
<div class="panel">
<div class="panel-heading">
<span class="panel-title">Menu position</span>
</div>
<div class="panel-body">
By default the main menu places on the left side of the window. To put the menu on the right side, just add class <code>.main-menu-right</code> to the <code><body></code>. You could open demo settings and try it.<br><br>
<div style="background: #f1f1f1;border-radius:3px;overflow: hidden">
<div style="width: 100%;height: 30px;background:#ddd;font-size:10px;font-weight: 600;padding:8px 0 0 10px">PIXELADMIN</div>
<div style="width: 25%;height: 100px;background:#999;" class="pull-right"></div>
</div>
<hr class="panel-wide">
<!-- Radios -->
<h6 class="text-light-gray text-semibold text-xs" style="margin:20px 0 10px 0;">HIDE MAIN MENU</h6>
You can hide the main menu and toggle button by adding class <code>.no-main-menu</code> to the <code><body></code>. You would open demo settings and try it. To completely remove the main menu from your project: <br><br>
<ol>
<li>Open the <span class="bg-success">jscompiler.js</span> file and remove line <code>build/components/main-menu.js</code>;</li>
<li>Open the <span class="bg-success">styles/pixel-admin.less</span> file and remove line <code>@import './pixel-admin-less/main-menu.less';</code></li>
<li>Remove <code>#main-menu</code> markup from your html;</li>
<li>Run <code>node csscompiler.js</code> and <code>node jscompiler.js</code> commands from the console (the compilers are cross platform)</li>
</ol><br>
</div>
</div>
<div class="panel">
<div class="panel-heading">
<span class="panel-title">Menu content</span>
</div>
<div class="panel-body">
You can add custom content blocks to the main menu. To add a top block, just insert <code><div class="menu-content top">Content...</div></code> before <code><div class="navigation">...</div></code>. To add a bottom block insert <code><div class="menu-content">Content...</div></code> after <code><div class="navigation">...</div></code>.
<br><br>
<div style="background: #f1f1f1;border-radius:3px;overflow: hidden;width: 150px;text-align: center;margin: 0 auto;">
<div style="height: 40px;background:#999;line-height: 40px;">.menu-content.top</div>
<div style="height: 100px;line-height: 100px;">.navigation</div>
<div style="height: 40px;background:#999;line-height: 40px;">.menu-content</div>
</div>
</div>
</div>
</div>
</div>
</div> <!-- / #content-wrapper -->
<div id="main-menu-bg"></div>
</div> <!-- / #main-wrapper -->
<!-- Get jQuery from Google CDN -->
<!--[if !IE]> -->
<script type="text/javascript"> window.jQuery || document.write('<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js">'+"<"+"/script>"); </script>
<!-- <![endif]-->
<!--[if lte IE 9]>
<script type="text/javascript"> window.jQuery || document.write('<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js">'+"<"+"/script>"); </script>
<![endif]-->
<!-- Pixel Admin's javascripts -->
<script src="assets/javascripts/bootstrap.min.js"></script>
<script src="assets/javascripts/pixel-admin.min.js"></script>
<script type="text/javascript">
init.push(function () {
// Javascript code here
})
window.PixelAdmin.start(init);
</script>
</body>
</html>