/images/smartimg_95"
It should be calling for the complete filename with extension:
/images/smartimg_95.gif"
It's not finding a file named smartimg_95 without extension in your template, so it's looking in /template_default/ (and not finding it there either.)
I missed some code when remaking the smartimg section from the smartbg. The tests look for the correct names, but the output only gives the filename without extension. Use this in place of the above:```php
<!--bof-branding display-->
<div id="logoWrapper">
<?php //Smart Backgrounds - for foreground logo - 20080913
$smart_image = '';
$unique_ezpages = true;//change to false to not have diff bg for each ezpage
if ($current_page_base == 'index' or $current_page_base == 'product_info') { //change filename to smartimg_ and top cat id only if cat image exists
$smart_image = (file_exists(DIR_WS_TEMPLATE_IMAGES . 'smartimg_' . str_replace(strstr($_GET[cPath],'_'),'',$_GET[cPath]) . '.gif'))?'smartimg_' . str_replace(strstr($_GET[cPath],'_'),'',$_GET[cPath] . '.gif'):HEADER_LOGO_IMAGE;
} elseif ($current_page_base == 'page' and $unique_ezpages == true) { //change filename to smartimg_page and ez-page id only if ez-page image exists
$smart_image = (file_exists(DIR_WS_TEMPLATE_IMAGES . 'smartimg_page' . $_GET[id] . '.gif'))?'smartimg_page' . $_GET[id] . '.gif':HEADER_LOGO_IMAGE;
} else { //change filename to smartimg_ and pagename only if page image exists
$smart_image = (file_exists(DIR_WS_TEMPLATE_IMAGES . 'smartimg_' . $current_page_base . '.gif'))?'smartimg_' . $current_page_base . '.gif':HEADER_LOGO_IMAGE; //default/home page image will be as defined (HEADER_LOGO_IMAGE)
}// /Smart Backgrounds?>
<div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir($smart_image, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . $smart_image, HEADER_ALT_TEXT) . '</a>'; ?></div>
```