solution by ANDRE for different header images and logo images for each category only (not even for each thumbnails pages):
add this code to function pageheader before $template_vars = CPGPluginAPI::filter('theme_pageheader_params', $template_vars);(copy it from themes/sample/theme.php if is not in your theme.php)
ADD in your images foder header_1.jpg for cat=1,header_2.jpg for cat=2 etc and logo_1.png for cat=1,logo_2.png for cat=2 etc and header_default.jpg for index.php.
// header mod - start
global $cat;
$superCage = Inspekt::makeSuperCage();
if ($superCage->get->getRaw('file') == 'minicms/cms') {
$current_id = $superCage->get->getInt('id');
} elseif (!$cat) {
$current_id = 0;
} elseif ($cat < 0) {
$aid = -$cat;
$current_id = mysql_result(cpg_db_query("SELECT category FROM {$CONFIG['TABLE_ALBUMS']} WHERE aid = '$aid' LIMIT 1"), 0);
} else {
$current_id = $cat;
}
$logo_file = 'themes/your_theme_name/your_images_folder/logo_'.$current_id.'.png';
$header_file = 'themes/your_theme_name/your_images_folder/header_'.$current_id.'.jpg';
$logo_link = file_exists($logo_file) ? '<a href="./index.php" title="Index" id="logo"><img src="'.$logo_file.'" alt="Index" /></a>' : '';
$header_file = file_exists($header_file) ? $header_file : 'themes/your_theme_name/your_images_folder/header_default.jpg';
$headerbar = <<<EOT
<div class="headerbar" style="background:url('{$header_file}');">
<div class="inner">
<span class="corners-top"><span></span></span>
<div id="site-description">
{$logo_link}
</div>
<span class="corners-bottom"><span></span></span>
</div>
</div>
EOT;
$template_vars['{HEADERBAR}'] = $headerbar;
// header mod - end
[Edit by André: Don't forget to add the token {HEADERBAR} to your theme's template.html file]