Now, php is not my native language, but from what I can see, these are the code changes needed to introduce a theme option for specifying the location of the header image files. This will allow the header images to be put in a directory that survives a theme upgrade. Incorporating these few lines of code into an otherwise excellent theme would make life a little bit easier for quite a few of the ATA users out there.
File: functions/bfa_theme_options.php
Code:
(...) common today, so the images should be that wide or wider. The next common screen widths are 1440, 1600, 1680 and 1920 pixels. </li></ul>" . $header_image_text), + array( "name" => "Header Images Directory", + "category" => "header-image", + "id" => "header_images_dir", + "std" => "images/header", + "type" => "text", + "info" => "Directory for header image(s), relative to Atahualpa theme directory. No leading or trailing slashes."), + array( "name" => "Rotate header images with Javascript?", "category" => "header-image", "id" => "header_image_javascript", (...)
Code:
(...) "allow_debug", "IEDocType", + "header_images_dir", "overlay_header_image" ); (...)
Code:
(...) ################### images in /images/header/ (on regular WordPress) $files = ""; - $imgpath = get_template_directory() . '/images/header/'; - $imgdir = $templateURI . '/images/header/'; + if(isset($bfa_ata['header_images_dir'])) { + $imgpath = get_template_directory() . '/' . $bfa_ata['header_images_dir'] . '/'; + $imgdir = $templateURI . '/' . $bfa_ata['header_images_dir'] . '/'; + } else { + $imgpath = get_template_directory() . '/images/header/'; + $imgdir = $templateURI . '/images/header/'; + } $dh = opendir($imgpath); while (FALSE !== ($filename = readdir($dh))) { (...)