forked from PHP-DI/PHP-DI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.twig
178 lines (163 loc) · 8.54 KB
/
default.twig
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
<!DOCTYPE html>
<!--[if lt IE 7]>
<html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>
<html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>
<html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ title|default('PHP-DI') }} - The Dependency Injection Container for humans</title>
<meta name="description" content="PHP-DI is a Dependency Injection Container for PHP that intends to be practical and powerful.">
<link rel="canonical" href="https://php-di.org" />
<meta name="application-name" content="PHP-DI"/>
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ baseUrl }}/img/apple-touch-icon-144x144.png" />
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="{{ baseUrl }}/img/apple-touch-icon-152x152.png" />
<link rel="icon" type="image/png" href="{{ baseUrl }}/img/favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="{{ baseUrl }}/img/favicon-16x16.png" sizes="16x16" />
<meta name="msapplication-TileColor" content="#484949" />
<meta name="msapplication-TileImage" content="{{ baseUrl }}/img/mstile-144x144.png" />
{% block css %}
<link href="https://fonts.googleapis.com/css?family=Abel:400|Oswald:300,400,700" media="all" rel="stylesheet" type="text/css">
<link href="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css" rel="stylesheet">
<link href="{{ baseUrl }}/css/highlight.github.css" rel="stylesheet">
<link href="{{ baseUrl }}/css/all.min.css" rel="stylesheet">
{% endblock %}
<script async defer data-domain="php-di.org" src="https://plausible.io/js/plausible.js"></script>
</head>
<body>
<header>
<div class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#top-navigation">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="{{ baseUrl }}/" title="Dependency injection container for PHP">PHP-DI</a>
</div>
<div class="navbar-form navbar-left hidden-xs hidden-sm">
<input id="search-input" type="text" class="form-control" placeholder="Search...">
</div>
<div class="collapse navbar-collapse" id="top-navigation">
<ul class="nav navbar-nav navbar-right">
<li><a href="{{ baseUrl }}/doc/getting-started.html" title="Getting started with PHP-DI">Getting started</a></li>
<li><a href="{{ baseUrl }}/doc/" title="PHP-DI documentation">Documentation</a></li>
<li><a href="{{ baseUrl }}/support.html" title="Enterprise support for PHP-DI">For Enterprise</a></li>
<li><a href="{{ baseUrl }}/news/" title="News about PHP-DI">News</a></li>
<li><a href="{{ baseUrl }}/change-log.html" title="PHP-DI's changelog">Changelog</a></li>
<li><a class="github" href="https://github.com/PHP-DI/PHP-DI" title="PHP-DI on GitHub"><i class="fa fa-github"></i></a></li>
</ul>
</div>
</div>
</div>
</header>
{% block content %}
<article class="container">
{{ content|raw }}
</article>
{% endblock %}
{% block footer %}
<footer>
<div class='container'>
{% block footerTop %}
<p>
A question? Unsatisfied with the documentation?
<a href="https://github.com/PHP-DI/PHP-DI/issues/new">Open an issue</a>
or chat on
<a href="https://gitter.im/PHP-DI/PHP-DI" title="PHP-DI chat room">Gitter</a> or
<a href="https://twitter.com/phpdi" title="PHP-DI on Twitter">Twitter</a>.
</p>
{% endblock %}
<p>
<a href="https://twitter.com/share" class="twitter-share-button" data-related="PHPDI" data-dnt="true">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
</p>
<p>
By <a href="https://mnapoli.fr/" title="Software consulting and PHP news">Matthieu Napoli</a>
and <a href="https://github.com/PHP-DI/PHP-DI/graphs/contributors" title="PHP-DI contributors">contributors</a>
|
Website generated with
<a href="http://couscous.io" title="Static website generator for software documentation">Couscous</a>.
</p>
<p>
Want to support my work? Check out
<a href="https://serverless-visually-explained.com/?ref=php-di" title="Serverless course">Serverless Visually Explained</a>.
</p>
</div>
</footer>
{% endblock %}
{% block javascripts %}
<script src="{{ baseUrl }}/bower_components/jquery/dist/jquery.min.js"></script>
<script src="{{ baseUrl }}/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.5/highlight.min.js"></script>
<script>
$(function() {
hljs.initHighlightingOnLoad();
// Add anchors to headers
$('article h2, article h3, article h4, article h5').each(function () {
var url = document.URL.replace(/#.*$/, "") + '#' + $(this).attr('id');
$(this).append(' <a class="anchor" href="' + url + '">#</a>');
});
});
</script>
{% endblock %}
<script>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-15584647-13']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<!-- Gitter -->
<script>
((window.gitter = {}).chat = {}).options = {
room: 'PHP-DI/PHP-DI'
};
</script>
<script src="https://sidecar.gitter.im/dist/sidecar.v1.js" async defer></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script>
<script type="text/javascript">
$(function () {
var search = docsearch({
apiKey: 'ef6af24cbacae1f85d3c44741df49167',
indexName: 'php-di',
inputSelector: '#search-input'
});
var delay = (function () {
var timer = 0;
return function (callback, ms) {
clearTimeout(timer);
timer = setTimeout(callback, ms);
};
})();
search.autocomplete.on('autocomplete:selected', function (e, suggestion) {
var articleTitle = suggestion.subcategory;
// Strip HTML tags
var div = document.createElement("div");
div.innerHTML = articleTitle;
articleTitle = div.textContent || div.innerText || "";
_gaq.push(['_trackEvent', 'search', 'click', articleTitle]);
});
$('#search-input').bind('input', function () {
var search = $(this).val();
if (search.length < 3) {
return;
}
delay(function () {
_gaq.push(['_trackPageview', '/search?q=' + search]);
}, 600);
});
});
</script>
</body>
</html>