File tree Expand file tree Collapse file tree 8 files changed +31
-42
lines changed
packages/guides-theme-bootstrap/resources/template/body/menu
tests/Integration/tests-bootstrap/index Expand file tree Collapse file tree 8 files changed +31
-42
lines changed Original file line number Diff line number Diff line change 1
1
<div class =" level-x" >
2
- {% for entry in node .entries -%}
2
+ {% for entry in node .menuEntries -%}
3
+ {% spaceless %}
3
4
<a href =" {{ renderLink(entry .url ) }}"
4
5
class =" nav-link {% if entry .options .active %} active {% endif %}"
5
6
{% if entry .options .active %} aria-current =" page" {% endif %} >
6
7
{{ renderNode(entry .value .value ) }}
7
8
</a >
9
+ {% endspaceless %}
8
10
{% endfor %}
9
11
</div >
Original file line number Diff line number Diff line change 1
1
2
2
<nav class =" nav flex-column" >
3
- {% for entry in node .entries -%}
3
+ {% for entry in node .menuEntries -%}
4
4
<a href =" {{ renderLink(entry .url ) }}"
5
5
class =" nav-link {% if entry .options .active %} active {% endif %}"
6
- {% if entry .options .active %} aria-current =" page" {% endif %} >
6
+ {%- if entry .options .active %} aria-current =" page" {% endif - %} >
7
7
{{ renderNode(entry .value .value ) }}
8
8
</a >
9
9
Original file line number Diff line number Diff line change 1
1
<ul class =" level-{{ node .level }}" >
2
- {% for entry in node .entries -%}
3
-
2
+ {% for entry in node .menuEntries -%}
3
+ {% spaceless %}
4
4
<li class =" nav-item" >
5
5
<a href =" {{ renderLink(entry .url ) }}"
6
6
class =" nav-link {% if entry .options .active %} active {% endif %}"
7
7
{% if entry .options .active %} aria-current =" page" {% endif %} >
8
8
{{ renderNode(entry .value .value ) }}
9
9
</a >
10
10
</li >
11
- {% endfor %}
11
+ {% endspaceless %}
12
+ {%- endfor %}
12
13
</ul >
Original file line number Diff line number Diff line change 1
1
2
2
<ul class =" navbar-nav me-auto mb-2 mb-lg-0" >
3
- {% for entry in node .entries -%}
3
+ {% for entry in node .menuEntries -%}
4
4
<li class =" nav-item" >
5
- <a href =" {{ renderLink(entry .url ) }}"
6
- class =" nav-link {% if entry .options .active %} active {% endif %}"
7
- {% if entry .options .active %} aria-current =" page" {% endif %} >
5
+ <a href =" {{ renderLink(entry .url ) }}" class =" nav-link {% if entry .options .active %} active {% endif %}"
6
+ {%- if entry .options .active %} aria-current =" page" {% endif %} >
8
7
{{ renderNode(entry .value .value ) }}
9
8
</a >
10
9
</li >
Original file line number Diff line number Diff line change 4
4
{% include " body/menu/navbar/table-of-content.html.twig" %}
5
5
{% else %}
6
6
<div class =" toc" >
7
- {% for entry in node .entries -%}
7
+ {% for entry in node .menuEntries -%}
8
8
{{ renderNode(entry ) }}
9
9
{% endfor %}
10
10
</div >
Original file line number Diff line number Diff line change 5
5
<!-- Required meta tags -->
6
6
< meta charset ="utf-8 ">
7
7
< meta name ="viewport " content ="width=device-width, initial-scale=1 ">
8
-
8
+
9
9
< link href ="
https://cdn.jsdelivr.net/npm/[email protected] /dist/css/bootstrap.min.css "
rel ="
stylesheet "
integrity ="
sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC "
crossorigin ="
anonymous "
>
10
10
</ head >
11
11
< body >
20
20
< div class ="collapse navbar-collapse " id ="navbarSupportedContent ">
21
21
22
22
23
-
23
+
24
24
< ul class ="navbar-nav me-auto mb-2 mb-lg-0 ">
25
25
< li class ="nav-item ">
26
- < a href ="/index.html "
27
- class ="nav-link active "
28
- aria-current ="page " >
26
+ < a href ="/index.html " class ="nav-link " >
29
27
Document Title
30
28
</ a >
31
29
</ li > < li class ="nav-item ">
32
- < a href ="/somePage.html "
33
- class ="nav-link "
34
- >
30
+ < a href ="/somePage.html " class ="nav-link " >
35
31
Some Page
36
32
</ a >
37
33
</ li > </ ul >
47
43
< div class ="col-lg-3 ">
48
44
< div class ="rubric "> Main Menu</ div >
49
45
50
-
46
+
51
47
< nav class ="nav flex-column ">
52
48
< a href ="/index.html "
53
- class ="nav-link active "
54
- aria-current ="page " >
49
+ class ="nav-link ">
55
50
Document Title
56
51
</ a > < a href ="/somePage.html "
57
- class ="nav-link "
58
- >
52
+ class ="nav-link ">
59
53
Some Page
60
54
</ a > </ nav >
61
55
62
56
</ div >
63
57
< div class ="col-lg-9 ">
64
-
58
+
65
59
66
60
< div class ="section " id ="document-title ">
67
61
< h1 > Document Title</ h1 >
@@ -79,7 +73,7 @@ <h1>Document Title</h1>
79
73
< p > Generated by < a href ="https://www.phpdoc.org/ "> phpDocumentor</ a > .</ p >
80
74
</ div >
81
75
</ footer >
82
-
76
+
83
77
<!-- Optional JavaScript; choose one of the two! -->
84
78
85
79
<!-- Option 1: Bootstrap Bundle with Popper -->
Original file line number Diff line number Diff line change 5
5
<!-- Required meta tags -->
6
6
< meta charset ="utf-8 ">
7
7
< meta name ="viewport " content ="width=device-width, initial-scale=1 ">
8
-
8
+
9
9
< link href ="
https://cdn.jsdelivr.net/npm/[email protected] /dist/css/bootstrap.min.css "
rel ="
stylesheet "
integrity ="
sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC "
crossorigin ="
anonymous "
>
10
10
</ head >
11
11
< body >
20
20
< div class ="collapse navbar-collapse " id ="navbarSupportedContent ">
21
21
22
22
23
-
23
+
24
24
< ul class ="navbar-nav me-auto mb-2 mb-lg-0 ">
25
25
< li class ="nav-item ">
26
- < a href ="/index.html "
27
- class ="nav-link "
28
- >
26
+ < a href ="/index.html " class ="nav-link " >
29
27
Document Title
30
28
</ a >
31
29
</ li > < li class ="nav-item ">
32
- < a href ="/somePage.html "
33
- class ="nav-link active "
34
- aria-current ="page " >
30
+ < a href ="/somePage.html " class ="nav-link " >
35
31
Some Page
36
32
</ a >
37
33
</ li > </ ul >
47
43
< div class ="col-lg-3 ">
48
44
< div class ="rubric "> Main Menu</ div >
49
45
50
-
46
+
51
47
< nav class ="nav flex-column ">
52
48
< a href ="/index.html "
53
- class ="nav-link "
54
- >
49
+ class ="nav-link ">
55
50
Document Title
56
51
</ a > < a href ="/somePage.html "
57
- class ="nav-link active "
58
- aria-current ="page " >
52
+ class ="nav-link ">
59
53
Some Page
60
54
</ a > </ nav >
61
55
62
56
</ div >
63
57
< div class ="col-lg-9 ">
64
-
58
+
65
59
66
60
< div class ="section " id ="some-page ">
67
61
< h1 > Some Page</ h1 >
@@ -79,7 +73,7 @@ <h1>Some Page</h1>
79
73
< p > Generated by < a href ="https://www.phpdoc.org/ "> phpDocumentor</ a > .</ p >
80
74
</ div >
81
75
</ footer >
82
-
76
+
83
77
<!-- Optional JavaScript; choose one of the two! -->
84
78
85
79
<!-- Option 1: Bootstrap Bundle with Popper -->
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments