I use two themes in my gallery. The main theme includes all zenpage content (pages, and news) as well as most of my albums. The second theme is only applied to only one album. That album has searchable content, and is the only album with searchable content available.
I would like image search results from this one album to open in the same theme as is applied to that album, however, search results open in the main site theme.
What can I do to make the search results open in the secondary theme that I use only for the one album that has searchable content?
Thank you.
You would need to create a FEATURE_PLUGIN that attaches the load_theme_script filter, and in that plugin detect that the search.php script is being called for. If so, remap the $script parameter to the secondary theme.
For the closest example of this see the favorites plugin.
You might want to check out this mod for Zenphoto on my site, dynamic themes for different parts of your gallery. http://animepapers.org/software/zenphoto/code-snippets/multiple-layouts-dynamic-modification.html