Операция несложная:
1. Скопировать весь код из themes/sample/template.php в файл themes/ваш_шаблон/template.php
2. Скопировать приведенный ниже код в файл themes/ваш_шаблон/template.php
function cpg_get_myinclude() {
global $CONFIG;
$path2 = $_SERVER['DOCUMENT_ROOT'].'/coppermine_folder/include/myinclude.php'; //абсолютный путь к файлу
$return = '';//проверка наличия файла
if (!file_exists($path2)) {
return $return;
}
ob_start();
include($path2);
$return = ob_get_contents();
ob_end_clean();
$return = str_replace('', '', $return);
$return = str_replace('', '', $return);
$return = str_replace('', '', $return);
$return = str_replace('', '', $return);
$return = str_replace('', '', $return);
$return = str_replace('', '', $return);
return $return;
}
3. Добавить новый {TAG} в function pageheader($section, $meta = ”) или в function pagefooter()
'{MYTAG}' => cpg_get_myinclude(),
Вывод позиции {MYTAG} происходит как обычно согласно кода в файле template.html
