Member
Member
rohair   2013-12-02, 22:59
#1

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.

Member
Member
sbillard   2013-12-02, 23:26
#2

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.

Member
Member
Papyrus   2013-12-04, 21:01
#3

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

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.