Not always fond of netspeak but had to in order to fit what I wanted to express in the subject.
I have a template for my site. It's header.php and header1.php.
header.php contains the html and head info, and header1.php contains the end head info and body layout. I have them as two separate info so that each page can call the two, and if need be, I can put information between the includes for something the page may require in the head area.
At first I thought it was easy enough just to put both includes in the custom header.php in the root of my gallery, until I read that it omits <head>, <body>, </head>. Now in view source it has everything but those.
Now, thanks Coppermine (...), I've put the top html information like doctype in template.html and then put {CUSTOM_HEADER}, and in header.php I have it linked to something now called header-extra.php, which is header.php without that top html information. For the rest of my site, so it won't interfere, I have now in header.php the top information and then header-extra.php in an include.
If this doesn't make sense for people, just focus on someone doing extra work, grumbling and grunting until they've semi-accomplished trying to get tags in. Now I have the html, the head stuff from the include that counts as my custom header, and the <body> tag in template.html.
I figured I could do the same with my header1.php thing, put <body> in there and link the rest of the layout scripting from an include file. And for the purposes of the gallery, from a custom file link the extra include file (and not header1.php but something like header1-extra.php).
However, in order to do this, I figured I'd have to do this (please correct me if I'm wrong):
themes/----/templates.html
just after <body>:
insert {CUSTOM_HEADER1}
includes/themes.inc.php
just after
'{CUSTOM_HEADER}' => $custom_header,
insert
'{CUSTOM_HEADER1}' => $custom_header1,
just after
$custom_header = cpg_get_custom_include($CONFIG['custom_header_path']);
insert
$custom_header1 = cpg_get_custom_include($CONFIG['custom_header1_path']);
english.php
just after
//cpg1.4
array('Path to custom header include', 'custom_header_path', 0, 'f=index.htm&as=admin_theme_include_path_start&ae=admin_theme_include_path_end'),
insert
//cpg1.4
array('Path to custom header1 include', 'custom_header1_path', 0, 'f=index.htm&as=admin_theme_include_path_start&ae=admin_theme_include_path_end'),
In SQL:
INSERT INTO CPG_config VALUES ('custom_header1_path', '');
then create header1.php
insert
<?php
include("../header1-extra.php");
?>
Am I close?