forked from wp-cli/wp-cli.github.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfooter.html
More file actions
52 lines (40 loc) · 1.51 KB
/
footer.html
File metadata and controls
52 lines (40 loc) · 1.51 KB
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
</section>
</div>
{% if page.display_global_parameters %}
{% include global-parameters.html %}
{% endif %}
<footer>Project maintained by <a href="https://danielbachhuber.com/">Daniel Bachhuber</a> and <a href="http://www.alainschlesser.com/">Alain Schlesser</a>. Initial code by <a href="https://github.com/andreascreten">Andreas Creten</a> and <a href="https://github.com/scribu">Cristi Burcă</a>. For more details, see <a href="https://make.wordpress.org/cli/handbook/governance/">Governance</a>.</footer>
{% include analytics.html %}
<script type="text/javascript">
var anchorForId = function( id ) {
var anchor = document.createElement( 'a' );
anchor.className = 'header-link';
anchor.href = '#' + id;
anchor.innerHTML = '#';
anchor.title = 'Permalink';
return anchor;
};
var linkifyAnchors = function( level, containingElement ) {
var h,
headers = containingElement.getElementsByTagName( 'h' + level );
for( h = 0; h < headers.length; h++ ) {
var header = headers[ h ];
if( 'undefined' !== typeof header.id && '' !== header.id ) {
header.appendChild( anchorForId( header.id ) );
}
}
};
document.onreadystatechange = function() {
if( 'complete' === this.readyState ) {
var contentBlock = document.getElementById( 'main_content' );
if( !contentBlock ) {
return;
}
for( var level = 2; level <= 6; level++ ) {
linkifyAnchors( level, contentBlock );
}
}
};
</script>
</body>
</html>