Issue #1942922 by ndf: Use a separate theme function for the active items in the current search blocks