@@ -47,12 +47,6 @@ function highlight_php_trimmed($code, $return = false)
47
47
return null ;
48
48
}
49
49
50
- // Stats pages still need this
51
- function commonHeader ($ title ): void { site_header ($ title ); }
52
-
53
- // Stats pages still need this
54
- function commonFooter (): void { site_footer (); }
55
-
56
50
// Resize the image using the output of make_image()
57
51
function resize_image ($ img , $ width = 1 , $ height = 1 )
58
52
{
@@ -160,13 +154,6 @@ function make_popup_link($url, $linktext = false, $target = false, $windowprops
160
154
);
161
155
}
162
156
163
- // print_popup_link()
164
- // print a hyperlink to something, within the site, that pops up a new window
165
- //
166
- function print_popup_link ($ url , $ linktext = false , $ windowprops = "" , $ target = false , $ extras = false ): void {
167
- echo make_popup_link ($ url , $ linktext , $ windowprops , $ target , $ extras );
168
- }
169
-
170
157
// Print a link for a downloadable file (including filesize)
171
158
function download_link ($ file , $ title ): void
172
159
{
@@ -204,20 +191,6 @@ function download_link($file, $title): void
204
191
}
205
192
}
206
193
207
- function sect_to_file ($ string ) {
208
- $ string = strtolower ($ string );
209
- $ string = str_replace ([' ' , '_ ' ], '- ' , $ string );
210
- $ func = "function. $ string.php " ;
211
- $ chap = "ref. $ string.php " ;
212
- $ feat = "features. $ string.php " ;
213
- $ struct = "control-structures. $ string.php " ;
214
- if (@is_file ($ func )) return $ func ;
215
- if (@is_file ($ chap )) return $ chap ;
216
- if (@is_file ($ feat )) return $ feat ;
217
- if (@is_file ($ struct )) return $ struct ;
218
- else return "$ string.php " ;
219
- }
220
-
221
194
function clean ($ var ) {
222
195
return htmlspecialchars ($ var , ENT_QUOTES );
223
196
}
@@ -511,39 +484,6 @@ function get_news_changes()
511
484
return false ;
512
485
}
513
486
514
- function news_toc ($ sections = null ): void {
515
- include __DIR__ . "/pregen-news.inc " ;
516
- $ items = [
517
- "news " => [
518
- "title " => "News " ,
519
- "link " => "/archive/ " ,
520
- "children " => print_news ($ NEWS_ENTRIES , "frontpage " , 3 , null , true ),
521
- ],
522
- "conferences " => [
523
- "title " => "Conferences " ,
524
- "link " => "/conferences/ " ,
525
- "children " => print_news ($ NEWS_ENTRIES , "conferences " , 3 , null , true ),
526
- ],
527
- "papers " => [
528
- "title " => "Call for Papers " ,
529
- "link " => "/conferences/ " ,
530
- "children " => print_news ($ NEWS_ENTRIES , "cfp " , 3 , null , true ),
531
- ],
532
- ];
533
-
534
- foreach ($ items as $ section => $ menu ) {
535
-
536
- // only print requested sections.
537
- if (is_array ($ sections ) && !in_array ($ section , $ sections , true )) {
538
- continue ;
539
- }
540
-
541
- echo "<dt><a href=' {$ menu ["link " ]}'> {$ menu ["title " ]}</a></dt> \n" ;
542
- foreach ($ menu ["children " ] as $ child ) {
543
- echo "<dd><a href=' {$ child ["permlink " ]}'> {$ child ["title " ]}</a></dd> \n" ;
544
- }
545
- }
546
- }
547
487
function doc_toc ($ lang ): void {
548
488
$ file = __DIR__ . "/../manual/ $ lang/toc/index.inc " ;
549
489
if (!file_exists ($ file )) {
0 commit comments