1# no horiz rules between sections 2$end_section = \&FFmpeg_end_section; 3sub FFmpeg_end_section($$) 4{ 5} 6 7$EXTRA_HEAD = 8'<link rel="icon" href="favicon.png" type="image/png" /> 9'; 10 11$CSS_LINES = $ENV{"FFMPEG_CSS"} || <<EOT; 12<link rel="stylesheet" type="text/css" href="default.css" /> 13EOT 14 15my $TEMPLATE_HEADER = $ENV{"FFMPEG_HEADER"} || <<EOT; 16<link rel="icon" href="favicon.png" type="image/png" /> 17</head> 18<body> 19<div id="container"> 20<div id="body"> 21EOT 22 23$PRE_BODY_CLOSE = '</div></div>'; 24 25$SMALL_RULE = ''; 26$BODYTEXT = ''; 27 28$print_page_foot = \&FFmpeg_print_page_foot; 29sub FFmpeg_print_page_foot($$) 30{ 31 my $fh = shift; 32 my $program_string = defined &T2H_DEFAULT_program_string ? 33 T2H_DEFAULT_program_string() : program_string(); 34 print $fh '<footer class="footer pagination-right">' . "\n"; 35 print $fh '<span class="label label-info">' . $program_string; 36 print $fh "</span></footer></div></div></body>\n"; 37} 38 39$float = \&FFmpeg_float; 40 41sub FFmpeg_float($$$$) 42{ 43 my $text = shift; 44 my $float = shift; 45 my $caption = shift; 46 my $shortcaption = shift; 47 48 my $label = ''; 49 if (exists($float->{'id'})) 50 { 51 $label = &$anchor($float->{'id'}); 52 } 53 my $class = ''; 54 my $subject = ''; 55 56 if ($caption =~ /NOTE/) 57 { 58 $class = "alert alert-info"; 59 } 60 elsif ($caption =~ /IMPORTANT/) 61 { 62 $class = "alert alert-warning"; 63 } 64 65 return '<div class="float ' . $class . '">' . "$label\n" . $text . '</div>'; 66} 67 68$print_page_head = \&FFmpeg_print_page_head; 69sub FFmpeg_print_page_head($$) 70{ 71 my $fh = shift; 72 my $longtitle = "$Texi2HTML::THISDOC{'fulltitle_no_texi'}"; 73 $longtitle .= ": $Texi2HTML::NO_TEXI{'This'}" if exists $Texi2HTML::NO_TEXI{'This'}; 74 my $description = $DOCUMENT_DESCRIPTION; 75 $description = $longtitle if (!defined($description)); 76 $description = "<meta name=\"description\" content=\"$description\">" if 77 ($description ne ''); 78 $description = $Texi2HTML::THISDOC{'documentdescription'} if (defined($Texi2HTML::THISDOC{'documentdescription'})); 79 my $encoding = ''; 80 $encoding = "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=$ENCODING\">" if (defined($ENCODING) and ($ENCODING ne '')); 81 $longtitle =~ s/Documentation.*//g; 82 $longtitle = "FFmpeg documentation : " . $longtitle; 83 84 print $fh <<EOT; 85<!DOCTYPE html> 86<html> 87$Texi2HTML::THISDOC{'copying'}<!-- Created on $Texi2HTML::THISDOC{today} by $Texi2HTML::THISDOC{program} --> 88<!-- 89$Texi2HTML::THISDOC{program_authors} 90--> 91<head> 92<title>$longtitle</title> 93 94$description 95<meta name="keywords" content="$longtitle"> 96<meta name="Generator" content="$Texi2HTML::THISDOC{program}"> 97$encoding 98$CSS_LINES 99$TEMPLATE_HEADER 100EOT 101} 102 103# declare encoding in header 104$IN_ENCODING = $ENCODING = "utf-8"; 105 106# no navigation elements 107$SECTION_NAVIGATION = 0; 108# the same for texi2html 5.0 109$HEADERS = 0; 110 111# TOC and Chapter headings link 112$TOC_LINKS = 1; 113 114# print the TOC where @contents is used 115$INLINE_CONTENTS = 1; 116