let's say I'm working on a site that has 8 to 10 different html/php templates
I want to use several common elements on every page, like most people do, masthead, footer, sidebar, the usual
but these common elements often need minor adjustments for each template, like one template has sub navigation in the sidebar and one does not
I'm wondering what approach is best
option 1 should I have a separate include or require for each different common element, like one for the html head one for footer, one for the sidebar, etc
option 2 should I require just one larger file that holds all my common elements, and then I can use $_SERVER['SCRIPT_NAME'] and conditionals to test which template is being called and make modifications to the common elements as needed
Does it really make any difference as far as performance goes or load on the server? how many conditionals is too many? how many includes is too many?
am I making sense folks? :-)