File tree 5 files changed +24
-5
lines changed
5 files changed +24
-5
lines changed Original file line number Diff line number Diff line change @@ -3881,4 +3881,6 @@ interface modules (Zeev)</li>
3881
3881
<li>First public beta of PHP 4.0</li>
3882
3882
</ul>
3883
3883
3884
- <?php site_footer (); ?>
3884
+ <?php
3885
+
3886
+ site_footer (['sidebar ' => changelog_sidebar (4 )]);
Original file line number Diff line number Diff line change @@ -15957,4 +15957,6 @@ functions if "zend" is specified as the module name. (Ilia)</li>
15957
15957
</ul>
15958
15958
<!-- }}} --></section>
15959
15959
15960
- <?php site_footer(); ?>
15960
+ <?php
15961
+
15962
+ site_footer(['sidebar' => changelog_sidebar(5)]);
Original file line number Diff line number Diff line change 10231
10231
</ul>
10232
10232
<!-- }}} --></section>
10233
10233
10234
- <?php site_footer (); ?>
10234
+ <?php
10235
+
10236
+ site_footer (['sidebar ' => changelog_sidebar (7 )]);
Original file line number Diff line number Diff line change 753
753
</ul>
754
754
<!-- }}} --></section>
755
755
756
- <?php site_footer ();
756
+ <?php
757
+
758
+ site_footer (['sidebar ' => changelog_sidebar (8 )]);
Original file line number Diff line number Diff line change @@ -34,4 +34,15 @@ function release_date($in) {
34
34
echo "<time class='releasedate' datetime=' {$ for_tools }'> {$ human_readable }</time> " ;
35
35
}
36
36
37
- ?>
37
+ function changelog_sidebar (?int $ current = null ): string {
38
+ $ majors = [8 , 7 , 5 , 4 ];
39
+ $ ret = "<div class= \"panel \">ChangeLogs<div class= \"body \"><ul> \n" ;
40
+ foreach ($ majors as $ major ) {
41
+ if ($ major === $ current ) {
42
+ $ ret .= " <li><b>PHP {$ major }.x</b></li> \n" ;
43
+ } else {
44
+ $ ret .= " <li><a href= \"/ChangeLog- {$ major }.php \">PHP {$ major }.x</a></li> \n" ;
45
+ }
46
+ }
47
+ return $ ret .= "</ul></body></body> \n" ;
48
+ }
You can’t perform that action at this time.
0 commit comments