Revision e71cecc7
Von Sven Schöling vor mehr als 2 Jahren hinzugefügt
SL/Form.pm | ||
---|---|---|
468 | 468 |
|
469 | 469 |
# output |
470 | 470 |
print $self->create_http_response(content_type => 'text/html', charset => 'UTF-8'); |
471 |
print $doctypes{$params{doctype} || 'transitional'}, $/;
|
|
471 |
print $doctypes{$params{doctype} || $::request->layout->html_dialect}, $/;
|
|
472 | 472 |
print <<EOT; |
473 | 473 |
<html> |
474 | 474 |
<head> |
SL/Layout/Base.pm | ||
---|---|---|
42 | 42 |
"templates/webpages"; |
43 | 43 |
} |
44 | 44 |
|
45 |
sub html_dialect { |
|
46 |
'transitional' |
|
47 |
} |
|
48 |
|
|
45 | 49 |
sub allow_stylesheet_fallback { |
46 | 50 |
1 |
47 | 51 |
} |
... | ... | |
362 | 366 |
|
363 | 367 |
Also see the next section L</GORY DETAILS ABOUT JAVASCRIPT AND STYLESHEET OVERLOADING> |
364 | 368 |
|
369 |
=item * html_dialect |
|
370 |
|
|
371 |
Default 'transitional'. Controls the html dialect that the header will |
|
372 |
generate. Used in combination with template overriding for html5. |
|
373 |
|
|
374 |
See also L<SL::Form/header> |
|
375 |
|
|
365 | 376 |
=back |
366 | 377 |
|
367 | 378 |
|
SL/Layout/Design40Switch.pm | ||
---|---|---|
15 | 15 |
!is_design40(); |
16 | 16 |
} |
17 | 17 |
|
18 |
sub html_dialect { |
|
19 |
is_design40() ? 'html5' : $_[0]->SUPER::html_dialect |
|
20 |
} |
|
21 |
|
|
18 | 22 |
1; |
19 | 23 |
|
20 | 24 |
__END__ |
Auch abrufbar als: Unified diff
design40: html5 doctype statt html4 transitional für die alten templates