-
Notifications
You must be signed in to change notification settings - Fork 28
/
header_nav.php
79 lines (52 loc) · 3.92 KB
/
header_nav.php
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
<?php /*<ul id="nav">
<li><span
class="nav-label-color <?php if (strstr(url_path(), 'developer-guide/')) print "label-" . url_segment(0); ?>"></span><a
class="nav-title <?php if (strstr(url_path(), 'developer-guide/')) print "active"; ?>"
href="<?php print site_url(); ?>developer-guide/README.md">Developers guide</a></li>
<li><span
class="nav-label-color <?php if (strstr(url_path(), 'functions/')) print "label-" . url_segment(0); ?>"></span><a
class="nav-title dd_functions_ref <?php if (strstr(url_path(), 'functions/')) print "active"; ?>"
href="<?php print site_url(); ?>functions/README.md"><span data-ref="functions">Functions</span></a></li>
<li><span
class="nav-label-color <?php if (strstr(url_path(), 'classes/')) print "label-" . url_segment(0); ?>"></span><a
class="nav-title dd_class_ref <?php if (strstr(url_path(), 'classes/')) print "active"; ?>"
href="<?php print site_url(); ?>classes/README.md" data-ref="class">Classes</a></li>
<li><span
class="nav-label-color <?php if (strstr(url_path(), 'modules/')) print "label-" . url_segment(0); ?>"></span><a
class="nav-title dd_class_ref <?php if (strstr(url_path(), 'modules/')) print "active"; ?>"
href="<?php print site_url(); ?>modules/README.md" data-ref="class">Modules</a></li>
<li><span
class="nav-label-color <?php if (strstr(url_path(), 'js-api/')) print "label-" . url_segment(0); ?>"></span><a
class="nav-title dd_class_ref <?php if (strstr(url_path(), 'js-api/')) print "active"; ?>"
href="<?php print site_url(); ?>js-api/README.md" data-ref="class">JS Api</a></li>
<li><span
class="nav-label-color <?php if (strstr(url_path(), 'css-guide/')) print "label-" . url_segment(0); ?>"></span><a
class="nav-title dd_class_ref <?php if (strstr(url_path(), 'css-guide/')) print "active"; ?>"
href="<?php print site_url(); ?>css-guide/README.md" data-ref="class">CSS</a></li>
</ul>*/ ?>
<div id="autocomplete"></div>
<a href="/" id="logo"><span class="mw-icon-mw"></span> Docs</a>
<ul class="mw-ui-btn-nav " id="mainnav">
<?php /*<li><a
class="mw-ui-btn mw-ui-btn-info mw-ui-btn-big <?php if (strstr(url_path(), 'developer-guide/')) print "active"; ?>"
href="<?php print site_url(); ?>developer-guide/README.md">Developers guide</a></li>*/ ?>
<li><a
class="mw-ui-btn mw-ui-btn-info mw-ui-btn-big dd_class_ref <?php if (strstr(url_path(), 'guides/')) print "active"; ?>"
href="<?php print site_url(); ?>guides/README.md" data-ref="class">Guides</a></li>
<li><a
class="mw-ui-btn mw-ui-btn-info mw-ui-btn-big dd_functions_ref <?php if (strstr(url_path(), 'functions/')) print "active"; ?>"
href="<?php print site_url(); ?>functions/README.md"><span data-ref="functions">Functions</span></a></li>
<li><a
class="mw-ui-btn mw-ui-btn-info mw-ui-btn-big dd_class_ref <?php if (strstr(url_path(), 'modules/')) print "active"; ?>"
href="<?php print site_url(); ?>modules/README.md" data-ref="class">Modules</a></li>
<li><a
class="mw-ui-btn mw-ui-btn-info mw-ui-btn-big <?php if (strstr(url_path(), 'components/')) print "active"; ?>"
href="<?php print site_url(); ?>components">Components</a></li>
<?php /*
<li ><span
class="mw-ui-btn mw-ui-btn-info mw-ui-btn-big" id="searchbtn" style="padding: 0;">
<input type="text" class="mw-ui-invisible-field mw-ui-field-big" id="searchfield" style="margin-top: 0;height: 46px;font-size: 16px;" placeholder="Search" />
<span class="mw-icon-app-search-strong">
</span>
</span></li> */ ?>
</ul>