Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 2b6e91d5

Von Sven Schöling vor etwa 2 Jahren hinzugefügt

  • ID 2b6e91d5b092accf8bc61e9535a77ddba6bc562c
  • Vorgänger e80302f1
  • Nachfolger e13f403e

design40: html5 doctype statt html4 transitional für die alten templates

Unterschiede anzeigen:

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
44 44
  "templates/webpages";
45 45
}
46 46

  
47
sub html_dialect {
48
  'transitional'
49
}
50

  
47 51
sub allow_stylesheet_fallback {
48 52
  1
49 53
}
......
366 370

  
367 371
Also see the next section L</GORY DETAILS ABOUT JAVASCRIPT AND STYLESHEET OVERLOADING>
368 372

  
373
=item * html_dialect
374

  
375
Default 'transitional'. Controls the html dialect that the header will
376
generate. Used in combination with template overriding for html5.
377

  
378
See also L<SL::Form/header>
379

  
369 380
=back
370 381

  
371 382

  
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