FtTemplate::customization - jcobban/Genealogy GitHub Wiki
$template->customization()
Up: class FtTemplate
The constructor calls a method customization which is redefined by this derived class to implement site specific functionality during construction. The method looks for the most specific version of the master page template, inserting the language code 'll' requested in the constructor into the name of the base template, change a request for 'page.html' to 'pagell.html' and 'dialog.html' to 'dialogll.html'. Furthermore if it is recognized that the browser is IE7 or older this method replaces the master template 'pagell.html' with 'pageIE7ll.html', where 'll' is the requested language. Those releases of Internet Explorer do not support HTML5 at all and are non-compliant even to the W3C specification for HTML 4.2, instead implementing “quirks” mode, which is not as amusing as it sounds.
Master template files 'pagell.html' and 'dialogll.html' contain the language specific HTML5 template. This contains the <html>,<head>, , <header>, and <footer> contents with an insertion point $MAIN for application specific contents contained in a <main> tag within the <body> section.
Master template files 'pageIE7ll.html' and 'dialogIE7ll.html' contain a language specific HTML 4 template to satisfy Internet Explorer releases less than 8. This contains the <html>, <head>, and the opening and closing <body> tags with an insertion point $MAIN for application specific contents. The HTML that is included in the <header>, and and <footer> tags of the HTML5 version of the template is included but with those unsupported tags replaced by <div> tags.