sub print_html_body_end {
(my $fh, my $hide_credits) = @_;
- print $fh ' </div>'."\n";
- unless ($hide_credits) {
- print $fh ' <p>'."\n";
- print $fh ' '.html_entity_encode_dec(STORY_CREDITS(),1).'<br>'."\n";
- print $fh ' '.html_entity_encode_dec(INTF_CREDITS(),1).'<br>'."\n";
- print $fh ' <a href="'.html_entity_encode_dec(SOURCE_URL(),1).'" class="cz">source code</a>'."\n";
- print $fh ' </p>'."\n";
- }
- print $fh ' <p>'."\n";
- print $fh ' <a href="/" class="cz">'.html_entity_encode_dec(WEBSITE(),1).'</a>'."\n";
- print $fh ' </p>'."\n";
unless ($hide_credits) {
my $gen_time = time();
my @time_tab = gmtime($gen_time);
- print $fh ' <p>'."\n";
+ print $fh ' <div class="when" id="generated" >'."\n";
print $fh sprintf (
- ' Page generated %04d.%02d.%02d %02d:%02d UTC.'."\n",
+ ' Page generated %04d.%02d.%02d %02d:%02d:%02d UTC.'."\n",
$time_tab[5]+1900,
$time_tab[4]+1,
$time_tab[3],
$time_tab[2],
- $time_tab[1]
+ $time_tab[1],
+ $time_tab[0]
);
+ print $fh ' </div>'."\n";
+ }
+ print $fh ' </div>'."\n";
+ unless ($hide_credits) {
+ print $fh ' <p>'."\n";
+ print $fh ' '.html_entity_encode_dec(STORY_CREDITS(),1).'<br>'."\n";
+ print $fh ' '.html_entity_encode_dec(INTF_CREDITS(),1).'<br>'."\n";
+ print $fh ' <a href="'.html_entity_encode_dec(SOURCE_URL(),1).'" class="cz">source code</a>'."\n";
print $fh ' </p>'."\n";
}
+ print $fh ' <p>'."\n";
+ print $fh ' <a href="/" class="cz">'.html_entity_encode_dec(WEBSITE(),1).'</a>'."\n";
+ print $fh ' </p>'."\n";
print $fh ' </body>'."\n";
}
$timer_s = 'EE';
}
+ my $show_ongtime = (($frame_data->{'ongtime'} ne '') && (!$launch));
+ my $ongtime = '';
+ if ($show_ongtime) {
+ my @ongtime_tab = gmtime($frame_data->{'ongtime'});
+ $ongtime = sprintf (
+ '%04d.%02d.%02d %02d:%02d',
+ $ongtime_tab[5]+1900,
+ $ongtime_tab[4]+1,
+ $ongtime_tab[3],
+ $ongtime_tab[2],
+ $ongtime_tab[1]
+ );
+ }
+
my $words_posts = int($words_data->{'posts'});
my $words_link_text = 'Words'.(($words_posts > 0) ? "[$words_posts]" : '');
print $fh " </div>\n";
+ if ($show_ongtime) {
+ print $fh ' <div class="space when" id="ongtime">'."\n";
+ print $fh ' <b>'.$ongtime.'</b>'."\n";
+ print $fh ' </div>'."\n";
+ }
+
if (($text_mode == TEXT_MODE->{'words'}) && $show_words) {
+ unless ($show_ongtime) {
+ print $fh ' <div class="space"></div>'."\n";
+ }
print_comments($fh, $context, $settings, $words_data);
}
$links .= ' </div>'."\n";
}
- print $fh ' <div class="space"></div>'."\n";
print $fh ' <div id="insw" class="ins">'."\n";
print $fh ' <div class="title" id="wordstitle">'."\n";